/* Hoshimori Games — 静的サイトの共通の見た目（外部のフォント・スクリプトは読まない） */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5b6272;
  --line: #e2ddd2;
  --accent: #2b3a67;
  --accent-soft: #e9ecf6;
  --gold: #a07a2c;
  --code: #f1eee6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151f;
    --surface: #1a1e2b;
    --text: #e8e6e1;
    --muted: #a3a9b8;
    --line: #2c3243;
    --accent: #9fb2ef;
    --accent-soft: #232a40;
    --gold: #d9b45f;
    --code: #232838;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .inner, main, .site-footer .inner {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: 26px; line-height: 1.4; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 16px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.4em; }
li { margin: 4px 0; }
li > ul, li > ol { margin: 4px 0; }
small, .note { color: var(--muted); font-size: 14px; }
code { background: var(--code); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.card h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; }
.links { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.links li { margin: 0; }
.links a {
  display: block; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: var(--text);
}
.links a:hover { border-color: var(--accent); }
.links a strong { display: block; color: var(--accent); }
.links a span { color: var(--muted); font-size: 14px; }

.meta { color: var(--muted); font-size: 14px; margin: -18px 0 28px; }
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--accent-soft); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.star { color: var(--gold); font-weight: 700; white-space: nowrap; }
.reading { color: var(--muted); font-size: 13px; margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.site-footer .inner { padding-top: 20px; padding-bottom: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 22px; }
  h2 { font-size: 17px; }
  .site-header .inner { flex-direction: column; align-items: flex-start; }
}
