:root {
  --bg: #ffffff;
  --text: #1c1c1e;
  --text-secondary: #6c6c70;
  --divider: #e5e5ea;
  --accent: #4f7a1f;
  --accent-soft: #f1f8e9;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Roboto, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

header {
  border-bottom: 1px solid var(--divider);
  padding: 20px max(16px, env(safe-area-inset-left, 0px));
}

header .brand {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

header .brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-left, 0px)) 80px;
}

h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

h2 {
  font-size: 17px;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

p, li {
  font-size: 15px;
  color: var(--text);
}

.updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
}

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
}

.placeholder {
  background: #fdeeea;
  color: #b3261e;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  white-space: nowrap;
}

footer {
  border-top: 1px solid var(--divider);
  padding: 20px max(16px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-bottom, 0px));
}

footer .links {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

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

.index-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.index-links a {
  display: block;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.index-links a:hover {
  border-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --text: #f2f2f7;
    --text-secondary: #9b9ba3;
    --divider: #38383a;
    --accent: #8bc34a;
    --accent-soft: #233018;
  }
  .placeholder {
    background: #3a1f1d;
    color: #ff6b5e;
  }
}
