/* ============================================================
   PixelRyu — site.css  (design system v1.1 "和モダン・プレミアム")
   墨色の地に朱の落款。色を持つのはゲームのキーアートだけ。
   このファイルは各ページのインライン <style> より後に読み込む。
   同詳細度なら後勝ちで既存のハードコード色を上書きする。
   ============================================================ */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 地（墨） */
  --bg-0: #0B0E13;
  --bg-1: #12161D;
  --bg-2: #1A1F28;
  --bg-3: #222834;
  --washi: #F2EDE3;
  --ink-on-washi: #1B1E24;
  /* 文字 */
  --text-0: #EDEFF4;
  --text-1: #A9B2C3;
  --text-2: #8B94A6;
  /* アクセント */
  --accent-shu: #C73E3A;
  --accent-shu-hi: #E05348;
  --accent-kin: #C9A227;
  --link: #8FB8FF;
  --link-hi: #B3CEFF;
  /* 線・面 */
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --surface: rgba(255,255,255,0.035);
  --surface-hi: rgba(255,255,255,0.06);
  --focus: #8FB8FF;
  /* ジャンル */
  --genre-puzzle: #7FD0DC;
  --genre-action: #E8A94A;
  /* 地紋・影・被せもの（ライトテーマで反転させるため変数にしてある） */
  --glow: rgba(199,62,58,0.05);
  --grain: rgba(255,255,255,0.010);
  --header-bg: rgba(11,14,19,0.82);
  --overlay: rgba(11,14,19,0.72);
  --on-accent: #fff;              /* 朱の上に乗る文字 */
  --badge-ring: transparent;      /* 白いストアバッジの輪郭（明地でだけ効かせる） */
  --shadow-sm: 0 4px 14px rgba(0,0,0,.45);
  --shadow-md: 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.55);
  --shadow-pop: 0 24px 60px rgba(0,0,0,.5);
  /* 字（見出しは明朝＝和のトーン。Webフォントは読み込まずシステム明朝で軽く保つ） */
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
  /* 寸法 */
  --wrap: 1120px;
  --radius: 14px;
  --header-h: 60px;
  color-scheme: dark;   /* スクロールバーや <select> など OS 描画の部品も地に合わせる */
}

/* ---------- 1b. ライトテーマ（和紙）----------
   既定は墨ダーク（承認済みのブランド意匠）。ライトは利用者が明示的に選んだときだけ。
   OS の prefers-color-scheme では自動で切り替えない ＝ 初訪問の見え方を変えないため。
   切替は <html data-theme="light"> の付け外しだけで、要素側の CSS には一切触らない。
   ★色を足すときは必ずここにも対を書く。片方だけだと明地で文字が消える。
   コントラスト実測（WCAG AA 4.5:1 以上）:
     text-0 #14171D on bg-0 #F4F1EA = 15.0 / text-1 #414A59 = 7.7 / text-2 #5A6272 = 5.4
     link #14509E = 6.6 / on-accent #fff on accent-shu #A82F2B = 6.0
     accent-kin #7A5E10 = 6.0 / genre-puzzle #10646F = 5.6 / genre-action #8A5210 = 5.4 */
:root[data-theme="light"] {
  --bg-0: #F4F1EA;
  --bg-1: #FBF9F4;
  --bg-2: #FFFFFF;
  --bg-3: #EDE8DC;
  --washi: #FFFFFF;
  --ink-on-washi: #1B1E24;
  --text-0: #14171D;
  --text-1: #414A59;
  --text-2: #5A6272;
  --accent-shu: #A82F2B;
  --accent-shu-hi: #8E2522;
  --accent-kin: #7A5E10;
  --link: #14509E;
  --link-hi: #0D3A75;
  --line: rgba(20,23,29,0.14);
  --line-strong: rgba(20,23,29,0.26);
  --surface: rgba(20,23,29,0.035);
  --surface-hi: rgba(20,23,29,0.06);
  --focus: #14509E;
  --genre-puzzle: #10646F;
  --genre-action: #8A5210;
  --glow: rgba(168,47,43,0.06);
  --grain: rgba(20,23,29,0.022);
  --header-bg: rgba(244,241,234,0.88);
  --overlay: rgba(244,241,234,0.78);
  --on-accent: #fff;
  --badge-ring: rgba(20,23,29,0.16);
  --shadow-sm: 0 3px 10px rgba(20,23,29,.10);
  --shadow-md: 0 8px 22px rgba(20,23,29,.12);
  --shadow-lg: 0 14px 32px rgba(20,23,29,.14);
  --shadow-pop: 0 20px 48px rgba(20,23,29,.16);
  color-scheme: light;
}

/* ---------- 2. 土台の上書き ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0) !important;   /* 既存の radial-gradient を確実に置換 */
  color: var(--text-0);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: block;                        /* 既存の flex 中央寄せを解除 */
  margin: 0;
  padding-top: var(--header-h);          /* sticky ヘッダーの高さ分 */
}
/* 和紙のごく薄い地紋（画像を使わず CSS だけで質感を出す） */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--glow), transparent 60%),
    repeating-linear-gradient(0deg, var(--grain) 0 1px, transparent 1px 3px);
}
body > * { position: relative; z-index: 1; }

.container {
  max-width: var(--wrap) !important;
  padding: 0 24px 96px !important;
  margin: 0 auto;
  text-align: left;
}

/* ---------- 3. ブランドマーク（竜アイコン） ----------
   ヘッダー/フッターの PixelRyu マーク。透過画像なので明地・暗地とも地に馴染む。
   ★img.pr-brandmark と要素付きで書くこと。`.container img { max-width:100% }` が
     (0,1,1) でクラス単独(0,1,0)より強く、寸法指定が効かなくなる。 */
img.pr-brandmark {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%;
  transition: transform .25s ease;
}
.pr-brand:hover img.pr-brandmark { transform: rotate(-6deg) scale(1.04); }
.pr-footer-bottom img.pr-brandmark { width: 22px; height: 22px; opacity: .9; }

/* ---------- 3b. 旧・竜の落款（現在は未使用。意匠の履歴として残す） ---------- */
.pr-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: 0 0 auto;
  background: var(--accent-shu); border-radius: 3px;
  color: var(--on-accent); font-family: var(--font-display); font-weight: 700;
  line-height: 1; user-select: none;
  transition: transform .25s ease;
}
.pr-seal span { font-size: 17px; transform: translateY(0.5px); }
.pr-seal-lg { width: 46px; height: 46px; }
.pr-seal-lg span { font-size: 26px; }
a:hover > .pr-seal, .pr-brand:hover .pr-seal { transform: rotate(-3deg); }

/* ---------- 4. グローバルヘッダー ---------- */
.pr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pr-header-in {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pr-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; letter-spacing: .02em;
  color: var(--text-0); text-decoration: none; white-space: nowrap;
}
.pr-nav { display: flex; align-items: center; gap: 4px; }
.pr-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 14px; border-radius: 8px;
  color: var(--text-1); text-decoration: none;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.pr-nav a:hover { color: var(--text-0); background: var(--surface-hi); }
.pr-nav a[aria-current="page"] { color: var(--text-0); box-shadow: inset 0 -2px 0 var(--accent-shu); }
.pr-nav-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; margin-left: 6px;
  border-left: 1px solid var(--line); padding-left: 12px;
  color: var(--text-1); text-decoration: none;
}
.pr-nav-lang:hover { color: var(--text-0); }
.pr-nav-lang svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* モバイル: JS 不要の details 開閉 */
.pr-burger { display: none; }
.pr-burger > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; color: var(--text-1);
}
.pr-burger > summary::-webkit-details-marker { display: none; }
.pr-burger > summary svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.pr-burger[open] > summary { background: var(--surface-hi); color: var(--text-0); }

/* ---------- 5. スキップリンク ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-shu); color: var(--on-accent); padding: 10px 16px; border-radius: 0 0 8px 0;
  text-decoration: none; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- 6. 見出し・本文 ---------- */
h1, h2, h3, .pr-display {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: .01em; color: var(--text-0);
  -webkit-text-fill-color: currentColor;   /* 既存の background-clip:text グラデを無効化 */
  background: none !important;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.18; margin: 0 0 14px; }
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3;
  margin: 0 0 18px; color: var(--text-0);
  text-transform: none; letter-spacing: .01em;   /* 既存の大文字化・字間を解除 */
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ""; flex: 0 0 auto; width: 3px; height: 1em;
  background: var(--accent-shu); border-radius: 2px;
}
h2.pr-plain::before { display: none; }
p, li, .desc { color: var(--text-1); line-height: 1.75; }
a { color: var(--link); }
a:hover { color: var(--link-hi); }
:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}

/* ---------- 7. トップのヒーロー ---------- */
.pr-hero {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center;
  padding: 64px 0 52px;
}
.pr-hero-copy h1 { margin-bottom: 18px; }
.pr-hero-sub { font-size: 17px; color: var(--text-1); max-width: 46ch; margin: 0 0 26px; }
.pr-hero-art { position: relative; }
.pr-hero-art img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.pr-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 10px;
  font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pr-btn-primary { background: var(--accent-shu); color: var(--on-accent); }
/* フッター内のボタンは `.pr-footer a`(0,1,1) が `.pr-btn-primary`(0,1,0) に勝ってしまい、
   朱の上に本文色が乗って読めなくなる。ボタンだけ詳細度を上げて取り返す。 */
.pr-footer a.pr-btn-primary, .pr-news a.pr-btn-primary { color: var(--on-accent); }
.pr-btn-primary:hover { background: var(--accent-shu-hi); color: var(--on-accent); transform: translateY(-2px); }
.pr-btn-ghost { border-color: var(--line-strong); color: var(--text-0); }
.pr-btn-ghost:hover { background: var(--surface-hi); color: var(--text-0); transform: translateY(-2px); }

/* ---------- 8. セクション ---------- */
.pr-section { padding: 56px 0 8px; }
.pr-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pr-section-head .pr-more { font-size: 14px; text-decoration: none; white-space: nowrap; }
.pr-lead { color: var(--text-1); max-width: 68ch; margin: -6px 0 26px; }

/* 和紙帯（数字などを置く明るい面） */
.pr-washi {
  background: var(--washi); color: var(--ink-on-washi);
  border-radius: var(--radius); padding: 34px 28px; margin: 12px 0 8px;
}
.pr-washi h2, .pr-washi h3 { color: var(--ink-on-washi); }
.pr-washi p { color: #4A5160; }
.pr-stats { display: flex; flex-wrap: wrap; gap: 12px 56px; justify-content: center; }
.pr-stat { text-align: center; min-width: 116px; }
.pr-stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 600; line-height: 1.1;
  color: var(--ink-on-washi);
}
.pr-stat b::after { content: "."; color: var(--accent-shu); }
.pr-stat span { font-size: 13px; color: #5D6473; letter-spacing: .04em; }

/* ---------- 9. Featured（最新作） ---------- */
.pr-featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 34px;
}
.pr-featured-art { position: relative; min-height: 260px; background: var(--bg-2); }
.pr-featured-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-featured-body { padding: 30px 30px 26px; display: flex; flex-direction: column; justify-content: center; }
.pr-badge-new {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px;
  background: rgba(201,162,39,0.14); color: var(--accent-kin);
  border: 1px solid rgba(201,162,39,0.32);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.pr-featured-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; color: var(--text-0);
}
.pr-featured-body h3 a { color: var(--text-0) !important; text-decoration: none; }
.pr-featured-body h3 a:hover { color: var(--link-hi) !important; }
.pr-featured-body .store-badges img, .pr-featured-body .store-badges svg { height: 44px !important; }
.pr-featured-body .pr-poetic { color: var(--text-1); font-size: 16px; margin: 0 0 18px; }

/* ---------- 10. ゲームカード（既存 .game-card を刷新） ---------- */
.game-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.game-card {
  background: var(--bg-1) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 20px !important;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong) !important;
  background: var(--bg-2) !important;
}
.game-head { display: flex; align-items: center; gap: 13px; }
.game-icon {
  width: 52px !important; height: 52px !important;
  border-radius: 12px !important; flex: 0 0 auto;
  box-shadow: var(--shadow-sm) !important;
}
.game-title { min-width: 0; }
.game-no { font-size: 11px !important; color: var(--text-2) !important; letter-spacing: .1em; }
.game-card a { font-size: 19px !important; color: var(--text-0) !important; text-decoration: none; font-family: var(--font-display); }
.game-card a:hover { color: var(--link-hi) !important; }
/* カードの説明は3行で打ち切る（一覧はスキャンするもの。全文は詳細ページで読ませる）。
   ★flex:1 1 auto と -webkit-line-clamp を併用すると、flex が高さを伸ばして4行目以降が
   はみ出しバッジに重なる。flex は伸ばさず max-height で確実に切る。 */
.game-card .desc {
  font-size: 14px !important; color: var(--text-1) !important; margin: 0;
  flex: 0 0 auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; line-height: 1.6;
  max-height: 4.8em; min-height: 4.8em;   /* 1.6em × 3行 = 高さを揃える */
}
.game-card .store-badges { margin-top: auto !important; }   /* バッジは常にカード下端へ */
.game-card .links a { font-size: 12.5px !important; color: var(--text-2) !important; font-family: var(--font-body); text-decoration: none; border-bottom: 1px solid var(--line); }
.game-card .links a:hover { color: var(--text-0) !important; }
.genre-tag {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  font-size: 11px !important; letter-spacing: .06em;
}
.genre-puzzle { color: var(--genre-puzzle) !important; }
.genre-action { color: var(--genre-action) !important; }

/* ジャンルフィルタ */
.genre-filter { justify-content: flex-start !important; margin: 0 0 22px !important; }
.filter-btn {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  color: var(--text-1) !important; min-height: 40px; border-radius: 999px !important;
}
.filter-btn:hover { background: var(--surface-hi) !important; color: var(--text-0) !important; }
.filter-btn.is-active {
  background: var(--accent-shu) !important; border-color: var(--accent-shu) !important;
  color: var(--on-accent) !important;
}
.filter-count { opacity: .75; }

/* ストアバッジ（位置合わせハックを解除して素直な横並びに） */
.store-badges, .hero-badges {
  display: flex !important; flex-wrap: wrap; align-items: center;
  gap: 10px !important; margin: 0 !important;
}
.googleplay-badge, .appstore-badge + .googleplay-badge, .googleplay-badge + .roblox-badge {
  margin-left: 0 !important;
}
/* カード内は3バッジが1行に収まる高さに（44px 幅のタップ領域は <a> 側で確保） */
.store-badges img, .store-badges svg { height: 31px !important; width: auto !important; }
.store-badges > a, .store-badges > span { display: inline-flex; align-items: center; min-height: 40px; }
.hero-badges img, .hero-badges svg { height: 48px !important; width: auto !important; }
.badge-ghost { display: none !important; }
.soon-stamp { color: var(--accent-shu) !important; }

/* ---------- 11. ゲーム詳細ページ ---------- */
.pr-gamehero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center;
  padding: 34px 0 30px;
}
.pr-gamehero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); }
.pr-gamehero-media img, .pr-gamehero-media video { display: block; width: 100%; height: auto; }
.pr-poetic {
  font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-1); margin: 0 0 20px; line-height: 1.6;
}
.pr-qr { display: none; }
@media (min-width: 900px) {
  .pr-qr { display: block; margin-top: 18px; }
  .pr-qr img { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }
  .pr-qr span { display: block; font-size: 12px; color: var(--text-2); margin-top: 6px; }
}
/* スクリーンショット横スクロール */
.pr-shots {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 16px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pr-shots img {
  flex: 0 0 auto; width: 210px; height: auto; scroll-snap-align: start;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1);
}
/* 特徴3ブロック */
.pr-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 12px; }
.pr-feature h3 { font-size: 17px; margin: 0 0 6px; }
.pr-feature p { font-size: 14.5px; margin: 0; }
.pr-feature .pr-ic { width: 30px; height: 30px; stroke: var(--accent-shu); fill: none; stroke-width: 1.5; margin-bottom: 10px; }

/* 既存カード類（tester-card / faq-card / info-card / what-card）を統一意匠へ */
.tester-card, .tester-card-base, .faq-card, .info-card, .what-card {
  background: var(--bg-1) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  color: var(--text-1);
}
.promo-video { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-1); }
.overview-link, .back { color: var(--link) !important; }
.legal-divider { border-color: var(--line) !important; }
.subtitle, .tagline, .soon-note { color: var(--text-1) !important; }

/* FAQ アコーディオン（<details> 版） */
.pr-faq { border-top: 1px solid var(--line); }
.pr-faq details { border-bottom: 1px solid var(--line); }
.pr-faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 2px; position: relative;
  color: var(--text-0); font-size: 15.5px; min-height: 24px;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--accent-shu); font-size: 20px; line-height: 1;
}
.pr-faq details[open] summary::after { content: "−"; }
.pr-faq .pr-faq-a { padding: 0 8px 18px 2px; margin: 0; font-size: 14.5px; }

/* ---------- 12. フッター ---------- */
.pr-footer {
  border-top: 1px solid var(--line); background: var(--bg-1);
  margin-top: 80px; padding: 48px 0 34px;
}
.pr-footer-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 34px;
}
.pr-footer h4 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 12px; font-family: var(--font-body); font-weight: 600;
}
.pr-footer ul { list-style: none; padding: 0; margin: 0; }
.pr-footer li { margin-bottom: 8px; line-height: 1.4; }
.pr-footer a { color: var(--text-1); text-decoration: none; font-size: 14px; }
.pr-footer a:hover { color: var(--text-0); text-decoration: underline; }
.pr-footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pr-footer-langs a { font-size: 13px; min-height: 24px; display: inline-flex; align-items: center; }
/* フッターの SNS は 4×2 の整然としたグリッドにする（幅の都合で 5+3 に割れるのを防ぐ） */
.pr-footer-social {
  display: grid !important; grid-template-columns: repeat(4, 40px);
  gap: 8px; margin: 0 !important;
}
.pr-footer-social a { width: 40px !important; height: 40px !important; }
.pr-footer-social svg { width: 18px; height: 18px; }

.pr-news {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.pr-news p { font-size: 13.5px; margin: 0 0 12px; color: var(--text-1); }
.pr-footer-bottom {
  max-width: var(--wrap); margin: 34px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}
.pr-footer-bottom .pr-seal { opacity: .9; }
/* 既存フッター（トップの .footer）は新フッターに置き換わるので詰める */
.footer { color: var(--text-2) !important; margin-top: 40px !important; font-size: 13px; }

/* SNS アイコン */
.social a {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  color: var(--text-1) !important; width: 40px !important; height: 40px !important;
}
.social a:hover { background: var(--surface-hi) !important; color: var(--text-0) !important; }
.social-heading { color: var(--text-0) !important; }

/* ---------- 13. 言語スイッチ（既存 select を新意匠に） ---------- */
.lang-switch { position: static !important; margin: 10px 0 0; text-align: right; }
.lang-switch select {
  background: var(--bg-2) !important; color: var(--text-1) !important;
  border: 1px solid var(--line) !important; border-radius: 8px !important;
  min-height: 40px; min-width: 132px; padding: 8px 12px !important;
  font-size: 13.5px;
}
.lang-switch select:hover { border-color: var(--line-strong) !important; color: var(--text-0) !important; }
.lang-switch select option { background: var(--bg-2); color: var(--text-0); }

/* ---------- 14. スクロール出現（JS が .is-visible を付ける） ---------- */
.pr-reveal { opacity: 0; transform: translateY(12px); }
.pr-reveal.is-visible { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }

/* ---------- 15. レスポンシブ ---------- */
@media (max-width: 1000px) {
  .game-list { grid-template-columns: repeat(2, 1fr); }
  .pr-features { grid-template-columns: 1fr; gap: 18px; }
  .pr-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .pr-nav { display: none; }
  .pr-burger { display: block; position: relative; }
  .pr-burger[open] .pr-burger-menu { display: flex; }
  .pr-burger-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    flex-direction: column; min-width: 190px; padding: 8px;
    background: var(--bg-1); border: 1px solid var(--line-strong);
    border-radius: 12px; box-shadow: var(--shadow-lg);
  }
  .pr-burger-menu a {
    padding: 11px 14px; min-height: 44px; display: flex; align-items: center;
    color: var(--text-1); text-decoration: none; font-size: 14px; border-radius: 8px;
  }
  .pr-burger-menu a:hover { background: var(--surface-hi); color: var(--text-0); }
  .pr-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 30px; }
  .pr-gamehero { grid-template-columns: 1fr; gap: 22px; }
  .pr-featured { grid-template-columns: 1fr; }
  .pr-featured-art { min-height: 190px; }
  .game-list { grid-template-columns: 1fr; }
  .container { padding: 0 18px 72px !important; }
  .pr-footer-in { grid-template-columns: 1fr; gap: 26px; }
  .pr-shots img { width: 168px; }
  .pr-stats { gap: 18px 30px; }
}

/* ============================================================
   18. ゲーム詳細ページの完全定義
   各ページのインライン <style>（アプリ固有パレット）を撤去し、
   ここだけで見た目が決まるようにする。旧CSSに存在した全セレクタを網羅。
   ============================================================ */
body.pr-game .container, body.pr-page .container { max-width: 900px !important; }
body.pr-game .container { text-align: left; padding-top: 26px !important; }

/* ヒーロー周り */
.brand-icon {
  display: block; width: 92px !important; height: 92px !important;
  border-radius: 20px; margin: 0 0 18px;
  box-shadow: var(--shadow-md); filter: none !important;
}
body.pr-game h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.2rem); margin: 0 0 10px; color: var(--text-0);
}
h1 .accent, h1 .kanji, h1 .jp {
  color: var(--accent-shu) !important; -webkit-text-fill-color: var(--accent-shu);
  background: none !important;
}
h1 .kanji, h1 .jp { font-size: .55em; margin-left: .4em; letter-spacing: .08em; color: var(--text-1) !important; -webkit-text-fill-color: var(--text-1); }
.tagline { font-size: 15px; color: var(--text-2) !important; margin: 0 0 6px; letter-spacing: .02em; }
body.pr-game .tagline { text-transform: uppercase; font-size: 12.5px; letter-spacing: .16em; }
.subtitle { font-size: 17px; color: var(--text-1) !important; margin: 0 0 22px; max-width: 62ch; line-height: 1.7; }
.lead { color: var(--text-1) !important; font-size: 16px; line-height: 1.75; max-width: 66ch; }
/* キービジュアル。実 HTML のクラス名は .key-art（.key-hero も歴史的に存在） */
.key-art, .key-hero {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); margin: 6px 0 22px;
}
/* 保険: コンテンツ内の画像・動画・iframe は決してコンテンツ幅を超えない。
   個別クラスの付け忘れ／未知のクラス名でも横スクロールを起こさないための一般則。 */
.container img, .container video, .container iframe, .container svg { max-width: 100%; }

/* ストアバッジ / COMING SOON */
.hero-badges { margin: 4px 0 26px !important; }
.hero-badges a { display: inline-block; line-height: 0; transition: transform .2s ease, opacity .2s ease; }
.hero-badges a:hover { transform: translateY(-2px); opacity: .9; }
/* COMING SOON（未配信プラットフォーム）
   実際の HTML は親に .soon クラスを持たず <span class="soon-cell"> 単体なので、
   .soon-cell だけで成立させる。ここを親セレクタで限定すると全ページで無効になる。 */
.soon-cell { position: relative; display: inline-block; line-height: 0; }
.soon-cell .badge-art,
.soon-cell .appstore-badge,
.soon-cell .googleplay-badge,
.soon-cell .roblox-badge,
.soon-cell > svg,
.soon-cell > img {
  display: inline-block; line-height: 0;
  filter: grayscale(1) brightness(.72); opacity: .5; pointer-events: none;
}
.soon-stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-11deg);
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  /* 親 .soon-cell の line-height:0 を継承すると帯の高さが padding 分しか無くなり、
     文字が上下にはみ出す（明地では背後が白く抜けて判読不能になる）。 */
  line-height: 1.35;
  white-space: nowrap; color: var(--on-accent) !important; pointer-events: none;
  background: var(--accent-shu); border-radius: 3px;
  box-shadow: var(--shadow-md);
  font-size: 8.5px; padding: 2px 5px;          /* 一覧カードの小さいバッジに収まる寸法 */
}
.hero-badges .soon-stamp { font-size: 11px; padding: 3px 8px; }   /* 詳細ページは大きめ */
.soon-note { font-size: 13.5px; color: var(--text-2) !important; margin: -14px 0 22px; }
.appstore-note { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }
.store-live { }

/* 動画・overview 導線 */
.promo-video {
  display: block; width: 100%; height: auto; margin: 8px 0 26px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #000;
}
.video-pair .promo-video { margin-bottom: 14px; }
.overview-link, .classic-cta, .newver-banner {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 11px 20px; margin: 0 0 24px; border-radius: 10px;
  background: var(--surface) !important; border: 1px solid var(--line-strong) !important;
  color: var(--text-0) !important; text-decoration: none !important; font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.overview-link:hover, .classic-cta:hover, .newver-banner:hover {
  background: var(--surface-hi) !important; transform: translateY(-2px); color: var(--text-0) !important;
}

/* カード群（tester / faq / info / what） */
.tester-card, .tester-card-base, .faq-card, .info-card, .what-card {
  display: block; padding: 26px 24px !important; margin: 0 0 28px !important;
  background: var(--bg-1) !important; border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
}
.tester-card p, .tester-card-base p, .faq-card p, .info-card p, .what-card p {
  color: var(--text-1) !important; font-size: 15px; line-height: 1.75; margin: 0 0 12px;
}
.tester-card ul, .tester-card-base ul, .faq-card ul, .info-card ul {
  margin: 0 0 12px; padding-left: 20px;
}
.tester-card li, .tester-card-base li, .faq-card li, .info-card li {
  color: var(--text-1) !important; font-size: 14.5px; line-height: 1.7; margin-bottom: 6px;
}
.tester-card strong, .tester-card-base strong, .faq-card strong, .info-card strong, .what-card strong {
  color: var(--text-0) !important; font-weight: 600;
}
.tester-heading {
  font-size: 19px !important; color: var(--text-0) !important; margin: 0 0 10px !important;
  font-family: var(--font-display);
}
.tester-section-label {
  display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2) !important; margin: 18px 0 8px;
}
.tester-android-note, .tester-note {
  font-size: 13px; color: var(--text-2) !important; line-height: 1.65; margin: 10px 0 0;
}
.tester-step {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 13px 16px; margin: 0 0 10px; border-radius: 10px;
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  color: var(--text-0) !important; text-decoration: none !important; font-size: 14.5px;
  transition: background .2s ease, transform .2s ease;
}
.tester-step:hover {
  background: var(--surface-hi) !important; transform: translateX(2px); color: var(--text-0) !important;
}

/* 法務・リンク・戻る */
.legal-divider {
  border: 0; border-top: 1px solid var(--line) !important;
  margin: 34px 0 20px !important; height: 0;
}
.links { list-style: none; padding: 0; margin: 0 0 22px; }
.links li { margin-bottom: 9px; }
.links a { color: var(--link) !important; text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--link-hi) !important; text-decoration: underline; }
.back {
  display: inline-flex; align-items: center; min-height: 44px; gap: 6px;
  color: var(--text-1) !important; text-decoration: none; font-size: 14.5px; margin: 8px 0 26px;
}
.back:hover { color: var(--text-0) !important; }

/* 見出し・SNS */
.social-heading {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  color: var(--text-0) !important; margin: 34px 0 16px !important;
  text-transform: none !important; letter-spacing: .01em !important;
  display: flex; align-items: center; gap: 10px;
}
.social-heading::before {
  content: ""; flex: 0 0 auto; width: 3px; height: 1em;
  background: var(--accent-shu); border-radius: 2px;
}
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px !important; height: 42px !important; border-radius: 11px;
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  color: var(--text-1) !important; transition: transform .2s ease, background .2s ease;
}
.social a:hover { transform: translateY(-2px); background: var(--surface-hi) !important; color: var(--text-0) !important; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* 世界観ギャラリー（counterparts 等） */
.world-gallery { margin: 8px 0 26px; }
.world-gallery .wg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.world-gallery img {
  display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
}
.icon { display: inline-block; vertical-align: middle; }

@media (max-width: 760px) {
  body.pr-game .container { padding-top: 18px !important; }
  .brand-icon { width: 76px !important; height: 76px !important; }
  .world-gallery .wg-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badges img, .hero-badges svg { height: 42px !important; }
}

/* ============================================================
   19. トップページ固有（旧インライン CSS から引き継ぐ分）
   ============================================================ */
.social-header { justify-content: flex-start; margin: 0 0 8px; }
.filter-ic { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; font-size: 13.5px; cursor: pointer; }
.filter-count { font-size: 12px; opacity: .7; }
.game-name-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.genre-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.genre-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; }
.genre-tag .genre-ic { width: 13px; height: 13px; fill: currentColor; }
.game-card .links { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.game-card .links li { margin: 0; }
.game-card .store-badges { margin-top: 2px !important; }

/* 言語切替中のオーバーレイ（既存 JS が .is-active を付ける） */
#lang-overlay {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; background: var(--overlay);
}
#lang-overlay.is-active { display: flex; }
.pr-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent-shu);
  animation: pr-spin .8s linear infinite;
}
@keyframes pr-spin { to { transform: rotate(360deg); } }

/* ヒーローの3枚コラージュ */
.pr-hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pr-hero-art img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.pr-hero-art img:nth-child(1) { transform: translateY(-16px); }
.pr-hero-art img:nth-child(3) { transform: translateY(16px); }
@media (max-width: 760px) {
  .pr-hero-art { gap: 8px; }
  .pr-hero-art img:nth-child(1), .pr-hero-art img:nth-child(3) { transform: none; }
}

/* リリース年表（/about/） */
.pr-timeline {
  display: flex; flex-wrap: wrap; gap: 14px; list-style: none;
  padding: 16px 0 8px; margin: 0; position: relative;
}
.pr-timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 44px;
  height: 1px; background: var(--line);
}
.pr-timeline li { position: relative; }
.pr-timeline a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; padding-bottom: 4px;
}
.pr-timeline img {
  width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--bg-2); transition: transform .2s ease;
}
.pr-timeline a:hover img { transform: translateY(-3px); }
.pr-timeline span {
  font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums;
  background: var(--bg-0); padding: 0 4px; position: relative; z-index: 1;
}
.pr-timeline a:hover span { color: var(--text-0); }

/* ティーザー2枚組 */
.pr-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 1000px) { .pr-teasers { grid-template-columns: 1fr 1fr; } }
.pr-teaser {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.pr-teaser h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px; color: var(--text-0); }
.pr-teaser p { font-size: 14.5px; margin: 0 0 16px; }
@media (max-width: 760px) { .pr-teasers { grid-template-columns: 1fr; } }

/* ---------- 15b. テーマ切替ボタン ---------- */
.pr-theme {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-1); border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.pr-theme:hover { color: var(--text-0); background: var(--surface-hi); }
.pr-theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* 月＝これから暗くできる（＝今は明るい）／日＝これから明るくできる。
   片方だけ見せる。data-theme が無い＝ダークなので既定では「日」を出す。 */
.pr-theme .pr-ic-sun { display: inline; }
.pr-theme .pr-ic-moon { display: none; }
:root[data-theme="light"] .pr-theme .pr-ic-sun { display: none; }
:root[data-theme="light"] .pr-theme .pr-ic-moon { display: inline; }
.pr-burger-menu .pr-theme { width: 100%; justify-content: flex-start; gap: 10px; padding: 10px 12px; }

/* ---------- 15c. マスコット（PixelRyu の竜）---------- */
/* ★セレクタは img.pr-mascot にすること。上の `.container img { max-width:100% }` は
   (0,1,1) で `.pr-mascot` (0,1,0) より強く、クラスだけだと最大幅が効かず巨大化する。 */
img.pr-mascot {
  display: block; width: 100%; height: auto; max-width: 200px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
}
img.pr-mascot-sm { max-width: 96px; }
.pr-about-t { display: grid; grid-template-columns: 148px 1fr; gap: 26px; align-items: center; }
.pr-about-t img.pr-mascot { max-width: 148px; }
@media (max-width: 640px) {
  .pr-about-t { grid-template-columns: 92px 1fr; gap: 18px; }
  .pr-about-t img.pr-mascot { max-width: 92px; }
}
.pr-profile {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 0 0 28px;
}

/* ---------- 15e. 無限スクロール（一覧の続き読み込み）---------- */
#list-loader {
  display: flex; align-items: center; justify-content: center;
  height: 0; overflow: hidden; opacity: 0;
  transition: height .2s ease, opacity .2s ease;
}
#list-loader.is-loading { height: 64px; opacity: 1; }
#scroll-sentinel { height: 1px; margin-top: -1px; }
/* マスコットを添えた開発者ティーザー */
.pr-teaser-about img.pr-mascot { margin: 0 0 14px; }

/* ---------- 15d. 明地でだけ必要になる調整 ----------
   白いストアバッジ画像は明地だと縁が地に溶ける。暗地では輪郭は透明なので何も起きない。 */
.store-badges a, .hero-badges a, .store-badges span, .hero-badges span {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--badge-ring);
}
:root[data-theme="light"] .game-icon,
:root[data-theme="light"] .pr-timeline img { background: var(--bg-2); }

:root[data-theme="light"] .soon-cell .badge-art,
:root[data-theme="light"] .soon-cell .appstore-badge,
:root[data-theme="light"] .soon-cell .googleplay-badge,
:root[data-theme="light"] .soon-cell .roblox-badge,
:root[data-theme="light"] .soon-cell > svg,
:root[data-theme="light"] .soon-cell > img { filter: grayscale(1) brightness(.98); opacity: .45; }

/* ---------- 15f. スマホだけ操作の行を中央揃え ----------
   2026-08-14 ユーザー依頼。狭い画面では行幅と要素幅が近く、左寄せだと右に半端な
   余白が残って落ち着かない。ボタン列・ストアバッジ列・SNSアイコン列だけ中央へ寄せる。
   ★PC の意匠は変えない指示なので、**この @media の外には絶対に書かない**。
   760px はヘッダーがバーガーに切り替わる幅＝「スマホ版」の境界と同じにしてある。 */
@media (max-width: 760px) {
  .pr-hero-cta { justify-content: center; }
  .store-badges, .hero-badges { justify-content: center !important; }
  /* 本文の Follow 節だけ。フッター内のアイコンは他の列（サイト内/ゲーム/言語）が
     左寄せなので、そこだけ中央にすると不揃いになる → .container 配下に限定する。 */
  .container .social { justify-content: center; }
  /* .pr-btn は inline-flex なので、中央寄せは幅を内容に合わせてから auto マージンで行う */
  .pr-teaser .pr-btn,
  .pr-news .pr-btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
}

/* ---------- 16. モーション削減 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .pr-reveal { opacity: 1; transform: none; }
}

/* ---------- 17. 印刷 ---------- */
@media print {
  .pr-header, .pr-footer, .lang-switch, .pr-qr { display: none !important; }
  body { background: #fff !important; color: #000; padding-top: 0; }
}
