@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:            #04040f;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.072);
  --text:          #e6e6f4;
  --muted:         #6b6b90;
  --dim:           #3f3f5a;

  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(139, 92, 246, 0.45);

  /* brand gradient — violet → sky */
  --g1: #7c3aed;
  --g2: #06b6d4;
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);

  --glow-v: rgba(124, 58, 237, 0.38);
  --glow-b: rgba(6, 182, 212, 0.22);

  --radius:    20px;
  --radius-sm: 10px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw:      1000px;
  --pad:       24px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--g1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   BACKGROUND  (gradient mesh + grid + noise)
   ============================================================ */

/* ambient gradient orbs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15%  -5%, rgba(124, 58, 237, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 85% 105%, rgba(6, 182, 212, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 55%  55%, rgba(88, 28, 240, 0.09) 0%, transparent 65%);
}

/* dot grid (fades to edge) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
}

header, main, footer { position: relative; z-index: 1; }

/* ============================================================
   LAYOUT HELPER
   ============================================================ */
.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 4, 15, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-brand:hover { text-decoration: none; }

/* gradient square logo mark */
.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: clamp(88px, 14vw, 168px) 0 clamp(64px, 9vw, 112px);
  position: relative;
}

/* faint pulsing ring */
.hero::before {
  content: '';
  position: absolute;
  top: 52%;
  left: 50%;
  translate: -50% -50%;
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 0 100px rgba(124, 58, 237, 0.07);
  pointer-events: none;
  animation: pulse-ring 5s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { scale: 1;    opacity: 0.6; }
  50%       { scale: 1.06; opacity: 1;   }
}

.hero-inner {
  width: min(100%, 880px);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* pill badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 28px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.2; }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 8.5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition:
    transform 0.22s var(--spring),
    box-shadow 0.22s var(--ease),
    opacity 0.2s;
}

.btn:hover    { transform: translateY(-2px); text-decoration: none; }
.btn:active   { transform: translateY(0px); }

/* gradient primary */
.btn-primary {
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.22s;
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover::after { opacity: 1; }

/* ghost secondary */
.btn-text {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0 8px;
  background: transparent;
}

.btn-text:hover { color: var(--text); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(48px, 8vw, 96px); }

.section-head {
  max-width: 720px;
  margin: 0 0 52px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.label {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   CARDS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--spring),
    box-shadow 0.3s var(--ease);
}

/* top-left glow that appears on hover */
.card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

a.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.2);
  text-decoration: none;
  color: inherit;
}

a.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.card p + p { margin-top: 12px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
}

.badge.alt {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--dim);
}

.badge.alt::before { background: var(--dim); box-shadow: none; }

/* ============================================================
   SCROLL REVEAL  (driven by IntersectionObserver in HTML)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.72s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }
.reveal-4 { transition-delay: 0.35s; }

/* ============================================================
   META  (last-updated line, etc.)
   ============================================================ */
.meta {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--dim);
}

/* ============================================================
   NOTES
   ============================================================ */
.note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.note strong { color: var(--text); font-weight: 600; }

/* ============================================================
   PROSE  (privacy policy body text)
   ============================================================ */
.prose { max-width: 680px; }

.prose p {
  color: var(--muted);
  line-height: 1.85;
}

.prose p + p { margin-top: 16px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.contact-mail {
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-mail:hover { opacity: 0.8; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: color 0.22s, transform 0.22s;
}

.faq summary:hover::after { color: #a78bfa; }

.faq details[open] summary::after {
  content: '−';
  color: #a78bfa;
}

.faq-a {
  padding: 4px 2px 24px;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.8;
}

.faq-a p + p { margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 8vw, 96px);
  padding-block: 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 0.81rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .nav-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (hover: none) {
  a.card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--surface);
  }
}
