/* Bladelit Games のサイト（tool/build_site.py が site/public/ にコピーする） */
:root {
  --ink: #1d1b26;
  --muted: #5d5a6b;
  --line: #e4e1ec;
  --paper: #ffffff;
  --soft: #f6f4fa;
  --accent: #5b3cc4;
  --night: #16102a;
  --gold: #ffd34a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
}

a { color: var(--accent); }

img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; }
.logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* トップの見出し */
.hero { background: var(--night) center / cover no-repeat; color: #fff; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 16, 42, 0.55), rgba(22, 16, 42, 0.85)); }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 40px); line-height: 1.4; }
.hero p { margin: 0; max-width: 560px; color: #e8e4f4; }

/* セクション */
section { padding: 56px 0; }
section.soft { background: var(--soft); }
h2 { margin: 0 0 24px; font-size: 24px; }
h2 small { display: block; font-size: 12px; letter-spacing: 0.25em; color: var(--accent); font-weight: 600; }
h3 { font-size: 18px; margin: 32px 0 8px; }

/* ゲームのカード */
.game { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: var(--night); color: #fff; border-radius: 16px; padding: 28px; }
.game .art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.game .art img { border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.game h3 { margin: 0 0 6px; font-size: 22px; color: var(--gold); }
.game p { margin: 0 0 14px; color: #e8e4f4; }
.button { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; }

/* 表 */
table.info { width: 100%; border-collapse: collapse; background: var(--paper); }
table.info th, table.info td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; }
table.info th { width: 30%; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* 規約などの本文 */
.doc { max-width: 760px; }
.doc h1 { font-size: 28px; margin: 48px 0 8px; }
.doc .date { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc ul, .doc ol { padding-left: 1.4em; }

.hero.plain .wrap { padding-top: 56px; padding-bottom: 56px; }

/* 攻略 */
.crumbs { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.doc.wide { max-width: 960px; }
.scroll { overflow-x: auto; }
table.chars th { width: auto; }
table.chars td { font-size: 14px; }
table.chars td.pic { width: 64px; }
table.chars small { color: var(--muted); }
.el { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; }
.el-fire { background: #e0533d; }
.el-water { background: #2f86d6; }
.el-wood { background: #3c9a4a; }
.el-light { background: #c9a227; }
.el-dark { background: #7a4bc2; }

/* 未記入（公開前に埋める）：黄色で目立たせる */
.todo { background: #fff3a8; color: #6b5300; padding: 0 4px; border-radius: 4px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .game { grid-template-columns: 1fr; padding: 20px; }
  .game .art { max-width: 220px; }
  table.info:not(.chars) th { width: auto; white-space: normal; display: block; border-bottom: none; padding-bottom: 0; }
  table.info:not(.chars) td { display: block; padding-top: 4px; }
  section { padding: 40px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
}
