:root {
  --paper: #ffffff;
  --mist: #f3efe8;
  --sand: #e8e1d4;
  --ink: #121212;
  --mute: #5a564e;
  --teal: #0c7c6a;
  --teal-2: #0a5f52;
  --gold: #b8892a;
  --line: rgba(18, 18, 18, 0.1);
  --shadow: 0 24px 60px rgba(18, 18, 18, 0.12);
  --radius: 28px;
  --header-h: 76px;
  --pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: Figtree, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, p, .lede, .quote p { overflow-wrap: anywhere; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap {
  width: min(1180px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(18,18,18,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; position: relative; min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.03em; font-size: 20px; flex: 0 0 auto;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--sand); }
.nav-links {
  display: flex; flex-wrap: nowrap; gap: 8px 18px; align-items: center;
  font-weight: 600; font-size: 14px; color: var(--mute);
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links .mobile-only { display: none; }
.header-cta { flex: 0 0 auto; }
.nav-end { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer;
  text-align: center;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }

.hero { padding: 20px 0 8px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px; align-items: center;
}
.kicker {
  color: var(--teal); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px;
  margin-bottom: 12px;
}
h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.08;
}
h1 { font-size: clamp(2rem, 6.2vw, 5.1rem); margin-bottom: 14px; }
h1 em { font-style: italic; color: var(--teal); }
.lede { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--mute); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.price-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.price-chip {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  background: var(--mist); border-radius: 999px; padding: 10px 14px; font-weight: 700;
}
.price-chip b { font-size: 1.15rem; }
.trial-chip { background: #e8fff8; color: #0b6b56; }
.mobile-chip { background: #fff6e8; color: #8a5a12; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img {
  width: 100%; height: min(68vh, 640px); object-fit: cover; border-radius: 28px;
  box-shadow: var(--shadow);
}
.photo-caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; width: fit-content; max-width: min(240px, calc(100% - 24px));
  background: rgba(255,255,255,0.94); border-radius: 14px; padding: 10px 12px;
  font-size: 13px; font-weight: 600;
}

.ages { padding: 56px 0 32px; }
.ages h2 { font-size: clamp(1.75rem, 4vw, 3.2rem); margin-bottom: 10px; }
.ages .sub { color: var(--mute); margin-bottom: 22px; max-width: 36rem; }
.age-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.age-card { position: relative; overflow: hidden; border-radius: 22px; min-height: 280px; }
.age-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.age-card span {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 12px;
  max-width: calc(100% - 24px);
}
.age-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35));
}

.band { background: var(--mist); padding: 56px 0; margin-top: 40px; }
.band-light { background: #fff; padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.split h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); margin-bottom: 14px; }
.split p { color: var(--mute); font-size: clamp(1rem, 1.6vw, 1.125rem); margin-bottom: 12px; }
.split-copy { min-width: 0; }
.split.reverse .split-visual { order: 2; }

.quotes { padding: 56px 0; }
.quotes h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 22px; max-width: 40rem; }
.q-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 14px; }
.q-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.quote { background: var(--mist); border-radius: var(--radius); padding: 24px; min-width: 0; }
.quote p { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.3; margin-bottom: 14px; }
.quote small { color: var(--mute); font-weight: 700; }
.quote.photo { padding: 0; overflow: hidden; min-height: 280px; position: relative; }
.quote.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.mosaic { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 12px; padding-bottom: 32px; }
.mosaic .age-card { min-height: 260px; }

.offer { padding: 12px 0 64px; }
.offer-intro { margin-bottom: 22px; max-width: 40rem; }
.offer-intro h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); margin-bottom: 10px; }
.offer-intro .sub { color: var(--mute); font-size: clamp(1rem, 1.6vw, 1.125rem); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.plan {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-pc {
  background: var(--ink);
  color: #fff;
}
.plan-mobile {
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--ink);
}
.plan-year {
  background: #fff6e8;
  border: 1px solid rgba(184, 137, 42, 0.35);
  color: var(--ink);
}
.plan-year .plan-label { color: var(--gold); }
.plan-year .plan-list li::before { background: var(--gold); }
.plan-label {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--teal);
}
.plan-pc .plan-label { color: #7dffd4; }
.plan h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.plan-price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}
.plan-price span {
  font-family: Figtree, sans-serif;
  font-size: 0.35em;
  font-weight: 700;
  margin-left: 4px;
}
.plan-note { color: var(--mute); font-size: 0.95rem; }
.plan-pc .plan-note { color: #cfcfcf; }
.plan-list {
  list-style: none;
  margin: 8px 0 12px;
  display: grid;
  gap: 8px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--mute);
}
.plan-pc .plan-list li { color: #cfcfcf; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.plan-pc .plan-list li::before { background: #1db89a; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.plan-pc .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.plan-pc .btn-teal { background: #1db89a; }

.offer-steps {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
}
.offer-steps h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.offer-steps ol {
  padding-left: 1.2rem;
  color: var(--mute);
  display: grid;
  gap: 10px;
  font-size: 0.98rem;
}
.offer-steps strong { color: var(--ink); }
.fine { font-size: 13px; color: #9a9a9a; margin-top: 14px; }

.contact { padding: 0 0 48px; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 8px; }
.contact .sub { color: var(--mute); max-width: 36rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.contact-card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.contact-card span { display: block; color: var(--mute); font-size: 12px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card a { font-weight: 800; font-size: clamp(0.95rem, 2.4vw, 1.15rem); word-break: break-word; }

.footer {
  border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--mute); font-size: 14px;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer a { font-weight: 700; color: var(--ink); }

.wa {
  position: fixed; right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 60;
  background: #25d366; color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow);
}

.reveal { opacity: 0; transform: translateY(18px); animation: up 0.7s ease forwards; }
.reveal.d2 { animation-delay: 0.12s; }
@keyframes up { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute; top: calc(100% - 4px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 10px; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; white-space: normal; }
  .nav-links a:hover, .nav-links a:active { background: var(--mist); }
  .nav-links .mobile-only { display: block; font-weight: 800; color: var(--teal); }
  .header-cta { display: none; }
  .burger { display: flex; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .q-grid, .q-bottom, .plans, .contact-grid, .mosaic { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { min-height: 0; }
  .hero-photo img { height: 52vw; min-height: 240px; max-height: 420px; }
  .split img, .quote.photo { height: 280px; min-height: 280px; }
  .age-card { min-height: 220px; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; --radius: 22px; }
  .brand span { font-size: 18px; }
  .hero-actions .btn, .plan-actions .btn { width: 100%; }
  .price-chip { width: 100%; justify-content: center; }
  .price-row { width: 100%; }
  .age-grid { gap: 8px; }
  .age-card { min-height: 180px; border-radius: 16px; }
  .band, .quotes, .ages { padding-top: 40px; padding-bottom: 32px; }
  .plan { border-radius: 24px; }
  .photo-caption { font-size: 12px; }
}

@media (max-width: 420px) {
  .age-grid { grid-template-columns: 1fr; }
  .age-card { min-height: 200px; }
  h1 { font-size: 2rem; }
}

body.menu-open { overflow: hidden; }
