:root {
  color-scheme: light dark;
  --bg: #f3f1eb;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --text: #1e211f;
  --muted: #626761;
  --line: #d5d4cc;
  --line-strong: #a8aaa3;
  --accent: #5b6845;
  --accent-soft: #e2e6d8;
  --focus: #315cba;
  --max: 72rem;
  --measure: 46rem;
  --radius: 0.25rem;
  --shadow: 0 1px 0 rgb(26 31 27 / 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.1rem;
}

.shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.5rem;
}

.brand {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-decoration: none;
}

nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.toc-title,
.section-number {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-block: 0;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 17em;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  font-weight: 760;
}

.lead {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 90%, #000);
}

.text-link {
  font-size: 0.9rem;
  font-weight: 650;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
}

.panel h2,
.statement h2,
.english-summary h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 730;
}

.panel p:last-child,
.statement p,
.english-summary p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-block: 1px solid var(--line);
}

.statement p {
  margin-top: 0;
}

.english-summary {
  margin-block: 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 5.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.document {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.document-narrow {
  max-width: 62rem;
}

.document-header {
  max-width: 54rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.document-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
  padding-top: 3rem;
}

.toc {
  position: sticky;
  top: 6.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.toc li {
  margin-block: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.toc a {
  color: inherit;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

.policy-body {
  min-width: 0;
  max-width: var(--measure);
}

.document-narrow .policy-body {
  margin-top: 3rem;
}

.policy-body > section {
  padding-block: 0.4rem 2.5rem;
  scroll-margin-top: 6rem;
}

.policy-body > section + section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.policy-body h2 {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 730;
}

.policy-body h2 span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.policy-body p,
.policy-body li {
  color: var(--muted);
}

.policy-body p {
  margin: 1rem 0 0;
}

.policy-body ul {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.policy-body li {
  margin-block: 0.4rem;
}

.check-list {
  columns: 2;
  column-gap: 2rem;
}

.check-list li {
  break-inside: avoid;
}

.contact-card {
  display: inline-block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 680;
}

.policy-body .english-summary {
  margin: 2rem 0 0;
  padding: 2rem;
  border-top: 0;
}

.not-found {
  min-height: calc(100vh - 12rem);
  display: grid;
  place-content: center;
  justify-items: start;
  max-width: 42rem;
  padding-block: 5rem;
}

.error-code {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.not-found p:not(.error-code) {
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
  color: var(--muted);
}

@media (max-width: 48rem) {
  .shell {
    width: min(calc(100% - 2rem), var(--max));
  }

  .header-inner {
    min-height: 3.8rem;
  }

  nav,
  .footer-links {
    gap: 0.8rem;
  }

  .hero {
    padding-top: 4rem;
  }

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

  .content-grid {
    gap: 1px;
  }

  .statement {
    gap: 1.25rem;
  }

  .toc {
    position: static;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .toc ol {
    columns: 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.25rem;
  }
}

@media (max-width: 34rem) {
  body {
    line-height: 1.78;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.65rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .primary-actions,
  .primary-actions .button {
    width: 100%;
  }

  .primary-actions .text-link {
    overflow-wrap: anywhere;
  }

  .check-list,
  .toc ol {
    columns: 1;
  }

  .policy-body .english-summary {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181a18;
    --surface: #20231f;
    --surface-strong: #252824;
    --text: #eeefe8;
    --muted: #b9bcb3;
    --line: #393d38;
    --line-strong: #5d625b;
    --accent: #becb9a;
    --accent-soft: #303728;
    --focus: #87adff;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.2);
  }

  .button {
    color: #151713;
  }
}
