@import url("https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&display=swap");

:root {
  --ink: #17201d;
  --muted: #606a65;
  --paper: #f5f3eb;
  --paper-deep: #e7e6dc;
  --green: #1f5148;
  --green-deep: #173e38;
  --green-light: #dcebe5;
  --rust: #a44d32;
  --gold: #a77b31;
  --line: #d5d2c5;
  --white: #fffefa;
  --alert: #fff5e4;
  --alert-line: #c78526;
  --shadow: 0 18px 48px rgb(31 52 45 / 9%);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(31 81 72 / 2%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgb(31 81 72 / 2%) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.85;
}

a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green);
}
.skip-link:focus { top: 16px; }

.site-header {
  border-bottom: 1px solid rgb(31 81 72 / 14%);
  background: rgb(245 243 235 / 92%);
  backdrop-filter: blur(10px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
  font-size: .88rem;
  line-height: 1;
}

.header-note,
.section-heading p,
.category-card p,
.source-meta,
.footer-inner p,
.facts dt,
.ad-area-heading,
.ad-placeholder,
.button,
.tag,
.pr-label,
.text-link,
.database-alert,
.breadcrumb,
.quick-check-label,
.date-band,
.count-grid,
.process-list span {
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.header-note { margin: 0; color: var(--muted); font-size: .78rem; }
.page-shell { padding-block: 42px 80px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgb(31 81 72 / 14%);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  top: -80px;
  right: -55px;
  width: 245px;
  height: 245px;
  border: 34px double rgb(31 81 72 / 7%);
  border-radius: 50%;
  content: "";
}

.pr-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border: 1px solid rgb(164 77 50 / 30%);
  border-radius: 999px;
  color: #7c3525;
  background: #fff4ef;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.database-alert {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 22px 0 30px;
  padding: 18px 20px;
  border: 2px solid var(--alert-line);
  background: var(--alert);
}

.database-alert strong { display: block; color: #714c13; }
.database-alert p { margin: 3px 0 0; font-size: .9rem; }
.database-alert a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.eyebrow {
  margin: 18px 0 8px;
  color: var(--rust);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.25;
  letter-spacing: .04em;
}

.hero-copy { max-width: 760px; margin: 24px 0 0; color: #444c48; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.button.secondary { color: var(--green); background: transparent; }

.notice-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line);
  background: rgb(255 254 250 / 76%);
}
.notice-strip > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.notice-strip > div:last-child { border-right: 0; }
.notice-strip strong, .notice-strip span { display: block; }
.notice-strip strong { color: var(--green); font-size: 1.05rem; }
.notice-strip span { color: var(--muted); font-family: "BIZ UDPGothic", "Yu Gothic", sans-serif; font-size: .78rem; }

.section { padding-top: 72px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.35; }
.section-heading p { max-width: 590px; margin: 0; color: var(--muted); font-size: .9rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 254 250 / 82%);
}
.featured-card { border-color: rgb(31 81 72 / 45%); box-shadow: var(--shadow); }
.category-number { color: var(--gold); font-family: "BIZ UDPGothic", sans-serif; font-size: 2.4rem; line-height: 1; }
.category-card h3 { margin: 24px 0 10px; font-size: 1.18rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.text-link { display: inline-block; margin-top: 18px; font-size: .84rem; font-weight: 700; }

a.category-card {
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.category-block {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.item-list li:first-child .item-link { border-top: 0; }
.item-link:hover .item-title { color: var(--rust); }
.item-title { display: block; font-size: 1.18rem; font-weight: 700; }
.item-meta,
.item-check {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "BIZ UDPGothic", "Yu Gothic", sans-serif;
  font-size: .82rem;
}
.item-check { margin-top: 10px; color: #3d5c55; }
.item-arrow { align-self: center; color: var(--rust); font-size: 1.5rem; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.content-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.content-card + .content-card { margin-top: 24px; }
.content-card h2 { margin: 0 0 18px; font-size: 1.45rem; }
.content-card h3 { margin: 24px 0 8px; color: var(--green); font-size: 1.1rem; }
.content-card p:last-child { margin-bottom: 0; }
.step-number { color: var(--rust); font-family: "BIZ UDPGothic", sans-serif; font-size: 1.7rem; }

.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: .8rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { margin-right: 8px; color: #999285; content: "/"; }

.detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.detail-main { min-width: 0; }
.detail-hero .database-alert { grid-template-columns: 1fr; }
.detail-hero .database-alert a { width: fit-content; white-space: normal; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; color: var(--green); background: var(--green-light); font-size: .78rem; font-weight: 700; }
.lead-summary { margin: 28px 0 0; font-size: 1.02rem; }

.quick-check { position: relative; z-index: 1; padding: 28px; border-top: 5px solid var(--rust); background: var(--paper); }
.quick-check-label { color: var(--rust); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.quick-check h2 { margin: 7px 0 15px; font-size: 1.35rem; }
.quick-check ul { margin: 0; padding-left: 1.2em; }
.quick-check li::marker, .process-list li::marker { color: var(--rust); }

.date-band { display: flex; justify-content: flex-end; gap: 0; margin-top: 20px; border: 1px solid var(--line); background: var(--white); }
.date-band p { display: flex; gap: 12px; margin: 0; padding: 12px 18px; border-left: 1px solid var(--line); }
.date-band span { color: var(--muted); font-size: .78rem; }
.date-band strong { color: var(--green); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .65fr); gap: 24px; margin-top: 26px; }
.section-intro { color: #404945; }
.count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.count-grid > div { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.count-grid span, .count-grid strong, .count-grid small { display: block; }
.count-grid span { color: var(--muted); font-size: .78rem; }
.count-grid strong { margin-top: 6px; color: var(--green); font-family: "BIZ UDPGothic", sans-serif; font-size: 1.8rem; }
.count-grid small { margin-top: 8px; color: var(--muted); line-height: 1.6; }

.caution-box { margin-top: 24px; padding: 20px; border-left: 4px solid var(--alert-line); background: var(--alert); }
.caution-box strong { display: block; margin-bottom: 4px; color: #714c13; }
.process-list { margin: 0; padding-left: 1.5em; }
.process-list li { padding: 12px 0; }
.process-list strong, .process-list span { display: block; }
.process-list span { color: var(--muted); font-size: .88rem; }

.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 125px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; border-top: 0; }
.facts dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.facts dd { margin: 0; }
.source-list { margin: 0; padding-left: 1.2em; }
.source-list li + li { margin-top: 10px; }
.source-meta { color: var(--muted); font-size: .78rem; }

.ad-area { margin-top: 70px; padding: 22px; border: 1px dashed #b5aa95; background: rgb(255 254 250 / 72%); }
.ad-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .78rem; }
.ad-area-heading strong { color: var(--rust); letter-spacing: .08em; }
.ad-slot { min-height: 78px; padding: 18px; background: var(--paper); }
.ad-placeholder { margin: 0; color: var(--muted); font-size: .86rem; }
.ad-offer { display: grid; gap: 14px; }
.ad-offer p { margin: 0; }
.ad-offer-kicker { color: var(--green); font-weight: 700; }
.ad-offer > a {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.back-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.back-panel p { margin: 0; }
.site-footer { padding-block: 32px; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-inner { display: grid; grid-template-columns: .9fr 1.5fr auto; gap: 28px; align-items: start; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  .category-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero, .content-grid { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: 1fr; }
  .notice-strip { grid-template-columns: 1fr; }
  .notice-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .notice-strip > div:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 68px; }
  .header-note { display: none; }
  .page-shell { padding-top: 24px; }
  .hero { padding: 28px 20px; border-radius: 20px; }
  .hero::after { display: none; }
  .database-alert { grid-template-columns: 1fr; }
  .database-alert a { width: 100%; white-space: normal; }
  .category-grid, .guide-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; }
  .section-heading, .back-panel { align-items: start; flex-direction: column; }
  .date-band { display: grid; }
  .date-band p { border-left: 0; border-top: 1px solid var(--line); }
  .date-band p:first-child { border-top: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

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