:root {
  --bg: #fdfdfc;
  --surface: #f7f7f5;
  --border: #e4e3df;
  --text: #1c1c1a;
  --text-muted: #6b6b66;
  --accent: #2f6f5e;
  --accent-soft: #e8f2ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1c1c1f;
    --border: #2e2e33;
    --text: #edeeef;
    --text-muted: #9a9aa0;
    --accent: #7fcbb4;
    --accent-soft: #16302a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Segoe UI", sans-serif;
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}

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

main { padding: 56px 0 72px; }

h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 19px;
  margin: 48px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

p { margin: 0 0 16px; }

.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 24px;
  margin: 24px 0;
}

table.info {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.info th,
table.info td {
  text-align: left;
  vertical-align: top;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

table.info tr:last-child th,
table.info tr:last-child td { border-bottom: none; }

table.info th {
  width: 34%;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 16px;
}

ul { padding-left: 1.3em; margin: 0 0 16px; }
li { margin-bottom: 8px; }

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

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
}

.note p:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 13px;
  color: var(--text-muted);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a { color: var(--text-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  table.info th, table.info td { display: block; width: 100%; padding: 0; border: none; }
  table.info th { padding-top: 16px; }
  table.info td { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  nav a { margin-left: 0; margin-right: 18px; }
}
