/* 記事共通スタイル。articles/assets/articles.css が正本で、build.mjs が lp/css/articles.css へコピーする */
:root {
  --green: #004539;
  --green-mid: #0a5c4a;
  --green-light: #64bf4d;
  --gold: #f6de80;
  --gold-dark: #c9a84c;
  --ink: #333333;
  --ink-light: #555555;
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --border: #e3e3df;
  --note-bg: #f0f8eb;
  --caution: #b5462f;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  line-height: 1.75;
  font-size: 15px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--green); border-bottom: 2px solid var(--gold-dark); height: 52px; display: flex; align-items: center; }
.site-header__inner { max-width: 720px; margin: 0 auto; padding: 0 16px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-header__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-header__logo-text { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.12em; }

.page-hero { background: var(--green); color: #fff; padding: 20px 24px 32px; border-radius: 0 0 20px 20px; }
.page-hero__inner { max-width: 720px; margin: 0 auto; }
.page-hero__eyebrow { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; margin: 0 0 6px; }
.page-hero__title { font-size: 24px; font-weight: 800; margin: 0 0 10px; overflow-wrap: break-word; }
.page-hero__sub { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }

.breadcrumb ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: rgba(255,255,255,0.75); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }

.section-heading { color: var(--green); font-size: 18px; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.section-gap { margin-top: 32px; }

.article-body h2 { color: var(--green); font-size: 18px; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { color: var(--green-mid); font-size: 16px; margin: 24px 0 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px; text-align: left; }
.article-body th { background: var(--note-bg); }
.article-body img, .article-body svg { max-width: 100%; height: auto; }

/* 補足の囲み。色付きの背景・左の太線・角丸は使わず、欄外の注記のように上の罫線と小さな見出しだけで区切る */
.box { margin: 24px 0; padding: 10px 0 0; border-top: 1px solid var(--ink); }
.box > p:last-child { margin-bottom: 0; }
.box__label { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; margin: 0 0 2px; color: var(--ink); }
.box--caution { border-top-color: var(--caution); }
.box--caution .box__label { color: var(--caution); }

.article-fig { margin: 16px auto; max-width: 360px; }
.article-fig svg { width: 100%; height: auto; display: block; }
.article-fig figcaption { font-size: 14px; text-align: center; margin-top: 6px; }
.article-photo { margin: 20px 0; }
.article-photo img { width: 100%; height: auto; display: block; }
.article-photo figcaption { font-size: 14px; text-align: center; margin-top: 6px; }
.defs-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.ghost-ball { fill: rgba(255,255,255,0.12); stroke: #ffffff; stroke-width: 1.3; stroke-dasharray: 3 2.5; }

.summary ul { margin: 0; padding-left: 1.2em; }
.related { margin-top: 32px; }
.guide-series { margin: 4px 0 0; padding: 0; list-style: none; }
.guide-series li { padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.guide-series li:last-child { border-bottom: none; }
.guide-series a { color: var(--green); font-weight: 700; text-decoration: none; }
.guide-series a:hover { text-decoration: underline; }

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px dashed var(--border); }
.article-list li:last-child { border-bottom: none; }
/* 一覧の行全体が記事へのリンク。押せることが分かるよう右端に › を出し、ホバーで背景を変える */
.article-list a { display: block; position: relative; padding: 12px 28px 12px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; }
.article-list a::after { content: "›"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--green-light); font-size: 24px; font-weight: 700; line-height: 1; }
.article-list a:hover { background: var(--note-bg); }
.article-list__title { display: block; color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green-light); text-underline-offset: 3px; }
.article-list__lead { display: block; color: var(--ink-light); font-size: 13px; }

.category-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.category-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); }
.category-card:hover { border-color: var(--green-light); }
.category-card__name { display: block; color: var(--green); font-weight: 700; }
.category-card__desc { display: block; font-size: 13px; color: var(--ink-light); }
.category-card__count { display: block; font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-top: 4px; }

.promo { margin-top: 40px; background: var(--note-bg); border: 1px solid var(--green-light); border-radius: 16px; padding: 24px; }
.promo__heading { color: var(--green); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 12px 28px; margin-top: 14px; }
.btn-primary:hover { background: var(--green-mid); }
.btn-secondary { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--green-light); border-radius: 999px; padding: 8px 20px; }
.btn-secondary:hover { background: var(--note-bg); }
.backlink { margin-top: 20px; }

.terms { font-size: 12px; list-style: none; padding: 0; margin: 0; }
.terms li { margin: 4px 0; padding-left: 1em; position: relative; color: var(--ink-light); overflow-wrap: break-word; }
.terms li::before { content: "·"; color: var(--green-light); position: absolute; left: 0; font-size: 14px; line-height: 1.1; }
.terms-section { background: var(--note-bg); border-radius: 10px; padding: 14px 16px; margin-top: 32px; }
.terms-section__heading { font-size: 12px; font-weight: 700; color: var(--green); margin: 0 0 8px; }

.site-footer { background: var(--green); border-top: 2px solid var(--gold-dark); padding: 32px 16px; margin-top: 48px; }
.site-footer__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.site-footer__logo { display: inline-block; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.12em; }
.site-footer__copy { color: rgba(255,255,255,0.65); font-size: 12px; margin: 6px 0 0; }

@media (min-width: 681px) {
  .site-header { height: 60px; }
  .page-hero { padding: 28px 40px 44px; }
  .page-hero__title { font-size: 30px; }
  .card { padding: 28px 32px; }
  .section-gap { margin-top: 48px; }
  .section-heading { font-size: 20px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}
