/* キャラクター図鑑 デザインサンプル 第2案「漆黒の展示室」（非公開の試作）
   黒基調。カードは“暗がりに浮かぶ展示物”として見せる。
   ※ カード画像（.card-img / .stage img）には filter・角丸・トリミング・重ね描きを一切かけない。
      演出（グロー・オフセット枠・朱の円盤）はすべて画像の外側（額縁・背景）にだけ置く。 */

:root {
  --bg: #08080A;          /* 漆黒 */
  --bg-2: #101013;        /* 墨 */
  --panel: #17171B;
  --line: #2D2D33;        /* 罫線 */
  --text: #ECE7DD;        /* 本文（エクリュ） */
  --text-sub: #A8A297;    /* 補助 */
  --gold: #D8B467;        /* 差し色：金 */
  --gold-dim: #6F5C33;
  --red: #FF5A3C;         /* 差し色：朱（文字・線） */
  --red-fill: #D63B22;    /* 朱（塗り。白文字 4.6:1） */
  --red-dark: #B02D17;

  /* 作品アクセント（黒地で映える明度に調整） */
  --sinbad: #46C2CE;
  --jekyll: #B393D6;
  --joan:   #E0B65A;

  --f-head: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-num:  "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  --frame-pad: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #F1D390; }

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

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-num);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- ワードマーク（朱の印＋白抜き。黒地用に再設計） ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
}
.wordmark:hover { color: #fff; }
.wordmark__seal {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--red-fill);
  color: #fff;
  font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1;
  transform: rotate(-4deg);
}
.wordmark__text {
  font-family: var(--f-head); font-weight: 800;
  font-size: 19px; letter-spacing: .2em; white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header { position: relative; z-index: 5; padding: 18px 0; }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-nav { display: flex; gap: 26px; font-size: 14px; }
.site-nav a {
  color: var(--text); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--red); }

/* ---------- 作品アクセント ---------- */
.is-sinbad { --accent: var(--sinbad); --glow: rgba(70,194,206,.22); }
.is-jekyll { --accent: var(--jekyll); --glow: rgba(179,147,214,.22); }
.is-joan   { --accent: var(--joan);   --glow: rgba(224,182,90,.22); }

/* ---------- ラベル（全カード共通：No. ／ 話数 ／ 画風名） ---------- */
.spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .8em;
  row-gap: 2px;
  align-items: baseline;
  padding: 8px 12px 8px 12px;
  background: var(--panel);
  border-left: 3px solid var(--accent, var(--gold));
  font-size: 12px;
  line-height: 1.5;
}
.spec__no {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--accent, var(--gold));
}
.spec__ep { font-weight: 700; color: var(--text); }
.spec__style { grid-column: 1 / -1; color: var(--text-sub); }

/* ---------- 額装（黒い余白＋細い金罫＋外側のオフセット枠。画像には触れない） ---------- */
.frame {
  position: relative;           /* ::after(z-index:-1) は祖先の重なり文脈に入り、額縁の背後に回る */
  background: #000;
  border: 1px solid var(--gold-dim);
  padding: var(--frame-pad);
  box-shadow: 0 0 90px -12px var(--glow, rgba(216,180,103,.22));
  transition: border-color .2s ease;
}
.frame::after {                 /* ずらした“影の枠”：非対称感を出す */
  content: "";
  position: absolute; inset: 0;
  transform: translate(12px, 12px);
  border: 1px solid var(--accent, var(--gold));
  opacity: .55;
  z-index: -1;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.frame > .spec { margin-bottom: var(--frame-pad); }
/* オフセット枠が区画の背景色（.section--deep など）に隠れないよう、重なり文脈を閉じる */
.hero__demo, .compare__demo, .viewer__col, .work { isolation: isolate; }

/* カード画像：加工なし。2:3の枠に等倍で収める */
.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
}

/* ---------- 画風トグル（2択：通常版／ちび版） ---------- */
.toggle {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--accent, var(--gold));
  background: #000;
}
.toggle__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.toggle__btn + .toggle__btn { border-left: 1px solid var(--accent, var(--gold)); }
.toggle__main { font-family: var(--f-head); font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.toggle__sub { font-size: 11px; color: var(--text-sub); }
.toggle__btn[aria-pressed="true"] { background: var(--accent, var(--gold)); color: #0A0A0B; }
.toggle__btn[aria-pressed="true"] .toggle__sub { color: #26231B; }
.toggle__btn:not([aria-pressed="true"]):hover { background: var(--panel); }

/* ---------- 切替ロジック用（JS が data-mode を付ける） ---------- */
[data-show] { transition: opacity .2s ease; }
[data-switcher][data-mode="normal"] [data-show="chibi"],
[data-switcher][data-mode="chibi"] [data-show="normal"] { opacity: 0; pointer-events: none; }
[data-switcher][data-mode="normal"] .only-chibi,
[data-switcher][data-mode="chibi"] .only-normal { display: none; }

/* 同じ位置に重ねてクロスフェード */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); }
.pair > figure { grid-area: 1 / 1; margin: 0; }
.pair[data-tap] { cursor: pointer; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 0 20px;
  background: var(--red-fill); color: #fff;
  border: 1px solid var(--red-fill);
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn::after { content: "→"; font-family: var(--f-num); font-size: 18px; transition: transform .2s ease; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:hover::after { transform: translateX(4px); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 20px 0 72px; overflow-x: clip; }
.hero__in { display: grid; gap: 40px; align-items: center; }

.hero__text { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 18px; align-items: end; }
.hero__text .eyebrow {
  margin: 0; align-self: start;
  writing-mode: vertical-rl;
  font-size: 14px; letter-spacing: .3em;
}
.hero__title { margin: 0; font-family: var(--f-head); font-weight: 800; line-height: 1; }
.hero__lead {
  display: block;
  writing-mode: vertical-rl;
  font-size: clamp(54px, 15vw, 128px);
  letter-spacing: .06em;
  color: #fff;
}
.hero__info { padding-bottom: 8px; }
.hero__sub {
  margin: 0 0 18px; padding-left: 14px;
  border-left: 3px solid var(--red);
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(17px, 2.6vw, 22px); line-height: 1.6; letter-spacing: .04em;
}
.hero__copy { margin: 0; color: var(--text-sub); max-width: 30em; font-size: 15px; }

.hero__demo { position: relative; isolation: isolate; width: 100%; max-width: 420px; margin-inline: auto; padding-right: 12px; }
.hero__demo::before {            /* 朱の円盤：カードの背後（画像には触れない） */
  content: "";
  position: absolute; z-index: -1;
  width: 96%; aspect-ratio: 1; border-radius: 50%;
  right: -26%; top: 64px;
  background: radial-gradient(circle at 34% 28%, #F4573A 0%, var(--red-fill) 48%, #962210 100%);
}
.hero__demo > .toggle { margin-bottom: 18px; }

/* ---------- 流れる題字（作品名のみ。装飾） ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex; width: max-content; align-items: center;
  animation: marquee 48s linear infinite;
}
.marquee__item {
  flex: none; padding-inline: .5em;
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(40px, 7vw, 84px); line-height: 1.2; letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c);
  white-space: nowrap;
}
.marquee__item--fill { color: var(--c); -webkit-text-stroke: 0; }
.marquee__dot { flex: none; color: var(--red); font-size: 22px; padding-inline: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section__title {
  margin: 0 0 40px; padding-top: 18px;
  position: relative;
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(36px, 7vw, 76px); line-height: 1.2; letter-spacing: .05em;
  color: #fff;
}
.section__title::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 5px; background: var(--red-fill);
}
.section--deep { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- 紙芝居動画 ---------- */
.video__lead { margin: 0 0 28px; color: var(--text-sub); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--gold-dim);
}
.video-frame iframe {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  border: 0;
}

/* ---------- 作品一覧（階段状にずらした非対称配置） ---------- */
.works { display: grid; gap: 64px; padding: 0; margin: 0; list-style: none; }
.work { position: relative; }
.work__big {
  display: block;
  margin: 0 0 -.2em 4px;
  font-family: var(--f-num); font-weight: 800;
  font-size: clamp(84px, 11vw, 132px); line-height: .85; letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  user-select: none;
}
.work__thumb { position: relative; z-index: 1; display: block; margin-right: 12px; }
.work__thumb:hover .frame { border-color: var(--accent); }
.work__thumb:hover .frame::after { transform: translate(6px, 6px); opacity: 1; }
.work__title { margin: 30px 0 2px; font-family: var(--f-head); font-weight: 800; font-size: 24px; line-height: 1.4; color: #fff; }
.work__meta { margin: 0 0 14px; color: var(--text-sub); font-size: 14px; }
.work__no { font-family: var(--f-num); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--accent); margin-right: .7em; }
.work__styles { margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; }
.work__styles li { display: flex; gap: .8em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.work__styles b { flex: none; width: 4.2em; font-weight: 700; color: var(--accent); }
.work__styles span { color: var(--text-sub); }
.work .btn { width: calc(100% - 12px); }

/* ---------- 見比べ紹介 ---------- */
.compare { display: grid; gap: 40px; align-items: center; }
.compare__text p { margin: 0 0 1em; max-width: 32em; color: var(--text); }
.compare__text .section__title { margin-bottom: 24px; }
.compare__demo { width: 100%; max-width: 420px; margin-inline: auto; padding-right: 12px; }
.compare__demo > .toggle { margin-bottom: 18px; }

/* ---------- このサイトについて ---------- */
.about { display: grid; gap: 8px 64px; align-items: start; }
.about__body p { margin: 0 0 1em; max-width: 36em; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--gold-dim); padding: 40px 0 48px; font-size: 14px; color: var(--text-sub); }
.site-footer p { margin: 0 0 8px; }
.site-footer__pin { margin-bottom: 16px !important; font-size: 15px; }
.site-footer__copy { margin-top: 16px !important; font-family: var(--f-num); font-size: 14px; letter-spacing: .08em; }

/* ---------- トースト（ダミーリンク用） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: var(--text); color: #0A0A0B;
  border-left: 4px solid var(--red-fill);
  font-size: 13px; font-weight: 700; line-height: 1.5;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.toast.is-on { opacity: 1; }

/* =========================================================
   ビューア
   ========================================================= */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar__ep { color: var(--text-sub); font-family: var(--f-head); font-weight: 700; letter-spacing: .06em; }

.viewer__main { display: grid; padding: 24px 16px 56px; }

/* カード列：PCは高さをビューポートに収める（枠の余白ぶん +2*pad+2px） */
.viewer__col {
  --chrome: 270px;
  width: min(100%, 520px, max(260px, calc((100svh - var(--chrome)) * 2 / 3 + 2 * var(--frame-pad) + 2px)));
  margin-inline: auto;
  padding-right: 12px;
}
.viewer__col > .spec { margin-bottom: 12px; }
.inline-toggle { margin-bottom: 16px; }

.stage {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0; margin: 0;
  border: 0; background: none;
  font: inherit; color: inherit;
  cursor: pointer;
}
.stage img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; }

/* 巨大な話数数字（装飾。PC幅のみ） */
.epnum { display: none; }

/* フック文：モバイルは横書き、PCは縦書き */
.viewer__hook {
  margin: 22px 4px 0; text-align: center;
  font-family: var(--f-head); font-weight: 700;
  font-size: 18px; line-height: 1.8; letter-spacing: .06em;
  color: var(--text);
}
.viewer__hook span { display: inline; }

.viewer__wide { width: min(100%, 600px); margin: 36px auto 0; }

/* 前話／次話 */
.pager { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; }
.pager a {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 62px; padding: 8px 16px;
  text-decoration: none; line-height: 1.4;
}
.pager__prev { border: 1px solid var(--gold-dim); color: var(--text); }
.pager__prev:hover { border-color: var(--gold); color: #fff; background: var(--panel); }
.pager__next { background: var(--red-fill); border: 1px solid var(--red-fill); color: #fff; }
.pager__next:hover { background: var(--red-dark); color: #fff; }
.pager__dir { font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.pager__title { font-size: 12px; margin-top: 2px; }

/* 話数ストリップ */
.strip { margin-top: 36px; }
.strip__title {
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-head); font-weight: 800; font-size: 15px; letter-spacing: .2em;
  color: var(--text-sub);
}
.strip__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.strip__list a, .strip__list span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  font-family: var(--f-num); font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--text); text-decoration: none;
}
.strip__list a:hover { border-color: var(--accent); color: var(--accent); }
.strip__list span[aria-current] { background: var(--accent); border-color: var(--accent); color: #0A0A0B; }

/* モバイル用の下部固定バー */
.bar { display: none; }

@media (max-width: 720px) {
  .wordmark__text { font-size: 16px; letter-spacing: .14em; }
  .wordmark__seal { width: 30px; height: 30px; font-size: 18px; }
  .site-nav { gap: 18px; font-size: 13px; }

  .viewer__col { --chrome: 264px; }
  .inline-toggle { display: none; }
  body.viewer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .strip__list { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }

  .bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #000;
    border-top: 1px solid var(--gold-dim);
  }
  .bar .toggle__btn { min-height: 48px; }
  .bar__link {
    display: flex; align-items: center; justify-content: center;
    min-width: 60px; min-height: 48px; padding: 0 12px;
    font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
  .bar__prev { border: 1px solid var(--gold-dim); color: var(--text); }
  .bar__next { background: var(--red-fill); border: 1px solid var(--red-fill); color: #fff; }
  .bar__next:hover { background: var(--red-dark); color: #fff; }
  .toast { bottom: 96px; }
}

/* ---------- レイアウト（PC） ---------- */
@media (min-width: 760px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 36px; align-items: start; }
  .work:nth-child(2n) { margin-top: 80px; }
}
@media (min-width: 1000px) {
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work:nth-child(2n) { margin-top: 0; }
  .work:nth-child(3n+2) { margin-top: 72px; }
  .work:nth-child(3n) { margin-top: 144px; }
}
@media (max-width: 759px) {
  .works { max-width: 420px; margin-inline: auto; }
}

@media (min-width: 860px) {
  .hero { padding: 24px 0 96px; }
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .hero__text { align-self: stretch; }
  .hero__demo { margin-inline: 0 auto; max-width: 440px; }
  .compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .section { padding: 104px 0; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about .section__title { margin-bottom: 0; }
  .about__body { padding-top: 62px; }
}

/* ビューア PC：左に巨大な話数数字／中央にカード／右に縦書きのフック文 */
@media (min-width: 1000px) {
  .viewer__main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 56px;
    padding-top: 36px;
  }
  .epnum {
    display: block; grid-column: 1; grid-row: 1;
    justify-self: end; align-self: start;
    margin-top: -.12em;
    font-family: var(--f-num); font-weight: 800;
    font-size: clamp(200px, 24vw, 380px); line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    user-select: none;
  }
  .viewer__col { grid-column: 2; grid-row: 1; }
  .viewer__hook {
    grid-column: 3; grid-row: 1;
    justify-self: start; align-self: start;
    margin: 72px 0 0;
    writing-mode: vertical-rl;
    text-align: start;
    font-size: clamp(22px, 2.3vw, 32px); line-height: 1.6; letter-spacing: .16em;
    max-height: min(620px, 72svh);
    word-break: auto-phrase;
    padding-right: 20px;
    border-right: 3px solid var(--red);
  }
  .viewer__wide { grid-column: 1 / -1; justify-self: center; }
}

/* =========================================================
   本制作での拡張（実データ・静的ページ向け）
   ========================================================= */
.wordmark__en { font-family: var(--f-num); font-style: italic; font-weight: 500; font-size: 12px; letter-spacing: .24em; color: var(--text-sub); margin-left: 2px; }
.wordmark__text small { display: block; }
.wordmark { text-align: left; }

/* リンク型の版トグル */
a.toggle__btn { text-decoration: none; }
a.toggle__btn:hover { color: var(--text); }
.toggle__btn[aria-current="true"] { background: var(--accent, var(--gold)); color: #0A0A0B; }
.toggle__btn[aria-current="true"] .toggle__sub { color: #26231B; }
a.toggle__btn[aria-current="true"]:hover { color: #0A0A0B; }

/* ビューアのステージ：リンク（JS無しでも原寸PNGへ）。ライトボックスで開く */
a.stage { text-decoration: none; cursor: zoom-in; }
.stage picture { grid-area: 1 / 1; display: block; transition: opacity .2s ease; }
.stage picture img { width: 100%; height: 100%; }
.stage .layer-alt { opacity: 0; pointer-events: none; }
.stage.is-swapping .layer-alt { opacity: 1; }
.stage.is-swapping .layer-main { opacity: 0; }

/* 次話ボタンのフック文 */
.pager__hook { margin-top: 4px; font-size: 12px; line-height: 1.5; opacity: .92; }
.pager__next .pager__title { font-weight: 700; font-size: 13px; }

/* カード文面（details） */
.textbox { margin-top: 36px; border: 1px solid var(--line); background: var(--bg-2); }
.textbox summary { cursor: pointer; padding: 14px 18px; font-family: var(--f-head); font-weight: 800; letter-spacing: .12em; color: var(--text); }
.textbox summary:hover { color: var(--gold); }
.textbox__in { padding: 4px 20px 22px; border-top: 1px solid var(--line); }
.textbox__title { margin: 16px 0 2px; font-family: var(--f-head); font-weight: 800; font-size: 22px; color: #fff; }
.textbox__ep { margin: 0 0 12px; color: var(--accent, var(--gold)); font-size: 14px; font-weight: 700; }
.textbox__in p { margin: 0 0 .8em; }
.textbox__hook { color: var(--text-sub); border-left: 3px solid var(--red); padding-left: 12px; margin-top: 14px !important; font-family: var(--f-head); font-weight: 700; }

/* ライトボックス（原寸PNG） */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox__btn { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-out; }
.lightbox img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: fixed; top: 12px; right: 12px; z-index: 2; min-width: 44px; min-height: 44px; border: 1px solid var(--gold-dim); background: #000; color: var(--text); font: inherit; font-size: 20px; cursor: pointer; }

/* 作品ページ */
.workhead { padding: 24px 0 8px; display: grid; gap: 28px; align-items: center; }
.workhead__thumb { width: 100%; max-width: 300px; margin-inline: auto; padding-right: 12px; isolation: isolate; }
.workhead__big { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: clamp(72px, 12vw, 120px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.workhead__title { margin: 6px 0 4px; font-family: var(--f-head); font-weight: 800; font-size: clamp(30px, 6vw, 56px); line-height: 1.25; color: #fff; letter-spacing: .04em; }
.workhead__meta { margin: 0 0 16px; color: var(--text-sub); }
.workhead__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--line { background: transparent; border-color: var(--accent); color: var(--text); }
.btn--line:hover { background: var(--panel); color: #fff; }
@media (min-width: 860px) { .workhead { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } .workhead__thumb { margin-inline: 0; } }

.synopsis { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ep { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ep__thumb { display: block; padding: 4px; border: 1px solid var(--gold-dim); background: #000; align-self: start; }
.ep__thumb:hover { border-color: var(--accent); }
.ep__no { margin: 0; font-size: 13px; color: var(--text-sub); }
.ep__no b { font-family: var(--f-num); font-size: 18px; color: var(--accent); margin-right: .6em; }
.ep__title { margin: 2px 0 6px; font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1.4; color: #fff; }
.ep__hook { margin: 0 0 10px; color: var(--text); font-size: 15px; }
.ep__links { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--accent); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.ep__links a:hover { background: var(--accent); color: #0A0A0B; }
@media (min-width: 760px) { .ep { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; } }

.hero__open { margin-top: 18px; }
.site-footer__note { font-size: 12px; }
.notfound { padding: 96px 0; text-align: center; }

/* 動きを減らす設定ではフェード・流れる題字を無効にする */
@media (prefers-reduced-motion: reduce) {
  .stage picture { transition: none; }
  [data-show], .toast, .frame, .frame::after, .btn::after { transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
