:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f2f5f2;
  --text: #17201b;
  --muted: #69736d;
  --line: #dfe5df;
  --accent: #1f6f5d;
  --accent-strong: #173f31;
  --accent-soft: #e8f3ee;
  --accent-pale: #f2f8f5;
  --shadow: 0 18px 50px rgba(23, 63, 49, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(23, 63, 49, 0.1);
}

.brand span { display: grid; line-height: 1.3; }
.brand strong { font-size: 16px; letter-spacing: 0.01em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; }

.official-link {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.official-link:hover { color: var(--accent); }

.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 86% 10%, rgba(31, 111, 93, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: block;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

h1, h2 { color: var(--accent-strong); letter-spacing: -0.03em; }

h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.25;
}

.version-badge {
  margin-top: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(31, 111, 93, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.hero-lead {
  max-width: 710px;
  margin: 28px 0 0;
  color: #4d5a52;
  font-size: 17px;
  line-height: 1.9;
}

.license-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.license-notes li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #3b4941;
  font-size: 12px;
  font-weight: 750;
}

.license-notes li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 900;
}

.secondary-button:focus-visible, .official-link:focus-visible, .mail-link:focus-visible, .footer-inner a:focus-visible { outline: 3px solid rgba(31, 111, 93, 0.3); outline-offset: 4px; }

#guide-sections { scroll-margin-top: 24px; }
.contents-section { padding: 100px 0; }

.section-heading { max-width: 720px; margin-bottom: 43px; }
.section-heading h2, .pdf-card h2, .support-card h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

.accordion-list {
  display: grid;
  gap: 13px;
  max-width: 960px;
}

.guide-accordion {
  min-width: 0;
  overflow: clip;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guide-accordion[open] {
  border-color: rgba(31, 111, 93, 0.32);
  box-shadow: 0 14px 36px rgba(23, 63, 49, 0.065);
}

.guide-accordion summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.guide-accordion summary::-webkit-details-marker { display: none; }
.guide-accordion summary::marker { content: ""; }
.guide-accordion summary:hover { background: var(--surface-soft); }
.guide-accordion summary:focus-visible { outline: 3px solid rgba(31, 111, 93, 0.32); outline-offset: -4px; border-radius: 16px; }
.guide-accordion[open] summary { background: var(--accent-pale); }
.item-number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.item-title {
  min-width: 0;
  color: #29342e;
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.summary-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.recommend-badge {
  padding: 5px 9px;
  border: 1px solid rgba(31, 111, 93, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.summary-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 10px;
}

.summary-chevron::before { content: "▼"; }
.guide-accordion[open] .summary-chevron::before { content: "▲"; }

.accordion-body {
  padding: 27px 30px 31px;
  border-top: 1px solid var(--line);
  color: #3f4b44;
  font-size: 15px;
  line-height: 1.9;
}

.accordion-body > :first-child { margin-top: 0; }
.accordion-body > :last-child { margin-bottom: 0; }
.accordion-body p { margin: 0 0 18px; }
.accordion-body ul { margin: 0 0 20px; padding-left: 1.35em; }
.accordion-body li + li { margin-top: 5px; }
.accordion-body strong { color: var(--accent-strong); }

.guide-callout,
.support-note {
  padding: 13px 15px;
  border: 1px solid rgba(31, 111, 93, 0.14);
  border-radius: 11px;
  background: var(--accent-pale);
  color: var(--accent-strong);
}

.step-list {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.step-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  counter-increment: guide-step;
}

.step-list li::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.mini-grid section {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.mini-grid h3 {
  margin: 0 0 11px;
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.45;
}

.mini-grid p,
.mini-grid ul { margin-bottom: 0; }

.guide-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 22px 0;
}

.flow-step {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.flow-arrow { color: var(--accent); font-size: 19px; font-weight: 850; }

.pdf-section { padding: 0 0 100px; }

.pdf-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 43px 48px;
  border: 1px solid rgba(31, 111, 93, 0.16);
  border-radius: 25px;
  background: var(--accent-soft);
}

.pdf-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(31, 111, 93, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.pdf-card p:last-child { margin: 15px 0 0; color: #435048; font-size: 15px; }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(31, 111, 93, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.secondary-button:hover { background: #ffffff; }

.support-section {
  padding: 92px 0;
  background: var(--accent-strong);
  color: #ffffff;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
}

.support-card .eyebrow { color: #9fd5c4; }
.support-card h2 { color: #ffffff; }
.support-card p:last-child { max-width: 700px; margin: 15px 0 0; color: rgba(255, 255, 255, 0.75); font-size: 15px; }

.mail-link {
  max-width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.site-footer { background: #102e24; color: rgba(255, 255, 255, 0.65); }

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-inner p { margin: 0; }
.footer-inner a { color: rgba(255, 255, 255, 0.85); text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .desktop-break { display: none; }
  .pdf-card { grid-template-columns: auto minmax(0, 1fr); }
  .secondary-button { grid-column: 2; justify-self: start; }
  .support-card { grid-template-columns: 1fr; gap: 28px; }
  .mail-link { justify-self: start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1120px); }

  .header-inner {
    min-height: 0;
    padding: 15px 0;
    align-items: flex-start;
  }

  .brand { gap: 10px; }
  .brand img { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .official-link { padding-top: 3px; font-size: 12px; text-align: right; }

  .hero { padding: 60px 0 68px; }
  .title-row { display: block; }
  h1 { font-size: clamp(34px, 10.3vw, 42px); }
  .version-badge { display: inline-block; margin-top: 17px; }
  .hero-lead { margin-top: 23px; font-size: 15px; line-height: 1.85; }
  .license-notes { display: grid; justify-items: start; margin-top: 23px; }

  .contents-section { padding: 76px 0; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2, .pdf-card h2, .support-card h2 { font-size: 28px; }
  .section-heading > p:last-child { font-size: 14px; }

  .accordion-list { gap: 10px; }
  .guide-accordion { border-radius: 15px; }
  .guide-accordion summary { min-height: 76px; gap: 12px; padding: 14px; }
  .item-number { width: 40px; height: 40px; border-radius: 11px; }
  .item-title { font-size: 15px; line-height: 1.5; }
  .summary-meta { gap: 7px; }
  .recommend-badge { padding: 4px 7px; font-size: 9px; }
  .summary-chevron { width: 25px; height: 25px; flex-basis: 25px; font-size: 9px; }
  .accordion-body { padding: 20px 15px 23px; font-size: 15px; line-height: 1.85; }
  .accordion-body ul { padding-left: 1.25em; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini-grid section { padding: 16px; }
  .guide-flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }

  .pdf-section { padding-bottom: 76px; }
  .pdf-card { grid-template-columns: 1fr; gap: 22px; padding: 29px 23px; border-radius: 21px; }
  .pdf-mark { width: 68px; height: 68px; border-radius: 18px; }
  .pdf-card p:last-child { font-size: 14px; }
  .secondary-button { grid-column: auto; width: 100%; min-height: 52px; }

  .support-section { padding: 70px 0; }
  .support-card { gap: 25px; }
  .support-card p:last-child { font-size: 14px; }
  .mail-link { width: 100%; padding: 15px 13px; font-size: 13px; text-align: center; }

  .footer-inner { min-height: 0; padding: 25px 0; flex-direction: column; align-items: flex-start; gap: 9px; }
}

@media (max-width: 370px) {
  .header-inner { display: grid; }
  .official-link { padding-top: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-accordion { transition: none; }
}
