/* ネコルフの迷宮 紹介ページ。製品ページの並べ方と特集記事の読ませ方を、Webの文字で組む。
   画風はゲームにそろえる：温かい紙・金の縁・濃紺の実行ボタン。 */
@font-face { font-family: 'Display'; src: url('display.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --night: #07121c; --deep: #0f2a3a; --navy: #123247;
  --paper: #f6efdf; --paper-2: #eee4cd; --card: #fdf8ec;
  --ink: #1c2a33; --muted: #55646c;
  --gold: #edca84; --gold-deep: #a97f2f; --line: #dccb9f; --red: #c0412d; --sky: #a9d6e5; --cream: #f3ecd9;
  --wrap: 1080px;
  --font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Display', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.85 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: anywhere; line-break: strict; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2f8fb3; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--card); color: var(--deep); font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { --wrap: 780px; }
/* 行の終わりに1文字だけ残さない。日本語は文節で折り返す（対応するブラウザで）。 */
p, li, dd, figcaption, summary { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:lang(ja) :is(p, h2, h3, dd, figcaption, summary) { word-break: auto-phrase; }
/* 見出しは区切りごとに折り返す（途中で切らない）。 */
h2 span, .catch span, .panel h3 span { display: inline-block; white-space: pre-wrap; }

/* ---- 上の帯 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); background: var(--deep); color: var(--cream); }
.site { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
.lang { display: flex; padding: 2px; border: 1.5px solid rgba(237, 202, 132, 0.7); border-radius: 999px; font-size: 13px; font-weight: 700; }
.lang > * { padding: 3px 12px; border-radius: 999px; text-decoration: none; }
.lang [aria-current] { background: var(--gold); color: var(--deep); }

/* ---- 実行ボタン（ゲームの「冒険を始める」と同じ画風） */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 32px; border: 2px solid var(--gold); border-radius: 14px; background: linear-gradient(#18435e, #0b2434); color: #f8edd2; font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: 0.12em; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 0 #061722, 0 12px 26px rgba(4, 14, 22, 0.28); transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease; }
.cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #061722, 0 6px 14px rgba(4, 14, 22, 0.3); }
.cta .paw { width: 26px; height: 26px; fill: currentColor; flex: none; }
.cta.small { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; box-shadow: 0 3px 0 #061722; }
.cta.small .paw { width: 20px; height: 20px; }
.cta-note { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }

/* ---- 製品ページの頭 */
.product { padding-top: clamp(22px, 4vw, 44px); background: linear-gradient(var(--card), var(--paper)); }
.product-head { display: grid; grid-template-columns: 92px 1fr; gap: 6px 18px; align-items: center; }
.app-icon { width: 92px; height: 92px; border-radius: 22.5%; box-shadow: 0 8px 22px rgba(7, 18, 28, 0.25), 0 0 0 1px rgba(7, 18, 28, 0.08); }
.genre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: 0.08em; }
.beta { padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); letter-spacing: 0; font-size: 12px; }
h1 { font-family: var(--display); font-size: clamp(27px, 7.4vw, 50px); font-weight: 900; line-height: 1.2; letter-spacing: 0.02em; color: var(--deep); }
.catch { margin-top: 4px; font-size: clamp(14px, 3.7vw, 19px); font-weight: 700; line-height: 1.5; color: #2c4350; }
.product-cta { grid-column: 1 / -1; margin-top: 16px; }
.product-cta .cta { width: 100%; }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); margin-top: clamp(20px, 3vw, 32px); padding-block: 14px; border-block: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; text-align: center; }
.facts::-webkit-scrollbar { display: none; }
/* 帯が横に続くときは、右端を薄くして続きがあることを示す。 */
@media (max-width: 759px) { .facts { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); } }
.facts div { display: flex; flex-direction: column; padding-inline: 10px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.facts dd { font-family: var(--display); font-size: 16px; font-weight: 900; line-height: 1.4; color: var(--deep); white-space: nowrap; }
.facts small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--muted); }
@media (min-width: 760px) {
  .product-head { grid-template-columns: 148px 1fr auto; gap: 0 30px; }
  .app-icon { width: 148px; height: 148px; }
  .product-cta { grid-column: auto; margin-top: 0; align-self: center; }
  .product-cta .cta { width: auto; min-width: 240px; }
  .facts dd { font-size: 19px; }
  .facts dt { font-size: 12px; }
}

/* ---- 図版パネル：見出しと画面写真を1枚に組む（App Storeの画面写真の並び） */
.panels { padding: clamp(18px, 3vw, 30px) 0 clamp(30px, 5vw, 54px); background: var(--paper); }
.panels ul { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 14px; padding: 6px max(20px, calc((100% - var(--wrap)) / 2)) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100% - var(--wrap)) / 2)); scrollbar-width: thin; scrollbar-color: #c9b98e transparent; }
.panel { position: relative; display: flex; flex-direction: column; aspect-ratio: 300 / 600; padding: 24px 20px 0; border-radius: 26px; overflow: hidden; scroll-snap-align: start; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 10px 26px rgba(7, 18, 28, 0.22); isolation: isolate; }
.panel::before { content: ''; position: absolute; z-index: -1; inset: -20% -30% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent); }
.panel h3 { font-family: var(--display); font-size: clamp(27px, 7.6vw, 31px); font-weight: 900; line-height: 1.22; letter-spacing: 0.02em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.panel h3 span { display: block; }
.panel p { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.panel .device { margin: 18px auto 0; width: 86%; flex: 1; border-bottom: 0; border-radius: 22px 22px 0 0; }
.panel .device img { border-radius: 16px 16px 0 0; }
.tone-navy { --a: #1c5273; --b: #0b2434; }
.tone-red { --a: #c5503a; --b: #6d1f1a; }
.tone-gold { --a: #dba63f; --b: #8d5a12; }
.tone-teal { --a: #2f8f8a; --b: #114744; }
.tone-purple { --a: #7355a8; --b: #2e1f52; }
.device { overflow: hidden; border: 6px solid #0b1b27; border-radius: 26px; background: #0b1b27; box-shadow: 0 16px 34px rgba(7, 18, 28, 0.34); }
.device img { display: block; width: 100%; border-radius: 19px; }
@media (min-width: 1140px) { .panels ul { grid-auto-columns: 1fr; grid-template-columns: repeat(5, 1fr); overflow: visible; } .panel { padding: 22px 16px 0; } .panel h3 { font-size: 25px; } .panel p { font-size: 13px; } }

/* ---- このゲームについて（題字の絵・リード文・数字） */
.about { background: var(--deep); color: var(--cream); padding-bottom: clamp(40px, 7vw, 76px); }
.key { display: block; }
.key img { display: block; width: 100%; height: clamp(240px, 44vw, 540px); object-fit: cover; object-position: 50% 36%; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.about-body { position: relative; margin-top: clamp(14px, 3vw, 34px); max-width: 780px; }
.about-body h2 { color: #fff7e2; font-size: clamp(27px, 6vw, 46px); margin-bottom: 20px; }
.about-body p:not(.kicker) { margin-top: 12px; font-size: clamp(16px, 2.1vw, 18px); color: #d9e4e7; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: clamp(34px, 6vw, 60px); padding-top: clamp(22px, 4vw, 36px); border-top: 1px solid rgba(237, 202, 132, 0.4); text-align: center; }
.numbers div { display: flex; flex-direction: column-reverse; }
.numbers dd { font-family: var(--display); font-size: clamp(40px, 11vw, 92px); font-weight: 900; line-height: 1; color: var(--gold); }
.numbers dt { margin-top: 8px; font-size: clamp(11px, 2.8vw, 14px); font-weight: 700; letter-spacing: 0.14em; color: #d7e3e6; }

/* ---- 特集の各章 */
.feature { padding-block: clamp(60px, 9vw, 116px); }
.feature.dark { background: linear-gradient(#0d2434, var(--night)); color: var(--cream); }
.feature.classes { background: var(--paper-2); }
h2 { font-family: var(--display); font-size: clamp(27px, 5.6vw, 46px); line-height: 1.26; font-weight: 900; letter-spacing: 0.02em; color: var(--deep); }
.dark h2 { color: #fff7e2; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 800; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-deep); }
.kicker b { font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: 0; color: var(--red); }
.kicker:not(:has(b))::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.dark .kicker, .about .kicker { color: var(--gold); }
.dark .kicker b { color: #f29a6b; }
.sec-lead { margin-top: 16px; max-width: 40em; font-size: clamp(16px, 2.1vw, 18px); color: var(--muted); }
.dark .sec-lead { color: #c5d2d6; }

/* ---- 01 バトル：注釈つきの画面写真 */
.figure-row { display: grid; gap: 28px; margin-top: clamp(28px, 5vw, 48px); }
.annotated { width: min(100%, 340px); margin-inline: auto; }
.device.big { position: relative; overflow: visible; }
.device.big img { border-radius: 19px; }
figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.dark figcaption { color: #a9bcc2; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-family: var(--display); font-size: 14px; font-weight: 900; line-height: 1; flex: none; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
.device .pin { position: absolute; transform: translate(-50%, -50%); }
.p1 { left: 63%; top: 5.9%; } .p2 { left: 4%; top: 36.2%; } .p3 { left: 97%; top: 47%; } .p4 { left: 69%; top: 44%; }
.notes { display: grid; gap: 14px; }
.notes li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.notes h3 { color: var(--deep); }
.notes p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.point { position: relative; margin-top: 26px; padding: 20px 20px 22px; border: 2px solid var(--gold-deep); border-radius: 18px; background: #fff6da; }
.point-label { display: inline-block; margin: -34px 0 8px; padding: 2px 14px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--display); font-size: 14px; font-weight: 900; letter-spacing: 0.08em; transform: translateY(-2px); }
.point p:not(.point-label) { font-weight: 700; color: var(--deep); }
.point { padding-bottom: 86px; }
.point .cutout { position: absolute; right: 6px; bottom: -16px; width: 112px; height: auto; filter: drop-shadow(0 6px 8px rgba(7, 18, 28, 0.25)); }
@media (min-width: 820px) {
  .figure-row { grid-template-columns: 340px 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
  .annotated { margin: 0; }
  .point { padding-bottom: 22px; }
  .point p:not(.point-label) { padding-right: 150px; }
  .point .cutout { width: 164px; right: -14px; bottom: -18px; }
}
.steps { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.step { padding: 20px 20px 22px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); }
.step h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 20px; color: var(--deep); }
.num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #f8edd2; font-family: var(--display); font-size: 15px; flex: none; }
.step p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.chain { position: relative; display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; padding: 12px; border-radius: 14px; background: linear-gradient(#143549, #0c2333); }
.chain img { width: 60px; height: 60px; }
.chain i { position: absolute; left: calc(50% - 72px); top: calc(50% - 4px); width: 144px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #f6d98f 0 14px, transparent 14px 22px); transform-origin: left center; animation: trace 3.2s ease-in-out infinite; }
.chain.attack i { animation-delay: 0.5s; }
.chain b { position: absolute; left: calc(50% - 40px); top: calc(50% - 40px); width: 80px; height: 80px; border: 3px solid #e2533c; border-radius: 50%; animation: threat 2s ease-out infinite; }
@keyframes trace { 0% { transform: scaleX(0); opacity: 0.95; } 40%, 78% { transform: scaleX(1); opacity: 0.95; } 92%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes threat { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.next { display: grid; gap: 16px; align-items: center; margin-top: 18px; padding: 20px; border-radius: 20px; background: var(--deep); color: var(--cream); }
.next h3 { color: var(--gold); font-size: 19px; }
.next p { margin-top: 4px; font-size: 15px; line-height: 1.75; color: #d7e3e6; }
.next img { display: block; width: 100%; border-radius: 12px; }
@media (min-width: 820px) { .next { grid-template-columns: 1fr 1.1fr; gap: 32px; padding: 26px 30px; } }

/* ---- 02 成長 */
.two { display: grid; gap: 34px; }
.stats { display: grid; gap: 18px; margin-top: clamp(26px, 4vw, 40px); }
.stats li { padding-top: 14px; border-top: 1px solid rgba(237, 202, 132, 0.4); }
.stats h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--gold); font-size: 20px; }
.stats b { font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; color: #fff7e2; }
.stats small { margin-left: 3px; font-family: var(--font); font-size: 14px; font-weight: 700; }
.stats p { margin-top: 4px; font-size: 15px; line-height: 1.75; color: #d7e3e6; }
.shot-figure { width: min(100%, 320px); margin-inline: auto; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 320px; gap: clamp(40px, 7vw, 96px); align-items: center; } .shot-figure { margin: 0; } }

/* ---- 03 職業 */
.class-stage { margin-top: clamp(28px, 5vw, 44px); }
.journey { position: relative; overflow: hidden; container-type: inline-size; border: 2px solid var(--gold-deep); border-radius: 20px; background: var(--card); box-shadow: 0 12px 30px rgba(7, 18, 28, 0.16); }
.journey img { display: block; width: 100%; aspect-ratio: 1736 / 906; object-fit: cover; transition: opacity 0.25s ease; }
.journey.loading img { opacity: 0.35; }
/* 狭い画面：絵の空は小さいので、職業名とことばは絵の下に置く（ゲームの職業の画面と同じ）。 */
.journey figcaption { margin: 0; padding: 18px 20px 22px; color: var(--deep); text-align: center; }
.journey h3 { font-family: var(--display); font-size: 28px; font-weight: 900; line-height: 1.25; color: var(--deep); }
.poem { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.9; letter-spacing: 0.06em; color: var(--deep); word-break: keep-all; }
.poem:lang(en) { font-size: 15px; line-height: 1.7; letter-spacing: 0.01em; }
.class-text { margin-top: 18px; min-height: 3.6em; font-size: 17px; font-weight: 700; line-height: 1.75; color: var(--deep); }
.class-picker { display: grid; grid-auto-flow: column; grid-auto-columns: 88px; gap: 8px; margin: 14px -20px 0; padding: 6px 20px 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #c9b98e transparent; }
.class-pick { display: grid; gap: 2px; padding: 8px 4px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--deep); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; scroll-snap-align: start; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.class-pick img { width: 100%; display: block; }
.class-pick:hover { transform: translateY(-2px); }
.class-pick[aria-pressed='true'] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 8px 18px rgba(192, 65, 45, 0.22); }
.class-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
/* 広い画面：絵の空（雲）の、ゲームと同じ場所に置く（左68.75%・上17.2%・幅28.1%。どの職業の絵もここが空いている）。
   文字は絵の幅に比例させる：一番長い行（日本語11字、英語23字）がこの幅に入る大きさ。 */
@media (min-width: 700px) {
  .journey figcaption { position: absolute; left: 68.75%; top: 17.2%; width: 28.1%; padding: 0; text-align: left; text-shadow: 0 0 6px rgba(255, 252, 242, 0.95), 0 0 2px rgba(255, 252, 242, 0.95); }
  .journey h3 { font-size: clamp(26px, 4.4cqw, 50px); }
  .journey h3:lang(en) { font-size: clamp(22px, 3.7cqw, 42px); }
  .poem { margin-top: 0.5em; font-size: clamp(14px, 2.35cqw, 27px); line-height: 1.75; letter-spacing: 0.04em; }
  .poem:lang(en) { font-size: clamp(12px, 1.95cqw, 22px); line-height: 1.6; }
  .class-text { font-size: 19px; }
}
@media (min-width: 980px) { .class-picker { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; } }

/* ---- 04 特殊敵 */
.enemy-picks { display: grid; gap: 12px; margin-top: clamp(28px, 5vw, 44px); }
.enemy-picks li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(237, 202, 132, 0.3); border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.enemy-picks img { width: 76px; height: 76px; }
.enemy-picks h3 { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--gold); }
.enemy-picks p { font-size: 14px; line-height: 1.7; color: #d7e3e6; }
.grid-label { margin-top: 30px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); }
.enemy-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(5px, 1.3vw, 14px); margin-top: 12px; }
.enemy-grid li { display: grid; place-items: center; aspect-ratio: 1; padding: 8%; border-radius: clamp(8px, 1.6vw, 16px); background: rgba(255, 255, 255, 0.05); }
.enemy-grid img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 700px) { .enemy-picks { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .enemy-grid { grid-template-columns: repeat(16, 1fr); gap: 10px; } }

/* ---- 05 冒険の種類 */
.mode-list { display: grid; gap: 14px; margin-top: clamp(28px, 5vw, 44px); }
.mode { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); }
.mode-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: radial-gradient(circle at 50% 38%, #3f84a6, #1c4e69 72%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.mode-icon img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(6,22,33,.45)); }
.mode h3 { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--deep); }
.goal { display: inline-block; margin: 4px 0 6px; padding: 0 10px; border-radius: 999px; background: #f0dfb4; font-size: 13px; font-weight: 700; color: #6d4f12; }
.mode p:last-child { font-size: 15px; line-height: 1.75; color: var(--muted); }
.difficulty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; }
.difficulty > p { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-deep); }
.difficulty ol { display: flex; flex-wrap: wrap; gap: 8px; }
.difficulty li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 700; color: var(--deep); white-space: nowrap; }
.difficulty img { width: 32px; height: 32px; object-fit: contain; }
@media (min-width: 760px) { .mode-list { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* ---- 06 ランキング */
.rank-list { display: grid; gap: 14px; margin-top: clamp(28px, 5vw, 44px); }
.rank { min-width: 0; padding: 22px 20px 24px; border: 1px solid rgba(237, 202, 132, 0.3); border-radius: 20px; background: rgba(255, 255, 255, 0.05); }
.rank-badge { display: inline-block; padding: 0 12px; border-radius: 999px; background: var(--gold); font-size: 13px; font-weight: 700; color: var(--deep); }
.rank h3 { margin-top: 10px; font-family: var(--display); font-weight: 900; font-size: 24px; color: #fff7e2; }
.rank h3 + p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: #d7e3e6; }
.rank-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rank-facts li { padding: 3px 14px; border: 1px solid rgba(237, 202, 132, 0.45); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 336px; margin-top: 20px; }
.week li { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: 13px; letter-spacing: 0; font-weight: 700; color: #a9bcc2; }
.week li:first-child { background: var(--gold); color: var(--deep); box-shadow: 0 0 0 3px rgba(237, 202, 132, 0.25); }
.boards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 238px; margin-top: 20px; }
.boards img { width: 100%; aspect-ratio: 1; padding: 12%; object-fit: contain; }
.boards b { aspect-ratio: 1; border: 1.5px solid rgba(237, 202, 132, 0.55); border-radius: 10px; background: rgba(237, 202, 132, 0.12); }
.boards-note { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #a9bcc2; }
.fair { margin-top: 14px; padding: 18px 20px 20px; border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; background: rgba(237, 202, 132, 0.08); }
.fair h3 { font-size: 18px; color: var(--gold); }
.fair p { margin-top: 4px; font-size: 15px; line-height: 1.75; color: #d7e3e6; }
.join { display: grid; gap: 14px; margin-top: 14px; }
.join li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.join .num { background: var(--gold); color: var(--deep); }
.join h3 { font-size: 17px; line-height: 30px; color: #fff7e2; }
.join p { font-size: 14px; line-height: 1.7; color: #c5d2d6; }
.rank-note { margin-top: 22px; font-size: 13px; color: #a9bcc2; }
@media (min-width: 760px) { .rank-list { grid-template-columns: repeat(2, 1fr); gap: 18px; } .join { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---- 07 やりこみ */
.more { background: var(--paper-2); }
.feature-list { display: grid; gap: 22px 28px; margin-top: clamp(28px, 5vw, 44px); }
.feature-list li { padding-top: 14px; border-top: 3px solid var(--gold-deep); }
.feature-list h3 { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--deep); }
.feature-list p { margin-top: 4px; font-size: 15px; line-height: 1.75; color: var(--muted); }
@media (min-width: 620px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-list { grid-template-columns: repeat(4, 1fr); } }
.wide-shot { margin-top: clamp(34px, 6vw, 60px); }
.screen { overflow: hidden; border: 8px solid #0b1b27; border-radius: 20px; background: #0b1b27; box-shadow: 0 20px 46px rgba(7, 18, 28, 0.3); }
.screen img { display: block; width: 100%; border-radius: 10px; }
.wide-shot figcaption { text-align: center; }

/* ---- 作品概要・よくある質問 */
.spec { padding-block: clamp(56px, 8vw, 100px); background: var(--paper); }
.spec h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.spec-table { border-top: 2px solid var(--deep); }
.spec-table div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 700; color: var(--deep); }
.spec-table dd { color: #33444d; }
.faq-title { margin-top: clamp(48px, 7vw, 76px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 44px 18px 0; font-size: 17px; font-weight: 700; color: var(--deep); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--gold-deep); border-bottom: 2.5px solid var(--gold-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---- 終わり */
.end { background: var(--night); color: var(--cream); text-align: center; overflow: hidden; }
/* 最後の誘い：門の向こうの邪神と4匹の絵。絵の下の暗い帯に、題と遊ぶボタンを載せる（邪神と猫たちを文字で隠さない）。 */
.final { background: var(--night); }
.gate { position: relative; max-width: 1680px; margin-inline: auto; }
.gate img { display: block; width: 100%; height: auto; }
.gate::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, var(--night) 0, rgba(7, 18, 28, 0.82) 11%, rgba(7, 18, 28, 0) 30%),
  linear-gradient(to right, var(--night) 0, rgba(7, 18, 28, 0) 7%, rgba(7, 18, 28, 0) 93%, var(--night) 100%); }
/* スマホ：絵の下の帯から始めて、収まらない分は絵の下（同じ夜の色）へ続ける。 */
.final-words { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; margin-top: -27vw; padding: 0 20px 34px; }
.final h2 { font-size: clamp(34px, 7vw, 64px); letter-spacing: 0.08em; color: #fff7e2; text-shadow: 0 2px 18px rgba(7, 18, 28, 0.9); }
.final .cta { min-width: min(320px, 100%); margin-top: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.final .cta-note { color: #d5e0e4; margin-top: 0; text-shadow: 0 1px 8px rgba(7, 18, 28, 0.95); }
/* 広い画面：横長の絵の下の帯の中に収める。 */
@media (min-width: 700px) {
  .gate::after { background:
    linear-gradient(to top, var(--night) 0, rgba(7, 18, 28, 0.7) 12%, rgba(7, 18, 28, 0) 30%),
    linear-gradient(to right, var(--night) 0, rgba(7, 18, 28, 0) 7%, rgba(7, 18, 28, 0) 93%, var(--night) 100%); }
  .final-words { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.4vw, 44px); margin-top: 0; padding-bottom: 0; gap: clamp(8px, 1.1vw, 16px); }
  .final h2 { font-size: clamp(30px, 4.6vw, 64px); }
}
.legal { padding: 22px 20px calc(96px + env(safe-area-inset-bottom)); background: #050d14; font-size: 13px; line-height: 1.9; color: #a9bcc2; }
.legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 8px; }
.legal a { text-underline-offset: 3px; }
.legal a:hover { color: #fff; }

/* ---- いつでも押せる「遊ぶ」 */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid rgba(237, 202, 132, 0.55); border-radius: 18px; background: rgba(7, 18, 28, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); color: #f8edd2; transition: transform 0.25s ease, opacity 0.25s ease; }
.sticky[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s; }
.sticky img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { .sticky { left: auto; right: 24px; bottom: 24px; } .sticky-name { flex: none; margin-right: 8px; } .legal { padding-bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chain i { transform: none; }
  .chain b { opacity: 0.8; }
}

/* ---- 見つからないページ（404.html） */
.missing { min-height: 100vh; display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center; background: var(--deep); color: var(--cream); }
.missing a { color: var(--gold); }
