:root {
  --ink: #17362f;
  --muted: #5d6f69;
  --green: #176b55;
  --green-dark: #0e4e3e;
  --mint: #dcece6;
  --paper: #fffdf8;
  --cream: #f7f2e8;
  --yellow: #f2b84b;
  --line: #d9dfda;
  --shadow: 0 18px 50px rgba(23, 54, 47, .09);
  --radius: 18px;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif; line-height: 1.8; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(23,54,47,.1); background: rgba(255,253,248,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--paper); background: var(--green); font: 800 24px/1 Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.2; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
#site-nav { display: flex; align-items: center; gap: 28px; }
#site-nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--ink); background: #fff; font: inherit; }

.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.lead { max-width: 760px; color: #40534d; font-size: clamp(18px, 2vw, 22px); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 22px; color: #fff; background: var(--green); font-weight: 800; text-decoration: none; box-shadow: 0 9px 22px rgba(23,107,85,.2); }
.button:hover { color: #fff; background: var(--green-dark); }
.text-link { font-weight: 800; }

.home-hero { overflow: hidden; padding: clamp(72px, 10vw, 132px) 0 84px; background: radial-gradient(circle at 85% 15%, rgba(242,184,75,.28), transparent 28%), linear-gradient(135deg, #f8f2e7 0%, #edf5f0 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(290px,.75fr); gap: clamp(36px,8vw,100px); align-items: center; }
.home-hero h1 { max-width: 800px; margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(42px, 7vw, 78px); line-height: 1.18; letter-spacing: -.035em; }
.home-hero h1 span { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 34px; }
.hero-panel { position: relative; padding: 34px; border: 1px solid rgba(23,54,47,.1); border-radius: 26px; background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.hero-panel::before { position: absolute; top: -14px; right: 26px; width: 60px; height: 28px; content: ""; background: rgba(242,184,75,.65); transform: rotate(3deg); }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); font-weight: 700; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--green); font-weight: 900; }

.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-head h2, .safety h2 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.25; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { min-height: 220px; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: .2s ease; }
.step:hover { z-index: 1; background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.step span { color: var(--green); font: 700 26px/1 Georgia, serif; }
.step strong { font-size: 17px; line-height: 1.6; }
.step small { margin-top: auto; color: var(--green); font-weight: 800; }
.tint { background: var(--cream); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { min-height: 240px; padding: 28px; border: 1px solid rgba(23,54,47,.09); border-radius: var(--radius); color: var(--ink); background: var(--paper); text-decoration: none; transition: .2s ease; }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-card > span { color: var(--yellow); font: 700 28px/1 Georgia, serif; }
.category-card h3 { margin: 20px 0 8px; font-size: 21px; }
.category-card p { color: var(--muted); }
.category-card strong { display: block; margin-top: 20px; color: var(--green); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; min-height: 300px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-kicker, .card-meta { color: var(--muted); font-size: 12px; }
.card h3 { margin: 8px 0 14px; font-size: 20px; line-height: 1.55; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card > p:not(.card-kicker):not(.card-meta) { color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 16px; }
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px; border-radius: 26px; color: #eff9f6; background: var(--green); }
.safety .eyebrow, .safety a { color: #f5cf7b; }

.breadcrumb { padding-top: 22px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { margin-left: 8px; content: "/"; color: #9aa8a3; }
.page-hero { padding: 80px 0 54px; }
.page-hero.compact { padding-bottom: 16px; }
.page-hero h1, .article-header h1 { max-width: 900px; margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(36px, 5vw, 60px); line-height: 1.3; letter-spacing: -.02em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: 64px; align-items: start; padding-top: 54px; padding-bottom: 100px; }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-dates { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.prose { min-width: 0; font-size: 16px; }
.prose h2 { margin: 64px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--green); font-family: Georgia, "Yu Mincho", serif; font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }
.prose h3 { margin: 40px 0 14px; font-size: 22px; line-height: 1.5; }
.prose p, .prose li { color: #314741; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 7px; }
.prose blockquote { margin: 28px 0; padding: 12px 24px; border-left: 4px solid var(--yellow); background: var(--cream); }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mint); }
.prose code { border-radius: 4px; padding: .1em .35em; background: var(--cream); }
.note { margin: 34px 0; padding: 22px 24px; border: 1px solid #d6c28f; border-radius: 14px; background: #fff8e8; }
.note p { margin-bottom: 0; }
.cta { margin-top: 64px; padding: 34px; border-radius: 20px; background: var(--mint); }
.cta h2 { margin-top: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { color: var(--muted); font-size: 12px; }
.related { margin-top: 80px; }
.article-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.aside-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aside-box h2 { margin: 0; font-size: 20px; }
.aside-box p { color: var(--muted); }
.aside-box a { font-weight: 800; }
.page-wrap { max-width: 850px; padding-top: 60px; padding-bottom: 100px; }

.site-footer { padding: 64px 0 28px; color: #dcebe6; background: #102f27; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.footer-brand { margin: 0; color: #fff; font-size: 20px; font-weight: 800; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 20px; }
.site-footer a { color: #e9f3ef; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #a8c0b7; font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid, .article-layout, .safety { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-toggle { display: inline-flex; }
  #site-nav { position: absolute; inset: 76px 14px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  #site-nav.is-open { display: flex; }
  #site-nav a { padding: 12px; }
  .home-hero { padding-top: 62px; }
  .section { padding: 56px 0; }
  .steps, .card-grid, .category-grid, .article-aside, .footer-grid { grid-template-columns: 1fr; }
  .step { min-height: 180px; }
  .safety { gap: 20px; padding: 28px; }
  .article-layout { gap: 36px; padding-top: 34px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
