:root {
  color-scheme: light;
  --ink: #183047;
  --ink-soft: #55697b;
  --paper: #f7f0e8;
  --sheet: #fffdf9;
  --line: #d9cfc5;
  --green: #2d6f5c;
  --green-dark: #1f5445;
  --blue: #2f7ebd;
  --orange: #ed6b45;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -5%, rgba(255, 188, 132, 0.3), transparent 28rem),
    linear-gradient(90deg, transparent 0 31px, rgba(45, 111, 92, 0.035) 32px);
  background-color: var(--paper);
  background-size: auto, 32px 32px;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: 0.6rem 0.8rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header,
.page,
.site-footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--green-dark); font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--blue)); color: white; font: 900 0.72rem/1 Arial, sans-serif; box-shadow: 0 7px 16px rgba(31, 84, 69, 0.2); }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.site-header nav a:hover { color: var(--green-dark); text-decoration: underline; }

.page { padding-block: clamp(3.8rem, 8vw, 7rem) 7rem; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 2rem; color: var(--green-dark); font-weight: 850; }
.hero { max-width: 900px; margin-bottom: 3.8rem; }
.eyebrow { margin: 0 0 0.9rem; color: var(--green); font: 900 0.7rem/1.3 Arial, sans-serif; letter-spacing: 0.16em; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.12; letter-spacing: -0.065em; }
.hero > p:last-child { max-width: 760px; margin: 1.3rem 0 0; color: var(--ink-soft); font-size: 1.02rem; font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.guide-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 18px; background: var(--sheet); box-shadow: 0 18px 38px rgba(24, 48, 71, 0.1); }
.guide-card:nth-child(2) { border-top-color: var(--blue); }
.guide-card h2 { margin: 0; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.3; letter-spacing: -0.035em; }
.guide-card p { color: var(--ink-soft); }
.guide-card a { display: inline-flex; min-height: 44px; align-items: center; margin-top: auto; color: var(--green-dark); font-weight: 900; }

.note,
.summary,
.privacy-note { padding: clamp(1.2rem, 3vw, 1.7rem); border: 1px solid var(--line); background: var(--sheet); }
.note { margin-top: 2.5rem; border-left: 6px solid var(--orange); border-radius: 0 14px 14px 0; }
.note p, .privacy-note p { margin: 0; }
.summary { max-width: 900px; margin-bottom: 4rem; border-top: 6px solid var(--green); border-radius: 16px; box-shadow: 0 14px 30px rgba(24, 48, 71, 0.08); }
.summary h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.summary ol { margin: 0; padding-left: 1.4rem; font-weight: 800; }

.article-section { max-width: 900px; margin-top: 4.6rem; scroll-margin-top: 90px; }
.article-section > h2 { margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); font-size: clamp(1.65rem, 3.3vw, 2.5rem); line-height: 1.25; letter-spacing: -0.045em; }
.article-section > h3 { margin: 2rem 0 0.45rem; font-size: 1.15rem; }
.article-section p, .article-section li { color: var(--ink-soft); }
.article-section strong { color: var(--ink); }

.step-list { display: grid; gap: 0; margin: 1.5rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 3.8rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.step-list li > b { color: var(--green); font: 900 0.8rem/1.4 Arial, sans-serif; letter-spacing: 0.06em; }

.example { margin: 1.4rem 0; padding: 1.25rem; border-radius: 14px; background: #e7f2ee; }
.example h3 { margin: 0; font-size: 1rem; }
.example p { margin-bottom: 0; }
.privacy-note { max-width: 900px; margin-top: 3.5rem; border-left: 6px solid var(--blue); }
.privacy-note h2 { margin: 0 0 0.65rem; font-size: 1.05rem; }

.next-guide { display: flex; max-width: 900px; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.next-guide p { margin: 0; font-weight: 850; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0.7rem 1rem; border-radius: 12px; background: var(--green); color: white; font-weight: 900; text-decoration: none; box-shadow: 0 9px 18px rgba(45, 111, 92, 0.2); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.72rem; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--green-dark); font-weight: 850; }

@media (max-width: 680px) {
  .site-header, .page, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 64px; gap: 0.5rem; }
  .brand { font-size: 0.88rem; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .site-header nav { gap: 0.65rem; }
  .site-header nav a { font-size: 0.68rem; }
  .page { padding-block: 3rem 5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .article-section { margin-top: 3.6rem; }
  .step-list li { grid-template-columns: 2.7rem 1fr; gap: 0.65rem; }
  .next-guide, .site-footer { align-items: flex-start; flex-direction: column; }
  .next-guide .button { width: 100%; }
}

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