/* 紹介の頁（/about/）だけの見た目。2026-11-04、デザインの作業場の段2（会話U3）。見本B3（docs/design/mock/b3-appeal.html）から移した。
   共通の物（色・字体・見出し・区切り・頁の下の欄）は /site/site.css。値の元は docs/design/tokens.md */

/* 紹介の頁は、図を大きく見せるので幅を広く取る */
main.page { max-width: 74rem; }

/* 章の見出し：「b)」と、題の下に同じ長さの ====（==== は site.css の h2） */
.sec-head { margin: 7rem 0 2.4rem; }
.sec-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.sec-head p { margin: 0.8rem 0 0; color: var(--ink-2); font-size: 15px; }

/* 図版 */
.plate { margin: 0; }
.plate video, .plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--map); border: 1px solid var(--frame); }
.plate figcaption { margin-top: 0.4rem; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.plate figcaption b { color: var(--shu); font-family: var(--f-mono); font-weight: 400; margin-right: 0.6em; }

/* ===== 最初の画面：全面の動画を暗くして、ロゴとキャッチコピーを重ねる ===== */
.cover { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #d9cfb9; background: var(--map); overflow: hidden; }
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 動画は濃く暗くする（会話U2のR1。ユーザーの答え「(a)」）。説明の文の後ろはさらに沈める */
.cover-shade { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.84); }
.cover-lead, .cover-play p { text-shadow: 0 0 6px #080a0e, 0 0 12px #080a0e; }
.cover > :not(.cover-video):not(.cover-shade) { position: relative; }
.cover a:focus-visible, .cover button:focus-visible { outline-color: #e0674f; }
/* 最初の画面は昼でも夜でも暗いので、昼と夜の切り替えも暗い地の色で */
.running .theme-switch button { color: #b9ae98; }
.running .theme-switch button[aria-pressed="true"] { color: #f4ecda; }
.running .theme-switch button::before { color: #e0674f; }
.running .theme-switch button:hover { color: #fff; }
.running { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; width: 100%; padding-top: 14px; font-size: 14px; color: #b9ae98; }
.running nav { display: flex; flex-wrap: wrap; gap: 0 1.4em; }
.running nav a { color: #d9cfb9; text-decoration: none; }
.running nav a:hover, .running nav a:focus-visible { color: #fff; text-decoration: underline; }
.cover-body { flex: 1; width: 100%; display: grid; grid-template-columns: auto auto; grid-template-areas: '. catch' 'logo catch' 'lead catch' 'play catch' 'share catch' '. catch'; grid-template-rows: 1fr auto auto auto auto 1fr; justify-content: center; align-content: center; column-gap: clamp(2.5rem, 6vw, 6rem); padding-top: 2rem; padding-bottom: 2rem; }
.cover-main { display: contents; }
.cover-main h1 { grid-area: logo; margin: 0; line-height: 0; }
.cover-logo { display: block; width: min(636px, 52vw); height: auto; image-rendering: pixelated; }
.cover-lead { grid-area: lead; margin: 2rem 0 0; color: #d9cfb9; font-size: 16px; line-height: 2; word-break: auto-phrase; }
.cover-play { grid-area: play; display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.cover-play p { margin: 0; font-size: 14px; color: #b9ae98; line-height: 1.8; }
.cover-play .spec { font-family: var(--f-mono); font-size: 13px; color: #b9ae98; }
/* 共有（/site/share.js が描く。会話U9）。最初の画面は昼でも夜でも暗いので、暗い地の色で */
.cover-share { grid-area: share; margin: 1.4rem 0 0; }
.cover .share-row .lead { color: #b9ae98; }
.cover .share-row a, .cover .share-row button { color: #f4ecda; }
.cover .share-row a::before, .cover .share-row a::after, .cover .share-row button::before, .cover .share-row button::after, .cover .share-row .share-done { color: #e0674f; }
.cover .share-row a:hover, .cover .share-row button:hover, .cover .share-row a:focus-visible, .cover .share-row button:focus-visible { color: #fff; }
.cover-catch { grid-area: catch; align-self: center; margin: 0; writing-mode: vertical-rl; font-family: var(--f-head); font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.6; letter-spacing: 0.12em; color: #f4ecda; }
/* 頁の中の目次（最初の画面のいちばん下。Angbandのメニューの形） */
.cover-toc { padding-bottom: 1.4rem; }
.cover-toc ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.8rem; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cover-toc a { color: #d9cfb9; text-decoration: none; }
.cover-toc a .mono { color: #b9ae98; margin-right: 0.4em; }
.cover-toc a:hover, .cover-toc a:focus-visible { color: #fff; text-decoration: underline; }
.cover-toc a:hover .mono, .cover-toc a:focus-visible .mono { color: #e0674f; }

/* 「今すぐプレイ」のボタン（会話U9で「いま遊ぶ」から改名）（会話U2。ユーザーの指示）：上下だけ ==== の枠。色は封蝋。1行目に日本語、2行目に小さく英語 */
.seal { display: inline-flex; flex-direction: column; flex: none; color: var(--ink-2); font-family: var(--f-mono); text-decoration: none; }
.seal::before, .seal::after { content: var(--dbl); display: block; width: 0; min-width: 100%; overflow: hidden; white-space: nowrap; font-size: 14px; line-height: 1.1; }
.seal-face { display: block; margin: 0.35rem 0; padding: 0.6rem 1.4rem 0.55rem; background: var(--wax); color: #f6ead6; text-align: center; font-family: var(--f-head); }
.seal-face .ja { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.4; letter-spacing: 0.15em; text-indent: 0.15em; white-space: nowrap; }
.seal-face .en { display: block; margin-top: 0.15rem; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.3; letter-spacing: 0.14em; color: #e3c9b8; white-space: nowrap; }
.seal:hover .seal-face, .seal:focus-visible .seal-face { background: var(--wax-deep); }
.seal:hover, .seal:focus-visible { color: var(--wax); }
.cover .seal { color: #b9ae98; }
.cover .seal:hover, .cover .seal:focus-visible { color: #e0674f; }
/* 狭い画面では、最初の画面に紹介動画のボタンも出す（ユーザーの答え）。封蝋のボタンは、スマホ・タブレットでも遊べるので全部の幅で出す */
.cover-pv { display: none; align-items: center; gap: 0.6em; padding: 0.7em 1.2em; border: 1px solid #d9cfb9; background: rgba(8, 10, 14, 0.6); color: #f4ecda; font-family: var(--f-head); font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.cover-pv .mono { color: #e0674f; }
.cover-pv:hover, .cover-pv:focus-visible { background: var(--shu); border-color: var(--shu); color: #fff; }
.cover-pv:hover .mono, .cover-pv:focus-visible .mono { color: #fff; }

/* ===== a) 紹介の動画 ===== */
.pv-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.pv-row .pv { margin: 0; }
.pv-row p { color: var(--ink-2); font-size: 15px; }
.small-note { font-size: 13px; color: var(--faint); }

/* ===== b) 全ては文字と記号 ===== */
.ascii-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.ascii-intro .big { font-family: var(--f-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.6; margin-bottom: 1rem; }
.legend-plate { background: var(--map); border: 1px solid var(--frame); padding: 1.4rem 1.6rem; font-family: var(--f-mono); font-size: clamp(14px, 1.5vw, 19px); line-height: 1.35; overflow-x: auto; color: var(--map-text); }
.legend-plate .gp { display: block; white-space: pre; }
.legend-plate .lg { color: var(--map-text-2); }
.legend-plate .w { color: #8a94a3; }
.legend-plate .f { color: #4a5260; }
.legend-plate .me { color: #ffffff; font-weight: 700; }
.ascii-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3rem; margin-top: 3.4rem; }
.ascii-notes h3 { margin: 0 0 0.6rem; font-size: 1.3rem; }

/* ===== c) 五つの柱（横に送る） ===== */
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.6rem; align-items: center; padding: 0 2px; }
.slide .count { display: block; font-family: var(--f-mono); font-size: 14px; color: var(--faint); margin-bottom: 0.6rem; }
.slide .count b { color: var(--shu); font-weight: 400; }
.slide h3 { margin: 0 0 0.3rem; font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 800; line-height: 1.45; }
.slide h3.one-line { white-space: nowrap; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.slide .sub { margin: 0 0 1.2rem; color: var(--shu); font-family: var(--f-head); font-size: 1.05rem; font-weight: 600; }
.stage { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 3.4rem; gap: 1.6rem; align-items: stretch; }
.side { appearance: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--frame-soft); background: transparent; color: var(--ink); font-family: var(--f-mono); cursor: pointer; padding: 0; }
.side .arr { font-size: 2.2rem; line-height: 1; }
.side:hover { background: var(--ink); color: var(--paper); }
.dots { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; justify-content: center; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.dots button { appearance: none; border: 0; background: none; cursor: pointer; padding: 0.1em 0.2em; white-space: nowrap; color: var(--faint); font-family: var(--f-body); font-size: 14px; }
.dots button .mk { font-family: var(--f-mono); margin-right: 0.4em; }
.dots button[aria-current="true"] { color: var(--ink); }
.dots button[aria-current="true"] .mk { color: var(--shu); }
.dots button:hover { color: var(--shu); }

/* ===== d) 混沌の祭壇（2026-11-04、会話U5。ユーザーの指示「五つの柱と物語の間に」） ===== */
.kinds { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.kinds li { padding-left: 1.4em; text-indent: -1.4em; }
.kinds li::before { content: '- '; font-family: var(--f-mono); color: var(--shu); }
.kinds b { margin-right: 0.8em; color: var(--ink); }
.altar-rules { max-width: 46rem; margin-top: 3rem; }

/* ===== e) 物語 ===== */
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; margin-bottom: 5rem; }
.spread.rev .plate { order: 2; }
.spread h3 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.6; }
.spread .note { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.spread .note b { color: var(--shu); font-family: var(--f-mono); font-weight: 400; margin-right: 0.4em; }
.cast-label { margin: 0 0 1rem; font-family: var(--f-mono); font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--faint); }
.cast-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3rem; margin-bottom: 3rem; }
.cast-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.4rem; margin-bottom: 2.6rem; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.2rem; align-items: start; }
.tile { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; background: var(--map); outline: 1px solid var(--ring); outline-offset: -1px; font-family: var(--f-mono); font-size: 2.6rem; line-height: 1; }
.cast-side .tile { width: 3.2rem; height: 3.2rem; font-size: 1.8rem; }
.person h4 { margin: 0; font-family: var(--f-head); font-size: 1.35rem; font-weight: 800; line-height: 1.5; }
.cast-side .person h4 { font-size: 1.1rem; }
.person .role { margin-left: 0.6em; font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--ink-2); }
.person p { margin: 0.4rem 0 0; font-size: 15px; line-height: 1.85; }
.cast-side .person p { font-size: 14px; }
.cast-minor { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 3rem; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.cast-minor b { color: var(--ink); margin-right: 0.6em; }
.cast-minor .t { font-family: var(--f-mono); padding: 0 0.35em; background: var(--map); outline: 1px solid var(--ring); outline-offset: -1px; margin-right: 0.6em; }
.chapters { margin: 2.4rem 0 0; font-size: 14px; color: var(--ink-2); }
.chapters ol { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.chapters .k { font-family: var(--f-mono); color: var(--shu); margin-right: 0.4em; }

/* ===== f) これから ===== */
.future { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 3rem; font-size: 15px; color: var(--ink-2); }
.future li { padding-left: 1.4em; text-indent: -1.4em; }
.future li::before { content: '- '; font-family: var(--f-mono); color: var(--shu); }
.future b { margin-right: 0.8em; color: var(--ink); }

/* ===== 結び ===== */
.finale { margin-top: 5rem; padding: 2rem 0 1rem; }
.finale .catch2 { width: auto; margin: 3rem 0 1.4rem; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.finale .catch2::after { content: none; }
.finale .catch2 .ast { font-family: var(--f-mono); color: var(--shu); font-weight: 400; }
.finale .after { max-width: 38rem; color: var(--ink-2); font-size: 15px; }
.finale .after .later { font-family: var(--f-mono); font-size: 13px; color: var(--faint); margin-left: 0.4em; white-space: nowrap; }
.finale-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.6rem; align-items: start; margin-top: 2.6rem; scroll-margin-top: 16px; }
.ledger { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.6rem; margin: 0; padding: 0.6rem 0; font-size: 15px; }
.ledger dt { color: var(--shu); font-family: var(--f-mono); font-size: 14px; padding-top: 0.15em; }
.ledger dd { margin: 0; }
.more { margin-top: 2.4rem; font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .cover-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'logo' 'catch' 'lead' 'play' 'share'; grid-template-rows: none; align-content: center; justify-content: stretch; }
  .cover-catch { margin-top: 1.6rem; writing-mode: horizontal-tb; font-size: clamp(1.6rem, 6.4vw, 2.3rem); letter-spacing: 0.04em; }
  .cover-logo { width: min(520px, 100%); }
  .cover-lead br { display: none; }
  .cover-shade { background: rgba(8, 10, 14, 0.88); }
  .cover-play { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cover-toc ol { justify-content: flex-start; gap: 0.1rem 1.2rem; }
  .cover-pv { display: inline-flex; }
  .pv-row, .slide, .spread, .ascii-intro, .ascii-notes { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .legend-plate { font-size: 12.5px; padding: 1rem; }
  .spread.rev .plate { order: 0; }
  .cast-main, .cast-side, .cast-minor, .future { grid-template-columns: minmax(0, 1fr); }
  .finale-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { display: block; }
  .side { position: absolute; z-index: 1; top: calc((100vw - 32px) * 9 / 32); transform: translateY(-50%); width: 2.6rem; height: 4.2rem; background: rgba(14, 17, 22, 0.82); border-color: var(--map-rule); color: var(--map-text); }
  .side[data-prev] { left: 0; }
  .side[data-next] { right: 0; }
  .side .arr { font-size: 1.6rem; }
  .dots { justify-content: flex-start; gap: 0.1rem 1.2rem; }
  .sec-head { margin-top: 5rem; }
}
