:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #5d655f;
  --line: #dfe2dc;
  --accent: #2f6b57;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a18;
    --surface: #1f2421;
    --text: #edf0ec;
    --muted: #a9b2ab;
    --line: #343b37;
    --accent: #84c9b0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

main.wrap {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.625rem;
  }
}

h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card h2 {
  margin-top: 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer a {
  color: inherit;
}
