/* ラビリンステイル 公式サイト
   絵とロゴに合わせた明るいページ。地は絵の余白の色 (--paper)、文字はロゴの深緑 (--ink)。ページごとに地面の色が変わる (--bg)。
   文字は小さめ・行間は広め (本文 16px / 2.0、大見出し 32px、項目 20〜22px)。大きくしすぎない
   絵に合わせて直す所: .hero-text の位置・幅 */
:root {
  --paper: #faf7ed; /* (本番の絵の余白の色。下絵のときは #f8f5eb) */
  --ink: #06281d;
  --body: #2c332f;
  --soft: #55615a;
  --rust: #9a4a1e;
  --window: #161b2e;
  --window-deep: #0d1120;
  --window-edge: #b89a62;
  --gap-page: clamp(5rem, 9vw, 8.5rem);    /* ページの上下の余白 */
  --gap-block: clamp(4.5rem, 8vw, 7.5rem); /* ページの中のまとまりの間 */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1rem/2 var(--sans); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, .qa dt, .catch { word-break: auto-phrase; } /* 短い見出しだけ文節で折り返す。本文には使わない: 右に空きを残して早く折り返すため */
.nb { white-space: nowrap; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }

/* 固定メニュー: 全ページ同じ位置 */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 0 rgb(6 40 29 / .16), 0 4px 14px rgb(6 40 29 / .06); }
.bar-inner { width: min(70rem, 100% - 2.5rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 3.75rem; }
.bar-logo img { width: 10rem; }
.menu { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-size: .875rem; }
.menu a { padding-block: 1.1rem 1rem; line-height: 1.5; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--rust); }
.menu a[aria-current] { font-weight: 700; border-bottom-color: var(--ink); }

/* 入口: 絵の左の余白に文字を置く。大きさは絵に合わせて画面の幅で決める (主役には重ねない) */
.hero { position: relative; overflow: hidden; }
.hero-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-text { position: absolute; left: 3vw; top: 50%; translate: 0 -50%; width: 28vw; display: grid; justify-items: center; text-align: center; }
.hero-text h1 img { width: 100%; }
.catch { margin-top: 1.3vw; font: 700 1.75vw/1.5 var(--serif); color: var(--ink); white-space: nowrap; }
.lead { margin-top: .5vw; font-size: max(.8125rem, 1.05vw); line-height: 1.8; color: var(--soft); }
.actions { margin-top: 1.2vw; }
.actions .btn { padding-inline: 3rem; }

.btn { display: inline-block; padding: .55rem 1.75rem; font-size: .9375rem; line-height: 1.7; text-decoration: none; text-align: center; color: var(--ink); border: 1px solid var(--ink); }
.btn:hover { background: rgb(6 40 29 / .07); color: var(--ink); }
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: #124434; color: var(--paper); }

/* ページごとの地面の色 */
.f-rock { --bg: #f4ebd8; --line: #a98450; }
.f-deep { --bg: #ebe8e6; --line: #84818c; }
.f-moss { --bg: #e7efdd; --line: #6d9160; }
.f-hall { --bg: #e4e9f1; --line: #6f7fa3; }
.f-crystal { --bg: #ece3f7; --line: #7f52bd; }
.f-fairy { --bg: #e0f1f1; --line: #4d9aa3; }
.floor { padding-bottom: var(--gap-page); background: var(--bg); }
.page-body { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.top-sec { padding-block: var(--gap-page); }

/* ゲームの素材の飾り: ページごとの壁と床 (rl_site_build.py)。文字はこの上に置いても読める暗さ */
.f-rock { --wall: url("img/wall-rock.webp"); --ground: url("img/floor-rock.webp"); }
.f-deep { --wall: url("img/wall-deep.webp"); --ground: url("img/floor-deep.webp"); }
.f-moss { --wall: url("img/wall-moss.webp"); --ground: url("img/floor-moss.webp"); }
.f-hall { --wall: url("img/wall-hall.webp"); --ground: url("img/floor-hall.webp"); }
.f-crystal { --wall: url("img/wall-crystal.webp"); --ground: url("img/floor-crystal.webp"); }
.f-fairy { --wall: url("img/wall-fairy.webp"); --ground: url("img/floor-fairy.webp"); }

/* ページの見出し: 洞窟の壁と、たいまつ */
.page-head { position: relative; overflow: hidden; min-height: 240px; padding-top: 28px; background: var(--wall) repeat-x top; color: #f6efdc; }
.page-head::after { /* 床: 下へ行くほどページの色に溶ける */
  content: ""; position: absolute; inset: 192px 0 0; background: var(--ground) repeat-x top;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.page-head::before { content: ""; position: absolute; inset: 0 0 48px; background: linear-gradient(to right, rgb(0 0 0 / .5), transparent 62%); }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head .crumbs { width: auto; margin: 0; color: #f6efdc; }
.page-head .crumbs a { color: #f6efdc; }
.page-head .crumbs { text-shadow: 0 1px 4px rgb(0 0 0 / .9); }
.page-head .page-title { margin-top: 1.5rem; color: #f6efdc; text-shadow: 0 2px 10px rgb(0 0 0 / .75); }

/* たいまつ: ゲームの !Flame の3コマ */
.torch { position: absolute; top: 72px; width: 48px; height: 48px; background: url("img/torch.webp") 0 0 no-repeat; }
.torch::before { content: ""; position: absolute; inset: -70px; background: radial-gradient(closest-side, rgb(255 190 90 / .32), transparent); pointer-events: none; }
.torch-1 { left: 56%; }
.torch-2 { left: 74%; }
.torch-3 { left: 92%; }
@media (prefers-reduced-motion: no-preference) {
  .torch, .sec-title::before, .sec-title::after { animation: torch-flicker .6s steps(3) infinite; }
  @keyframes torch-flicker { to { background-position: -144px 0; } }
}

/* アイコンつきの見出し: ゲームの一覧と同じアイコン */
.iconed { display: flex; align-items: center; gap: .6rem; }
.h-icon { flex: none; width: 32px; height: 32px; }

/* トップの見出しは、たいまつで挟む */
.sec-title { display: flex; justify-content: center; align-items: center; gap: .9rem; }
.sec-title::before, .sec-title::after { content: ""; flex: none; width: 48px; height: 48px; background: url("img/torch.webp") 0 0 no-repeat; translate: 0 -8px; }

/* パンくず */
.crumbs { font-size: .8125rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-inline: .6em; }
.crumbs a { color: var(--soft); }

.page-title { font: 700 clamp(1.625rem, 1.3rem + 1vw, 2rem)/1.5 var(--serif); color: var(--ink); }
.page-lead { margin-top: 0; }
.page-lead + * { margin-top: clamp(3rem, 5vw, 4.5rem); }
h2 { font: 700 clamp(1.1875rem, 1.1rem + .35vw, 1.375rem)/1.6 var(--serif); color: var(--ink); }
h3 { font: 700 1.0625rem/1.6 var(--serif); color: var(--ink); }
.sec-title { text-align: center; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.section-lead { margin-top: .75rem; }
.note { margin-top: 2rem; font-size: .8125rem; color: var(--soft); text-align: right; }
.note-left { margin-top: 1rem; font-size: .875rem; color: var(--soft); }
.more { margin-top: clamp(2.5rem, 4vw, 3.5rem); text-align: center; }

.shot img, .feature > img, figure img, .steps img { box-shadow: 0 6px 18px rgb(6 40 29 / .22); }
figcaption { margin-top: .6rem; font-size: .875rem; line-height: 1.7; color: var(--soft); }

/* 台詞の吹き出し */
.bubble { position: relative; width: fit-content; max-width: 100%; padding: .75rem 1.25rem; background: #fff; color: var(--ink); border-radius: 14px; font: 500 .9375rem/1.8 var(--serif); box-shadow: 0 3px 12px rgb(6 40 29 / .12); }
.bubble::before { content: ""; position: absolute; top: 1.1rem; width: 12px; height: 12px; background: #fff; rotate: 45deg; }
.bubble-left::before, .person:nth-of-type(odd) .bubble::before { left: -5px; }
.person:nth-of-type(even) .bubble::before { right: -5px; }
.person:nth-of-type(even) .bubble { margin-left: auto; }
.line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.line > img { border-radius: 50%; background: rgb(255 255 255 / .6); }
.line-name { margin-bottom: .3rem; font-size: .8125rem; line-height: 1.5; color: var(--soft); }

/* トップ */
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: stretch; }
.intro-text h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.intro-text p { margin-top: 1.1rem; }
/* 作品情報: 紹介文と同じ高さの白い札 */
.facts-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgb(6 40 29 / .07); }
.facts-card h3 { margin-bottom: .75rem; }
.facts { font-size: .9375rem; line-height: 1.7; }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: baseline; padding-block: .6rem; border-top: 1px solid rgb(6 40 29 / .14); }
.facts dt { color: var(--soft); white-space: nowrap; font-size: .8125rem; }
/* PV: 暗い帯で大きく */
.pv-band { padding-block: var(--gap-page); background: var(--ink); }
.pv-band .sec-title { color: var(--paper); }
.movie { aspect-ratio: 16 / 9; background: #000; box-shadow: 0 12px 40px rgb(0 0 0 / .45); }
.movie iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.twins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.twin { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.75rem; align-items: center; text-decoration: none; color: var(--body); }
.twin img { width: 100%; max-height: 28rem; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(6 40 29 / .25)); }
.twin-text { display: grid; }
.twin-name { font: 700 1.375rem/1.5 var(--serif); color: var(--ink); }
.twin-sub { margin-bottom: .6rem; font-size: .8125rem; color: var(--rust); }
.twin:hover { color: var(--body); }
.twin:hover .twin-name { color: var(--rust); }

/* 作者コメント: 洞窟の壁に貼った手紙。下はそのままフッターの洞窟につながる */
.comment-sec { position: relative; overflow: hidden; padding-block: var(--gap-page) clamp(3rem, 6vw, 5rem); background: linear-gradient(rgb(0 0 0 / .68), rgb(0 0 0 / .42) 70%, transparent), url("img/wall-tile-rock.webp"); }
.comment-sec .sec-title { color: #f6efdc; text-shadow: 0 2px 10px rgb(0 0 0 / .8); }
.side-torch { z-index: 0; }
.side-torch-1, .side-torch-2 { left: calc((100% - 70rem) / 4 - 24px); }
.side-torch-3, .side-torch-4 { right: calc((100% - 70rem) / 4 - 24px); }
.side-torch-1, .side-torch-3 { top: 26%; }
.side-torch-2, .side-torch-4 { top: 66%; }
.comment-sec > .wrap { position: relative; z-index: 1; }
.comment { position: relative; padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 7vw, 6.5rem); background: #fbf6e8; color: #2f2a20; border-radius: 4px; box-shadow: 0 16px 44px rgb(0 0 0 / .55), inset 0 0 0 1px #d8c79f, inset 0 0 0 7px #fbf6e8, inset 0 0 0 8px #d8c79f; font: 500 1.0625rem/2.25 var(--serif); }
/* 便箋の罫線: 文字の行ごとに、丸い点の線を1本 (--lh は .comment の行間と同じ数にする) */
.comment p { background: radial-gradient(circle at 4px calc(100% - 5px), #d9c49a 1.1px, transparent 1.7px) 0 0 / 8px calc(var(--lh, 2.25) * 1em); }
.comment p + p { margin-top: 1.9em; }
.comment-sign { text-align: right; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
@media (max-width: 1320px) { .side-torch { display: none; } }

/* あらすじ */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.prose p + p { margin-top: 1.25rem; }
.prose-end { margin-top: var(--gap-block); }
.talk { margin-top: var(--gap-block); display: grid; gap: 2.25rem; }

/* キャラクター: ひとりずつ大きく */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.person + .person { margin-top: var(--gap-block); }
.person > img { height: clamp(28rem, 44vw, 38rem); width: auto; justify-self: center; filter: drop-shadow(0 8px 12px rgb(6 40 29 / .25)); }
.person:nth-of-type(even) > img { order: 2; }
.person:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } /* (立ち絵を右にしたときも、文は広い列に) */
.person h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
h2 small { margin-left: .4em; font: 400 .875rem var(--sans); color: var(--rust); }
.person-text p { margin-top: 1rem; }
.says { margin-top: 2rem; display: grid; gap: .9rem; }
.person-text .bubble { margin-top: 0; }
.travelers { margin-top: var(--gap-block); }
.traveler-list { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem); }
.traveler { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.traveler p { margin-top: .2rem; font-size: .875rem; line-height: 1.8; color: var(--soft); }

/* システム: 写真を大きく、文は横に */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.feature + .feature { margin-top: var(--gap-block); }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feature:nth-of-type(even) > img { order: 2; }
.feature p { margin-top: .9rem; }

/* 進め方 */
.block + .block { margin-top: var(--gap-block); }
.steps { margin-top: clamp(2rem, 3vw, 2.75rem); list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.steps h3 { margin-top: .9rem; display: flex; gap: .5em; align-items: baseline; }
.steps h3 span { color: var(--rust); }
.steps p { margin-top: .3rem; font-size: .875rem; line-height: 1.85; }
.keys { margin-top: 1.25rem; border-collapse: collapse; width: 100%; font-size: .9375rem; }
.keys th, .keys td { padding: .55rem .25rem; text-align: left; font-weight: 400; border-top: 1px solid rgb(6 40 29 / .2); line-height: 1.6; vertical-align: top; }
.keys tr:last-child th, .keys tr:last-child td { border-bottom: 1px solid rgb(6 40 29 / .2); }
.keys th { width: 32%; color: var(--soft); }
.keys-wide th { width: 14em; }

.tips h2 + .feature { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.tips h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); }

/* よくある質問: Q と A をはっきり分ける */
.qa-group + .qa-group { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.qa-group h2 { margin-bottom: 1.5rem; }
.qa { display: grid; gap: 1.25rem; }
.qa-item { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgb(6 40 29 / .07); overflow: hidden; }
.qa dt, .qa dd { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.5rem; align-items: start; }
.qa dt { font: 700 1.0625rem/1.75 var(--serif); color: var(--ink); background: rgb(127 82 189 / .08); }
.qa dd { line-height: 1.9; }
.qa-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font: 700 1.0625rem/1 var(--serif); color: #fff; background: #7f52bd; }
.qa-mark-a { color: #7f52bd; background: #fff; border: 2px solid #7f52bd; }
.qa dd a { color: var(--ink); }

/* ダウンロード */
.dl-box { padding: clamp(2rem, 4vw, 3rem) 1.25rem; text-align: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgb(6 40 29 / .07); }
.dl-version { font: 700 clamp(1.125rem, 1.05rem + .4vw, 1.375rem)/1.6 var(--serif); color: var(--ink); }
.dl-kinds { margin-top: .25rem; color: var(--soft); }
.btn-big { margin-top: 1.25rem; padding: .85rem 4.5rem; font-size: 1.125rem; font-weight: 700; }
.dl-note { margin-top: .75rem; font-size: .8125rem; color: var(--soft); }
.dl-free { margin-top: clamp(2.5rem, 4vw, 3.5rem); font-size: .9375rem; }
.ways { margin-top: clamp(3rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); }
.way { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.way p { margin-top: .5rem; }
.way ul { margin-top: .75rem; list-style: none; font-size: .9375rem; line-height: 1.85; color: var(--soft); }
.way li { padding-left: 1em; text-indent: -1em; }
.way li::before { content: "◆"; font-size: .55em; vertical-align: .25em; margin-right: .65em; color: var(--rust); }
.notes, .spec { margin-top: var(--gap-block); }
.notes dl { margin-top: 1.25rem; border-top: 1px solid rgb(6 40 29 / .2); }
.release-note { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .25rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid rgb(6 40 29 / .2); }
.release-note dt { display: grid; line-height: 1.6; }
.release-note dt b { font: 700 1.0625rem/1.6 var(--serif); color: var(--ink); }
.release-note dt span { font-size: .8125rem; color: var(--soft); }
.release-note ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; line-height: 1.85; }

/* 次のページへ */
.next { display: block; background: var(--bg); padding-block: 2.5rem; text-decoration: none; }
.next-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; justify-content: flex-end; }
.next-label { font-size: .8125rem; color: var(--soft); }
.next-name { font: 700 1.0625rem/1.6 var(--serif); color: var(--ink); }
.next-name::after { content: "›"; display: inline-block; margin-left: .6em; }
.next:hover .next-name { color: var(--rust); }

/* 動き: 開いたときの入口と、スクロールで現れるとき (site.js)。動きを減らす設定では出さない */
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: art-settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(1) { animation-delay: .25s; }
  .hero-text > :nth-child(2) { animation-delay: .5s; }
  .hero-text > :nth-child(3) { animation-delay: .65s; }
  .hero-text > :nth-child(4) { animation-delay: .8s; }
  @keyframes art-settle { from { transform: scale(1.035); opacity: .4; } to { transform: none; opacity: 1; } }
  @keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .person > img.reveal, .js .twin > img.reveal { transform: translateX(-26px); }
  .js .person:nth-of-type(even) > img.reveal, .js .twin:nth-child(even) > img.reveal { transform: translateX(26px); }
  .js .bubble.reveal { transform: translateY(8px) scale(.96); transform-origin: left center; }
  .js .person > img.reveal.in, .js .twin > img.reveal.in, .js .bubble.reveal.in { transform: none; }

  /* 押せる所の反応 */
  .gallery figure img, .feature > img, .steps img { transition: transform .35s ease, box-shadow .35s ease; }
  .gallery figure:hover img, .feature > img:hover, .steps li:hover img { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(6 40 29 / .28); }
  .btn { transition: background-color .2s, color .2s; }
  .menu a { transition: color .2s, border-color .2s; }
  .twin img { transition: translate .35s ease, opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .twin:hover img { translate: 0 -4px; }
  .next-name::after { transition: translate .25s ease; }
  .next:hover .next-name::after { translate: 5px 0; }
}

/* フッター: 洞窟を歩くふたり */
.foot-scene { position: relative; overflow: hidden; height: 168px; background: var(--ground) repeat-x left bottom, var(--wall) repeat-x left bottom 48px; }
.foot-scene .torch { top: 30px; }
.foot-scene .torch::before { inset: -30px; } /* (帯の上の端で明かりが切れないように) */
.walkers { position: absolute; left: 0; bottom: 8px; display: flex; gap: 10px; }
.walker { width: 48px; height: 48px; background: 0 0 no-repeat; filter: drop-shadow(0 3px 2px rgb(0 0 0 / .5)); }
.walker-reed { background-image: url("img/walk-reed.webp"); }
.walker-pris { background-image: url("img/walk-pris.webp"); }
@media (prefers-reduced-motion: no-preference) {
  .walkers { animation: walk-across 38s linear infinite; }
  .walker { animation: walk-frames .7s steps(4) infinite; }
  @keyframes walk-across { from { transform: translateX(-120px); } to { transform: translateX(100vw); } }
  @keyframes walk-frames { to { background-position: -192px 0; } }
}
@media (prefers-reduced-motion: reduce) { .walkers { left: 50%; translate: -50% 0; } .walker { background-position: -48px 0; } }

.foot { padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; background: var(--ink); color: #c9d3c8; font-size: .875rem; line-height: 1.85; }
.foot a { color: #f3ead6; }
.foot a:hover { color: #f0cd86; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.foot-main img { width: 16rem; }
.foot-catch { margin-top: .75rem; font: 500 1rem/1.7 var(--serif); color: #f3ead6; }
.foot dl { margin-top: 1.25rem; }
.foot dl div { display: flex; gap: 1.5em; }
.foot dt { min-width: 8em; white-space: nowrap; }
.foot dd { color: #f3ead6; }
.foot-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .25em 1.5em; }
.foot-menu { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.foot-menu a { text-decoration: none; }
.foot-menu a:hover { text-decoration: underline; }
.foot-copy { margin-top: 2.5rem; text-align: center; font-size: .8125rem; }

/* 画面が狭いときは、絵に重ねられないので文字を絵の下へ */
@media (max-width: 1000px) {
  .hero-text { position: static; translate: none; width: auto; padding: 1.5rem 1.25rem 2.5rem; background: var(--paper); }
  .hero-text h1 { width: min(24rem, 100%); }
  .catch { margin-top: .75rem; font-size: clamp(1.125rem, 4.8vw, 1.5rem); white-space: normal; }
  .lead { margin-top: .4rem; width: auto; font-size: .875rem; }
  .actions { margin-top: .9rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .traveler-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .story, .feature, .feature:nth-of-type(even), .ways, .person, .intro-grid, .twins { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) > img, .person:nth-of-type(even) > img { order: 0; }
  .story figure { order: -1; }
  .person > img { height: 24rem; }
  .page-head .torch-1, .page-head .torch-2, .foot-scene .torch-1 { display: none; }
  .page-head .torch-3, .foot-scene .torch-3 { left: calc(100% - 64px); }
  .foot-scene .torch-2 { left: 12%; }
  .comment { font-size: 1rem; line-height: 2.1; --lh: 2.1; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .bar-inner { width: 100%; padding-inline: .75rem; gap: .5rem; }
  .bar-logo img { width: 5.5rem; }
  .menu { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; font-size: .75rem; text-align: center; }
  .menu a { padding-block: .4rem .3rem; }
  .release-note { grid-template-columns: minmax(0, 1fr); }
  .person:nth-of-type(n) .bubble { margin-left: 0; }
  .person:nth-of-type(n) .bubble::before { left: -5px; right: auto; }
}
@media (max-width: 700px) {
  /* スマホでは絵の右寄りを少し縦長に切り抜く (本番の絵はリードの剣が左へ長いので、剣の先が切れない 4:3 に。下絵のときは 5:4) */
  .hero-art { aspect-ratio: 4 / 3; object-position: 100% 50%; }
  .gallery, .steps, .traveler-list { grid-template-columns: minmax(0, 1fr); }
  .qa dt, .qa dd { padding: 1rem; gap: .75rem; }
  .twin { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
  .keys th { width: 42%; }
}
