:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1d2129;
  --muted: #5b6372;
  --line: #dde1e7;
  --accent: #1f5fbf;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1e2127;
    --text: #e8eaee;
    --muted: #a3aab6;
    --line: #343944;
    --accent: #7fb0ff;
  }
}
* { 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", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { padding-top: 16px; padding-bottom: 16px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 600; }
h1 { font-size: 26px; line-height: 1.4; margin: 0 0 12px; }
h2 { font-size: 19px; line-height: 1.5; margin: 40px 0 12px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
.updated { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); font-weight: 600; white-space: nowrap; }
td.country { white-space: nowrap; }
.note { color: var(--muted); font-size: 14px; }
ul.docs { padding-left: 1.2em; }
ul.docs li { margin-bottom: 8px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  th, td { padding: 8px; }
  td.country { white-space: normal; }
  /* 狭い画面では、行ごとに「見出し: 値」のカードにする */
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 2px 0; border: 0; }
  table.stack td.name { display: block; font-weight: 600; padding-bottom: 4px; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
}
@media print {
  header.site, footer.site { border: 0; }
  a { color: inherit; }
}
