:root {
  color-scheme: light;
  --ink: #1f2923;
  --muted: #647169;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --line: #d9d4c8;
  --moss: #315f49;
  --moss-dark: #214434;
  --plum: #9c4f5f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 6%, rgba(156, 79, 95, 0.12), transparent 24rem),
    var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a {
  color: var(--moss-dark);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--plum);
}

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 56%;
  color: white;
  background: var(--moss);
  font-family: Georgia, serif;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

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

nav a[aria-current="page"] {
  color: var(--plum);
  font-weight: 700;
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1,
h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.35;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  letter-spacing: -0.04em;
}

.lead {
  max-width: 690px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.card {
  min-height: 360px;
  padding: 42px;
  background: var(--surface);
}

.card-accent {
  color: white;
  background: var(--moss);
}

.card-number {
  margin: 0 0 74px;
  color: var(--plum);
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

.card-accent .card-number {
  color: #f0b8c3;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}

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

.statement {
  padding: 140px 0;
}

.statement h2 {
  max-width: 800px;
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.statement > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  color: white;
  background: var(--moss);
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  color: white;
  background: var(--moss-dark);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 100px 0 140px;
}

.document-heading {
  position: sticky;
  top: 40px;
  align-self: start;
}

.document-heading h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.updated {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-body section {
  padding: 0 0 42px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.document-body section:last-child {
  border-bottom: 0;
}

.document-body h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.document-body p,
.document-body ul {
  margin: 0;
}

.document-body li + li {
  margin-top: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

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

  .hero {
    min-height: auto;
    padding: 84px 0;
  }

  .content-grid,
  .document {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 42px;
  }

  .document-heading {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    font-size: 0.9rem;
  }

  nav {
    gap: 18px;
  }

  .card {
    padding: 30px;
  }

  .statement {
    padding: 92px 0;
  }

  footer {
    flex-direction: column;
  }
}
