:root {
  --green: #1f6b4a;
  --green-dark: #154d35;
  --green-soft: #e8f2ec;
  --sand: #f6f3ea;
  --ink: #1d2420;
  --muted: #5d6862;
  --line: #dfe5e1;
  --white: #ffffff;
  --accent: #d9862b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 8px; padding-bottom: 48px; }

.pr-bar {
  background: #2b332e; color: #e9eee9; font-size: 12px; text-align: center; padding: 6px 12px;
}
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.4; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); font-size: 17px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--green); }
.nav .nav-cta { background: var(--green); color: var(--white); padding: 4px 12px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--green-dark); color: var(--white); }

h1 { font-size: 26px; line-height: 1.45; margin: 16px 0 8px; letter-spacing: .01em; }
h2 { font-size: 20px; line-height: 1.5; margin: 40px 0 12px; }
h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.lead { color: var(--muted); margin-top: 0; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 13px; margin: 0; letter-spacing: .05em; }
.small { font-size: 12px; color: var(--muted); }

.hero {
  background: linear-gradient(160deg, var(--green) 0%, #2d8a60 100%);
  color: var(--white); border-radius: 18px; padding: 32px 24px; margin-top: 16px;
}
.hero h1 { font-size: 28px; margin-top: 8px; }
.hero .eyebrow { color: #cfe8d9; }
.hero .lead { color: #e3f1e8; }
.hero-actions { margin-top: 20px; }
.hero .btn-primary { background: var(--white); color: var(--green-dark); }
.hero .btn-primary:hover { background: var(--green-soft); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer; font-size: 15px; font-family: inherit; text-align: center; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #bf7120; color: var(--white); }
.btn-ghost { background: var(--white); color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-wide { display: block; width: 100%; max-width: 420px; }

.area-grid, .type-grid, .card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.area-card {
  display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.area-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.area-name { font-size: 20px; font-weight: 700; }
.area-count { color: var(--green); font-weight: 700; font-size: 14px; }
.area-desc { color: var(--muted); font-size: 14px; }
.type-card { background: var(--white); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 16px; }
.type-card p { margin: 0; font-size: 14px; color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 4px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #eef0ee; color: var(--muted); }
.tag-style { background: var(--green-soft); color: var(--green-dark); }
.tag-trial { background: #fbeedd; color: #9a5a14; }
.mini { margin: 0 0 10px; font-size: 14px; }
.mini div { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px; }
.mini dt { color: var(--muted); }
.mini dd { margin: 0; }
.more { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 8px; font-size: 14px; }
.filter-label { font-weight: 700; }
.filters label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.count { font-size: 14px; margin: 8px 0 0; }
.price-note { font-size: 12px; color: var(--muted); background: #fffaf0; border: 1px solid #f0e2c4; border-radius: 8px; padding: 8px 12px; }
.empty { color: var(--muted); }

.crumb { font-size: 13px; color: var(--muted); margin-top: 16px; }
.crumb a { color: var(--muted); }
.crumb .sep { margin: 0 6px; }

.detail { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 12px 0; }
.detail th, .detail td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.detail tr:last-child th, .detail tr:last-child td { border-bottom: 0; }
.detail th { width: 9em; background: #f7f9f8; color: var(--muted); font-weight: 600; }

.note-box, .cta-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 16px; margin-top: 32px; }
.note-box h2, .cta-box h2 { margin-top: 16px; font-size: 18px; }
.cta-box { background: var(--green-soft); border-color: #cfe3d6; }
.aff { display: flex; flex-direction: column; gap: 4px; }

.quiz fieldset { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; padding: 12px 16px 14px; }
.quiz legend { font-weight: 700; padding: 0 6px; }
.quiz label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quiz label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.quiz input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.result { margin-top: 28px; background: var(--white); border: 2px solid var(--green); border-radius: 16px; padding: 20px; }
.result h2 { margin-top: 4px; }

.prose h2 { font-size: 18px; margin-top: 28px; }
.contact-mail { font-size: 18px; font-weight: 700; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

.site-footer { background: #23302a; color: #cdd6d0; padding: 28px 0 20px; }
.site-footer a { color: #e6ede8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-bottom: 12px; }
.site-footer .small { color: #a8b5ad; }

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .hero { padding: 24px 18px; }
  .hero h1 { font-size: 22px; }
  .detail th { width: 7em; }
  .logo { font-size: 14px; }
}

/* 記事 */
.article { max-width: 760px; }
.article h2 { border-left: 4px solid var(--green); padding-left: 10px; }
.article ul { padding-left: 1.3em; }
.article li { margin: 4px 0; }
.experience { background: #fffaf0; border: 1px solid #f0e2c4; border-radius: var(--radius); padding: 4px 20px 12px; margin-top: 28px; }
.experience h2 { border: 0; padding: 0; font-size: 18px; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
.compare th, .compare td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--green-soft); }
.compare tbody th { background: #f7f9f8; width: 7em; }
.article-list { padding-left: 1.2em; }
.article-list li { margin: 8px 0; }
.article-cards { display: grid; gap: 14px; }
.article-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.article-card:hover { border-color: var(--green); color: var(--ink); }
.article-card-title { font-weight: 700; font-size: 17px; line-height: 1.5; }
.article-card-desc { font-size: 14px; color: var(--muted); }

/* 広告ボックス */
.aff-box { background: var(--white); border: 1px dashed #d9b98a; border-radius: var(--radius); padding: 12px 18px 14px; margin: 24px 0; }
.aff-box h3 { margin: 4px 0 10px; }
.aff-label { display: inline-block; margin: 0; font-size: 11px; color: #9a5a14; background: #fbeedd; border-radius: 4px; padding: 0 8px; }
.aff-links { display: flex; flex-direction: column; gap: 8px; }
.aff-links .btn { font-size: 14px; }
.aff-box .small { margin-bottom: 0; }
.px { position: absolute; width: 1px; height: 1px; border: 0; }

/* FAQ・参考情報 */
.article h3 { font-size: 17px; margin: 24px 0 6px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.sources ul { font-size: 14px; padding-left: 1.2em; }
.cta-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* ===== デザイン刷新（図解・アイコン） ===== */
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }
.logo-mark { color: var(--green); }
.sec-title { display: flex; align-items: center; gap: 8px; }
.sec-title .ico { color: var(--green); }
.center { text-align: center; }
.btn-light { background: rgba(255,255,255,.14); color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn-light:hover { background: rgba(255,255,255,.24); color: var(--white); }
.hero { display: grid; gap: 12px; align-items: center; }
.hero .eyebrow { display: flex; align-items: center; gap: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual > .hero-art { width: 100%; height: auto; display: block; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 36px 32px; } }

.stats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.stats .ico { grid-row: 1 / 3; color: var(--green); }
.stat-num { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.stat-num.stat-date { font-size: 16px; }
.stat-label { font-size: 12px; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.feature-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .ico { color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 8px; box-sizing: content-box; }
.feature h3 { margin: 12px 0 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

.area-map { margin: 8px 0 16px; background: linear-gradient(180deg, #f2f7f3, #ffffff); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 4px; }
.area-map > svg { width: 100%; height: auto; display: block; }
.area-map figcaption { font-size: 12px; color: var(--muted); padding: 4px 8px 6px; }
.map-line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map-key { stroke-width: 6; stroke-linecap: round; }
.map-legend text { font-size: 12px; fill: var(--ink); }
.map-st { font-size: 12px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.map-zone { fill: #e3efe6; stroke: #b7d3c0; stroke-width: 1.5; transition: fill .15s; }
.map-area:hover .map-zone, .map-area:focus .map-zone { fill: #cfe6d6; }
.map-area.is-current .map-zone { fill: #fbeedd; stroke: #d9862b; stroke-width: 2.5; }
.map-label { font-size: 17px; font-weight: 800; fill: var(--green-dark); }
.map-count { font-size: 13px; fill: var(--green); font-weight: 700; }
.map-area.is-current .map-label { fill: #9a5a14; }

.area-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.area-card .area-count { background: var(--green-soft); padding: 0 10px; border-radius: 999px; font-size: 13px; }
.area-card .more { margin-top: 6px; }

.type-card { display: flex; gap: 12px; align-items: flex-start; }
.type-ico { color: var(--green); background: var(--green-soft); border-radius: 50%; padding: 9px; display: inline-flex; }
.type-card h3 { margin: 0 0 4px; }
.type-matrix { margin: 8px 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.type-matrix > svg { width: 100%; height: auto; display: block; }
.type-matrix figcaption { font-size: 12px; color: var(--muted); padding: 2px 6px; }
.tm-axis { fill: none; stroke: #9aa7a0; stroke-width: 1.5; }
.tm-axis-label { font-size: 12px; fill: var(--muted); }
.tm-trend { fill: none; stroke: #cfe3d6; stroke-width: 10; stroke-linecap: round; }
.tm-dot { fill: var(--white); stroke: var(--green); stroke-width: 2; }
.tm-ico { color: var(--green); }
.tm-name { font-size: 13px; font-weight: 700; fill: var(--ink); }

.viz { margin: 12px 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 6px; }
.viz > svg { width: 100%; height: auto; display: block; }
.viz figcaption { font-size: 12px; color: var(--muted); padding: 4px 6px 4px; }
.viz-grid { stroke: #e7ece9; stroke-width: 1; }
.viz-tick { font-size: 11px; fill: var(--muted); }
.viz-label { font-size: 12.5px; fill: var(--ink); }
.viz-row a .viz-label { fill: var(--green-dark); }
.viz-row a:hover .viz-label { text-decoration: underline; }
.viz-value { font-size: 12px; fill: var(--muted); font-weight: 600; }
.viz-bar { fill: #1f6b4a; }
.viz-row:hover .viz-bar { fill: #154d35; }
.viz-range { stroke: #b7d3c0; stroke-width: 8; stroke-linecap: round; }
.viz-dot { fill: #1f6b4a; stroke: #fff; stroke-width: 2; }
.viz-a { fill: #2a78d6; }
.viz-b { fill: #eb6834; }
.viz-legend text { font-size: 12px; fill: var(--ink); }

.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cat-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.cat-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--green-dark); }
.cat-list { margin: 0; padding-left: 1.1em; font-size: 14px; }
.cat-list li { margin: 6px 0; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 14px; color: var(--ink); }
.cat-nav a .ico { color: var(--green); }
.cat-section { scroll-margin-top: 12px; }

.article-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.article-card { flex-direction: row; align-items: flex-start; gap: 12px; }
.article-card-ico { color: var(--green); background: var(--green-soft); border-radius: 10px; padding: 8px; display: inline-flex; flex: none; }
.article-card-body { display: flex; flex-direction: column; gap: 2px; }
.article-card-cat { font-size: 12px; color: var(--green); font-weight: 700; }
.article-card-title { font-size: 15px; }

.article-head { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.article-head-ico { color: var(--white); background: var(--green); border-radius: 12px; padding: 8px; display: inline-flex; }
.article-head-cat { font-size: 13px; font-weight: 700; text-decoration: none; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 2px 12px; }
.article h1 { margin-top: 10px; }

.policy { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 14px; margin-top: 36px; }
.policy-list { padding-left: 1.1em; font-size: 14px; }
.policy-list li { margin: 8px 0; }

.tag-style { display: inline-flex; align-items: center; gap: 4px; }
.result-ico { color: var(--green); margin: 6px 0 0; }

/* スマホ向けの図の調整 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.area-map .scroll-x > svg { min-width: 760px; width: 100%; height: auto; display: block; }
.type-matrix .scroll-x > svg { min-width: 560px; width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .area-map figcaption::before, .type-matrix figcaption::before { content: "← 横にスクロールできます　"; color: var(--green); font-weight: 700; } }

.hb-list, .hr-list { list-style: none; margin: 0; padding: 4px 6px; }
.hb-row { display: grid; grid-template-columns: minmax(9em, 38%) 1fr; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px dashed #edf1ee; }
.hb-row:last-child { border-bottom: 0; }
.hb-name { font-size: 13px; text-decoration: none; color: var(--green-dark); line-height: 1.4; }
.hb-name:hover { text-decoration: underline; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-bar { display: block; height: 14px; background: #1f6b4a; border-radius: 0 4px 4px 0; min-width: 4px; flex: none; }
.hb-row:hover .hb-bar { background: #154d35; }
.hb-val { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.hb-track { position: relative; }
@media (max-width: 480px) { .hb-row { grid-template-columns: 1fr; gap: 2px; } }

.hr-row { padding: 8px 0 12px; }
.hr-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.hr-num { font-weight: 600; font-size: 12px; color: var(--muted); }
.hr-track { position: relative; display: block; height: 14px; margin-top: 6px; background: #f1f4f2; border-radius: 7px; }
.hr-span { position: absolute; top: 3px; height: 8px; background: #b7d3c0; border-radius: 4px; }
.hr-dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; background: #1f6b4a; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; }
.hr-axis { position: relative; height: 18px; margin: 0 6px 4px; font-size: 11px; color: var(--muted); }
.hr-axis span { position: absolute; transform: translateX(-50%); }
.hr-axis span:first-child { transform: none; }
.hr-axis span:last-child { transform: translateX(-100%); }

.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; padding: 2px 6px 8px; }
.cc-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cc-group { padding: 6px 6px 10px; }
.cc-period { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cc-line { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.cc-bar { display: block; height: 16px; border-radius: 0 4px 4px 0; flex: none; }
.cc-val { font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.viz-a-bg { background: #2a78d6; }
.viz-b-bg { background: #eb6834; }
.hb-row { grid-template-columns: minmax(8em, 36%) 1fr 5.6em; }
.hb-track { display: block; }
.hb-val { text-align: right; }
@media (max-width: 480px) { .hb-row { grid-template-columns: 1fr 5.6em; } .hb-name { grid-column: 1 / -1; } }
.cc-line { display: grid; grid-template-columns: 1fr 7.5em; }
.cc-track { display: block; min-width: 0; }
.hr-axis span { white-space: nowrap; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.logo-tag { font-size: 11px; font-weight: 500; color: var(--muted); }
.map-sub { stroke-width: 4; stroke-dasharray: 2 0; }
