/* トップページ専用。基調は黒インクの不透明面＋金の細線。金の塗りは主操作だけ */
:root {
  --ink: #05090d;
  --ink-2: #0a1118;
  --paper: #e6e3da;
  --muted: #a3aaa8;
  --gold: #d6b26a;
  --gold-pale: #f1dca6;
  --line: rgba(214, 178, 106, .32);
  --line-soft: rgba(214, 178, 106, .16);
  --mincho: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", sans-serif;
  /* 作品名の読み。アプリのタイトル画面と同じセリフ体（Apple端末はNew York）と青白 */
  --reading-font: ui-serif, "New York", "Source Serif 4", serif;
  --reading-ink: #d1e6f0;
  --gutter: clamp(20px, 6vw, 96px);
  /* 属性ごとの光の色。旅団の切替で入れ替える */
  --el: #e0703a;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, blockquote { word-break: auto-phrase; line-break: strict; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--gothic); line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--mincho); font-weight: 600; }

/* ---------- ヘッダー：ヒーローの上では透明、下では不透明の黒へ ---------- */

/* ---------- 共通部品 ---------- */
.ornament { display: flex; align-items: center; gap: 12px; width: min(340px, 70%); margin: 1.6rem 0; }
.ornament i { flex: 1; height: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); padding-top: 3px; }
.ornament b { width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* App Storeへの入口：アプリの顔と名前を見せ、金は「入手」の札だけ。ヒーローと締めで共通 */
.cta-stack { display: grid; gap: 1rem; width: min(440px, 100%); }
.cta-stack > * { width: 100%; }
.cta-stack .btn-line { justify-content: center; }
/* 表紙の「戦い方を見る」「カード一覧を見る」を横に並べる。狭い画面では縦に積む（2026-10-15） */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cta-pair .btn-line { justify-content: center; gap: .7rem; padding: 0 1rem; white-space: nowrap; letter-spacing: .08em; }
.cards-link { margin-top: 2.2rem; }
.hand { text-decoration: none; }
.store-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; background: #0d151c; border: 1px solid var(--line); color: var(--paper); text-decoration: none; text-align: left; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); transition: border-color .25s ease, transform .15s ease; }
.store-card::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line-soft); pointer-events: none; }
.store-card img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(214, 178, 106, .45); }
.store-card-text { display: grid; line-height: 1.35; }
.store-card-text small { color: var(--muted); font: 500 .68rem var(--gothic); letter-spacing: .16em; }
.store-card-text strong { font: 600 1.15rem var(--mincho); letter-spacing: .1em; white-space: nowrap; }
.store-card-text span { color: var(--gold); font: 500 .72rem var(--gothic); letter-spacing: .1em; }
.store-card-get { display: grid; place-items: center; min-width: 76px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #140e04; font: 700 .95rem var(--gothic); letter-spacing: .14em; transition: background .2s ease; }
.store-card:hover { border-color: var(--gold); }
.store-card:hover .store-card-get { background: var(--gold-pale); }
.store-card:active { transform: translateY(1px); }
.store-card:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; }
.btn-line { display: inline-flex; align-items: center; gap: 1.2rem; min-height: 58px; padding: 0 1.6rem; border: 1px solid var(--line); color: var(--gold-pale); text-decoration: none; font-weight: 600; letter-spacing: .12em; background: rgba(5, 9, 13, .55); transition: border-color .25s ease, background .25s ease; }
.btn-line::after { content: "→"; transition: transform .25s ease; }
.btn-line:hover { border-color: var(--gold); background: rgba(5, 9, 13, .85); }
.btn-line:hover::after { transform: translateX(4px); }

/* スクロールで浮かび上がる（JSが動くときだけ隠す） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1. キービジュアル ---------- */
.kv { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; align-items: center; padding: 0 var(--gutter); isolation: isolate; }
.kv-art { position: absolute; inset: 0; z-index: -3; }
.kv-art img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; animation: kv-drift 24s ease-out both; }
@keyframes kv-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.kv-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(5, 9, 13, .92) 0%, rgba(5, 9, 13, .6) 32%, rgba(5, 9, 13, 0) 62%),
  linear-gradient(0deg, var(--ink) 0%, rgba(5, 9, 13, 0) 30%),
  linear-gradient(180deg, rgba(5, 9, 13, .7) 0%, rgba(5, 9, 13, 0) 18%); }
.motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.kv-copy { position: relative; padding-top: 40px; }
.kv-reading { position: relative; isolation: isolate; display: inline-block; margin: 0 0 .4rem; padding-left: .1em; color: var(--reading-ink); font: 300 clamp(1rem, 1.5vw, 1.4rem) var(--reading-font); letter-spacing: .9em; text-shadow: 0 0 7px rgba(255, 255, 255, .42), 0 0 20px rgba(176, 214, 232, .45); animation: rise 1.6s ease-out .9s both; }
.kv-reading::before { content: ""; position: absolute; z-index: -1; inset: -.7em -.4em; border-radius: 999px; background: rgba(189, 214, 224, .14); filter: blur(13px); }
.kv-title { display: grid; font-size: clamp(4.4rem, 10.5vw, 10.5rem); line-height: 1; letter-spacing: .02em; text-shadow: 0 4px 40px rgba(0, 0, 0, .9); }
.kv-title-line { display: block; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.kv-title-line + .kv-title-line { padding-left: .9em; animation-delay: .18s; }
.kv .ornament { width: min(360px, 80vw); animation: rise 1.4s ease-out .4s both; }
.kv-slogan { margin: 0; color: var(--gold-pale); font: 500 clamp(1.15rem, 1.9vw, 1.7rem) var(--mincho); letter-spacing: .14em; animation: rise 1.4s ease-out .55s both; }
.kv-actions { margin-top: 2.6rem; animation: rise 1.4s ease-out .75s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.kv-scroll { position: absolute; left: 50%; bottom: 26px; display: grid; justify-items: center; gap: 10px; transform: translateX(-50%); color: var(--muted); text-decoration: none; font: 400 .62rem var(--reading-font); letter-spacing: .5em; padding-left: .5em; }
.kv-scroll i { position: relative; width: 1px; height: 56px; overflow: hidden; background: var(--line-soft); }
.kv-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-pale); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- 2. 世界 ---------- */
.world { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 8rem); padding: clamp(6rem, 12vw, 11rem) var(--gutter); background: radial-gradient(ellipse at 70% 40%, rgba(73, 104, 120, .16), transparent 60%), var(--ink); }
/* 金の二重線の額 */
.world-art { position: relative; margin: 0; padding: 14px; border: 1px solid var(--line); }
.world-art::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); pointer-events: none; }
.world-art img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.world-text { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; }
.tate { writing-mode: vertical-rl; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1.5; letter-spacing: .14em; white-space: nowrap; }
.world-body { max-width: 28rem; padding-top: 1rem; color: #c2c6c1; font-size: 1.05rem; line-height: 2.1; }
.world-body p { margin: 0 0 1.4rem; }
.world-hand { margin-top: 2.2rem !important; color: var(--gold-pale); font: 500 1.25rem var(--mincho); letter-spacing: .08em; }

/* ---------- 3. 属性：6枚を縦に並べ、スクロールだけで全部見せる。人物は左右交互 ---------- */
.elements { background: var(--ink); }
.elements-head { padding: clamp(5rem, 9vw, 8rem) var(--gutter) 1rem; text-align: center; }
/* 2行の見出し。長い句（8字）が320px幅でも1行に収まる大きさ */
.elements-head h2 { font-size: clamp(1.8rem, 5vw, 4.6rem); line-height: 1.35; letter-spacing: .14em; }
.elements-head p { margin: .6rem 0 0; color: var(--muted); letter-spacing: .14em; }
.element { --el: #e0703a; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy hero"; align-items: center; min-height: min(100svh, 940px); padding: 4rem var(--gutter); overflow: hidden; isolation: isolate; }
.element[data-el="tide"] { --el: #5fb3c9; }
.element[data-el="forest"] { --el: #b9b06a; }
.element[data-el="mist"] { --el: #b7a3e0; }
.element[data-el="light"] { --el: #ede6c7; }
.element[data-el="dark"] { --el: #a294b3; }
.element:nth-of-type(even) { grid-template-areas: "hero copy"; }
.element-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.6); }
/* 文字の側を暗くし、上下は隣の属性と黒で継ぐ */
.element::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(5, 9, 13, .94) 0%, rgba(5, 9, 13, .7) 40%, rgba(5, 9, 13, .15) 78%),
  linear-gradient(0deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%); }
.element:nth-of-type(even)::before { background:
  linear-gradient(270deg, rgba(5, 9, 13, .94) 0%, rgba(5, 9, 13, .7) 40%, rgba(5, 9, 13, .15) 78%),
  linear-gradient(0deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%); }
.element-glyph { position: absolute; z-index: -1; top: 50%; right: 14%; transform: translateY(-50%); font: 700 clamp(20rem, 46vw, 46rem) / 1 var(--mincho); color: color-mix(in srgb, var(--el) 7%, transparent); -webkit-text-stroke: 1.5px color-mix(in srgb, var(--el) 80%, transparent); opacity: .5; user-select: none; }
.element:nth-of-type(even) .element-glyph { right: auto; left: 14%; }
.element-hero { grid-area: hero; justify-self: center; width: auto; height: min(84svh, 800px); object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .75)) drop-shadow(0 0 60px color-mix(in srgb, var(--el) 30%, transparent)); }
/* 熾天使は翼が横に広いので場面の画像が横長（970x1100）。他の人物と同じ高さで出しつつ、文へ大きくかぶらないよう列の幅＋少しまでに抑える（2026-10-16） */
.element[data-el="light"] .element-hero { max-width: calc(100% + 8vw); }
.element-copy { grid-area: copy; position: relative; max-width: 30rem; }
.element:nth-of-type(even) .element-copy { justify-self: end; }
.element-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin: 0 0 1.1rem; color: var(--el); font: 600 1.15rem var(--mincho); letter-spacing: .2em; }
.element-name span { color: var(--muted); font: 500 .8rem var(--gothic); letter-spacing: .14em; }
/* 句の途中で折らない。最長8字が本文欄（30rem）に1行で収まる大きさ */
.element h3 { font-size: clamp(2.4rem, 3.6vw, 3.5rem); line-height: 1.2; letter-spacing: .04em; }
.element-copy > p:not(.element-name):not(.element-card) { margin: 1.4rem 0 0; color: #cfd0ca; font-size: 1.02rem; }
.element blockquote { margin: 1.4rem 0 0; color: var(--gold-pale); font: 500 1.1rem var(--mincho); letter-spacing: .06em; }
.element cite { display: block; margin-top: .3rem; color: var(--muted); font: normal .76rem var(--gothic); letter-spacing: .14em; }
.element cite::before { content: "― "; }
.element-card { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; letter-spacing: .14em; }
.element-card span { white-space: nowrap; color: var(--paper); font: 600 1.05rem var(--mincho); letter-spacing: .1em; }
/* 画面に入ったら、人物は横から、文字は下から、字形はふわりと現れる（JSが動くときだけ） */
.js .element .element-hero { opacity: 0; transform: translateX(60px) scale(.97); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .element:nth-of-type(even) .element-hero { transform: translateX(-60px) scale(.97); }
.js .element .element-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .element .element-glyph { opacity: 0; transition: opacity 1.6s ease; }
.js .element.is-in .element-hero { opacity: 1; transform: none; }
.js .element.is-in .element-copy > * { opacity: 1; transform: none; }
.js .element.is-in .element-copy > *:nth-child(2) { transition-delay: .08s; }
.js .element.is-in .element-copy > *:nth-child(3) { transition-delay: .16s; }
.js .element.is-in .element-copy > *:nth-child(4) { transition-delay: .24s; }
.js .element.is-in .element-copy > *:nth-child(5) { transition-delay: .32s; }
.js .element.is-in .element-glyph { opacity: .5; }

/* ---------- 4. 戦い方：三枚の縦長の画。指した一枚が広がる ---------- */
.battle { padding: clamp(6rem, 11vw, 10rem) var(--gutter); background: var(--ink); }
.battle-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.battle-head h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.35; letter-spacing: .04em; }
.battle-head p { margin: 0; max-width: 30rem; color: var(--muted); }
.pillars { display: flex; gap: 10px; height: min(76svh, 680px); min-height: 520px; }
.pillar { position: relative; flex: 1; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); transition: flex .7s cubic-bezier(.2, .7, .2, 1), border-color .4s ease; }
.pillar:hover { flex: 1.7; border-color: var(--line); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.85); transform: scale(1.04); transition: transform 1.2s ease, filter .6s ease; }
.pillar:hover img { transform: scale(1); filter: brightness(.7) saturate(1); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 9, 13, .97) 0%, rgba(5, 9, 13, .75) 38%, transparent 70%); }
.pillar-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 2.4vw, 2.4rem); }
/* 用語（旅団長・進軍・対抗）を出す。4文字でも狭い柱に1行で収まる大きさにする */
.pillar-kanji { display: block; margin-bottom: .6rem; color: var(--gold); font: 600 clamp(2.4rem, 3.4vw, 3.6rem) / 1.1 var(--mincho); letter-spacing: .04em; white-space: nowrap; text-shadow: 0 0 30px rgba(214, 178, 106, .35); }
.pillar h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: .06em; }
.pillar p { margin: .7rem 0 0; max-width: 24rem; color: #c3c5c0; font-size: .95rem; }

/* ---------- 5. カード ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4vw; padding: clamp(5rem, 10vw, 9rem) var(--gutter); overflow: hidden; background: radial-gradient(ellipse at 68% 50%, rgba(178, 140, 77, .14), transparent 55%), var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cards h2 { font-size: clamp(1.9rem, 3.1vw, 3.1rem); line-height: 1.4; letter-spacing: .04em; }
.cards .num { color: var(--gold-pale); font: 400 1.5em var(--reading-font); letter-spacing: 0; margin-right: .08em; }
.cards-copy p { margin: 1.6rem 0 0; max-width: 28rem; color: var(--muted); }
.hand { display: flex; justify-content: center; align-items: center; padding: 3rem 0; perspective: 1200px; }
.tilt { width: 28%; max-width: 270px; height: auto; margin: 0 -2.2%; border-radius: 12px; box-shadow: 0 30px 50px rgba(0, 0, 0, .7); transform-origin: 50% 110%; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; will-change: transform; }
.tilt:nth-child(1) { transform: rotate(-9deg) translateY(18px); }
.tilt:nth-child(2) { transform: rotate(-3deg); }
.tilt:nth-child(3) { transform: rotate(3deg); }
.tilt:nth-child(4) { transform: rotate(9deg) translateY(18px); }
.tilt:hover { z-index: 2; transform: translateY(-28px) scale(1.08) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 40px 70px rgba(0, 0, 0, .8), 0 0 40px rgba(214, 178, 106, .25); }

/* ---------- 6. 配信 ---------- */
.release { position: relative; display: grid; place-items: center; min-height: 92svh; padding: 7rem var(--gutter); overflow: hidden; isolation: isolate; text-align: center; }
.release-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); }
.release-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 9, 13, .55), rgba(5, 9, 13, .95) 75%), linear-gradient(0deg, var(--ink), transparent 30%, transparent 70%, var(--ink)); }
/* 不透明な黒の面に金の二重線の額 */
.release-frame { position: relative; display: grid; justify-items: center; width: min(720px, 100%); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); background: rgba(5, 9, 13, .94); border: 1px solid var(--line); }
.release-frame::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-soft); pointer-events: none; }
.release h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.35; letter-spacing: .1em; }
.release .ornament { margin-inline: auto; }
.release-frame > p { margin: 0; color: #c3c5c0; }
.release .cta-stack { margin: 2.2rem auto 0; }

/* ---------- フッター ---------- */

/* ---------- 小画面 ---------- */
@media (max-width: 860px) {

  .kv { align-items: end; padding-bottom: 110px; }
  .kv-art img { object-position: 50% 30%; }
  .kv-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(5, 9, 13, .82) 34%, rgba(5, 9, 13, .1) 70%, rgba(5, 9, 13, .55) 100%); }
  .kv-title { font-size: clamp(3.8rem, 19vw, 6.4rem); }
  .kv-actions { margin-top: 1.8rem; }
  .kv-scroll { display: none; }

  .world { grid-template-columns: 1fr; gap: 3rem; }
  .world-text { flex-direction: column; gap: 1.6rem; }
  .tate { writing-mode: horizontal-tb; font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.4; white-space: normal; letter-spacing: .1em; }
  .world-body { padding-top: 0; }

  .element, .element:nth-of-type(even) { grid-template-columns: 1fr; grid-template-areas: "hero" "copy"; align-content: start; min-height: 0; padding: 3rem var(--gutter) 4.5rem; }
  .element::before, .element:nth-of-type(even)::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(5, 9, 13, .9) 40%, rgba(5, 9, 13, .3) 72%, var(--ink) 100%); }
  .element-hero { height: 52svh; min-height: 320px; margin-bottom: .4rem; }
  .element-glyph, .element:nth-of-type(even) .element-glyph { top: 30%; left: 50%; right: auto; transform: translate(-50%, -50%); font-size: 66vw; }
  .element:nth-of-type(even) .element-copy { justify-self: start; }
  .element h3 { font-size: clamp(2rem, 9.4vw, 3rem); }
  .elements-head h2 { font-size: clamp(1.9rem, 10vw, 2.8rem); letter-spacing: .06em; }

  .battle-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .pillars { flex-direction: column; height: auto; min-height: 0; }
  .pillar { min-height: 340px; }
  .pillar:hover { flex: 1; }

  .cards { grid-template-columns: 1fr; }
  .hand { padding: 1rem 0 2rem; }
  .tilt { width: 30%; margin: 0 -4%; }
}

@media (max-width: 420px) {
  /* 小画面は枠の左右を詰め、入口の札を一回り小さくして作品名を1行に保つ */
  .release { padding-inline: 12px; }
  .release-frame { padding-inline: 1rem; }
  /* 日付「2026年10月3日、」を1行に収める大きさ（320pxでも折り返さない） */
  .release h2 { font-size: clamp(1.6rem, 8.4vw, 2.6rem); letter-spacing: .06em; }
  .store-card { gap: 10px; padding: 12px; }
  .store-card img { width: 52px; height: 52px; border-radius: 12px; }
  .store-card-text strong { font-size: 1.02rem; letter-spacing: .06em; }
  .store-card-get { min-width: 58px; height: 36px; padding: 0 12px; font-size: .88rem; letter-spacing: .08em; }
  .cta-stack .btn-line { gap: .8rem; padding: 0 1rem; letter-spacing: .06em; white-space: nowrap; }
  .cta-pair { grid-template-columns: 1fr; }
  .cards-link { max-width: 100%; gap: .6rem; padding: 0 1rem; font-size: .92rem; letter-spacing: .04em; }
  .kv-reading { letter-spacing: .7em; }
  .ornament { margin: 1.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.nw { white-space: nowrap; }

/* 6. 解説ブログ（2026-10-18）：記事への入口。並びは site/blog/build.py の TOP_PICKS */
.top-blog { padding: clamp(5rem, 10vw, 8rem) var(--gutter); border-bottom: 1px solid var(--line-soft); }
.top-blog-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.top-blog h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.45; letter-spacing: .04em; }
.top-blog-head p { margin: 1rem 0 0; color: var(--muted, #9aa8aa); line-height: 1.9; }
.top-blog-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.tb-post { display: grid; align-content: start; gap: .7rem; min-width: 0; padding-bottom: 1rem; border: 1px solid var(--line); background: var(--ink); color: inherit; text-decoration: none; transition: border-color .2s ease; }
.tb-post:hover { border-color: var(--gold); }
.tb-post img { width: 100%; height: auto; aspect-ratio: 600 / 315; object-fit: cover; }
.tb-post span { display: grid; gap: .35rem; padding: 0 1rem; }
.tb-post small { color: var(--gold); font: 600 .74rem var(--gothic); letter-spacing: .08em; }
.tb-post strong { font: 600 1rem/1.65 "Noto Serif JP", serif; overflow-wrap: anywhere; }
.tb-post:hover strong { color: var(--gold-pale); }
.top-blog-link { display: flex; width: fit-content; margin: 2.4rem auto 0; }
@media (max-width: 900px) { .top-blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .top-blog-list { grid-template-columns: minmax(0, 1fr); } }

/* 375px未満：句を折らない見出し（.nw）が入れ物を超えないよう、画面幅に合わせて縮める（2026-10-19、320pxで「159種のカードから、」「ファンタジーの「なぜ」。」がはみ出した） */
@media (max-width: 374px) {
  .cards h2 { font-size: 8vw; }
  .top-blog h2 { font-size: 7.2vw; }
}

/* 遊び方ガイドの動画：左に縦長の動画、右に短い案内。小画面では縦に積む */
.guide-video { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.guide-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 14px; background: #000; }
.guide-video h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: .05em; }
.guide-video p { margin: .9rem 0 0; max-width: 26rem; color: var(--muted); }
.guide-video-link { display: inline-block; margin-top: 1.4rem; padding: .7rem 1.4rem; border: 1px solid var(--gold); color: var(--gold-pale); text-decoration: none; letter-spacing: .06em; }
.guide-video-link:hover { background: rgba(214, 178, 106, .1); }
@media (max-width: 860px) {
  .guide-video { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .guide-video video { width: min(340px, 100%); }
  .guide-video p { margin-left: auto; margin-right: auto; }
}
