/* ============================================================
   The Builder Brand - 闇から夜明けへ進むシネマティック・ワンページ
   ステージ: dark(漆黒) → dusk(未明) → dawn(夜明け)
   ============================================================ */

:root {
  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-num: "Outfit", sans-serif;
  --font-numeral: "Prata", "Shippori Mincho B1", serif; /* 実績数字専用 */

  --accent: #d9a45b;            /* 灯りの琥珀。全ページ共通の唯一のアクセント */
  --accent-soft: rgba(217, 164, 91, 0.14);

  /* dark ステージ初期値(深海) */
  --bg: #05080c;
  --bg-soft: #0a121a;
  --ink: #e9eeec;
  --ink-dim: #86959a;
  --line: rgba(233, 238, 236, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-stage="dusk"] {
  --bg: #0a1b28;
  --bg-soft: #102534;
  --ink: #edf2f0;
  --ink-dim: #93a6a8;
  --line: rgba(237, 242, 240, 0.15);
}

body[data-stage="dawn"] {
  --bg: #ecf3f0;
  --bg-soft: #dfeae6;
  --ink: #152220;
  --ink-dim: #5c6f6c;
  --line: rgba(21, 34, 32, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 1スライド=1停止。スクロールスナップで章ごとに止まる。
   横方向は完全に固定(はみ出し要素があっても横パンさせない) */
/* 注意: htmlにoverflow-xを付けるとiOS WebKitがページ後方のスクラブ動画を合成しなくなる(2026-07-21実機特定)。横パン封じはbody側のclipのみで行う */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  transition: background 1.4s var(--ease-out), color 1.4s var(--ease-out);
  overflow-x: clip;
}

::selection { background: var(--accent); color: #05080c; }

/* ---------- 粒子ノイズ ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- 光の粒(canvas) ---------- */
.embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

/* ---------- 深度計(クリックで海図) ---------- */
.depth {
  position: fixed;
  left: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(1.2rem, 4vh, 2.2rem);
  z-index: 40;
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  transition: color 0.4s;
  cursor: pointer;
  font-feature-settings: "lnum";
}
.depth:hover { color: var(--accent); }
.depth__unit {
  margin-left: 0.3em;
  font-size: 0.72em;
  opacity: 0.7;
}
/* 隠しコマンドのノック(上スクロールを試みるたびに一瞬瞬く) */
@keyframes depth-knock {
  0%, 100% { color: var(--ink-dim); transform: none; }
  30%      { color: var(--accent); transform: translateY(2px); }
}
.depth--knock { animation: depth-knock 0.45s var(--ease-out); }

.depth__found {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0;
}

/* ---------- 照らすカーソル ---------- */
.torch {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

/* 「価値」に触れると、その時だけ金色に灯る */
.kachi {
  transition: color 0.45s var(--ease-out), text-shadow 0.45s var(--ease-out);
}
.kachi:hover {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(217, 164, 91, 0.55);
}

/* ---------- 海図(断面図ナビ) ---------- */
.seamap {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 12, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.seamap.is-open {
  opacity: 1;
  pointer-events: auto;
}

.seamap__inner {
  width: min(90vw, 460px);
  max-height: 84vh;
  overflow-y: auto;
  padding: clamp(1.6rem, 4vh, 2.6rem);
}

.seamap__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: #e9eeec;
  margin-bottom: 1.6rem;
}

.seamap__list {
  list-style: none;
  border-left: 1px solid rgba(233, 238, 236, 0.2);
}
.seamap__list button {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  width: 100%;
  padding: 0.85rem 0 0.85rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #e9eeec;
  transition: color 0.25s, padding-left 0.25s;
}
.seamap__list button:hover {
  color: var(--accent);
  padding-left: 1.8rem;
}
.seamap__list i {
  font-style: normal;
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: 0.92rem;
  min-width: 5.2em;
  color: rgba(233, 238, 236, 0.55);
  font-feature-settings: "lnum";
}
.seamap__list button:hover i { color: var(--accent); }
.seamap__list span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

/* 泡コンプリート(6/6): 「価値は、伝え方で変わる。」が金色に灯る */
.joh__turn {
  transition: color 1.8s var(--ease-out), text-shadow 1.8s var(--ease-out);
}
.joh__turn--lit {
  color: var(--accent);
  animation: turn-breath 4.8s ease-in-out infinite;
}
.joh__turn--lit .kachi { color: inherit; }
@keyframes turn-breath {
  0%, 100% { text-shadow: 0 0 24px rgba(217, 164, 91, 0.32); }
  50%      { text-shadow: 0 0 44px rgba(217, 164, 91, 0.58); }
}

/* ---------- 潜水の儀式(開幕前の暗転と泡) ---------- */
.dive {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #04070b;
  pointer-events: none;
}
.dive__bubble {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 55%,
      rgba(207, 234, 228, 0.08) 70%,
      rgba(235, 248, 244, 0.4) 84%,
      transparent 94%);
  animation: dive-rise 1.7s cubic-bezier(0.3, 0.4, 0.6, 1) forwards;
}
.dive__bubble:nth-child(1) { left: 44%; width: 14px; height: 14px; animation-delay: 0.05s; }
.dive__bubble:nth-child(2) { left: 52%; width: 22px; height: 22px; animation-delay: 0.25s; }
.dive__bubble:nth-child(3) { left: 47%; width: 9px;  height: 9px;  animation-delay: 0.45s; }
.dive__bubble:nth-child(4) { left: 56%; width: 12px; height: 12px; animation-delay: 0.6s; }
.dive__bubble:nth-child(5) { left: 41%; width: 17px; height: 17px; animation-delay: 0.78s; }

@keyframes dive-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.9; }
  100% { transform: translateY(-88vh) translateX(14px); opacity: 0; }
}

/* 下層ページへの潜水遷移(出口): 暗く沈みながら泡が立ちのぼる */
.dive--exit { opacity: 0; z-index: 90; }

/* ---------- 水中のゆらぎ(海中の章だけ、ごくわずかに漂う) ---------- */
/* 回転は端で横ズレになりテキストが左右にブレて見えるため、上下だけ漂う */
@keyframes sway {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
#joh .chapter__inner,
#kai .chapter__inner,
#sho .chapter__inner,
#hi .chapter__inner,
#gyo .chapter__inner,
#to .chapter__inner {
  animation: sway 8s ease-in-out infinite;
}

/* ---------- 息継ぎの白い一拍 ---------- */
.breath {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #f6fbf7;
  opacity: 0;
  pointer-events: none;
}

/* ---------- ナビ ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  opacity: 0;  /* 開幕アニメ後に表示 */
}

.nav__brand {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  transition: color 1.4s var(--ease-out);
}

.nav__cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(8px);
  transition: color 1.4s var(--ease-out), border-color 0.3s, background 1.4s var(--ease-out), transform 0.2s;
}
.nav__cta:hover { border-color: var(--accent); }
.nav__cta:active { transform: scale(0.97); }

/* ---------- 開幕 ---------- */
.opening {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.opening__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 900px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0.85;
}

.opening__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130vmax;
  height: 130vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 164, 91, 0.07) 0%, transparent 42%);
  opacity: 0;
  pointer-events: none;
}

.opening__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.opening__manifesto {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.2vw, 3.3rem);
  letter-spacing: 0.08em;
  line-height: 2.1;
}

.opening__line {
  display: block;
  overflow: hidden;
}
.nb { display: inline-block; }
.br-sp { display: none; } /* スマホ専用改行(640px以下でinline) */
.sp-only { display: none; } /* スマホ専用の短文(640px以下で表示) */
.opening__line > span {
  display: inline-block;
  transform: translateY(110%);
}

.opening__brand {
  margin-top: 3.2rem;
  opacity: 0;
}
.opening__brand-en {
  display: block;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.opening__brand-co {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

/* ---------- 章の共通(1章=1スライド) ---------- */
.chapter {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 9vh, 6.5rem) clamp(1.4rem, 6vw, 5rem);
  scroll-snap-align: start;
  /* 勢いよくフリックしても複数枚飛ばず、必ず次の1枚でピタッと止まる */
  scroll-snap-stop: always;
}

.chapter__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.chapter__kanji {
  position: absolute;
  will-change: transform;
  top: clamp(1rem, 4vh, 3rem);
  right: clamp(0.5rem, 4vw, 4rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  pointer-events: none;
}

/* reveal 対象の初期状態(JSで解除)。
   JSが無い環境(クローラ等)では全文がそのまま読めるよう、html.js の時だけ隠す */
html.js .reveal { opacity: 0; }
body.no-motion .reveal { opacity: 1 !important; }

/* ---------- 第一章 序 ---------- */
.chapter--joh .chapter__inner {
  max-width: 900px;
}

.joh__lines {
  display: grid;
  gap: clamp(1.6rem, 4vh, 3rem);
}

.joh__line {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.joh__line:nth-child(odd) { padding-left: clamp(0rem, 6vw, 5rem); }

.joh__turn {
  margin-top: clamp(4rem, 10vh, 7rem);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: right;
}
.joh__turn::after {
  content: "";
  display: block;
  margin-left: auto;
  margin-top: 1.2rem;
  width: clamp(120px, 24vw, 260px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

/* 水深診断への早い誘導(課題4行を読んだ直後のフック)。
   深海の灯りがほのかに呼吸する小さなカプセル: 目に留まるが、張り上げない */
.joh__shindan {
  display: inline-block;
  margin-top: clamp(1.6rem, 3.4vh, 2.4rem);
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid rgba(217, 164, 91, 0.26);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  backdrop-filter: blur(6px);
  animation: shindan-breath 5.5s ease-in-out infinite;
}
@keyframes shindan-breath {
  0%, 100% {
    box-shadow: 0 0 16px rgba(217, 164, 91, 0.07);
    border-color: rgba(217, 164, 91, 0.2);
  }
  50% {
    box-shadow: 0 0 26px rgba(217, 164, 91, 0.16);
    border-color: rgba(217, 164, 91, 0.4);
  }
}
.joh__shindan-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(217, 164, 91, 0.5);
  transition: color 0.3s, text-decoration-color 0.3s;
  margin-left: 0.2em;
}
.joh__shindan-btn:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* 泡: 触れると眠っている価値の言葉が浮かぶ */
.joh__bubbles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bubble {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: 50%;
  /* 実物の泡: 中心はほぼ透明、縁だけが細く光る */
  background:
    radial-gradient(circle at 50% 50%,
      transparent 56%,
      rgba(207, 234, 228, 0.05) 66%,
      rgba(224, 244, 240, 0.18) 76%,
      rgba(255, 255, 255, 0.36) 82%,
      rgba(180, 214, 226, 0.12) 88%,
      transparent 93%),
    radial-gradient(circle at 30% 26%,
      rgba(217, 164, 91, 0.05), transparent 40%);
  animation:
    bubble-drift 7s ease-in-out infinite alternate,
    bubble-wobble 3.8s ease-in-out infinite;
  transition: filter 0.35s var(--ease-out);
}
/* 上部の光の反射 */
.bubble::before {
  content: "";
  position: absolute;
  left: 17%;
  top: 11%;
  width: 36%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5), transparent 68%);
  filter: blur(1px);
  transform: rotate(-24deg);
}
/* 下部にまわり込む淡い照り返し */
.bubble::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: 13%;
  width: 20%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(217, 164, 91, 0.28), transparent 70%);
  filter: blur(1.6px);
}
.bubble:hover { filter: brightness(1.5); }

@keyframes bubble-drift {
  from { translate: 0 10px; }
  to   { translate: 0 -16px; }
}
@keyframes bubble-wobble {
  0%, 100% { transform: scale(1, 1); }
  33%      { transform: scale(1.045, 0.965); }
  66%      { transform: scale(0.965, 1.045); }
}

.bubble-word {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.bubble-word strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  letter-spacing: 0.24em;
  color: var(--accent);
  text-shadow: 0 0 38px rgba(217, 164, 91, 0.55);
}
.bubble-word em {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- 第二章 解 ---------- */
.kai__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.kai__lead {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.kai__split {
  margin-top: clamp(2.4rem, 5.5vh, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* 上下の縁を水に溶かす(パネルの端が海に対して横一線に見えないように)。
     フェード幅はカードのpadding(min 1.8rem)より小さくして文字には掛けない */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 1.6rem, #000 calc(100% - 1.6rem), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 1.6rem, #000 calc(100% - 1.6rem), transparent);
}

.kai__side {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  padding: clamp(1.8rem, 3.6vw, 3rem);
  transition: background 1.4s var(--ease-out);
}
.kai__side--terasu {
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg) 84%, transparent) 30%, var(--accent-soft));
}
/* ウィズ=深海の真珠。照らすの琥珀と対になる、虹めく白 */
.kai__side--with {
  background: linear-gradient(200deg, color-mix(in srgb, var(--bg) 84%, transparent) 30%, rgba(214, 228, 232, 0.09));
}

.kai__verb {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
}
.kai__side--terasu .kai__verb { color: var(--accent); }
.kai__side--with .kai__verb {
  background: linear-gradient(115deg, #f7f5f0 0%, #cfdfe8 20%, #eee2ec 42%, #fbf9f4 58%, #cfe0da 80%, #f4f1ea 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(214, 228, 232, 0.3));
  animation: pearl-sheen 9s ease-in-out infinite alternate;
}
.kai__side--with .kai__co { color: #f2f4f3; text-shadow: 0 0 22px rgba(214, 228, 232, 0.35); }
@keyframes pearl-sheen {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
/* 章の大見出しも深海の真珠に(映・灯・業)。大きい文字なので照りはゆっくり・グローは控えめ */
.ei__title, .hi__title, .gyo__title {
  background: linear-gradient(115deg, #f7f5f0 0%, #cfdfe8 20%, #eee2ec 42%, #fbf9f4 58%, #cfe0da 80%, #f4f1ea 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(214, 228, 232, 0.22));
  animation: pearl-sheen 12s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .kai__side--with .kai__verb,
  .ei__title, .hi__title, .gyo__title { animation: none; }
}

.kai__co {
  margin-top: 1.4rem;
  font-weight: 700;
  font-size: 1rem;
}
.kai__co-en {
  margin-left: 0.8em;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.kai__desc {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: 34em;
}

/* ---------- 第三章 証 ---------- */
.sho__lead {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--ink-dim);
}

.sho__hero {
  margin-top: clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.sho__hero-num {
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 0 80px rgba(217, 164, 91, 0.35);
  font-feature-settings: "lnum";
}
.sho__hero-unit {
  font-family: var(--font-display);
  font-size: 0.32em;
  font-weight: 500;
  margin-left: 0.15em;
  color: var(--ink);
}

/* カウントアップ内の「億」「万」(JSが挿入) */
.unit-k {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.52em;
  margin: 0 0.06em;
}

.sho__hero-label {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}

.sho__grid {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
}

.sho__stat dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.sho__stat dd {
  margin-top: 0.4rem;
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.2;
  font-feature-settings: "lnum";
}
.sho__unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.5em;
  margin-left: 0.1em;
  color: var(--ink-dim);
}

.sho__note {
  margin-top: 2.6rem;
  font-size: 0.72rem;
  color: var(--ink-dim);
  opacity: 0.75;
}

/* ---------- 第五章 業 ---------- */
.gyo__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.gyo__bento {
  margin-top: clamp(2.2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gyo__cell {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 1.4s var(--ease-out);
}
.gyo__cell--wide { grid-column: span 2; }
.gyo__cell--full { grid-column: span 3; }
.gyo__cell--tint {
  background:
    radial-gradient(ellipse at 85% 15%, var(--accent-soft), transparent 55%),
    color-mix(in srgb, var(--bg) 86%, transparent);
}

.gyo__cell h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.gyo__cell p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
  max-width: 40em;
}

/* ---------- 幕間 映(水中シアター) ---------- */
.ei__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.8;
}
.ei__lead {
  margin-top: 1.2rem;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--ink-dim);
}

.ei__screens {
  margin-top: clamp(2.4rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.ei__screen {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  animation: ei-float 7s ease-in-out infinite alternate;
}
.ei__screen:nth-child(2) { animation-delay: -2.3s; animation-duration: 8s; }
.ei__screen:nth-child(3) { animation-delay: -4.6s; animation-duration: 7.5s; }
@keyframes ei-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.ei__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(233, 238, 236, 0.18);
  box-shadow:
    0 0 44px rgba(217, 164, 91, 0.10),
    0 18px 50px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.5s var(--ease-out), border-color 0.5s;
}
.ei__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.85);
  transition: filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.ei__screen:hover .ei__frame {
  border-color: rgba(217, 164, 91, 0.55);
  box-shadow:
    0 0 70px rgba(217, 164, 91, 0.22),
    0 18px 50px rgba(0, 0, 0, 0.45);
}
.ei__screen:hover .ei__frame img {
  filter: brightness(0.92) saturate(1);
  transform: scale(1.03);
}
.ei__screen:active .ei__frame img { transform: scale(1.0); }

/* 再生マーク: 細い円と三角だけ */
.ei__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(3, 6, 10, 0.35);
  transition: border-color 0.4s, background 0.4s;
}
.ei__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-left: 12px solid rgba(255, 255, 255, 0.9);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.ei__screen:hover .ei__play {
  border-color: var(--accent);
  background: rgba(217, 164, 91, 0.18);
}

.ei__cap {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.7;
}

/* 映 → 制作実績への導線 */
.ei__moreline {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  text-align: right;
}
.ei__more {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color 0.4s, border-color 0.4s;
}
.ei__more:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.ei__cap i {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

/* ---------- シアター再生オーバーレイ ---------- */
.thr {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 1.4rem;
}
.thr[hidden] { display: none; }
.thr__bg {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 4, 0.93);
}
.thr__close {
  position: fixed;
  top: 1.4rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: 1px solid rgba(233, 238, 236, 0.28);
  color: #e9eeec;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.thr__close:hover { border-color: var(--accent); color: var(--accent); }
.thr__stage {
  position: relative;
  width: min(94vw, 1020px);
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 90px rgba(217, 164, 91, 0.16), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.thr__stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---------- 第四章 灯(21の火の壁) ---------- */
.hi__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.hi__cloud {
  margin-top: clamp(3rem, 7vh, 5rem);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: clamp(1.6rem, 3.4vw, 3.2rem);
  row-gap: clamp(0.9rem, 2vh, 1.6rem);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

/* 21社すべて同じ重み。序列や強調はつけない */
.hi__cloud li {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--ink);
}

/* ---------- 第五章 途 ---------- */
.to__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.to__flow {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: flow;
}

.to__flow li {
  position: relative;
  padding-top: 1.6rem;
}
.to__flow li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.to__flow li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.to__flow h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.to__flow p {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ---------- 終章 明(夜明け) ---------- */
/* 琥珀の光はセクション上端で切らず、前章の海へ45vhぶん溶け出させる
   (境界に張り付いたグラデは水平線のエッジになる) */
.chapter--dawn {
  position: relative;
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
.chapter--dawn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -45vh;
  height: calc(100% + 45vh);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 110% 55vh at 50% 45vh, rgba(217, 164, 91, 0.22), transparent 62%);
}

.dawn__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-align: center;
}

.dawn__company {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vh, 4rem);
}

.dawn__co dt {
  font-weight: 700;
  font-size: 1rem;
}
.dawn__co dt span {
  margin-left: 0.7em;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.dawn__co dd {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.dawn__co-gap { margin-top: 1.4rem; }

.dawn__contact {
  margin-top: clamp(3.2rem, 7vh, 5rem);
  text-align: center;
}

.dawn__contact-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 2.2;
}

.dawn__buttons {
  margin-top: 2.8rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.dawn__btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 2.8rem;
  letter-spacing: 0.1em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
}
.dawn__btn:hover { transform: translateY(-2px); }
.dawn__btn:active { transform: scale(0.97); }

.dawn__btn--line {
  background: #152220;
  color: #ecf3f0;
  box-shadow: 0 10px 34px rgba(21, 34, 32, 0.28);
}
.dawn__btn--mail {
  background: transparent;
  color: #152220;
  border: 1px solid rgba(21, 34, 32, 0.42);
}

.dawn__topics {
  margin-top: 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

/* 水深診断への入り口(相談はまだ早い人の受け皿) */
.dawn__shindan {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}
.dawn__shindan-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
  transition: color 0.3s, text-decoration-color 0.3s;
}
.dawn__shindan-btn:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- 水深診断オーバーレイ ---------- */
.sdg {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.6rem 2.5rem;
  overflow-y: auto;
}
.sdg[hidden] { display: none; }

.sdg__bg {
  position: fixed;
  inset: 0;
  background: #0e2b3e;
  transition: background 1s var(--ease-out);
}

.sdg__bub {
  position: fixed;
  bottom: -40px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(224, 244, 240, 0.35);
  opacity: 0;
  animation: sdg-rise 8s linear infinite;
  pointer-events: none;
}
@keyframes sdg-rise {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.45; }
  100% { transform: translateY(-108vh); opacity: 0; }
}

.sdg__meter {
  position: fixed;
  top: 1.5rem;
  left: 1.7rem;
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: 1.05rem;
  color: #e9eeec;
  opacity: 0.85;
}
.sdg__meter-val { font-size: 1.35em; }

.sdg__close {
  position: fixed;
  top: 1.4rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(233, 238, 236, 0.28);
  color: #e9eeec;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.sdg__close:hover { border-color: var(--accent); color: var(--accent); }

.sdg__panel {
  position: relative;
  width: 100%;
  max-width: 34rem;
  text-align: center;
  color: #e9eeec;
}

.sdg__kicker {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--accent);
}
.sdg__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.sdg__lead {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #9fb0b4;
  line-height: 2;
}
.sdg__start {
  margin-top: 2.2rem;
  background: var(--accent);
  color: #0a1418;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 3.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 10px 40px rgba(217, 164, 91, 0.25);
}
.sdg__start:hover { transform: translateY(-2px); }
.sdg__start:active { transform: scale(0.97); }

.sdg__prog {
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: #9fb0b4;
}
.sdg__q {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 2;
}
.sdg__choices {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  text-align: left;
}
.sdg__choice {
  background: rgba(233, 238, 236, 0.045);
  border: 1px solid rgba(233, 238, 236, 0.16);
  color: #e9eeec;
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.15s;
}
.sdg__choice:hover {
  border-color: var(--accent);
  background: rgba(217, 164, 91, 0.08);
}
.sdg__choice:active { transform: scale(0.985); }

.sdg__res-depth {
  margin-top: 0.9rem;
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: clamp(2.7rem, 10vw, 4.2rem);
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(217, 164, 91, 0.35);
}
.sdg__res-depth span { font-size: 0.4em; font-family: var(--font-display); }
.sdg__res-zone {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.sdg__res-text {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  line-height: 2.1;
  color: #c3cecf;
}
.sdg__res-weak {
  margin-top: 1.7rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(233, 238, 236, 0.14);
  text-align: left;
}
.sdg__res-weak h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.sdg__res-weak ul { list-style: none; margin-top: 0.4rem; }
.sdg__res-weak li {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #d7dfe0;
}
.sdg__res-weak li i {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #8fa0a3;
}
.sdg__res-cta {
  display: inline-block;
  margin-top: 1.9rem;
  background: var(--accent);
  color: #0a1418;
  border-radius: 999px;
  padding: 0.95rem 2.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: transform 0.2s var(--ease-out);
  box-shadow: 0 10px 40px rgba(217, 164, 91, 0.25);
}
.sdg__res-cta:hover { transform: translateY(-2px); }
.sdg__res-note {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8fa0a3;
}
.sdg__retry {
  margin-top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #9fb0b4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- フッター(検索エンジンにも読める説明と内部リンク) ---------- */
.footer {
  padding: 2.4rem clamp(1.4rem, 6vw, 5rem) 2.8rem;
  border-top: 1px solid var(--line);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.6rem;
}
.footer__nav a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__desc {
  max-width: 46em;
  font-size: 0.74rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  opacity: 0.85;
  margin-bottom: 1.8rem;
}
.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.footer__brand {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.footer__copy {
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--ink-dim);
}

/* ---------- モバイル ---------- */
@media (max-width: 900px) {
  .sho__grid { grid-template-columns: repeat(2, 1fr); }
  .ei__screens { grid-template-columns: 1fr; max-width: 30rem; }
  .gyo__bento { grid-template-columns: 1fr; }
  .gyo__cell--wide, .gyo__cell--full { grid-column: span 1; }
  .gyo__cell { min-height: 0; }
  .to__flow { grid-template-columns: repeat(2, 1fr); }
  .dawn__company { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* スマホはCSSスナップを使わない。
     物語ゾーン(開幕〜映)はJSページャーが1スワイプ=1章で運び(ギュン→カチッ)、
     灯以降の資料ゾーンは完全に自由なネイティブスクロール。
     CSSスナップが残っているとJSの着地と引っ張り合うため全切り */
  html { scroll-snap-type: none; }
  .opening, .chapter { scroll-snap-stop: normal; }

  .kai__split { grid-template-columns: 1fr; }
  .sho__grid { grid-template-columns: 1fr 1fr; }
  .to__flow { grid-template-columns: 1fr; }
  .joh__line:nth-child(odd) { padding-left: 0; }
  /* スマホでは一行に収まる文字サイズへ */
  .joh__line { font-size: 1.02rem; letter-spacing: 0.04em; }
  .joh__turn { font-size: 1.5rem; }
  .joh__shindan { font-size: 0.82rem; padding: 0.55rem 1.05rem; }
  /* 深度計と重ならないよう余白を確保 */
  .dawn__topics { padding-bottom: 3.2rem; }
  .footer { flex-direction: column; gap: 0.4rem; }

  /* 章漢字: パララックスなしで各章の中に静かに置く。
     右上の「相談する」ボタンと被らないよう、ナビの下まで下げる */
  .chapter__kanji { transform: none !important; font-size: 7.5rem; opacity: 0.8; top: 5.4rem; }

  /* 泡の言葉: 上部中央に出すぶん、少しだけ大きく・コンパクトに */
  .bubble-word strong { font-size: 1.6rem; line-height: 1.3; }
  .bubble-word em { margin-top: 0.25rem; font-size: 0.82rem; letter-spacing: 0.1em; }

  /* 解: 1画面にきちんと収める */
  .chapter--kai { padding-top: 4rem; padding-bottom: 3.2rem; }
  .kai__title { font-size: 1.55rem; line-height: 1.75; }
  .kai__lead { margin-top: 0.9rem; font-size: 0.85rem; }
  .kai__split { margin-top: 1.5rem; }
  .kai__side { padding: 1.15rem 1.2rem; }
  .kai__verb { font-size: 1.7rem; }
  .kai__co { margin-top: 0.7rem; font-size: 0.9rem; }
  .kai__desc { margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.8; }

  /* 業: 行末の凸凹をなくし、カードを引き締める */
  .gyo__title { font-size: 1.55rem; line-height: 1.75; }
  .gyo__bento { margin-top: 1.6rem; }
  .gyo__cell { padding: 1.1rem 1.2rem; }
  .gyo__cell h3 { font-size: 1.02rem; }
  /* 行末の揃えは両端揃えではなく、意味の切れ目のbr-spで整える */
  .gyo__cell p {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.8;
    text-wrap: pretty;
  }

  /* 途: 明るくなる海の上でも必ず読めるよう、淡い板を敷く */
  .chapter--to .chapter__inner {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-radius: 12px;
    padding: 1.6rem 1.3rem;
    transition: background 1.4s var(--ease-out);
  }
  .to__title { font-size: 1rem; letter-spacing: 0.05em; line-height: 2; }
  .to__flow { margin-top: 1.8rem; gap: 1.3rem; }
  .to__flow h3 { font-size: 1.05rem; }
  .to__flow p { font-size: 0.8rem; }
  .to__flow li { padding-top: 1.1rem; }

  /* 終章: 「〜していな / い、」の変な折り返しを止める */
  .dawn__title { font-size: 1.5rem; letter-spacing: 0.06em; line-height: 1.9; }
  .dawn__contact-lead { font-size: 1.02rem; }

  /* 映: スクリーンを縦積みでコンパクトに */
  .ei__title { font-size: 1.55rem; line-height: 1.75; }
  .ei__lead { margin-top: 0.6rem; font-size: 0.82rem; }
  .ei__screens { margin-top: 1.3rem; gap: 1.2rem; }
  .ei__cap { margin-top: 0.5rem; font-size: 0.8rem; }
  /* 実績リンクを足しても1画面(812px)に収める: 章の余白を詰める */
  .chapter--ei { padding-block: 2.4rem; }
  .ei__moreline { margin-top: 0.9rem; }
  .ei__more { font-size: 0.82rem; }
  /* スマホは2本立て: 3本目は1画面に収まらないため上映しない(2本をしっかり見せる) */
  .ei__screen:nth-child(3) { display: none; }
  /* ホバーのないスマホでは沈め過ぎない明るさに */
  .ei__frame img { filter: brightness(0.78) saturate(0.95); }
  .br-sp { display: inline; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .depth, .joh__bubbles, .breath, .torch, .seamap, .dive { display: none; }
  .joh__shindan { animation: none; }
  #joh .chapter__inner, #kai .chapter__inner, #sho .chapter__inner,
  #hi .chapter__inner, #gyo .chapter__inner, #to .chapter__inner { animation: none; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .opening__line > span { transform: none; }
  .opening__brand, .nav { opacity: 1; }
  .opening__beam { transform: translate(-50%, -50%) scaleX(1); }
  .reveal { opacity: 1; }
}

/* ============ ソナー(長押しの問いかけ。深度計と同じ計器の意匠) ============ */
.sonar-ring {
  position: fixed;
  z-index: 40;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid rgba(217, 164, 91, 0.55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sonar-ping 1.7s cubic-bezier(0.16, 0.7, 0.2, 1) forwards;
}
@keyframes sonar-ping {
  0% { transform: scale(0.35); opacity: 0.75; }
  60% { opacity: 0.28; }
  100% { transform: scale(24); opacity: 0; }
}
.sonar-note {
  position: fixed;
  z-index: 41;
  translate: -50% 0;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  white-space: nowrap;
  color: rgba(233, 238, 236, 0.78);
  pointer-events: none;
  opacity: 0;
}
.sonar-note b {
  color: var(--accent);
  font-weight: 400;
  margin-right: 0.7em;
}

@media (max-width: 640px) {
  .sonar-note { font-size: 0.58rem; letter-spacing: 0.18em; }
}

/* ============ 時刻の水面(終章だけ着せ替え。海の中の旅は共通) ============ */
/* 夜(19-5時): 月夜の水面。dawnステージの明色パレットを夜空用に反転 */
body.tbb-night[data-stage="dawn"] {
  --bg: #0d1b2a;
  --bg-soft: #142839;
  --ink: #e9eeec;
  --ink-dim: #93a6a8;
  --line: rgba(233, 238, 236, 0.16);
}
body.tbb-night .dawn__btn--line {
  background: #e9eeec;
  color: #0d1b2a;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
body.tbb-night .dawn__btn--mail {
  color: #e9eeec;
  border-color: rgba(233, 238, 236, 0.42);
}
/* 夕(16-19時): 茜の水面。明るさは保ちつつ暖色に寄せる */
body.tbb-dusk[data-stage="dawn"] {
  --bg: #f0dcbd;
  --bg-soft: #e8cfa8;
  --ink: #33251a;
  --ink-dim: #705c46;
  --line: rgba(51, 37, 26, 0.16);
}

/* ============ ナビのハンバーガー(海図への入口) ============ */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.nav__menu span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: background 0.3s;
}
.nav__menu:hover { border-color: var(--accent); }
.nav__menu:hover span { background: var(--accent); }

/* ============ サイトメニュー(下層ページへの扉) ============
   幕が上から水のように降り、ページ名が順に浮かび上がる */
.menu {
  position: fixed;
  inset: 0;
  z-index: 49; /* ナビ(50)の下=✕ボタンと相談するは幕の上に残る */
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.9s;
}
.menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.menu__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 70% 0%, rgba(20, 45, 66, 0.55), transparent 60%),
    linear-gradient(168deg, #0b1a29, #05080c 55%, #020305);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu.is-open .menu__veil {
  clip-path: inset(0 0 0% 0);
}
.menu__inner {
  position: relative;
  height: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.6rem, 5vw, 3rem) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu__kicker {
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: 0s;
}
.menu__list {
  list-style: none;
  margin-top: 2.2rem;
}
.menu__row {
  position: relative;
  overflow: hidden;
}
/* 区切り罫線は幕が降りたあと、項目の浮上に合わせて左からスッと引かれる */
.menu__row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(233, 238, 236, 0.1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.66s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu.is-open .menu__row::after { transform: scaleX(1); }
.menu.is-open .menu__row:nth-child(1)::after { transition-delay: 0.36s; }
.menu.is-open .menu__row:nth-child(2)::after { transition-delay: 0.44s; }
.menu.is-open .menu__row:nth-child(3)::after { transition-delay: 0.52s; }
.menu.is-open .menu__row:nth-child(4)::after { transition-delay: 0.6s; }
.menu.is-open .menu__row:nth-child(5)::after { transition-delay: 0.68s; }
.menu.is-open .menu__row:nth-child(6)::after { transition-delay: 0.76s; }
.menu__item {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2.6vh, 1.7rem) 0.2rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(105%);
  filter: blur(5px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out),
    padding-left 0.35s var(--ease-out);
}
.menu.is-open .menu__kicker { opacity: 1; transform: none; transition-delay: 0.3s; }
.menu.is-open .menu__item { opacity: 1; transform: none; filter: blur(0); }
.menu.is-open .menu__row:nth-child(1) .menu__item { transition-delay: 0.34s; }
.menu.is-open .menu__row:nth-child(2) .menu__item { transition-delay: 0.42s; }
.menu.is-open .menu__row:nth-child(3) .menu__item { transition-delay: 0.5s; }
.menu.is-open .menu__row:nth-child(4) .menu__item { transition-delay: 0.58s; }
.menu.is-open .menu__row:nth-child(5) .menu__item { transition-delay: 0.66s; }
.menu__item i {
  font-style: normal;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  min-width: 2.2em;
  transition: color 0.3s;
}
.menu__ja {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3.4vw, 1.9rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: #e9eeec;
  transition: color 0.35s;
}
  .menu__txt { display: flex; flex-direction: column; }
  .menu__desc { margin-top: 0.15rem; font-family: var(--font-body); font-size: 0.72rem;
    letter-spacing: 0.12em; color: rgba(233, 238, 236, 0.42); transition: color 0.35s; }
  a.menu__item:hover .menu__desc { color: rgba(233, 238, 236, 0.65); }
.menu__item em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(233, 238, 236, 0.4);
  white-space: nowrap;
}
.menu__item em b {
  display: block;
  margin-top: 0.2rem;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: rgba(217, 164, 91, 0.55);
  text-align: right;
}
a.menu__item:hover { padding-left: 1.1rem; }
a.menu__item:hover .menu__ja { color: var(--accent); }
.menu__item.is-soon { cursor: default; }
.menu__item.is-soon .menu__ja { color: rgba(233, 238, 236, 0.34); }
.menu__item.is-soon i { color: rgba(217, 164, 91, 0.4); }
.menu__consult {
  margin-top: 2.6rem;
  align-self: flex-start;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out) 0s, transform 0.6s var(--ease-out) 0s, color 0.3s;
}
.menu.is-open .menu__consult { opacity: 1; transform: none; transition-delay: 0.68s, 0.68s, 0s; }
.menu__consult:hover { color: var(--accent); }

/* ハンバーガー → ✕ のモーフ */
.nav__menu span {
  transition: transform 0.45s var(--ease-out), background 0.3s;
}
.nav__menu.is-x span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__menu.is-x span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 章末の一行リンク(下層への出口・汎用) ---------- */
.moreline {
  margin-top: clamp(1.4rem, 3.5vh, 2.2rem);
  text-align: right;
}
.moreline a {
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 91, 0.55);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.moreline a:hover { color: var(--accent); border-color: var(--accent); }
.chapter--joh .moreline { margin-top: 0.5rem; }
.chapter--joh .joh__shindan { margin-top: clamp(1rem, 2.4vh, 1.7rem); }
body[data-stage="dawn"] .moreline a { color: var(--ink-dim); }

/* 証: 注記に添える現在地リンク */
.sho__note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 91, 0.45);
  padding-bottom: 0.1rem;
  margin-left: 0.6em;
  transition: color 0.3s;
}
.sho__note a:hover { color: var(--accent); }

/* 明: コアコンテンツ(コラム・写真)への扉 */
.dawn__core { margin: clamp(1.6rem, 3.5vh, 2.6rem) 0; }
.dawn__core-lead {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.dawn__core-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.dawn__banner {
  position: relative;
  flex: 1 1 250px;
  max-width: 360px;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(21, 34, 32, 0.16);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}
.dawn__banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(21, 34, 32, 0.16);
  border-color: rgba(217, 164, 91, 0.6);
}
.dawn__banner:active { transform: scale(0.98); }
.dawn__banner b {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}
.dawn__banner-sub {
  position: relative; z-index: 2;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
/* コラム = 海から紙へ(下層ページの水面バンドと同じグラデーション) */
.dawn__banner--column {
  background: linear-gradient(#0a1826 0%, #14425f 26%, #4f93a8 44%, #a9cdc9 56%, #faf9f4 70%);
}
.dawn__banner--column b { color: #152220; }
.dawn__banner--column b::after {
  content: "";
  display: block;
  width: 2.4em;
  height: 2px;
  margin-top: 0.3rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.dawn__banner--column:hover b::after { transform: scaleX(1); }
.dawn__banner--column .dawn__banner-sub { color: #5c6f6c; }
.dawn__banner-kanji {
  position: absolute;
  right: 0.5rem;
  top: -1.1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 5.6rem;
  line-height: 1;
  color: rgba(233, 238, 236, 0.12); /* 海の上に、白くうっすら */
  pointer-events: none;
}
/* 写真 = 実写(直島の海)+夕暮れのグラデ */
.dawn__banner--photo {
  background: #10202c;
}
.dawn__banner-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/photo/img/naoshima-01-t.jpg") center 60% / cover no-repeat;
  transition: transform 0.8s var(--ease-out);
}
.dawn__banner--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(5, 10, 15, 0) 30%, rgba(5, 10, 15, 0.66) 100%);
}
.dawn__banner--photo:hover .dawn__banner-img { transform: scale(1.06); }
.dawn__banner--photo b { color: #f4f6f4; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
.dawn__banner--photo .dawn__banner-sub { color: rgba(244, 246, 244, 0.85); }

/* 深度計: 6/6発見者だけに現れる、深くへの誘い */
.depth__dive {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
}
.depth__dive:hover { opacity: 1; text-decoration: underline; }

/* 章末リンクのモバイル圧縮(1章=1スライドの高さを守る) */
@media (max-width: 640px) {
  .moreline { margin-top: 0.6rem; }
  /* 深度計(左下固定)の縦の帯にリンクが入らないよう、右側に限定して折り返す */
  .moreline a { font-size: 0.78rem; max-width: calc(100% - 104px); }
  .sho__note { margin-top: 0.8rem; }
  .sho__note a { display: block; margin-left: 0; margin-top: 0.15rem; }
  .chapter--sho .sho__hero { margin-top: 1.6rem; }
  .chapter--sho .sho__note { margin-top: 0.8rem; }
  .chapter--to .to__flow { margin-top: 1.3rem; gap: 0.85rem; }
  .chapter--to .to__flow li { padding-top: 1.05rem; }
  .chapter--to .to__flow p { font-size: 0.82rem; }
}

/* メニュー8項目化(2026-07-14): 段差の再配分 */
/* メニュー8項目化(2026-07-14): 段差の再配分 */
.menu.is-open .menu__row:nth-child(1)::after { transition-delay: 0.34s; }
.menu.is-open .menu__row:nth-child(2)::after { transition-delay: 0.40s; }
.menu.is-open .menu__row:nth-child(3)::after { transition-delay: 0.46s; }
.menu.is-open .menu__row:nth-child(4)::after { transition-delay: 0.52s; }
.menu.is-open .menu__row:nth-child(5)::after { transition-delay: 0.58s; }
.menu.is-open .menu__row:nth-child(6)::after { transition-delay: 0.64s; }
.menu.is-open .menu__row:nth-child(7)::after { transition-delay: 0.70s; }
.menu.is-open .menu__row:nth-child(8)::after { transition-delay: 0.76s; }
.menu.is-open .menu__row:nth-child(1) .menu__item { transition-delay: 0.30s; }
.menu.is-open .menu__row:nth-child(2) .menu__item { transition-delay: 0.36s; }
.menu.is-open .menu__row:nth-child(3) .menu__item { transition-delay: 0.42s; }
.menu.is-open .menu__row:nth-child(4) .menu__item { transition-delay: 0.48s; }
.menu.is-open .menu__row:nth-child(5) .menu__item { transition-delay: 0.54s; }
.menu.is-open .menu__row:nth-child(6) .menu__item { transition-delay: 0.60s; }
.menu.is-open .menu__row:nth-child(7) .menu__item { transition-delay: 0.66s; }
.menu.is-open .menu__row:nth-child(8) .menu__item { transition-delay: 0.72s; }
.menu.is-open .menu__consult { transition-delay: 0.86s, 0.86s, 0s; }

/* メニューv2(2026-07-14): グループ見出し+2列 */
/* メニューv2(2026-07-14): グループ見出し+2列 */
.menu__list--v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.menu__list--v2 .menu__row--home { grid-column: 1 / -1; }
.menu__grp { list-style: none; }
.menu__grp ol { list-style: none; }
.menu__group { font-family: var(--font-num); font-weight: 300; font-size: 0.62rem; letter-spacing: 0.34em;
text-transform: uppercase; color: rgba(217, 164, 91, 0.85); padding: 1.1rem 0.2rem 0.45rem;
border-bottom: 1px solid rgba(233, 238, 236, 0.14); opacity: 0; transform: translateY(10px);
transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.menu__group em { font-style: normal; margin-left: 0.7em; letter-spacing: 0.22em; color: rgba(233, 238, 236, 0.32); }
.menu.is-open .menu__group { opacity: 1; transform: none; }
.menu__list--v2 .menu__item { padding: clamp(0.75rem, 1.7vh, 1.15rem) 0.2rem; gap: 0.9rem; }
.menu__list--v2 .menu__ja { font-size: clamp(0.98rem, 1.7vw, 1.26rem); letter-spacing: 0.06em; }
.menu__list--v2 .menu__item em { font-size: 0.62rem; letter-spacing: 0.24em; }
@media (max-width: 720px) {
.menu__list--v2 { grid-template-columns: 1fr; gap: 0; }
.menu__list--v2 .menu__item { padding: clamp(0.6rem, 1.5vh, 0.95rem) 0.2rem; }
}

