:root {
  --bg: #fffaf6;
  --surface: #ffffff;
  --text: #2a2321;
  --muted: #6b5e59;
  --accent: #c2410c;
  --accent-soft: #fde8dc;
  --border: #eadfd8;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171312;
    --surface: #221c1a;
    --text: #f3ece8;
    --muted: #b9aaa3;
    --accent: #fb923c;
    --accent-soft: #3a261c;
    --border: #3a302c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--accent); }
header.site, footer.site { max-width: 760px; margin: 0 auto; padding: 20px 20px; }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
header.site .brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
header.site nav a { margin-left: 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: 8px 20px 48px; }
h1 { font-size: 28px; line-height: 1.4; margin: 16px 0 8px; }
h2 { font-size: 20px; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.card.highlight { background: var(--accent-soft); border-color: transparent; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
footer.site { color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
footer.site a { color: var(--muted); margin-right: 14px; }
.lang-switch { font-size: 13px; }
