:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --paper: #ffffff;
  --ink: #1d2523;
  --muted: #66736f;
  --line: #dfe5df;
  --brand: #0f766e;
  --brand-dark: #102522;
  --brand-soft: #d9f2ec;
  --gold: #c59a39;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(31, 41, 36, 0.09);
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis: none;
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.doc-hero {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(16, 37, 34, 0.95), rgba(15, 118, 110, 0.78)),
    url("https://images.unsplash.com/photo-1542051841857-5f90071e7989?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.doc-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #f5efe2;
  color: var(--brand-dark);
  font-size: 22px;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-link,
.lang-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.lang-button {
  cursor: pointer;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: end;
}

.kicker {
  margin: 0 0 12px;
  color: #bff5ea;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  max-width: 820px;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 700;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  backdrop-filter: blur(12px);
  display: grid;
  gap: 12px;
}

.hero-card strong {
  font-size: 30px;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.doc-main {
  max-width: 1120px;
  margin: -32px auto 0;
  padding: 0 24px 64px;
  display: grid;
  gap: 22px;
}

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.section.soft {
  background: #fbfcfa;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.section-intro {
  max-width: 760px;
  font-size: 15px;
}

.guide-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
  background: #edf2ef;
}

.guide-shot figcaption {
  display: grid;
  gap: 4px;
  min-height: 98px;
  padding: 13px 15px 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.guide-shot figcaption strong {
  color: var(--ink);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step,
.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.card strong,
.step strong,
.role-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.card p,
.step p,
.role-card p {
  margin: 0;
  font-size: 14px;
}

.step {
  position: relative;
  padding-top: 46px;
}

.step-number {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.callout {
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #083c36 0%, #0f766e 72%, #9cb87e 130%);
}

.callout p {
  color: rgba(255, 255, 255, 0.86);
}

.doc-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(31, 41, 36, 0.08);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-toc > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.toc {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a {
  flex: 0 0 auto;
  border-radius: 7px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.toc a:hover {
  color: var(--brand-dark);
  background: #edf8f5;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.lang-panel {
  display: none;
}

.lang-panel.active {
  display: block;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 36px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 860px) {
  .doc-nav,
  .hero-inner,
  .doc-main,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .doc-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .pill-link,
  .lang-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .hero-card {
    max-width: none;
  }

  .section {
    padding: 20px;
  }

  .doc-toc {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .doc-toc > span {
    width: max-content;
  }

  .grid,
  .grid.two,
  .guide-shot-grid {
    grid-template-columns: 1fr;
  }

  .guide-shot img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}
