/* 加速キッチンの素粒子・宇宙の話 — 各話ページ（文字起こし）
   LP と同じ「夜のキッチン観測所」トーン。本文は読みものとして、紙のふきだしで。 */

/* 色・書体などの共通の値は ../tokens.css（番組トップと共通）。ここにはこのページだけの値 */
:root {
  --player-h: 76px;
  --spk: var(--pink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; } /* 固定ナビ＋ふきだしの名前の行まで見えるように */
html { scroll-padding-bottom: calc(var(--player-h) + 16px); } /* Tab でフォーカスした要素が、下のプレーヤーに隠れないように（効かないブラウザは episode.js でずらす） */
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(15px, .6vw + 12px, 17px); line-height: 1.85; letter-spacing: .02em;
  overflow-x: hidden; overflow-x: clip; word-break: auto-phrase; /* clip: 100vw の図のはみ出しを切る（スクロール領域を作らない） */
  padding-bottom: var(--player-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
strong { color: var(--gold); font-weight: 700; }
button { font: inherit; color: inherit; }
.c-pink { color: var(--pink); }
.c-cyan { color: var(--cyan-hi); }
.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--night); padding: 8px 14px; border-radius: 8px; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 8%, #fff8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 62%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 86%, #fff6 50%, transparent 51%),
    radial-gradient(1000px 700px at 85% -10%, #1f3a78 0%, transparent 60%),
    var(--night);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 340px 340px, auto, auto;
}

/* ---------- common ---------- */
.h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.3; letter-spacing: .04em; margin: 0 0 .6em; text-wrap: balance; }
.h2 small, .h3 small { display: block; font-family: var(--f-body); font-weight: 700; font-size: .38em; color: var(--muted); letter-spacing: .08em; margin-top: .5em; }
.h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; margin: 0 0 .6em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .6em; font-family: var(--f-dot); font-size: 15px; letter-spacing: .14em; color: var(--cyan-hi); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.btn {
  --bg: var(--ink); --fg: var(--night);
  display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: .06em;
  text-decoration: none; border: 2px solid transparent; box-shadow: 0 5px 0 rgb(0 0 0 / .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgb(0 0 0 / .28); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgb(0 0 0 / .28); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--pink { --bg: var(--pink); --fg: var(--night); }
.btn--pink:hover { --bg: var(--pink-deep); }
.btn--cyan { --bg: var(--cyan-hi); --fg: var(--night); }
.btn--ghost { --bg: rgb(11 22 48 / .35); --fg: var(--ink); border-color: rgb(255 255 255 / .5); box-shadow: none; backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan-hi), var(--pink), var(--gold)); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 20px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; transition: background .3s, padding .3s; }
.nav.is-scrolled { background: rgb(11 22 48 / .86); backdrop-filter: blur(10px); padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.nav__back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .35); transition: background .2s; }
.nav__back:hover { background: rgb(255 255 255 / .1); }
.nav__back svg { width: 18px; height: 18px; }
.nav__brand img { width: clamp(130px, 14vw, 180px); }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; padding: 4px 18px; border-radius: 999px; background: rgb(11 22 48 / .55); backdrop-filter: blur(6px); transition: background .3s, padding .3s; }
.nav__links a { text-decoration: none; position: relative; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
.nav.is-scrolled .nav__links { background: none; backdrop-filter: none; padding-inline: 0; } /* スクロール後はナビ全体に背景があるので外す */
.nav.is-scrolled .nav__links a { text-shadow: none; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--pink); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* 見えないが読み上げる */
  .nav__back { padding: 6px; }
}

/* ---------- hero ---------- */
.ehero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; padding: 120px 0 130px; overflow: hidden; isolation: isolate; }
.ehero__bg { position: absolute; inset: 0; z-index: -2; }
.ehero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ehero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 22 48 / .92) 0%, rgb(11 22 48 / .55) 45%, rgb(11 22 48 / 0) 75%), linear-gradient(0deg, var(--night) 2%, transparent 35%); }
.ehero__rays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ehero__inner { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; max-width: 1160px; }
.ehero__no { margin: 0 0 12px; font-family: var(--f-dot); font-size: clamp(54px, 8vw, 96px); line-height: 1; color: var(--pink); text-shadow: 0 0 30px rgb(255 92 141 / .5); }
.ehero__no span { font-size: .2em; letter-spacing: .2em; color: var(--gold); margin-right: .6em; vertical-align: .9em; }
.ehero__title { margin: 0; max-width: 13em; font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.22; letter-spacing: .03em; text-shadow: 0 4px 0 rgb(0 0 0 / .3), 0 0 40px rgb(11 22 48 / .8); text-wrap: balance; }
.ehero__title .ch { display: inline-block; }
.ehero__sub { margin: 14px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(19px, 2.3vw, 30px); line-height: 1.5; color: var(--gold); text-shadow: 0 3px 0 rgb(0 0 0 / .3), 0 0 24px rgb(11 22 48 / .8); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ehero__sub::before { content: "——"; content: "——" / ""; margin-right: .3em; letter-spacing: -.1em; }
/* 回の番号を入れかえたときの案内（第3回の上部など） */
.ehero__notice { margin: 0 0 18px; }
.ehero__notice a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgb(11 22 48 / .72); border: 1px solid rgb(255 255 255 / .35); color: var(--gold); font-weight: 700; font-size: 14px; text-decoration: none; backdrop-filter: blur(4px); }
.ehero__notice a:hover { background: rgb(11 22 48 / .9); }
.ehero__notice svg { width: 16px; height: 16px; flex: none; }
.ehero__one { margin: 22px 0 22px; max-width: 30em; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; line-height: 1.85; text-shadow: 0 2px 12px rgb(0 0 0 / .6); }
.ehero__cast { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cast { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 4px; border-radius: 999px; background: rgb(11 22 48 / .7); border: 2px solid var(--spk); font-weight: 700; font-size: 14px; backdrop-filter: blur(4px); }
.cast img { width: 36px; height: 36px; border-radius: 50%; }
.cast--kazuo { --spk: var(--pink); }
.cast--fuuka { --spk: var(--cyan-hi); }
.cast--moe { --spk: var(--gold); }
.ehero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.counter-top { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 180px, rgb(0 0 0 / .12) 180px 182px), linear-gradient(180deg, #d48d4a 0 8px, var(--wood) 8px 36px, var(--wood-dk) 36px); }
.counter-top::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #f0b374; }
@media (max-width: 760px) {
  .ehero { min-height: 88svh; padding-bottom: 100px; }
  .ehero__bg img { object-position: 78% 50%; }
  .ehero__bg::after { background: linear-gradient(0deg, var(--night) 8%, rgb(11 22 48 / .7) 50%, rgb(11 22 48 / .25) 100%); }
}

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); align-items: start; }
.recipe { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 34px 30px 26px; box-shadow: 0 18px 40px rgb(0 0 0 / .35); transform: rotate(-1.2deg); background-image: repeating-linear-gradient(180deg, transparent 0 35px, #e6d6ba 35px 36px); }
.recipe::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: -4deg; background: rgb(255 209 102 / .75); }
.recipe__tag { margin: 0 0 10px; font-family: var(--f-display); font-weight: 900; font-size: 22px; color: var(--pink-deep); }
.recipe__summary { margin: 0 0 18px; line-height: 2.05; }
.recipe__list { margin: 0 0 16px; display: grid; gap: 2px; }
.recipe__list div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; align-items: baseline; }
.recipe__list dt { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--paper-mut); font-size: .92em; }
.recipe__list dt svg { color: var(--cyan); width: 1.15em; height: 1.15em; translate: 0 2px; }
.recipe__list dd { margin: 0; font-weight: 700; }
.recipe__kw-label { margin: 0 0 6px; font-weight: 700; color: var(--paper-mut); font-size: .92em; }
.recipe__kw { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.recipe__kw a { display: inline-block; padding: 1px 12px; border-radius: 999px; background: #fff; border: 1.5px solid #e2cfb0; text-decoration: none; font-weight: 700; font-size: .88em; transition: background .2s, border-color .2s; }
.recipe__kw a:hover { background: var(--gold); border-color: var(--gold); }
.peak__label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--f-dot); color: var(--gold); letter-spacing: .1em; }
.peak__text { margin: 0 0 26px; font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: 1px dashed rgb(255 255 255 / .2); }
.toc a { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 10px; align-items: baseline; padding: 11px 4px; border-bottom: 1px dashed rgb(255 255 255 / .2); text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.toc a:hover { background: rgb(255 255 255 / .05); padding-left: 12px; }
.toc__no { font-family: var(--f-dot); color: var(--cyan-hi); }
.toc__title { font-weight: 700; }
.toc__t { font-family: var(--f-dot); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .recipe { transform: rotate(-.6deg); padding: 30px 20px 22px; } }

/* ---------- transcript ---------- */
.transcript { padding: clamp(30px, 5vw, 60px) 0 40px; }
.tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 20px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 460px; }
.search svg { position: absolute; left: 14px; color: var(--muted); }
.search input { width: 100%; padding: 12px 70px 12px 42px; border-radius: 999px; border: 2px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s; }
.search input:focus { border-color: var(--cyan-hi); background: rgb(255 255 255 / .1); }
/* 検索で Enter を押して結果へ移る間は、検索欄を画面の上に出しておく（episode.js が is-stuck を付ける） */
.tools.is-stuck:focus-within .search { position: fixed; z-index: 60; top: 74px; left: 50%; translate: -50% 0; width: min(460px, 100% - 32px); max-width: none; }
.tools.is-stuck:focus-within .search input { background: var(--night-2); box-shadow: 0 10px 30px rgb(0 0 0 / .45); }
.search output { position: absolute; right: 16px; font-family: var(--f-dot); font-size: 13px; color: var(--gold); }
.tools__legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; font-size: 13px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.lg--kazuo { --c: var(--pink); } .lg--fuuka { --c: var(--cyan-hi); } .lg--moe { --c: var(--gold); }
.lg--term::before { width: 20px; height: 0; border-radius: 0; border-bottom: 2px dotted var(--gold); background: none; }

.tr-grid { --tr-side: 230px; --tr-gap: clamp(20px, 4vw, 60px); width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: var(--tr-side) minmax(0, 1fr); gap: var(--tr-gap); }
.side { position: relative; z-index: 1; }
.side__list { position: sticky; top: 90px; list-style: none; margin: 0; padding: 0; border-left: 2px solid rgb(255 255 255 / .12); transition: opacity .3s; }
.side__list.is-under { opacity: 0; pointer-events: none; } /* 画面幅いっぱいの図が重なる間（episode.js） */
.side__list.is-under:focus-within { opacity: 1; pointer-events: auto; }
.side__list a { position: relative; display: grid; grid-template-columns: 2.2em 1fr; gap: 4px; padding: 8px 0 8px 14px; text-decoration: none; font-size: 13.5px; line-height: 1.55; color: var(--muted); transition: color .2s; }
.side__list .toc__t { display: none; }
.side__list a::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--pink); transform: scaleY(0); transition: transform .35s var(--ease); }
.side__list a:hover { color: var(--ink); }
.side__list a.is-active { color: var(--ink); font-weight: 700; }
.side__list a.is-active::before { transform: scaleY(1); }
.side__list a.is-active .toc__no { color: var(--pink); }
@media (max-width: 1000px) { .tr-grid { grid-template-columns: 1fr; } .side { display: none; } }

.tr-body { max-width: 820px; min-width: 0; width: 100%; margin-inline: auto; }
.chap { position: relative; padding-top: 30px; }
.chap__head { position: relative; margin: 40px 0 30px; padding: 26px 0 0; }
.chap__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .3) 0 6px, transparent 6px 12px); }
.chap__no { margin: 0; font-family: var(--f-dot); font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--cyan-hi); text-shadow: 0 0 22px rgb(92 208 238 / .45); }
.chap__no span { font-size: .24em; letter-spacing: .2em; color: var(--muted); margin-right: .6em; vertical-align: .8em; }
.chap__title { margin: 8px 0 14px; font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); line-height: 1.4; text-wrap: balance; }
.chap__play { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 10px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .3); background: none; cursor: pointer; font-size: 13.5px; font-weight: 700; transition: background .2s, border-color .2s; }
.chap__play:hover { background: var(--pink); border-color: var(--pink); color: var(--night); }

/* lines */
.ln { --spk: var(--pink); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; margin: 18px 0 0; align-items: start; }
.ln--fuuka { --spk: var(--cyan-hi); }
.ln--moe { --spk: var(--gold); }
.ln--right { grid-template-columns: minmax(0, 1fr) 56px; }
.ln--right .ln__av { order: 2; }
.ln--right .ln__body { order: 1; justify-self: end; }
.ln__av { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--spk); background: var(--night-3); }
.ln--cont { margin-top: 8px; }
.ln--cont .ln__av { visibility: hidden; height: 0; border: 0; }
.ln--cont .ln__name { display: none; }
.ln__body { position: relative; max-width: 700px; background: var(--paper); color: var(--paper-ink); border-radius: 4px 20px 20px 20px; padding: 12px 20px 14px; box-shadow: 0 6px 0 rgb(0 0 0 / .18); transition: box-shadow .3s, transform .3s var(--ease), background .3s; }
.ln--right .ln__body { border-radius: 20px 4px 20px 20px; background: #e7f6fa; }
.ln--moe.ln--right .ln__body { background: #fdf3d6; }
.ln:not(.ln--cont) .ln__body::before { content: ""; position: absolute; top: 0; left: -9px; border-top: 12px solid var(--paper); border-left: 10px solid transparent; }
.ln--right:not(.ln--cont) .ln__body::before { left: auto; right: -9px; border-left: 0; border-right: 10px solid transparent; border-top-color: #e7f6fa; }
.ln--moe.ln--right:not(.ln--cont) .ln__body::before { border-top-color: #fdf3d6; }
.ln__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; }
.ln__name { font-family: var(--f-display); font-weight: 900; font-size: 13.5px; color: var(--paper-mut); }
.ln__name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--spk); margin-right: 6px; vertical-align: 1px; }
.ln__t { position: relative; margin-left: auto; padding: 0 8px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-family: var(--f-dot); font-size: 12.5px; color: var(--paper-mut); transition: background .2s, color .2s; }
.ln__t::after { content: ""; position: absolute; inset: -5px -4px; } /* 見た目はそのまま、当たり判定を 32px ほどに */
.ln__t:hover, .ln__t:focus-visible { background: var(--paper-ink); color: var(--gold); outline: none; }
.ln__text { margin: 0; line-height: 1.95; word-break: normal; line-break: strict; overflow-wrap: anywhere; }
.gl__desc, .recipe__summary, .ref__note, figcaption { word-break: normal; line-break: strict; }
.ln.is-now .ln__body { box-shadow: 0 0 0 3px var(--spk), 0 0 34px -4px var(--spk), 0 6px 0 rgb(0 0 0 / .18); transform: translateY(-2px); }
.ln.is-now .ln__t { background: var(--spk); color: var(--night); }
.ln.is-hit .ln__body { box-shadow: 0 0 0 3px var(--gold), 0 6px 0 rgb(0 0 0 / .18); }
.ln.is-dim { opacity: .28; }
mark { background: var(--gold); color: var(--paper-ink); border-radius: 3px; padding: 0 2px; }
@media (max-width: 640px) {
  .ln, .ln--right { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .ln--right .ln__av { order: 0; }
  .ln--right .ln__body { order: 0; justify-self: stretch; }
  .ln__av { width: 38px; height: 38px; border-width: 2px; }
  .ln__body, .ln--right .ln__body { border-radius: 4px 18px 18px 18px; padding: 10px 14px 12px; }
  .ln--right:not(.ln--cont) .ln__body::before { right: auto; left: -9px; border-right: 0; border-left: 10px solid transparent; }
}

/* term links */
.term { color: inherit; text-decoration: none; background-image: linear-gradient(transparent 62%, rgb(255 209 102 / .55) 62%); border-bottom: 2px dotted #c88a1c; font-weight: 700; transition: background-size .2s; cursor: help; }
.term:hover, .term:focus-visible { background-image: linear-gradient(transparent 0%, rgb(255 209 102 / .9) 0%); outline: none; }
.term sup { font-family: var(--f-dot); font-size: .62em; margin-left: 1px; color: var(--pink-ink); }
.pop { position: fixed; z-index: 80; width: min(340px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 16px; background: #0d1b39; border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgb(255 209 102 / .12), 0 18px 40px rgb(0 0 0 / .5); color: var(--ink); font-size: 14px; line-height: 1.8; pointer-events: auto; }
.pop[hidden] { display: none; }
.pop__term { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 18px; }
.pop__term span { font-family: var(--f-dot); color: var(--gold); margin-right: 8px; font-size: 14px; }
.pop__yomi { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.pop__desc { margin: 0 0 8px; }
.pop__more { margin: 0; font-weight: 700; color: var(--cyan-hi); font-size: 13px; }

/* ---------- figures ---------- */
.fig { margin: 46px 0 40px; }
/* 広い図: 左右にはみ出すが、章目次の列にはかからない量まで。
   はみ出せる量 = 列の間 + (本文の列 − 820px) / 2 − 余白16px（100vw はスクロールバー分ずれるので余白で吸収） */
@media (min-width: 1001px) {
  .fig--wide {
    --tr-col: calc(min(1160px, 100vw - var(--gutter) * 2) - var(--tr-side) - var(--tr-gap));
    margin-inline: calc(-1 * max(0px, min(120px, 6vw, var(--tr-gap) + max(0px, (var(--tr-col) - 820px) / 2) - 16px)));
  }
}
/* --vw はスクロールバーを除いた画面幅（episode.js が入れる。100vw だとスクロールバーのぶんはみ出す） */
.fig--full { width: var(--vw, 100vw); position: relative; left: 50%; margin-left: calc(var(--vw, 100vw) / -2); }
@media (min-width: 1001px) { .fig--full { left: calc(50% - (230px + clamp(20px, 4vw, 60px)) / 2); } }
.fig__frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .06); background: var(--night-3); }
.fig--full .fig__frame { border-radius: 0; max-height: 78vh; }
.fig--full .fig__frame img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.fig__frame img { width: 100%; height: auto; transform-origin: 50% 50%; } /* width/height 属性があっても縦横比を保つ */
figcaption { display: flex; gap: 12px; align-items: baseline; margin: 14px 4px 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.fig--full figcaption { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.fig__no { flex: none; font-family: var(--f-dot); color: var(--gold); font-size: 13px; letter-spacing: .08em; }

/* widgets (common chrome) */
.widget { position: relative; border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); background: linear-gradient(160deg, #13274b, #0c1a36); border: 2px solid rgb(92 208 238 / .35); box-shadow: 0 0 0 6px rgb(92 208 238 / .06), 0 20px 50px rgb(0 0 0 / .4); overflow: hidden; }
.widget::before { content: "TRY IT"; position: absolute; top: 14px; right: 16px; font-family: var(--f-dot); font-size: 12px; letter-spacing: .16em; color: var(--night); background: var(--gold); padding: 1px 10px; border-radius: 6px; transform: rotate(3deg); }
.widget__loading { margin: 0; color: var(--muted); }
/* 起動前（「読み込み中…」）も、起動後に近い高さを取っておく（起動しても本文がずれにくいように）。
   値は起動後の高さのおおよそ：--wh は幅 1001px 以上（1366・1440px で測定）、--wh-m は 641〜1000px（768px）、--wh-s は 640px 以下（375px）。
   画面より上の図の起動や、スクロールの着地点のずれは、この値に頼らず episode.js（glide）で防いでいる */
.widget:has(> .widget__loading) { display: grid; place-items: center; min-height: var(--wh, 560px); }
@media (max-width: 1000px) { .widget:has(> .widget__loading) { min-height: var(--wh-m, var(--wh, 560px)); } }
@media (max-width: 640px) { .widget:has(> .widget__loading) { min-height: var(--wh-s, var(--wh, 560px)); } }
[data-widget="electroscope"] { --wh: 580px; --wh-m: 530px; --wh-s: 810px; }
[data-widget="ionize"] { --wh: 520px; --wh-m: 510px; --wh-s: 470px; }
[data-widget="towers"] { --wh: 650px; --wh-m: 530px; --wh-s: 590px; }
[data-widget="altitude"] { --wh: 610px; --wh-m: 540px; --wh-s: 830px; }
[data-widget="timeline"], [data-widget="bars"] { --wh: 370px; --wh-m: 350px; --wh-s: 370px; }
[data-widget="coincidence"] { --wh: 630px; --wh-m: 500px; --wh-s: 430px; }
[data-widget="coincidence"][data-opts*="spacing"] { --wh: 740px; --wh-m: 610px; --wh-s: 700px; } /* 検出器の間隔を変えられる版は高い */
[data-widget="rossi"] { --wh: 720px; --wh-m: 610px; --wh-s: 880px; }
[data-widget="magnet"] { --wh: 740px; --wh-m: 620px; --wh-s: 670px; }
[data-widget="lorentz"] { --wh: 720px; --wh-m: 600px; --wh-s: 630px; }
[data-widget="latitude"] { --wh: 780px; --wh-m: 640px; --wh-s: 810px; }
[data-widget="eastwest"] { --wh: 740px; --wh-m: 640px; --wh-s: 770px; }
[data-widget="weights"] { --wh: 950px; --wh-m: 750px; --wh-s: 780px; }
[data-widget="ladder"] { --wh: 710px; --wh-m: 720px; --wh-s: 1850px; } /* スマホでは枠の中ではなくページごとスクロールするので長い */
[data-widget="convert"] { --wh: 350px; --wh-m: 500px; --wh-s: 820px; }
[data-widget="evdiagram"] { --wh: 520px; --wh-m: 460px; --wh-s: 630px; }
[data-widget="omgball"] { --wh: 910px; --wh-m: 810px; --wh-s: 970px; }
[data-widget="rainframe"] { --wh: 940px; --wh-m: 780px; --wh-s: 890px; }
[data-widget="fluxcalc"] { --wh: 455px; --wh-m: 605px; --wh-s: 995px; }
[data-widget="prefix"] { --wh: 490px; --wh-m: 540px; --wh-s: 800px; }
[data-widget="cascade"] { --wh: 845px; --wh-m: 760px; --wh-s: 1035px; }
[data-widget="pairmass"] { --wh: 500px; --wh-m: 505px; --wh-s: 750px; }
[data-widget="distance"] { --wh: 800px; --wh-m: 700px; --wh-s: 1040px; } /* 最初のタブ（ものさし）の高さ。タブによって 700〜1300px で変わる */
[data-widget="radian"] { --wh: 720px; --wh-m: 625px; --wh-s: 990px; }
[data-widget="steradian"] { --wh: 945px; --wh-m: 805px; --wh-s: 1080px; }
[data-widget="acceptance"] { --wh: 830px; --wh-m: 740px; --wh-s: 1075px; }
[data-widget="montecarlo"] { --wh: 900px; --wh-m: 795px; --wh-s: 1150px; }
.w-title { margin: 0 0 14px; padding-right: 70px; font-family: var(--f-display); font-weight: 900; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.w-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.w-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 2px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); cursor: pointer; font-weight: 700; font-size: 14px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.w-btn:hover { border-color: var(--cyan-hi); transform: translateY(-2px); }
.w-btn.is-on, .w-btn[aria-pressed="true"] { background: var(--cyan-hi); border-color: var(--cyan-hi); color: var(--night); }
.w-btn--pink { background: var(--pink); border-color: var(--pink); color: var(--night); }
.w-btn--pink:hover { background: var(--pink-deep); border-color: var(--pink-deep); }
.w-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.w-read { font-family: var(--f-dot); color: var(--cyan-hi); font-size: 15px; }
.w-big { font-family: var(--f-dot); font-size: clamp(26px, 3.4vw, 38px); color: var(--cyan-hi); text-shadow: 0 0 14px rgb(92 208 238 / .5); line-height: 1.1; }
.w-note { margin: 12px 0 0; font-size: 12.5px; color: var(--night-mut); line-height: 1.6; }
.w-range { -webkit-appearance: none; appearance: none; flex: 1 1 200px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan-hi) var(--p, 50%), rgb(255 255 255 / .15) var(--p, 50%)); outline: none; cursor: pointer; }
.w-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 3px solid var(--night); box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--gold); }
.w-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--night); box-shadow: 0 0 0 2px var(--gold); }
.w-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.w-svg { width: 100%; height: auto; display: block; }
.w-svg text { font-family: var(--f-body); }
.w-canvas { width: 100%; display: block; border-radius: 14px; background: #081126; }
.w-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.w-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.w-seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.w-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 640px) { .w-grid2 { grid-template-columns: 1fr; } }

/* ---------- glossary ---------- */
.glossary { padding: clamp(80px, 10vw, 130px) 0 40px; }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gl { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 6px; padding: 20px 22px 16px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); border-radius: 18px; transition: border-color .3s, background .3s, box-shadow .3s; }
.gl:target, .gl.is-flash { border-color: var(--gold); background: rgb(255 209 102 / .1); box-shadow: 0 0 0 4px rgb(255 209 102 / .15); }
.gl__num { margin: 0; font-family: var(--f-dot); font-size: 22px; line-height: 1.3; color: var(--pink); }
.gl__term { margin: 0 0 6px; font-family: var(--f-display); font-weight: 900; font-size: 19px; line-height: 1.5; }
.gl__term small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.gl__desc { margin: 0 0 8px; font-size: .94em; line-height: 1.85; }
.gl__links { list-style: none; margin: 0 0 6px; padding: 0; font-size: 13px; }
.gl > * { min-width: 0; }
.gl__term, .gl__links a { overflow-wrap: anywhere; } /* 長いリンク名で列が広がらないように（body の auto-phrase 対策） */
.gl__links a { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--cyan-hi); text-underline-offset: 3px; }
.gl__links svg { width: 12px; height: 12px; }
.gl__backs { display: flex; gap: 6px; margin: 0; }
.gl__back { font-family: var(--f-dot); font-size: 12.5px; text-decoration: none; color: var(--gold); padding: 0 8px; border-radius: 6px; border: 1px solid rgb(255 209 102 / .4); }
.gl__back:hover { background: var(--gold); color: var(--night); }
@media (max-width: 760px) { .gl-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- refs ---------- */
.refs { padding: clamp(60px, 8vw, 100px) 0 40px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.ref-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); text-decoration: none; box-shadow: 0 6px 0 rgb(0 0 0 / .25); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ref-list a:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 rgb(0 0 0 / .25); }
.ref__title { font-weight: 700; line-height: 1.6; }
.ref__note { font-size: 13.5px; color: var(--paper-mut); line-height: 1.7; }
.ref__host { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-dot); font-size: 12.5px; color: var(--cyan-ink); }

/* ---------- other episodes ---------- */
.others { padding: clamp(70px, 9vw, 120px) 0 30px; }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ep { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--paper-ink); text-decoration: none; box-shadow: 0 10px 26px rgb(0 0 0 / .35); transition: transform .35s var(--ease); }
a.ep:hover { transform: translateY(-6px) rotate(-1deg); }
.ep img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ep__no { padding: 12px 16px 0; font-family: var(--f-dot); font-size: 26px; line-height: 1; color: var(--pink-deep); }
.ep__no span { font-size: 11px; letter-spacing: .14em; margin-right: 6px; color: var(--paper-mut); vertical-align: 5px; }
.ep__title { padding: 6px 16px; font-family: var(--f-display); font-weight: 900; line-height: 1.5; }
.ep__title small { display: block; font-size: .82em; opacity: .75; }
.ep__state { margin-top: auto; padding: 8px 16px 14px; font-size: 13px; font-weight: 700; color: var(--cyan-ink); }
.ep--cur { outline: 3px solid var(--pink); outline-offset: 3px; }
.ep--cur .ep__state { color: var(--pink-ink); }
.ep--soon { filter: saturate(.3); opacity: .7; }
.ep--soon .ep__state { color: var(--paper-mut); }
@media (max-width: 900px) { .ep-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ask ---------- */
.ask { padding: clamp(60px, 8vw, 110px) 0; }
.ask__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ticket { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: linear-gradient(160deg, #3a1638, #22123a); border: 2px dashed rgb(255 92 141 / .45); }
.ticket--cyan { background: linear-gradient(160deg, #0f3350, #0d2240); border-color: rgb(92 208 238 / .45); }
.ticket__icon { width: 44px; height: 44px; color: var(--pink); margin-bottom: 10px; }
.ticket--cyan .ticket__icon { color: var(--cyan-hi); }
.ticket p { margin: 0 0 22px; }
@media (max-width: 760px) { .ask__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid rgb(255 255 255 / .1); background: #081126; }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 10px; }
.footer__pan { width: 72px; height: 36px; color: var(--ink); }
.footer__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 6px 0 0; font-size: 14px; }
.footer__links a { color: var(--muted); }
.footer__copy { margin: 10px 0 0; font-size: 12px; color: var(--night-mut); }

/* ---------- player ---------- */
.player { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(980px, calc(100% - 20px)); translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 999px; background: rgb(8 17 38 / .92); backdrop-filter: blur(12px); border: 1.5px solid rgb(255 255 255 / .14); box-shadow: 0 16px 40px rgb(0 0 0 / .5), 0 0 0 5px rgb(255 92 141 / .07); transition: translate .5s var(--ease), opacity .4s, visibility 0s; }
.player.is-hidden { translate: -50% 140%; opacity: 0; visibility: hidden; transition: translate .5s var(--ease), opacity .4s, visibility 0s .5s; } /* 隠れたら Tab で入れない（JS でも inert） */
.player__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.player__btn:hover { background: rgb(255 255 255 / .1); }
.player__btn svg { width: 24px; height: 24px; }
.player__btn--main { width: 52px; height: 52px; background: var(--pink); color: var(--night); box-shadow: 0 0 0 4px rgb(255 92 141 / .25); }
.player__btn--main:hover { background: var(--pink-deep); transform: scale(1.06); }
.player__btn--main svg { width: 26px; height: 26px; }
.player.is-playing .player__btn--main { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(255 92 141 / .12); } }
.player__mid { flex: 1; min-width: 0; padding: 0 8px; }
.player__now { display: flex; gap: 10px; justify-content: space-between; margin: 0 0 6px; font-size: 13px; line-height: 1.3; }
.player__ch { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__time { flex: none; font-family: var(--f-dot); color: var(--muted); font-variant-numeric: tabular-nums; }
.player__bar { position: relative; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .14); cursor: pointer; touch-action: none; }
.player__bar::before { content: ""; position: absolute; inset: -8px 0 -14px; } /* 見た目は細いまま、当たり判定は 30px */
.player__bar:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.player__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-hi), var(--pink)); transform-origin: 0 50%; transform: scaleX(0); }
.player__knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--pink); }
.player__ticks i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--gold); border-radius: 2px; opacity: .8; }
.player__chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .25); background: none; cursor: pointer; font-family: var(--f-dot); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.player__chip:hover { border-color: var(--cyan-hi); }
.player__follow { font-family: var(--f-body); font-weight: 700; }
.player__follow svg { width: 16px; height: 16px; }
.player__follow.is-on { background: var(--cyan-hi); border-color: var(--cyan-hi); color: var(--night); }
@media (max-width: 640px) {
  :root { --player-h: 88px; }
  .player { border-radius: 22px; gap: 4px; padding: 8px 10px 8px 8px; bottom: 8px; }
  .player__btn { width: 44px; height: 44px; } /* 指で押しやすいよう 44px */
  .player__btn svg { width: 22px; height: 22px; }
  .player__btn--main { width: 46px; height: 46px; }
  .player__mid { padding: 0 4px; }
  .player__time { font-size: 12px; }
  .player__follow span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* 見えないが読み上げる */
  .player__chip { justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 7px; font-size: 12px; }
  .player__knob { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
}
@media (max-width: 420px) { .player__ch { display: none; } .player__now { justify-content: flex-end; } } /* ±15秒を残すため、狭い画面では章名を省く */
/* 狭い画面：時刻を上の段に上げ、シークバーは下の段に横いっぱい（つまみを指で動かしやすく） */
@media (max-width: 480px) {
  :root { --player-h: 108px; }
  .player:not(.is-mini) { flex-wrap: wrap; gap: 0 2px; padding: 6px 12px 6px 6px; }
  .player:not(.is-mini) .player__mid { display: contents; }
  .player__now { flex: 1; min-width: 0; margin: 0; padding: 0 4px; }
  .player__bar { order: 1; flex: 1 0 100%; margin: 16px 10px 14px; }
  .player__bar::before { inset: -16px 0 -20px; } /* 当たり判定 44px（上の段のボタンにはかからない） */
}
@media (max-width: 359px) { .player__time { font-size: 0; } .player__time [data-cur] { font-size: 12px; } } /* 幅 320px：全体の長さを省いて今の時刻だけ */
/* まだ再生していない間は、再生ボタンだけの小さいプレーヤー（本文や図にかぶらないように。episode.js が is-mini を付ける） */
.player__mini { display: none; }
.player.is-mini { left: auto; right: max(12px, env(safe-area-inset-right, 0px)); width: auto; translate: 0 0; padding: 6px 18px 6px 6px; gap: 10px; border-radius: 999px; }
.player.is-mini.is-hidden { translate: 0 140%; }
.player.is-mini > :not(.player__btn--main, .player__mini, audio) { display: none; }
.player.is-mini .player__mini { display: inline; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
/* 少しスクロールしたら（ヒーローが画面から出たら）、丸い再生ボタンだけに縮める（episode.js が is-round を付ける。読み上げ名はボタンの「再生」） */
.player.is-mini.is-round { padding: 6px; gap: 0; }
.player.is-mini.is-round .player__mini { display: none; }
.player__err { position: absolute; left: 16px; right: 16px; bottom: calc(100% + 8px); margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--paper); color: var(--err); font-size: 13.5px; font-weight: 700; line-height: 1.6; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }

/* ふきだしなどが出てくる動き（episode.js が rv を付け、画面に入ったら is-in） */
.rv { transition: opacity .5s ease var(--d, 0s), translate .55s var(--ease) var(--d, 0s), scale .55s var(--ease) var(--d, 0s); }
.rv:not(.is-in) { opacity: 0; translate: 0 24px; scale: .97; }

/* ---------- motion prefs ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 写真クレジット・ギャラリー・動画（2026-09 実写版） ---------- */
.fig__cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fig__credit { font-size: 11.5px; line-height: 1.6; color: rgb(179 192 220 / .72); }
.fig__credit span + span::before { content: "／"; margin: 0 .3em; }
.fig__credit a, .ehero__credit a, .cr-list a { color: inherit; text-decoration: underline; text-decoration-color: rgb(179 192 220 / .4); text-underline-offset: 2px; }
.fig__credit a:hover, .ehero__credit a:hover, .cr-list a:hover { color: var(--cyan-hi); }
.fig--contain .fig__frame { background: radial-gradient(120% 90% at 50% 40%, var(--night-3), var(--night)); }
.fig--contain .fig__frame img { max-height: 72vh; object-fit: contain; }

.gal { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.gal__cell { display: flex; flex-direction: column; gap: 8px; }
.gal .fig__frame { aspect-ratio: 3 / 4; }
.gal .fig__frame img { height: 100%; object-fit: cover; }
.gal__label { text-align: center; font-family: var(--f-dot); font-size: 13px; letter-spacing: .06em; color: var(--gold); }
@media (max-width: 560px) { .gal { gap: 6px; } .gal__label { font-size: 11px; } }

.yt { aspect-ratio: 16 / 9; }
.vid { max-width: 860px; padding-bottom: clamp(40px, 6vw, 80px); }
.vid .fig { margin: 24px 0 0; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent, rgb(11 22 48 / .55)); pointer-events: none; transition: opacity .3s; }
.yt.is-on::after { opacity: 0; }
.yt__play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 18px; border: 0; border-radius: 999px; background: var(--pink); color: var(--night); font: 700 16px/1 var(--f-display); cursor: pointer; box-shadow: 0 0 0 0 rgb(255 92 141 / .6), 0 12px 30px rgb(0 0 0 / .45); animation: yt-pulse 2.2s infinite; transition: transform .3s var(--ease), background .2s; }
.yt__play svg { width: 26px; height: 26px; }
.yt__play:hover { transform: scale(1.07); background: var(--pink-deep); }
@keyframes yt-pulse { 70% { box-shadow: 0 0 0 22px rgb(255 92 141 / 0), 0 12px 30px rgb(0 0 0 / .45); } 100% { box-shadow: 0 0 0 0 rgb(255 92 141 / 0), 0 12px 30px rgb(0 0 0 / .45); } }
@media (prefers-reduced-motion: reduce) { .yt__play { animation: none; } }

.ehero__credit { position: absolute; right: var(--gutter); bottom: 64px; z-index: 2; margin: 0; max-width: min(520px, 70vw); text-align: right; font-size: 11px; line-height: 1.5; color: rgb(246 241 231 / .6); }

/* つづく */
.next-ep { position: relative; margin-top: clamp(48px, 7vw, 90px); padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: linear-gradient(150deg, #fff7e8, var(--paper)); color: var(--paper-ink); box-shadow: 0 24px 60px rgb(0 0 0 / .45); overflow: hidden; max-width: 900px; }
.next-ep::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(255 92 141 / .07) 0 22px, transparent 22px 44px); pointer-events: none; }
.next-ep > * { position: relative; }
.next-ep .eyebrow { color: var(--pink-ink); }
.next-ep__stamp { position: absolute; top: 22px; right: 22px; margin: 0; padding: 8px 12px; border: 3px solid var(--pink-deep); border-radius: 10px; color: var(--pink-deep); font: 900 13px/1.25 var(--f-dot); letter-spacing: .12em; text-align: center; transform: rotate(8deg); opacity: .85; }
.next-ep__lead { margin: 10px 0 6px; padding-right: 110px; color: var(--paper-mut); font-weight: 700; }
.next-ep__title { margin: 0 0 18px; font: 900 clamp(22px, 3.2vw, 32px)/1.45 var(--f-display); }
.next-ep__title small { display: block; font-size: .7em; margin-top: 4px; }
.next-ep__title span { display: block; font: 400 15px/1.4 var(--f-dot); color: var(--pink-ink); letter-spacing: .08em; }
.next-ep__note { margin: -8px 0 22px; font-size: 13px; color: var(--paper-mut); line-height: 1.7; }
.next-ep__qs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.next-ep__qs li { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 rgb(42 34 51 / .08); line-height: 1.7; }
.next-ep__qs li::before { content: "?"; position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan-ink); color: #fff; font: 900 13px/20px var(--f-display); text-align: center; }
.next-ep__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.next-ep__foot .btn { margin-left: auto; }
.next-ep .cast { color: var(--paper-ink); background: rgb(42 34 51 / .06); }
.next-ep__soon { margin: 0 0 0 auto; padding: 8px 16px; border-radius: 999px; background: rgb(42 34 51 / .08); font-weight: 700; color: var(--paper-mut); }
@media (max-width: 560px) { .next-ep__lead { padding-right: 0; margin-top: 64px; } .next-ep__foot .btn { margin-left: 0; width: 100%; justify-content: center; } }

/* クレジット一覧 */
.credits { margin-top: 40px; border-top: 1px dashed rgb(255 255 255 / .18); padding-top: 18px; color: var(--muted); font-size: 13px; }
.credits summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.credits p { margin: 10px 0; line-height: 1.8; }
.cr-list { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; line-height: 1.6; }
.cr__alt { display: inline-block; margin-right: .6em; color: var(--ink); }

/* オーマイゴッド粒子 vs ボール の比較表 */
.omg-tb { display: grid; gap: 8px; margin-top: 14px; }
.omg-tr { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .05); font-size: 15px; line-height: 1.5; }
.omg-tr > span:first-child { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.omg-tr > span:not(:first-child) { font-family: var(--f-dot); font-size: 17px; }
.omg-tr small { font-size: 12px; color: var(--muted); }
.omg-c { word-break: break-all; letter-spacing: -.02em; }
.omg-tr em { grid-column: 2 / -1; font-style: normal; font-size: 13px; color: var(--gold); }
.omg-th { background: none; padding-block: 0; }
.omg-th > span { font-family: var(--f-display) !important; font-weight: 900; font-size: 15px !important; }
.omg-eq { background: rgb(255 92 141 / .14); box-shadow: inset 0 0 0 2px rgb(255 92 141 / .6); }
.omg-eq em { color: var(--pink); font-size: 15px; font-weight: 900; }
@media (max-width: 560px) {
  .omg-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .omg-tr > span:first-child, .omg-tr em { grid-column: 1 / -1; }
  .omg-th > span:first-child { display: none; }
}
.wt-row:focus-visible { outline: none; }
.wt-row:focus-visible [data-bg] { stroke: var(--gold); fill-opacity: .1; }
