/* ==========================================================
   ヨミトキ LP
   ========================================================== */
:root {
  --brown: #211B16;
  --black: #141210;
  --ivory: #F3EBDD;
  --gold: #C5A572;
  --sepia: #8D7458;
  --ink: #2a2119;
  --ink-soft: #5b4938;
  --ivory-soft: rgba(243, 235, 221, .78);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(24px, 6vw, 48px);
  --cta-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .06em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}
main { display: block; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.sp { display: inline; }
@media (min-width: 760px) { .sp { display: none; } }

/* 紙の粒子（全体に薄くかける） */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .32 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink); padding: 8px 14px; font-size: 14px;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 共通：浮かび上がり ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ==========================================================
   SECTION 01 — HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 15vh var(--pad) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 55% at 50% 80%, rgba(141, 116, 88, .22), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, .55)),
    var(--black);
}
.hero__glow {
  position: absolute; left: 50%; top: 52%;
  width: 140vmax; height: 140vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(246, 222, 170, .12), transparent 40%);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
.hero__art {
  position: relative;
  order: 2;
  flex: none;
  width: min(150vw, 980px, 118vh);
  margin-top: max(-14vh, -110px);
  z-index: -1;
  opacity: 0;
  animation: fadeIn 4s .3s var(--ease) forwards;
}
.scene--hero { aspect-ratio: 400 / 340; }
.scene--hero.has-image, .scene--hero.has-video { aspect-ratio: 3 / 2; }
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene.has-video .scene__art { opacity: 0; }
/* 本が開くと、ページから光がにじむ */
.scene--hero::after {
  content: ""; position: absolute; left: 52%; top: 50%;
  width: 70%; height: 60%;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(ellipse, rgba(255, 226, 160, .5), rgba(246, 210, 140, .18) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.4s ease, transform 3s var(--ease);
}
.scene--hero.is-open::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scene--hero .scene__img, .scene--hero .scene__video {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.hero .rays { transform-origin: 50% 77%; animation: raySway 14s ease-in-out infinite; }

.letterbox {
  position: absolute; left: 0; right: 0;
  height: 13vh;
  background: #000;
  z-index: 2;
  animation: letterbox 2.6s .2s var(--ease) forwards;
}
.letterbox--top { top: 0; transform-origin: top; }
.letterbox--bottom { bottom: 0; transform-origin: bottom; }

.hero__inner { position: relative; z-index: 1; max-width: 760px; order: 1; }
.hero__inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -12% -30% -18%;
  background: radial-gradient(ellipse at 50% 50%, rgba(10, 8, 6, .72), rgba(10, 8, 6, .4) 50%, transparent 72%);
}
.hero__brand {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: .6em;
  padding-left: .6em;
  color: var(--gold);
  margin-bottom: 7vh;
  opacity: 0;
  animation: fadeIn 2.4s .6s var(--ease) forwards;
}
.hero__title {
  margin: 0 0 6vh;
  font-weight: 500;
  font-size: clamp(23px, 6.3vw, 50px);
  line-height: 1.75;
  letter-spacing: .08em;
  text-shadow: 0 0 30px rgba(0, 0, 0, .6);
}
.hero__line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  animation: ink 2.8s var(--d) var(--ease) forwards;
}
.hero__lead {
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 2.2;
  color: rgba(243, 235, 221, .9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .8);
  opacity: 0;
  animation: rise 2.4s 3.6s var(--ease) forwards;
}
.hero__tagline {
  margin-top: 4vh;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 2.1;
  letter-spacing: .24em;
  color: #e2c793;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .8);
  opacity: 0;
  animation: rise 2.4s 4.4s var(--ease) forwards;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(4vh + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(197, 165, 114, .8);
  opacity: 0;
  animation: fadeIn 2s 5.2s var(--ease) forwards;
}
.scroll-cue i {
  position: relative; display: block;
  width: 1px; height: 48px;
  background: rgba(197, 165, 114, .25);
  overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: linear-gradient(transparent, var(--gold));
  animation: drip 2.6s ease-in-out infinite;
}

/* ==========================================================
   CHAPTERS
   ========================================================== */
.chapter {
  position: relative;
  padding: 16vh var(--pad) 18vh;
}
.chapter--1 { background: linear-gradient(var(--black), #19140f 60%, #1b1611); }
.chapter--2 { background: linear-gradient(#1b1611, var(--brown)); }
.chapter--3 { background: linear-gradient(var(--brown), #2a2119 50%, #36291f); }
.chapter--4 { background: linear-gradient(#36291f, #4d3d2e 55%, #6e5843); }
.chapter--1::before, .chapter--2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, .35));
}

.chapter__head, .chapter__body, .emphasis, .cards, .steps, .crossroads__intro, .crossroads__note, .plate--wide {
  position: relative;
  max-width: 1080px;
  margin-left: auto; margin-right: auto;
}
.chapter__head { margin-bottom: 9vh; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 28px;
  line-height: 1.4;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .eyebrow { font-size: 12px; letter-spacing: .2em; gap: 10px; }
  .eyebrow i { width: 24px; }
}
.eyebrow, .card__num, .step__no, .hero__brand, .ending__brand { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.eyebrow i {
  display: block; width: 36px; height: 1px; flex: none;
  background: currentColor; opacity: .7;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s .4s var(--ease);
}
.eyebrow.is-in i, html:not(.js) .eyebrow i { transform: scaleX(1); }
.eyebrow--center { justify-content: center; }
.eyebrow--center i:first-child { transform-origin: right; }

.chapter__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 40px);
  line-height: 1.85;
  letter-spacing: .08em;
}
.chapter__title--center { text-align: center; }

.chapter__body { display: grid; gap: 10vh; }

/* 挿絵（プレート） */
.plate { margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.plate__frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(197, 165, 114, .32);
  background: rgba(0, 0, 0, .18);
}
.plate__frame::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(197, 165, 114, .14);
  pointer-events: none; z-index: 2;
}
.scene {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #120f0c;
}
.plate__frame { overflow: hidden; }
.scene__art, .scene__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.plate .scene__art, .plate .scene__img { inset: -8% 0; height: 116%; }
.scene__img { object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.has-image .scene__img { opacity: 1; }
.scene.has-image .scene__art { opacity: 0; }
.scene--hero { overflow: visible; background: none; }
.scene--hero .scene__art, .scene--hero .scene__img { inset: 0; height: 100%; }
.plate .scene::after {
  content: ""; position: absolute; inset: -8% 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .35));
}
.plate figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .18em;
  color: rgba(197, 165, 114, .75);
  line-height: 1.6;
}
.plate figcaption span { font-family: var(--mincho); font-style: normal; font-size: 12px; letter-spacing: .14em; }
.plate--wide { max-width: 860px; margin-bottom: 9vh; }
.plate--wide .scene { aspect-ratio: 3 / 2; }

.motes circle { animation: float 7s ease-in-out infinite; }
.motes circle:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.motes circle:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
.glow-pulse { transform-origin: 200px 262px; animation: breathe 8s ease-in-out infinite; }

/* 本文 */
.prose { display: grid; gap: 2.4em; font-size: clamp(15px, 4vw, 17px); color: var(--ivory-soft); }
.prose--center { text-align: center; justify-items: center; }

.wishes, .index-list { list-style: none; margin: .4em 0; padding: 0; display: grid; gap: 1.1em; }
.wishes li {
  font-size: clamp(17px, 4.8vw, 21px);
  color: var(--ivory);
  padding-left: 1.4em;
  position: relative;
  line-height: 1.8;
}
.wishes li::before {
  content: ""; position: absolute; left: 0; top: .9em;
  width: .7em; height: 1px; background: var(--gold);
}
.index-list li {
  position: relative;
  padding: .9em 0 .9em 2.4em;
  border-bottom: 1px solid rgba(197, 165, 114, .18);
  color: var(--ivory);
  line-height: 1.9;
}
.index-list li:first-child { border-top: 1px solid rgba(197, 165, 114, .18); }
.index-list li::before {
  content: "";
  position: absolute; left: .4em; top: 1.75em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* 強調コピー */
.emphasis {
  margin-top: 16vh;
  text-align: center;
  padding: 0 0 2vh;
}
.emphasis::before {
  content: "";
  display: block; margin: 0 auto 9vh;
  width: 1px; height: 64px;
  background: linear-gradient(transparent, rgba(197, 165, 114, .7));
}
.emphasis__q {
  font-size: clamp(14px, 3.8vw, 16px);
  color: var(--gold);
  letter-spacing: .14em;
  margin-bottom: 2.4em;
}
.emphasis__main {
  font-size: clamp(19px, 5.3vw, 32px);
  line-height: 2;
  letter-spacing: .1em;
  font-weight: 500;
  color: var(--ivory);
}

/* ==========================================================
   CHAPTER 04 — CROSSROADS
   ========================================================== */
.crossroads__intro {
  text-align: center;
  color: var(--ivory-soft);
  font-size: clamp(15px, 4vw, 17px);
  margin-bottom: 6vh;
}
.cards { display: grid; gap: 22px; }
.card {
  position: relative;
  padding: 34px 26px 26px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(141, 116, 88, .22), transparent 60%),
    #efe5d3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 24px 48px -24px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), opacity 1.6s var(--ease), filter 1.6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.js .card.reveal { transition: transform 1.6s var(--ease), box-shadow .8s var(--ease), opacity 1.6s var(--ease), filter 1.6s var(--ease); transition-delay: var(--d, 0s); }
.card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(141, 116, 88, .35);
  pointer-events: none;
  transition: border-color .8s var(--ease);
}
.card__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.card__num {
  font-family: var(--serif-en);
  font-size: 48px;
  line-height: 1;
  color: var(--sepia);
  font-weight: 400;
}
.card__en {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: .32em;
  color: #7a6349;
}
.card__emblem {
  width: 44px; height: 44px;
  fill: none; stroke: #7a6349; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}
.card__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 5.4vw, 23px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.6;
}
.card__lead { font-size: 15px; line-height: 2; margin-bottom: 1em; }
.card__text { font-size: 14px; line-height: 2; color: var(--ink-soft); padding-top: 1em; border-top: 1px solid rgba(141, 116, 88, .3); }
.card__pick {
  margin-top: 22px;
  width: 100%;
  min-height: 44px;
  font: inherit; font-size: 13px; letter-spacing: .14em;
  color: #6b5540;
  background: transparent;
  border: 1px solid rgba(141, 116, 88, .5);
  border-radius: 999px;
  cursor: pointer;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.card.is-picked { box-shadow: 0 0 0 1px var(--gold), 0 0 60px -8px rgba(246, 222, 170, .55), 0 24px 48px -24px rgba(0, 0, 0, .6); }
.card.is-picked::before { border-color: var(--gold); }
.card.is-picked .card__pick { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); }
  .js .card.reveal.is-in:hover { transform: translateY(-4px); }
}
.crossroads__note {
  margin-top: 7vh;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--ivory-soft);
  max-width: 34em;
}

/* 夜明けのトランジション */
.dawn {
  position: relative;
  height: 46vh;
  background: linear-gradient(#6e5843, #8D7458 28%, #c7ae88 62%, var(--ivory));
  overflow: hidden;
}
.dawn__sun {
  position: absolute; left: 50%; top: 62%;
  width: 120vmax; height: 120vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 214, .9), rgba(246, 222, 170, .35) 14%, transparent 38%);
}
.dawn__line {
  position: absolute; left: 0; right: 0; top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 230, .9), transparent);
}

/* ==========================================================
   明るい世界（CHAPTER 05 / ENDING）
   ========================================================== */
.is-light { color: var(--ink); }
.is-light .prose { color: var(--ink-soft); }
.is-light .eyebrow { color: #7a6349; }
.is-light .plate__frame { border-color: rgba(141, 116, 88, .45); background: rgba(255, 255, 255, .25); }
.is-light .plate__frame::before { border-color: rgba(141, 116, 88, .2); }
.is-light .plate figcaption { color: #7a6349; }
.plate--light .scene { background: #efe3cf; }
.plate--light .scene::after { background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(90, 71, 54, .18)); }

.chapter--5 {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(246, 222, 170, .35), transparent 70%),
    var(--ivory);
  padding-top: 8vh;
}
.free {
  justify-self: start;
  font-size: 15px;
  color: var(--ink);
  padding: .3em 1.2em;
  border: 1px solid rgba(141, 116, 88, .5);
  border-radius: 999px;
  line-height: 1.9;
}

.steps {
  list-style: none;
  margin-top: 12vh; padding: 0;
  display: grid; gap: 0;
  max-width: 560px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 0 38px 54px;
}
.step::before {
  content: "";
  position: absolute; left: 14px; top: 10px;
  width: 13px; height: 13px;
  border: 1px solid var(--sepia);
  border-radius: 50%;
  background: var(--ivory);
  z-index: 1;
}
.step::after {
  content: "";
  position: absolute; left: 20px; top: 24px; bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(141, 116, 88, .6), rgba(141, 116, 88, .15));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step:last-child::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px rgba(197, 165, 114, .8); }
.step__no {
  display: block;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: .3em;
  color: #7a6349;
  line-height: 1.6;
  margin-bottom: 6px;
}
.step__text { font-size: clamp(16px, 4.4vw, 19px); line-height: 1.8; color: var(--ink); font-weight: 500; }

/* ENDING */
.ending {
  position: relative;
  padding: 18vh var(--pad) 20vh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(var(--ivory), #f6ead3 45%, #f1dfbd);
}
.ending__glow {
  position: absolute; left: 50%; top: 62%;
  width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%) scale(.35);
  opacity: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 246, 222, 1), rgba(246, 218, 160, .55) 14%, rgba(197, 165, 114, .14) 32%, transparent 48%);
  transition: transform 6s var(--ease), opacity 4s var(--ease);
}
.ending.is-lit .ending__glow { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.ending__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.ending .chapter__title { margin-bottom: 11vh; }
.ending__year {
  font-size: clamp(26px, 7vw, 40px);
  color: var(--ink);
  letter-spacing: .14em;
  line-height: 1.6;
}
.ending__final {
  margin: 16vh 0 0;
  font-size: clamp(21px, 5.6vw, 42px);
  line-height: 1.95;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--ink);
}
.ending__sign { margin-top: 14vh; display: grid; justify-items: center; gap: 14px; }
.ending__mark { width: 40px; fill: none; stroke: var(--sepia); stroke-width: 1.2; stroke-linejoin: round; }
.ending__brand {
  font-family: var(--serif-en);
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--ink);
  line-height: 1.4;
}
.ending__tagline { font-size: 14px; letter-spacing: .22em; color: var(--ink-soft); line-height: 2.1; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: #e8dcc6;
  color: var(--ink-soft);
  padding: 9vh var(--pad) 6vh;
  border-top: 1px solid rgba(141, 116, 88, .3);
}
.footer__inner { max-width: 760px; margin: 0 auto; }
.footer__notice { display: grid; gap: 1em; font-size: 13px; line-height: 2; color: #4f3f31; letter-spacing: .04em; }
.footer__pr { font-size: 12.5px; color: #5b4938; }
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 22px;
  margin: 6vh 0 4vh;
  font-size: 13px;
}
.footer__nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.footer__nav a:hover { border-color: currentColor; }
.footer__copy { text-align: center; font-family: var(--serif-en); font-size: 12px; letter-spacing: .2em; color: #7a6349; }

/* ==========================================================
   追従 CTA
   ========================================================== */
.cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(8px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(20, 18, 16, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid rgba(197, 165, 114, .22);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease), background .8s ease, border-color .8s ease;
}
.cta.is-visible { transform: none; opacity: 1; }
.cta.is-light { background: rgba(243, 235, 221, .7); border-top-color: rgba(141, 116, 88, .3); }
.cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 440px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #1d1712;
  background: linear-gradient(180deg, #dcc394 0%, var(--gold) 52%, #b28f5c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 24px -10px rgba(0, 0, 0, .55);
  transition: filter .4s ease, transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cta__btn:hover { filter: brightness(1.06); }
.cta__btn:active { transform: scale(.985); }
.cta__icon { width: 26px; height: 26px; flex: none; }
.cta__icon path:first-child { fill: #1d1712; }
.cta__icon-text { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cta__sub { font-size: 11px; letter-spacing: .14em; line-height: 1.6; color: rgba(243, 235, 221, .75); }
.cta.is-light .cta__sub { color: #5b4938; }

/* 差し替え枠の表示（?slots） */
.slot-tag {
  position: absolute; left: 14px; top: 14px; z-index: 5;
  font: 12px/1.4 ui-monospace, monospace;
  letter-spacing: 0;
  background: rgba(0, 0, 0, .7); color: #fff;
  padding: 4px 8px; border-radius: 4px;
}

/* ==========================================================
   レスポンシブ（タブレット・PC）
   ========================================================== */
@media (min-width: 900px) {
  .chapter { padding-top: 20vh; padding-bottom: 22vh; }
  .chapter__head { margin-bottom: 12vh; }
  .chapter__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 7vw;
  }
  .chapter__body .plate { position: sticky; top: 12vh; }
  .chapter__body--flip .plate { order: 2; }
  .chapter__body .prose { padding-top: 6vh; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .card { display: flex; flex-direction: column; }
  .card__text { flex: 1; }
  .steps {
    max-width: 960px;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }
  .step { padding: 40px 12px 0; }
  .step::before { left: 50%; top: 0; margin-left: -7px; }
  .step::after { left: calc(50% + 14px); right: calc(-50% + 14px); top: 6px; bottom: auto; width: auto; height: 1px; background: rgba(141, 116, 88, .45); }
  .hero { padding-top: 8vh; }
  .hero__brand { margin-bottom: 4vh; }
  .hero__title { margin-bottom: 3.5vh; }
  .hero__tagline { margin-top: 2.5vh; }
}

/* ==========================================================
   アニメーション
   ========================================================== */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ink {
  from { opacity: 0; filter: blur(10px); transform: translateY(8px); letter-spacing: .16em; }
  to { opacity: 1; filter: blur(0); transform: none; letter-spacing: .08em; }
}
@keyframes letterbox { to { transform: scaleY(0); } }
@keyframes drip { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.glow-pulse { animation-name: pulse; }
@keyframes pulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes raySway { 0%, 100% { transform: rotate(-2deg); opacity: .8; } 50% { transform: rotate(2deg); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-14px); opacity: 1; } }
@keyframes ascend {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* 視差効果を減らす */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__art, .hero__brand, .hero__line, .hero__lead, .hero__tagline, .scroll-cue { opacity: 1; }
  .letterbox { display: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .eyebrow i { transform: none; }
  .ending__glow { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ==========================================================
   下層ページ（プライバシーポリシー等）
   ========================================================== */
.page { background: var(--ivory); color: var(--ink); padding-bottom: 0; }
.page__head {
  background: linear-gradient(var(--black), var(--brown));
  color: var(--ivory);
  padding: 12vh var(--pad) 8vh;
  text-align: center;
}
.page__brand { font-family: var(--serif-en); letter-spacing: .5em; padding-left: .5em; font-size: 13px; color: var(--gold); text-decoration: none; }
.page__title { margin: 18px 0 0; font-weight: 500; font-size: clamp(22px, 6vw, 32px); letter-spacing: .12em; line-height: 1.7; }
.page__body { max-width: 760px; margin: 0 auto; padding: 8vh var(--pad) 12vh; font-size: 15px; line-height: 2.1; color: var(--ink-soft); }
.page__body h2 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 3.2em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid rgba(141, 116, 88, .35); line-height: 1.7; }
.page__body p + p { margin-top: 1em; }
.page__body ul { padding-left: 1.4em; margin: .8em 0; }
.page__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page__body th, .page__body td { text-align: left; vertical-align: top; padding: 14px 10px; border-bottom: 1px solid rgba(141, 116, 88, .3); }
.page__body th { width: 32%; color: var(--ink); font-weight: 600; white-space: nowrap; }
.page__back { display: inline-block; margin-top: 4em; text-decoration: none; border-bottom: 1px solid currentColor; color: var(--ink); }
.todo { background: #f7d98b; color: #3b2a12; padding: 0 .3em; font-weight: 600; }
.page__updated { margin-top: 3em; font-size: 13px; }
@media (max-width: 560px) {
  .page__body th, .page__body td { display: block; width: auto; padding: 6px 0; border: 0; }
  .page__body tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(141, 116, 88, .3); }
}

/* ==========================================================
   中央ぞろえ（2026-12-03 変更）
   ========================================================== */
.chapter__head { text-align: center; }
.eyebrow { justify-content: center; }
.prose { text-align: center; justify-items: center; }
.wishes li { padding-left: 0; }
.wishes li::before { display: none; }
.index-list { width: 100%; max-width: 30em; }
.index-list li { padding: .9em 0; }
.index-list li::before { display: none; }
.free { justify-self: center; }
.card { text-align: center; cursor: auto; }
.card__top { flex-direction: column; align-items: center; gap: 8px; }
.card__emblem { margin-left: auto; margin-right: auto; }
.card:hover, .js .card.reveal.is-in:hover { transform: none; }
.plate { margin-left: auto; margin-right: auto; }

@media (max-width: 899px) {
  .steps { text-align: center; }
  .step { padding: 30px 0 64px; }
  .step::before { left: 50%; top: 0; margin-left: -7px; }
  .step::after { left: 50%; top: auto; bottom: 14px; height: 36px; }
  .step:last-child { padding-bottom: 0; }
}
@media (min-width: 900px) {
  .chapter__body { grid-template-columns: minmax(0, 1fr); gap: 9vh; justify-items: center; }
  .chapter__body .plate { position: static; max-width: 440px; }
  .chapter__body--flip .plate { order: 0; }
  .chapter__body .prose { padding-top: 0; }
}

/* CHAPTER 04：問いの予告 */
.prose--question { max-width: 640px; margin: 0 auto; }
.chapter--4 .plate--wide { margin-bottom: 10vh; }
.emphasis__sub {
  margin-top: 2.2em;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--ivory-soft);
}
.steps__note {
  margin: 7vh auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
}

/* ファーストビュー：開いた本から光の粒が立ちのぼり続ける */
.sparks {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
.sparks.is-on { opacity: 1; }
.sparks i {
  position: absolute;
  border-radius: 50%;
  background: #ffe7b0;
  box-shadow: 0 0 6px 2px rgba(255, 210, 120, .85), 0 0 14px 4px rgba(246, 190, 90, .35);
  opacity: 0;
  animation: spark linear infinite;
  will-change: transform, opacity;
}
@keyframes spark {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  12%  { opacity: 1; }
  55%  { opacity: .85; }
  100% { transform: translate(var(--dx), calc(var(--rise) * -1)) scale(.3); opacity: 0; }
}
/* 開いた後はページの光がゆっくり呼吸する */
.scene--hero.is-open::after { animation: pageGlow 5s ease-in-out infinite; }
@keyframes pageGlow {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* 動画の最後に重ねる静止画（粒なし） */
.scene__still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.scene--hero.is-still .scene__still { opacity: 1; }
.sparks { z-index: 1; }

/* ==========================================================
   追加の動き（2026-12-03）
   ========================================================== */
/* エンディング：最初の本と同じ光の粒が下から立ちのぼる（明るい背景でも見える色） */
.ending .sparks--ending { z-index: -1; -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 60%); mask-image: linear-gradient(to bottom, transparent 20%, #000 60%); transition-duration: 4s; }
.sparks--ending i {
  background: #f2b84f;
  box-shadow: 0 0 5px 2px rgba(222, 150, 50, .8), 0 0 14px 4px rgba(236, 176, 80, .4);
}

/* ページ内CTA（CHAPTER 04 の手順の下） */
.inline-cta { margin: 6vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 440px; }
.inline-cta .cta__btn { min-height: 58px; font-size: 16px; }
.inline-cta .cta__sub { font-size: 12px; color: #5b4938; }
