:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #6f6b66;
  --line: #e6e2dc;
  --accent: #2f5d8a;
  --note-bg: #f3f1ec;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171716;
    --surface: #201f1e;
    --text: #e9e6e1;
    --muted: #a39e97;
    --line: #34322f;
    --accent: #8db6de;
    --note-bg: #26241f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171716;
  --surface: #201f1e;
  --text: #e9e6e1;
  --muted: #a39e97;
  --line: #34322f;
  --accent: #8db6de;
  --note-bg: #26241f;
  color-scheme: dark;
}
* { 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",
    "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", "Yu Gothic", Meiryo, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 72px; }
nav.top { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
nav.top a { color: var(--muted); }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1rem; margin: 24px 0 6px; }
p, li { margin: 0 0 10px; }
ul, ol { padding-left: 1.4em; margin: 0 0 12px; }
a { color: var(--accent); }
.note {
  background: var(--note-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.table-scroll { overflow-x: auto; margin: 12px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th { font-weight: 600; white-space: nowrap; }
.kv th { width: 9.5em; white-space: normal; }
.cards { display: grid; gap: 12px; margin: 16px 0; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.card strong { display: block; color: var(--accent); }
.card span { color: var(--muted); font-size: 0.9rem; }
dl.faq dt { font-weight: 600; margin-top: 22px; }
dl.faq dd { margin: 6px 0 0; }
footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); margin-right: 14px; }
