:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --border: #e3e3de;
  --accent: #2f6f5e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151716;
    --surface: #1d201f;
    --text: #e8eae8;
    --muted: #a3aaa6;
    --border: #2e3331;
    --accent: #7cc2ad;
  }
}

* {
  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", sans-serif;
  line-height: 1.8;
}

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

.site-header,
main,
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.lead {
  color: var(--muted);
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

dl.info {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px 16px;
  margin: 0;
}

dl.info dt {
  color: var(--muted);
}

dl.info dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  dl.info {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  dl.info dd {
    margin-bottom: 12px;
  }
}

.en {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

ul,
ol {
  padding-left: 1.4em;
}

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

.site-footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
