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

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #777777;
  --text: #444444;
  --accent: #55c951;
  --accent-dark: #2f8a2b;
  --line: #e5e5e5;
  --card: #f9f9f9;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  font-size: 16px;
  overflow-wrap: break-word;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

header {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb::before { content: "/ "; margin-right: 0.3rem; }

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }

.layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
}

.toc {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 3rem 2rem 3rem 0;
  border-right: 1px solid var(--line);
}

.toc-title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.toc ul { list-style: none; }
.toc li { margin-bottom: 0.4rem; }

.toc a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.15rem 0;
  line-height: 1.4;
}

.toc a:hover { color: var(--accent-dark); }

.content { padding: 3rem 0 6rem 3rem; }

.section {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s 0.05s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.section-num {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}

.section p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.section p:last-child { margin-bottom: 0; }

.section a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.section a:hover { text-decoration: underline; }

.divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 3.5rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.info-card strong { display: block; font-weight: 600; margin-bottom: 0.2rem; color: var(--ink); }
.info-card .row { margin-bottom: 0.75rem; }
.info-card .row:last-child { margin-bottom: 0; }

.info-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.plain-list {
  margin: 0.5rem 0 0.9rem;
  padding-left: 1.2rem;
}

.plain-list li {
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}


.highlight-box {
  background: #f0fdf0;
  border: 1px solid #c3eac3;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 1rem 0;
}

.highlight-box p { color: #1a4a1a; }

.notice-box {
  background: #fffbeb;
  border: 1px solid #f5e090;
  border-left: 3px solid #f0c040;
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 1rem 0;
}

.notice-box p { color: #5a4a00; }

.box-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}


@media (max-width: 640px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .content { padding: 2rem 0 4rem; }
  .hero { padding: 3rem 2rem 2rem; }
}

@media print, (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section { opacity: 1; transform: none; animation: none; }
}

@media print {
  header { position: static; }
  .toc { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 1rem 0; }
}