/* ============================================================
   静的ページ(図鑑・記事・規約)— 夜卓(Night Table)テーマ
   SPA(styles.css)とトーンを揃えたダーク劇場テーマ。
   ============================================================ */

:root {
  --bg: #100b14;
  --bg-deep: #0a0810;
  --bg-foot: #0d0912;
  --panel: #1c1420;
  --panel-2: #241a2c;
  --panel-3: #160f1c;
  --panel-in: #1a1220;

  --ink: #efe7db;
  --ink-strong: #f4ecdd;
  --ink-head: #f2e8d6;
  --ink-dim: #c8bcab;
  --muted: #9b8b84;
  --muted-2: #8a7d72;
  --faint: #7a6f64;
  --faint-2: #6f6458;
  --faint-3: #5c5044;

  --gold: #e3b768;
  --gold-soft: #f0d199;
  --gold-deep: #c9a45f;
  --gold-pale: #e6d3a8;
  --gold-warm: #e9c47f;

  --blue: #6f8fdd;
  --blue-soft: #a9bdf0;
  --blue-mid: #8fa4dd;

  --ok: #6ecb9a;
  --ng: #e88a8a;

  --curtain-a: #4a212d;
  --curtain-b: #2c1119;

  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --display: 'Cinzel', 'Shippori Mincho', serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;

  --line: rgba(227, 183, 104, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 0; height: 0; }
a { color: inherit; }

@keyframes riseUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.92; } }
@keyframes steamRise {
  0% { transform: translateY(4px) scaleY(0.85); opacity: 0; }
  25% { opacity: 0.7; }
  100% { transform: translateY(-16px) scaleY(1.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- アンビエンス ---------- */

.stage-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 50% -120px, rgba(240, 209, 153, 0.12), transparent 62%),
    radial-gradient(130% 92% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.58));
}
.stage-spot {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 96vw);
  height: 64vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(240, 209, 153, 0.1), rgba(227, 183, 104, 0.02) 50%, transparent 82%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  animation: glowPulse 8s ease-in-out infinite;
}

/* ---------- 緞帳 ---------- */

.curtain {
  position: relative;
  height: 30px;
  z-index: 31;
  pointer-events: none;
  background: linear-gradient(180deg, var(--curtain-a), var(--curtain-b));
}
.curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 7px, transparent 7px 24px, rgba(255, 255, 255, 0.05) 24px 29px, transparent 29px 46px);
}
.curtain::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 13px;
  background-image: radial-gradient(circle at 23px 0, var(--curtain-b) 0 12px, transparent 12.5px);
  background-size: 46px 13px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}

/* ---------- ヘッダー / フッター ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 22px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.brand-name {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold-pale);
  letter-spacing: 0.12em;
}
.logo-cup { position: relative; width: 24px; height: 24px; flex: none; }
.logo-cup .steam {
  position: absolute; left: 10px; top: 0; width: 2px; height: 10px; border-radius: 2px;
  background: linear-gradient(to top, rgba(240, 209, 153, 0), rgba(240, 209, 153, 0.9)); filter: blur(0.6px);
}
.logo-cup .rim {
  position: absolute; left: 5px; bottom: 7px; width: 14px; height: 3px; border-radius: 50%;
  background: var(--panel); border: 1px solid rgba(227, 183, 104, 0.7);
}
.logo-cup .bowl {
  position: absolute; left: 5px; bottom: 3px; width: 14px; height: 8px; border-radius: 0 0 14px 14px;
  background: var(--panel); border: 1px solid rgba(227, 183, 104, 0.55);
}
.site-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--gold-soft); }
.site-nav .nav-cta {
  padding: 8px 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1d07;
  font-weight: 700;
}
.site-nav .nav-cta:hover { color: #2a1d07; filter: brightness(1.04); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-foot);
  margin-top: 60px;
}
.site-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-nav a { text-decoration: none; color: var(--muted-2); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold-deep); }
.footer-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 30px;
  font-size: 11px;
  color: var(--faint-3);
}

/* ---------- 本文コンテナ ---------- */

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.wrap.narrow { max-width: 720px; padding-top: 26px; }
.wrap.form { max-width: 560px; padding-top: 26px; }

/* ---------- パンくず ---------- */

.breadcrumb {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--gold-deep); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { margin: 0 6px; color: var(--faint-2); }

/* ---------- 隅飾り ---------- */

.corner {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.corner.tl { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner.tr { top: 0; right: 0; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.corner.bl { bottom: 0; left: 0; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner.br { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* ---------- ページヒーロー ---------- */

.page-hero {
  text-align: center;
  animation: riseUp 0.6s ease both;
  margin-bottom: 34px;
}
.page-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
}
.page-h1-frame {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  margin: 14px 0 12px;
}
.page-h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 44px);
  color: var(--ink-strong);
  line-height: 1.3;
}
.page-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* 左寄せ記事ヘッダー */
.article-head {
  animation: riseUp 0.5s ease both;
  margin: 26px 0 0;
}
.article-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
}
.article-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.35;
  margin: 14px 0 0;
  color: var(--ink-strong);
}
.article-head .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin: 20px 0 0;
}
.article-date { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 8px; }
.rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 183, 104, 0.4), transparent);
  margin: 34px 0;
}

/* ---------- 図鑑タブ ---------- */

.camp-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 34px;
  width: fit-content;
  padding: 5px;
  border-radius: 10px;
  background: var(--panel-in);
  border: 1px solid rgba(227, 183, 104, 0.16);
}
.camp-tab {
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.camp-tab.is-active-solver { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a1d07; }
.camp-tab.is-active-gm { background: linear-gradient(180deg, var(--blue-soft), var(--blue)); color: #0b1024; }

.type-section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-head);
  margin: 40px 0 4px;
}
.type-section-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- 図鑑グリッド ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.type-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-decoration: none;
  animation: riseUp 0.5s ease both;
}
.type-card:hover { transform: translateY(-4px); }
.type-card { transition: transform 0.25s ease; }
.tc-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #191122 0 12px, #1e1428 12px 24px);
  border: 1px solid rgba(227, 183, 104, 0.28);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.type-card:hover .tc-frame {
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.7), 0 0 34px -8px rgba(227, 183, 104, 0.35);
  border-color: var(--gold);
}
.type-card.is-gm .tc-frame { border-color: rgba(111, 143, 221, 0.28); }
.type-card.is-gm:hover .tc-frame { box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.7), 0 0 34px -8px rgba(111, 143, 221, 0.35); border-color: var(--blue); }
.tc-frame .corner.tl, .tc-frame .corner.br { width: 14px; height: 14px; }
.type-card.is-gm .corner { border-color: var(--blue) !important; }
.tc-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint-3);
}
.tc-code {
  position: absolute;
  top: 9px;
  right: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(16, 11, 20, 0.7);
  padding: 3px 7px;
  border-radius: 5px;
}
.type-card.is-gm .tc-code { color: var(--blue-soft); }
.tc-body { display: flex; flex-direction: column; }
.tc-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-head);
}
.tc-catch {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- コラム一覧 ---------- */

.col-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.col-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--panel-3);
  border: 1px solid rgba(227, 183, 104, 0.16);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: riseUp 0.5s ease both;
}
.col-card:hover { transform: translateY(-3px); border-color: rgba(227, 183, 104, 0.4); }
.col-thumb {
  position: relative;
  width: 140px;
  height: 96px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #191122 0 12px, #1e1428 12px 24px);
  border: 1px solid rgba(227, 183, 104, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--faint-3);
}
.col-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-body { flex: 1; min-width: 0; }
.col-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(227, 183, 104, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}
.col-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-head);
  margin: 10px 0 6px;
}
.col-meta { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.col-meta .date { font-family: var(--mono); color: var(--faint-2); }

/* ---------- タイプ詳細 ---------- */

.type-hero {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
  animation: riseUp 0.5s ease both;
}
.th-illust {
  position: relative;
  width: 230px;
  height: 230px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #191122 0 13px, #1e1428 13px 26px);
  border: 1px solid rgba(227, 183, 104, 0.35);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.7), 0 0 48px -12px rgba(227, 183, 104, 0.4);
}
.type-hero.is-gm .th-illust { border-color: rgba(111, 143, 221, 0.35); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.7), 0 0 48px -12px rgba(111, 143, 221, 0.4); }
.type-hero.is-gm .corner { border-color: var(--blue) !important; }
.th-illust .corner { width: 18px; height: 18px; }
.th-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.6;
}
.th-main { flex: 1; min-width: 240px; }
.th-code-row { display: flex; gap: 6px; margin-bottom: 14px; }
.th-code-cell {
  width: 34px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold);
  border: 1px solid rgba(227, 183, 104, 0.35);
  border-radius: 5px;
}
.type-hero.is-gm .th-code-cell { color: var(--blue-soft); border-color: rgba(111, 143, 221, 0.35); }
.th-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.type-hero.is-gm .th-role { color: var(--blue-mid); }
.th-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 40px);
  color: var(--ink-strong);
}
.th-catch {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gold-soft);
  margin: 14px 0 0;
}
.type-hero.is-gm .th-catch { color: var(--blue-soft); }

/* ---------- 強み・弱み / 相性ボックス ---------- */

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  animation: riseUp 0.5s ease 0.15s both;
}
.fact-item {
  padding: 20px;
  border-radius: 12px;
}
.fact-item .fi-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.fact-item.is-strength { background: rgba(110, 203, 154, 0.06); border: 1px solid rgba(110, 203, 154, 0.25); font-size: 14px; line-height: 1.8; color: #dfe9e2; }
.fact-item.is-strength .fi-label { color: var(--ok); }
.fact-item.is-weakness { background: rgba(232, 138, 138, 0.06); border: 1px solid rgba(232, 138, 138, 0.25); font-size: 14px; line-height: 1.8; color: #efdada; }
.fact-item.is-weakness .fi-label { color: var(--ng); }

.compat-h {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-head);
  margin: 30px 0 14px;
  animation: riseUp 0.5s ease 0.2s both;
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: riseUp 0.5s ease 0.2s both;
}
.partner-links { display: flex; flex-direction: column; gap: 12px; }
.partner-link {
  display: block;
  padding: 18px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.partner-link:hover { transform: translateY(-2px); }
.partner-link.is-fate, .partner-link.is-good { background: rgba(227, 183, 104, 0.06); border: 1px solid rgba(227, 183, 104, 0.3); }
.partner-link.is-bad { background: rgba(111, 143, 221, 0.06); border: 1px solid rgba(111, 143, 221, 0.3); }
.pl-tag { font-size: 12px; margin-bottom: 8px; display: block; }
.partner-link.is-fate .pl-tag, .partner-link.is-good .pl-tag { color: var(--gold-deep); }
.partner-link.is-bad .pl-tag { color: var(--blue-mid); }
.pl-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-head);
}
.pl-name a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(227, 183, 104, 0.4); }
.pl-name a:hover { color: var(--gold-soft); }
.pl-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }

/* ---------- 実際に遊べる姉妹サイトへの導線(強めのプロモーション) ---------- */

.play-promo {
  margin: 44px 0;
  padding: 36px clamp(20px, 5vw, 40px) 40px;
  border-radius: 20px;
  background: radial-gradient(120% 140% at 50% -10%, rgba(227, 183, 104, 0.1), transparent 60%), var(--panel-3);
  border: 1px solid rgba(227, 183, 104, 0.28);
}
.pp-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  text-align: center;
}
.pp-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 34px);
  color: var(--ink-strong);
  text-align: center;
  margin: 12px 0 14px;
}
.pp-lead {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-dim);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 30px;
}
.play-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.play-link {
  position: relative;
  display: block;
  padding: 24px 26px;
  border-radius: 14px;
  background: var(--panel-in);
  border: 1px solid rgba(227, 183, 104, 0.32);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.play-link:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 183, 104, 0.7);
  background: #1f1626;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.65), 0 0 34px -10px rgba(227, 183, 104, 0.45);
}
.play-link .corner { width: 16px; height: 16px; border-color: rgba(227, 183, 104, 0.7); }
.pl-top { display: flex; align-items: center; gap: 12px; }
.pl-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #16101c;
  border: 1px solid rgba(227, 183, 104, 0.35);
}
/* アイコンは <picture> でラップされるため、picture を枠の中央に置き、img は
   その中で contain 中央寄せにする(picture を介さず img に % を効かせると
   基準が picture になり画像が枠の左上へずれるため) */
.pl-icon picture { width: 82%; height: 82%; display: flex; align-items: center; justify-content: center; }
.pl-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.play-link .pl-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(227, 183, 104, 0.4);
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0;
}
.play-link .pl-title {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-strong);
  margin: 16px 0 8px;
}
.play-link .pl-desc { display: block; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.pl-arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.play-link:hover .pl-arrow { color: var(--gold); }

@media (min-width: 720px) {
  .play-links { flex-direction: row; align-items: stretch; }
  .play-link { flex: 1; display: flex; flex-direction: column; }
}

/* ---------- クロスリンクカード(cross_link_spec.md L14 / aboutの「つくったもの一覧」) ---------- */

.cross-card {
  position: relative;
  display: block;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-in);
  border: 1px solid rgba(227, 183, 104, 0.32);
  text-decoration: none;
  margin: 4px 0 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.cross-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 183, 104, 0.7);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.65), 0 0 34px -10px rgba(227, 183, 104, 0.45);
}
.cc-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #16101c;
  border-bottom: 1px solid rgba(227, 183, 104, 0.22);
}
.cc-thumb picture { display: block; width: 100%; height: 100%; }
.cc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cc-body { display: block; padding: 16px 18px 18px; line-height: 1.7; }
.cc-name {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-strong);
}
.cc-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 4px;
}
.cc-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-soft);
}
.cross-card:hover .cc-cta { color: var(--gold); }
/* prose内のリンク装飾(下線・金色)をカードには継承させない */
.prose a.cross-card,
.prose a.cross-card span { text-decoration: none; border-bottom: none; }

/* ---------- 本文プロース ---------- */

.prose {
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--ink-dim);
  animation: riseUp 0.5s ease 0.1s both;
}
.prose p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-head);
  margin: 36px 0 16px;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--gold-warm);
  margin: 24px 0 10px;
}
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--gold-pale); font-weight: 700; }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: rgba(227, 183, 104, 0.05);
  border-radius: 0 10px 10px 0;
}
.prose blockquote p { font-family: var(--serif); font-size: 17px; line-height: 1.95; color: #e6ddce; margin: 0; }

.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: 10px;
  background: var(--panel-in);
  border: 1px solid rgba(111, 143, 221, 0.3);
}
.callout .ttl { font-size: 12px; color: var(--blue-mid); margin-bottom: 8px; font-weight: 700; }
.callout p { font-size: 14px; line-height: 1.85; color: #c3c9dd; margin: 0; }

/* ---------- 軸テーブル(about) ---------- */

.axis-panel {
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.axis-panel.solver { background: rgba(227, 183, 104, 0.05); border: 1px solid rgba(227, 183, 104, 0.24); }
.axis-panel.gm { background: rgba(111, 143, 221, 0.05); border: 1px solid rgba(111, 143, 221, 0.24); }
.axis-panel .cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.axis-panel.solver .cap { color: var(--gold); }
.axis-panel.gm .cap { color: var(--blue-mid); }
.axis-rows { display: flex; flex-direction: column; gap: 12px; }
.axis-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.axis-row .ax-name { flex: none; width: 84px; font-size: 13px; color: var(--muted); }
.axis-row .ax-pole { font-size: 14px; color: var(--ink); }
.axis-row .ax-pole b { font-family: var(--mono); font-weight: 700; }
.axis-panel.solver .ax-pole b { color: var(--gold-deep); }
.axis-panel.gm .ax-pole b { color: var(--blue-mid); }
.axis-row .ax-sep { color: var(--faint-3); }

/* ---------- CTA ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.cta {
  display: inline-block;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta-primary { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a1d07; }
.cta-secondary { border: 1px solid rgba(227, 183, 104, 0.4); color: var(--gold-pale); }

.cta-card {
  margin-top: 44px;
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  border: 1px solid rgba(227, 183, 104, 0.2);
}
.cta-card h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink-strong);
  margin: 0 0 10px;
}
.cta-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }

.type-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  animation: fadeIn 0.5s ease 0.3s both;
}
.type-nav a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.type-nav a:hover { color: var(--gold-soft); }
.type-nav .to-list { color: var(--gold-deep); }

.note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #130d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--faint);
}
.note a { color: var(--gold-deep); }

/* ---------- お問い合わせフォーム ---------- */

.contact-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 24px;
}

/* ---------- 小画面 ---------- */

@media (max-width: 560px) {
  .fact-grid, .partner-grid { grid-template-columns: 1fr; }
  .type-hero { justify-content: center; text-align: center; }
  .th-main { text-align: center; }
  .th-code-row { justify-content: center; }
}
