:root {
  color-scheme: light;
  --bg: #faf7f1;
  --surface: #ffffff;
  --text: #201f1c;
  --muted: #6f6a62;
  --line: #e8dfd4;
  --accent: #d77a3a;
  --accent-soft: #f4dfcf;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
}

.hero,
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

.hero h1,
.page h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.card,
.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h2,
.document h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.card p,
.document p {
  margin: 0;
  color: var(--muted);
}

.document {
  margin-top: 24px;
}

.document h2 {
  margin-top: 28px;
}

.document h2:first-child {
  margin-top: 0;
}

.document ul {
  padding-left: 1.2em;
}

.document li {
  margin: 6px 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

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

.info-table th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(215, 122, 58, 0.28);
  border-radius: 8px;
  padding: 16px;
  color: #5d3b25;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .page {
    padding-top: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .info-table td {
    padding-top: 2px;
  }
}
