:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6e6e73;
  --accent: #1f7a3a;
  --line: #e5e5ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --fg: #f2f2f7;
    --muted: #a1a1a6;
    --accent: #5ac77a;
    --line: #3a3a3c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

header.site a.home {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

h1 { font-size: 1.6rem; line-height: 1.4; margin: 8px 0 4px; }
h2 { font-size: 1.15rem; margin: 36px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 20px 0 4px; }

p, li { overflow-wrap: anywhere; }

.meta { color: var(--muted); font-size: 0.9rem; }

a { color: var(--accent); }

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { white-space: nowrap; }

.table-scroll { overflow-x: auto; }

ul.links { list-style: none; padding: 0; }
ul.links li { margin: 8px 0; font-size: 1.05rem; }

footer.site {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site a { color: var(--muted); }
