/* =========================================================
   JWL — Cookie Consent Modal
   ========================================================= */

.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 20px clamp(16px, 4vw, 32px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .4s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  width: 100%;
  max-width: 960px;
  background: rgba(13, 18, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  color: #e8ecf4;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
}

.cookie-consent-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-consent-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #22d3ee;
  margin: 0;
}

.cookie-consent-text {
  font-size: 13px;
  line-height: 1.75;
  color: #9aa3b8;
  margin: 0;
}

.cookie-consent-text a {
  color: #e8ecf4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(34, 211, 238, 0.5);
}

.cookie-consent-text a:hover {
  color: #22d3ee;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #e8ecf4;
}

.cookie-consent-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.cookie-consent-btn.primary {
  background: linear-gradient(100deg, #3b82f6 0%, #22d3ee 55%, #14b8a6 100%);
  color: #05070d;
  border-color: transparent;
}

.cookie-consent-btn.primary:hover {
  transform: translateY(-2px);
  color: #05070d;
}

@media (max-width: 720px) {
  .cookie-consent {
    padding: 16px;
  }
  .cookie-consent-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .cookie-consent-actions {
    justify-content: stretch;
  }
  .cookie-consent-btn {
    flex: 1;
    padding: 12px 16px;
  }
}
