/* ==========================================================================
   月灯り鑑定室 — Landing Page
   Design tokens are shared in spirit with the existing product-page/guide
   assets (tsukiakari build.js): deep night navy, muted gold, ivory text,
   Shippori Mincho B1 + Cormorant Garamond.
   ========================================================================== */

:root {
  --n0: #070a1a;         /* deepest night */
  --n1: #0e1430;         /* panel navy */
  --n2: #131b3e;         /* raised panel navy */
  --gold: #c9a961;
  --gold-bright: #e3cd94;
  --gold-soft: rgba(201, 169, 97, .55);
  --gold-faint: rgba(201, 169, 97, .18);
  --iv: #efe7d6;          /* ivory text */
  --ivd: rgba(239, 231, 214, .78);  /* body text  (≈9.8:1 on --n0) */
  --ivf: rgba(239, 231, 214, .6);   /* small print (≈6:1 on --n0) */
  --line: rgba(201, 169, 97, .28);

  --serif-jp: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", serif;

  /* text column: 36em at 15px ≈ 36 full-width characters per line */
  --measure: 36em;
  --max: 620px;
  --max-wide: 1040px;
  --gutter: 22px;

  /* Height of the fixed CTA bar excluding the safe-area inset.
     Fallback = 12px + 56px + 12px + 1px border; js/main.js replaces it
     with the measured value. */
  --fixed-cta-height: 81px;

  --ease: cubic-bezier(.22, .8, .26, 1);
  --dur-s: 420ms;
  --dur-m: 640ms;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--n0);
  color: var(--iv);
  font-family: var(--serif-jp);
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li { text-wrap: pretty; }

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- background atmosphere (fixed, shared across whole page) ---- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(58, 72, 140, .35) 0%, rgba(26, 35, 80, .12) 45%, transparent 75%),
    linear-gradient(180deg, var(--n1) 0%, var(--n0) 38%, var(--n0) 100%);
}
.atmosphere .stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atmosphere .stars circle {
  animation: twinkle 5.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .5); }
  50% { opacity: calc(var(--o, .5) * .25); }
}

/* ---- layout shell ---- */
.wrap {
  position: relative;
  z-index: 1;
  /* keeps the last line of the page above the fixed CTA */
  padding-bottom: calc(var(--fixed-cta-height) + 24px + env(safe-area-inset-bottom));
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.wide { max-width: var(--max-wide); }
section {
  padding: 80px 0;
  position: relative;
}

/* ---- reveal-on-scroll (only hides content when JS is running) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }

/* ---- section heading ---- */
.s-head { text-align: center; margin-bottom: 40px; }
.s-head h2 {
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .12em;
  padding-left: .12em;
  color: var(--gold-bright);
}
.tax-note {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ivd);
}

/* ---- divider ornament (above each h2) ---- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 22px;
  width: 200px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.divider i {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
}

/* ---- prose ---- */
.prose {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}
.prose > * + *,
.flow > * + * { margin-top: 1.1em; }
.prose p,
.flow p {
  font-size: 15px;
  line-height: 2;
  color: var(--ivd);
}
.prose .emphasis { color: var(--iv); }
.before-block { margin-bottom: 32px; }
.after-block { margin-top: 32px; }

/* diamond bullet list */
.dlist li {
  position: relative;
  padding-left: 1.5em;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ivd);
}
.dlist li + li { margin-top: .55em; }
.dlist li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .8em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.dlist.hollow li::before {
  width: 6px;
  height: 6px;
  top: .76em;
  background: transparent;
  border: 1px solid var(--gold-soft);
}

/* bordered blocks */
.panel {
  border: 1px solid var(--gold-faint);
  outline: 1px solid rgba(201, 169, 97, .12);
  outline-offset: 8px;
  padding: 30px 24px;
  background: rgba(19, 27, 62, .35);
}
.prose .panel { margin-top: 1.6em; margin-bottom: .5em; }
.panel.prose { padding: 36px 26px; }
.card {
  max-width: var(--measure);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 169, 97, .05), transparent 40%);
  padding: 28px 24px;
}
.card.muted { background: rgba(19, 27, 62, .25); }

/* spoken phrases */
.quote-lines {
  border-left: 1px solid var(--gold-soft);
  padding-left: 16px;
}
.flow p.quote-lines { color: var(--iv); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--fixed-cta-height) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 110px;
}
.hero-moon {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 30px;
}
.hero-moon svg { width: 100%; height: 100%; }
.hero-moon .glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 205, 148, .28) 0%, transparent 70%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero .brandmark {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .22em;
  padding-left: .22em;
  color: var(--gold);
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(23px, 6.4vw, 36px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .06em;
  color: var(--iv);
  text-shadow: 0 0 28px rgba(201, 169, 97, .18);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero h1 .chunk { display: inline-block; }
.hero-scrolldown {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ivf);
}
.hero-scrolldown .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
  animation: scrolldown 2.2s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.intro { padding-top: 40px; }

/* ==========================================================================
   NUMBERED ITEMS (無料鑑定でお伝えすること)
   ========================================================================== */
.numlist {
  max-width: var(--measure);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.numlist > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 480px) {
  .numlist > li { grid-template-columns: 48px 1fr; gap: 16px; }
}
.numlist .n {
  font-family: var(--serif-en);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.3;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.numlist h3,
.steps h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .04em;
  color: var(--iv);
}

/* ==========================================================================
   BEFORE / AFTER (moon phase motif)
   ========================================================================== */
.transform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.transform .arrow {
  width: 28px;
  height: 28px;
  color: var(--gold-soft);
  margin: 0 auto;
  transform: rotate(90deg);
  align-self: center;
}
@media (min-width: 640px) {
  .transform { grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .transform .arrow { transform: none; }
}
.transform-card {
  border: 1px solid var(--line);
  padding: 28px 22px;
}
.transform-card .moonicon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
}
.transform-card h3 {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .24em;
  padding-left: .24em;
  color: var(--ivd);
  margin-bottom: 18px;
}
.transform-card.after h3 { color: var(--gold-bright); }
.transform-card.after .dlist li { color: var(--iv); }
.transform-card .dlist li { font-size: 14px; }

/* ==========================================================================
   FLOW (steps)
   ========================================================================== */
.steps {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 8%, var(--gold-soft) 92%, transparent);
}
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}
.step .num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--n1);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-size: 16px;
  color: var(--gold-bright);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
@media (min-width: 480px) {
  .steps::before { left: 21px; }
  .step { gap: 22px; }
  .step .num { width: 43px; height: 43px; font-size: 17px; }
}
.step .flow { padding-top: 4px; min-width: 0; }
.step .flow > * + * { margin-top: .7em; }
.step .flow p { font-size: 14.5px; line-height: 1.9; }
.flow p.keyword {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold-soft);
  background: rgba(201, 169, 97, .07);
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
}

/* ==========================================================================
   RESPONSE NOTE
   ========================================================================== */
.response-note {
  padding: 30px 24px;
  border: 1px dashed var(--line);
}

/* ==========================================================================
   PLANS (有料鑑定の種類と価格)
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 12px;   /* room for the badges */
}
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 169, 97, .04), transparent 50%);
  padding: 36px 24px 28px;
}
.plan h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--iv);
}
.plan-price {
  margin-top: 10px;
  font-family: var(--serif-en);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-bright);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.plan-price .yen {
  font-family: var(--serif-jp);
  font-size: 15px;
  margin-left: 4px;
  color: var(--ivd);
}
.plan-sub {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--iv);
}
.plan-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ivd);
  text-align: left;
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  padding: 2px 14px 2px calc(14px + .2em);
  white-space: nowrap;
}
/* おすすめ: stronger gold frame + filled badge. No motion. */
.plan.recommended {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 97, .11), rgba(19, 27, 62, .35) 60%);
  box-shadow: 0 0 0 1px rgba(201, 169, 97, .35) inset, 0 18px 40px -24px rgba(201, 169, 97, .45);
}
.plan.recommended .plan-badge {
  background: var(--gold);
  color: var(--n0);
}
/* 最上位: outlined badge */
.plan.top .plan-badge {
  background: var(--n0);
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft);
}
.plans-notes { margin-top: 40px; }

/* ==========================================================================
   FINAL
   ========================================================================== */
.final .moon-final {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
}
.final { padding-bottom: 60px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  text-align: center;
}
footer .fbrand {
  font-size: 14px;
  letter-spacing: .4em;
  padding-left: .4em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
footer .flinks {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ivf);
  margin-bottom: 18px;
}
footer .flinks a { border-bottom: 1px solid transparent; transition: border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease); }
footer .flinks a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
footer .fmeta {
  font-size: 11.5px;
  color: var(--ivf);
  line-height: 1.9;
  max-width: var(--measure);
  margin: 0 auto;
}

/* ==========================================================================
   FIXED CTA — always visible, never covers content (see .wrap padding)
   ========================================================================== */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--n0);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 30px -18px rgba(0, 0, 0, .8);
}
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 10px 20px 10px calc(20px + .06em);
  font-family: var(--serif-jp);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  color: var(--n0);
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 60%, #b8964f);
  border-radius: 2px;
  box-shadow: 0 10px 30px -12px rgba(201, 169, 97, .5), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  transition: box-shadow var(--dur-s) var(--ease), filter var(--dur-s) var(--ease);
}
.btn-line:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 34px -12px rgba(201, 169, 97, .65), 0 0 0 1px rgba(255, 255, 255, .22) inset;
}
.btn-line:active { filter: brightness(.96); }
.btn-line:focus-visible {
  outline: 3px solid var(--iv);
  outline-offset: 3px;
}
.btn-line svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 480px) {
  .btn-line { letter-spacing: .12em; padding-left: calc(20px + .12em); }
}
