:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --paper: #ffffff;
  --ink: #132018;
  --muted: #66736b;
  --line: #dce5dd;
  --accent: #0f7a3f;
  --accent-soft: #e7f4ec;
  --warn: #9f3a24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px max(18px, calc((100vw - 920px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
}

.nav,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.page {
  width: min(920px, calc(100vw - 36px));
  margin: 28px auto 48px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  width: min(920px, calc(100vw - 36px));
  margin: 0 auto 36px;
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.35;
}

h1 {
  margin: 0 0 18px;
  font-size: 30px;
}

h2 {
  margin: 34px 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 21px;
}

h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}

p,
ul,
ol,
table {
  margin: 0 0 16px;
}

li + li {
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

th,
td {
  padding: 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  text-align: left;
}

.notice {
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid #cbe5d4;
  border-radius: 8px;
  font-weight: 700;
}

.todo {
  color: var(--warn);
  font-weight: 800;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    width: calc(100vw - 24px);
    margin-top: 18px;
    padding: 20px;
  }

  h1 {
    font-size: 25px;
  }
}
