@charset "utf-8";
/* ==========================================================================
   浄化槽.jp - Design System
   Colors / Typography / Layout tokens
   ========================================================================== */

:root {
  /* Brand */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2f7fe4;
  --brand-600: #1a6ad6;
  --brand-700: #1354ac;
  --brand-800: #0f4285;

  /* Accent (CTA) */
  --accent-400: #fb923c;
  --accent-500: #f4801f;
  --accent-600: #e26f0e;

  /* Neutral */
  --ink:      #16233a;
  --ink-2:    #33455f;
  --muted:    #64748b;
  --muted-2:  #8493a8;
  --line:     #e2eaf4;
  --line-2:   #eef3f9;
  --bg:       #ffffff;
  --bg-soft:  #f5f9fe;
  --bg-soft-2:#eef4fc;

  --star:     #f7b731;

  /* Shape */
  --r-sm: 6px;
  --r:    8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(22, 35, 58, .06);
  --sh:    0 2px 8px rgba(22, 35, 58, .07);
  --sh-md: 0 6px 18px rgba(22, 35, 58, .10);
  --sh-lg: 0 16px 40px rgba(10, 44, 92, .18);

  /* Layout */
  --container: 1120px;
  --header-h: 64px;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "BIZ UDPGothic", Meiryo, system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 44px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section-head { text-align: center; margin-bottom: 28px; }
.section-title {
  font-size: 25px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 16px;
}
.section-title--ruled::before,
.section-title--ruled::after {
  content: ""; width: 42px; height: 2px; background: var(--brand-500); border-radius: 2px;
}
.section-lead { margin-top: 10px; font-size: 14px; color: var(--muted); }

.head-row {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center; gap: 16px;
  margin-bottom: 24px;
}
/* 見出しはコンテナの中央に置き、右のリンクは絶対配置にして中心をずらさない */
.head-row .section-head { flex: 0 1 auto; margin-bottom: 0; }
.head-row .link-more { position: absolute; right: 0; bottom: 3px; }
.link-more {
  flex: none; font-size: 13px; font-weight: 500; color: var(--brand-600);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.link-more:hover { color: var(--brand-700); text-decoration: underline; }
.link-more .chev { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r); font-size: 14px; font-weight: 700;
  line-height: 1.4; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--accent { background: var(--accent-500); color: #fff; box-shadow: 0 1px 2px rgba(226,111,14,.3); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { background: #fff; color: var(--brand-600); border: 1px solid var(--brand-200); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--line { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn--line:hover { background: var(--bg-soft); }
.btn--lg { padding: 14px 30px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.logo__mark { width: 30px; height: 30px; flex: none; color: var(--brand-500); }
.logo__text { color: var(--ink); }
.logo--footer .logo__text { color: var(--ink); }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.gnav__link { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.gnav__link:hover { color: var(--brand-600); }
.gnav__cta { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--ink-2);
}
.nav-toggle:hover { background: var(--bg-soft); }

.drawer {
  display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(16, 32, 56, .45);
}
.drawer.is-open { display: block; }
.drawer__panel { background: #fff; padding: 8px 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line-2);
}
.drawer__actions { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #1560cf 0%, #2775e2 45%, #4a94ef 100%);
  padding: 46px 0 54px;
}
.hero__art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__art > svg { position: absolute; bottom: 0; opacity: .5; }
.hero__art > svg.is-left  { left: -14px;  width: 300px; }
.hero__art > svg.is-right { right: -14px; width: 260px; }
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  text-align: center; font-size: 32px; font-weight: 700; line-height: 1.45; letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(8, 40, 90, .22);
}
.hero__lead { margin-top: 12px; text-align: center; font-size: 14px; color: rgba(255,255,255,.92); }

/* Search card */
.searchbox {
  max-width: 760px; margin: 26px auto 0; background: #fff; color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 16px;
}
.searchbox__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 10px; border-radius: var(--r); background: var(--bg-soft-2);
  border: 2px solid transparent; text-align: left; transition: .15s;
}
.tab:hover { background: var(--brand-50); }
.tab.is-active { background: #fff; border-color: var(--brand-500); box-shadow: inset 0 0 0 1px rgba(47,127,228,.08); }
.tab__icon { width: 20px; height: 20px; flex: none; color: var(--muted-2); }
.tab.is-active .tab__icon { color: var(--brand-600); }
.tab__title { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.tab.is-active .tab__title { color: var(--brand-700); }
.tab__sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

.searchbox__panel { display: none; padding-top: 16px; }
.searchbox__panel.is-active { display: block; }
.search-grid {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end;
}
.field { display: block; }
.field__label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.select, .input, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; line-height: 1.7; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
.select:focus, .input:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(47,127,228,.15);
}
.select:disabled { background-color: var(--bg-soft); color: var(--muted-2); cursor: not-allowed; }
.search-grid .btn { height: 44px; padding-inline: 30px; }

.search-hint {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-sm); background: var(--bg-soft);
  font-size: 12px; color: var(--muted);
}
.search-hint svg { width: 15px; height: 15px; flex: none; color: var(--brand-400); }
.search-hint.is-error { background: #fef2f2; color: #b91c1c; }
.search-hint.is-error svg { color: #ef4444; }

.geo-panel { text-align: center; padding: 6px 0 2px; }
.geo-panel p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Notice bar ---------- */
.noticebar { border-bottom: 1px solid var(--line); background: #fff; }
.noticebar__inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 12px; border-radius: var(--r-pill); background: var(--brand-50);
  color: var(--brand-700); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge--gray { background: var(--bg-soft-2); color: var(--muted); }
.badge--accent { background: #fff3e6; color: var(--accent-600); }
.noticebar__date { flex: none; font-size: 13px; color: var(--muted); }
.noticebar__text {
  flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.noticebar__text:hover { color: var(--brand-600); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--sh-sm);
}
.card--link { transition: box-shadow .15s, transform .15s, border-color .15s; }
.card--link:hover { box-shadow: var(--sh-md); border-color: var(--brand-200); transform: translateY(-2px); }

/* Step cards */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__icon { width: 46px; height: 46px; flex: none; color: var(--brand-500); }
.step__title { font-size: 15px; font-weight: 700; color: var(--brand-700); margin-bottom: 6px; }
.step__text { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* Feature cards */
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.feature__icon { width: 30px; height: 30px; flex: none; color: var(--brand-500); }
.feature__title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.feature__text { font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Region cards ---------- */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.region-grid--rest { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.region {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm); transition: .15s;
}
.region:hover { border-color: var(--brand-300); box-shadow: var(--sh-md); transform: translateY(-2px); }
.region__map { width: 52px; height: 52px; flex: none; }
.region__map .jp-base { fill: #cfe0f8; }
.region__map .jp-on   { fill: var(--brand-500); }
.region__name { font-size: 14px; font-weight: 700; color: var(--brand-700); }
.region__prefs { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-top: 3px; }

/* ---------- Contractor cards ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px; margin: -4px; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; }
.carousel__btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-md); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn:hover { background: var(--brand-50); color: var(--brand-600); }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn--prev { left: -19px; }
.carousel__btn--next { right: -19px; }

.biz {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--sh-sm); transition: .15s;
}
.biz:hover { box-shadow: var(--sh-md); border-color: var(--brand-200); }
.biz__head { display: flex; align-items: flex-start; gap: 10px; }
.biz__logo { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.biz__name { font-size: 14px; font-weight: 700; line-height: 1.45; }
.biz__name a:hover { color: var(--brand-600); }
.biz__badge { flex: none; margin-left: auto; }
.biz__meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.biz__meta svg { width: 13px; height: 13px; flex: none; color: var(--muted-2); }
.biz__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 9px; border-radius: var(--r-sm); background: var(--bg-soft-2);
  font-size: 11px; color: var(--ink-2);
}
.biz__foot { margin-top: auto; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 7px; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__bg, .stars__fg { display: flex; gap: 1px; }
.stars__bg svg { color: #dfe6ef; }
.stars__fg {
  position: absolute; inset: 0; overflow: hidden; white-space: nowrap;
}
.stars__fg svg { color: var(--star); }
.stars svg { width: 13px; height: 13px; flex: none; }
.rating__score { font-size: 13px; font-weight: 700; color: var(--ink); }
.rating__count { font-size: 11.5px; color: var(--muted); }

/* ---------- Article cards ---------- */
.article { display: flex; flex-direction: column; background: transparent; }
.article__thumb {
  aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: var(--bg-soft-2); margin-bottom: 12px;
}
.article__thumb svg, .article__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article:hover .article__title { color: var(--brand-600); }
.article__cat { margin-bottom: 8px; }
.article__title { font-size: 14px; font-weight: 700; line-height: 1.6; transition: color .15s; }
.article__date { margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.article__excerpt { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* ---------- News list ---------- */
.newslist { border-top: 1px solid var(--line); }
.newsrow {
  display: flex; align-items: center; gap: 16px; padding: 15px 4px;
  border-bottom: 1px solid var(--line); transition: background-color .15s;
}
.newsrow:hover { background: var(--bg-soft); }
.newsrow__date { flex: none; width: 96px; font-size: 13px; color: var(--muted); }
.newsrow__badge { flex: none; }
.newsrow__title { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.newsrow:hover .newsrow__title { color: var(--brand-600); }
.newsrow__chev { flex: none; width: 16px; height: 16px; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand__text { margin-top: 14px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--brand-700); }
.social svg { width: 16px; height: 16px; }
.footer-col__title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col__list li + li { margin-top: 9px; }
.footer-col__list a { font-size: 12.5px; color: var(--muted); }
.footer-col__list a:hover { color: var(--brand-600); text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; border-top: 1px solid var(--line); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted-2);
}

/* ---------- Page header (sub pages) ---------- */
.pagehead {
  background: linear-gradient(180deg, #1560cf 0%, #2b7ae4 100%); color: #fff;
  padding: 34px 0 36px; position: relative; overflow: hidden;
}
.pagehead__title { font-size: 26px; font-weight: 700; }
.pagehead__lead { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.9); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; padding: 12px 0; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); text-decoration: underline; }
.breadcrumb .sep { color: var(--muted-2); }
.breadcrumb--onblue { color: rgba(255,255,255,.85); padding: 0 0 10px; }
.breadcrumb--onblue .sep { color: rgba(255,255,255,.6); }
.breadcrumb--onblue a:hover { color: #fff; }

/* ---------- Search results page ---------- */
.layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-sm); }
.panel + .panel { margin-top: 16px; }
.panel__title { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.filter-group + .filter-group { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 5px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--brand-600); flex: none; }

.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.result-count { font-size: 14px; color: var(--muted); }
.result-count b { font-size: 20px; color: var(--ink); margin: 0 3px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort .select { height: 38px; width: auto; min-width: 150px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 500;
}
.chip button { display: inline-flex; color: var(--brand-600); }
.chip button:hover { color: var(--brand-800); }

.result-list { display: grid; gap: 14px; }
.result-card {
  display: grid; grid-template-columns: 1fr 200px; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-sm); transition: .15s;
}
.result-card:hover { border-color: var(--brand-200); box-shadow: var(--sh-md); }
.result-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-card__name { font-size: 17px; font-weight: 700; }
.result-card__name a:hover { color: var(--brand-600); }
.result-card__desc { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.result-card__side { display: flex; flex-direction: column; gap: 8px; justify-content: center; border-left: 1px solid var(--line-2); padding-left: 20px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.meta-list li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.meta-list svg { width: 14px; height: 14px; flex: none; color: var(--muted-2); }

.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty__text { font-size: 13px; color: var(--muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager button, .pager span {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pager button:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.pager button.is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: default; background: #fff; }

/* ---------- Contractor detail ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.detail-head__logo { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.detail-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.detail-sub { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.deftable th, .deftable td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; vertical-align: top; }
.deftable th { width: 180px; background: var(--bg-soft); font-weight: 700; color: var(--ink-2); }
.deftable tr:last-child th, .deftable tr:last-child td { border-bottom: 0; }
.block + .block { margin-top: 28px; }
.block__title {
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
  padding-left: 12px; border-left: 4px solid var(--brand-500); line-height: 1.5;
}
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review__author { font-size: 13px; font-weight: 700; }
.review__date { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.review__body { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

.cta-card {
  background: linear-gradient(135deg, #1a6ad6, #3f8bec); color: #fff;
  border-radius: var(--r-md); padding: 22px; text-align: center;
}
.cta-card__title { font-size: 16px; font-weight: 700; }
.cta-card__text { margin: 8px 0 16px; font-size: 12.5px; color: rgba(255,255,255,.9); line-height: 1.75; }

/* ---------- Prose (guide / article / legal) ---------- */
.prose { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 40px;
  padding-left: 12px; border-left: 4px solid var(--brand-500); line-height: 1.5;
}
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 30px; }
.prose ul { padding-left: 4px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li + li { margin-top: 8px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .75em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300);
}
.prose ol { counter-reset: n; padding-left: 4px; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: n; }
.prose ol li + li { margin-top: 8px; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .35em;
  width: 21px; height: 21px; border-radius: 50%; background: var(--brand-50);
  color: var(--brand-700); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--brand-600); text-decoration: underline; }
.note {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand-400);
  border-radius: var(--r-sm); padding: 16px 18px; font-size: 13.5px; line-height: 1.85;
}

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq + .faq { margin-top: 12px; }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  font-size: 15px; font-weight: 700; text-align: left;
}
.faq__q:hover { background: var(--bg-soft); }
.faq__mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq__toggle { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted-2); transition: rotate .2s; }
.faq.is-open .faq__toggle { rotate: 180deg; }
.faq__a { display: none; padding: 0 18px 18px 54px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.faq.is-open .faq__a { display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row__label { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.req { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: #fee2e2; color: #b91c1c; }
.opt { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: var(--bg-soft-2); color: var(--muted); }
.form-help { font-size: 12px; color: var(--muted-2); }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.form-alert { display: none; padding: 14px 16px; border-radius: var(--r-sm); background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 13.5px; }
.form-alert.is-shown { display: block; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-links { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-links a { color: var(--brand-600); }
.auth-links a:hover { text-decoration: underline; }

/* ---------- Misc ---------- */
.pref-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pref-list a {
  display: block; padding: 10px 6px; text-align: center; font-size: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
}
.pref-list a:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.region-block + .region-block { margin-top: 26px; }
.region-block__title { font-size: 16px; font-weight: 700; color: var(--brand-700); margin-bottom: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { text-align: center; padding: 20px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.stat__num { font-size: 26px; font-weight: 700; color: var(--brand-600); }
.stat__label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.price-table th { background: var(--brand-50); color: var(--brand-800); }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
}
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .region-grid, .region-grid--rest { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 18px) / 2); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .pref-list { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .gnav { display: none; }
  .nav-toggle { display: flex; }
  .hero__title { font-size: 24px; }
  .hero__art--left svg { width: 190px; }
  .hero__art--right svg { width: 160px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .btn { width: 100%; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-card__side { border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; padding-top: 14px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 21px; }
  .deftable th { width: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .grid--4 { grid-template-columns: 1fr; }
  .region-grid, .region-grid--rest { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 84%; }
  .pref-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .noticebar__date { display: none; }
  .newsrow { flex-wrap: wrap; gap: 8px 12px; }
  .newsrow__title { flex-basis: 100%; }
  .section-title--ruled::before, .section-title--ruled::after { width: 20px; }
  .hero__art { opacity: .5; }
  .stat-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Component details（SVG サイズ・個別調整）
   ========================================================================== */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.tab__title, .tab__sub { display: block; }
.tab__icon { display: block; }
.tab__icon svg, .step__icon svg, .feature__icon svg { width: 100%; height: 100%; }
.step__icon, .feature__icon { display: block; }
.carousel__btn svg { width: 18px; height: 18px; }
.chip svg { width: 12px; height: 12px; }
.faq__q svg.faq__toggle { width: 18px; height: 18px; }

.region__body { flex: 1; min-width: 0; }
.region__name, .region__prefs { display: block; }
.area-tags a.tag:hover { background: var(--brand-100); color: var(--brand-700); }

.detail-sub .rating__score { color: #fff; }
.detail-sub .rating__count { color: rgba(255, 255, 255, .85); }
.detail-sub .stars__bg svg { color: rgba(255, 255, 255, .4); }

.layout--rev { grid-template-columns: 1fr 300px; }
.layout--rev .sidebar > * + * { margin-top: 16px; }
.layout--rev .biz { box-shadow: none; }

.pref-list a { transition: .15s; }
.region-block { transition: box-shadow .3s, border-color .3s; }

@media (max-width: 980px) {
  .layout--rev { grid-template-columns: 1fr; }
}
.detail-sub > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.detail-sub svg { width: 15px; height: 15px; flex: none; }
.detail-sub .stars svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  .head-row { position: static; flex-direction: column; align-items: stretch; gap: 10px; }
  .head-row .link-more { position: static; align-self: flex-end; }
}
@media (max-width: 560px) {
  .searchbox { padding: 12px; }
  .searchbox__tabs { gap: 8px; }
  .tab { padding: 10px 6px; gap: 8px; }
  .tab__title { font-size: 13.5px; }
  .tab__sub { font-size: 10.5px; }
}

/* ---------- 業者データ（DB生成JSON）向けの追加スタイル ---------- */
.pref-list__count{
  margin-left:6px;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}
.pref-list__count::before{ content:"("; }
.pref-list__count::after { content:"社)"; }

.pager__gap{
  display:inline-flex;
  align-items:center;
  padding:0 4px;
  color:var(--muted);
  font-size:13px;
}

.result-card__side .badge{ margin-bottom:6px; }

.source-note{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
}

/* ==========================================================================
   モーダル選択（都道府県 / 市区町村ピッカー）
   ========================================================================== */
.is-picker-source { display: none !important; }

.picker-btn {
  width: 100%; height: 44px; padding: 0 12px 0 14px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-size: 14px; text-align: left; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.picker-btn:hover:not(:disabled) { border-color: var(--brand-300); background: var(--brand-50); }
.picker-btn:focus-visible { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(47,127,228,.15); }
.picker-btn:disabled { background: var(--bg-soft); color: var(--muted-2); cursor: not-allowed; }
.picker-btn__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn__label.is-placeholder { color: var(--muted-2); }
.picker-btn__chev { width: 15px; height: 15px; flex: none; color: var(--muted); }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(13, 30, 55, .45);
}
.modal[hidden] { display: none; }
body.is-modal-open { overflow: hidden; }

.modal__panel {
  width: 100%; max-width: 880px; max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden;
}
.modal__panel:focus { outline: none; }
.modal__head {
  flex: none; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.modal__title { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; }
.modal__close {
  flex: none; width: 36px; height: 36px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 22px; }

.picker-group { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.picker-group:last-child { border-bottom: 0; padding-bottom: 6px; }
.picker-group__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.picker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.picker-item {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font-size: 14px; line-height: 1.4; text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.picker-item:hover { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.picker-item:focus-visible { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(47,127,228,.15); }
.picker-item.is-current { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.picker-item__name { min-width: 0; }
.picker-item__count { flex: none; font-size: 11px; color: var(--muted-2); font-weight: 400; }
.picker-item:hover .picker-item__count, .picker-item.is-current .picker-item__count { color: var(--brand-600); }

.picker-item--clear { width: 100%; margin: 16px 0 4px; color: var(--muted); }

@media (max-width: 980px) {
  .picker-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .modal { padding: 0; align-items: stretch; }
  .modal__panel { max-width: none; max-height: 100%; border-radius: 0; }
  .modal__head { padding: 14px 16px; }
  .modal__title { font-size: 17px; }
  .modal__body { padding: 4px 16px 20px; }
  .picker-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .picker-item { font-size: 13px; min-height: 42px; }
}
@media (max-width: 420px) {
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   エリアページ（都道府県 / 市区町村）
   ========================================================================== */
.area-lead {
  font-size: 14.5px; line-height: 1.95; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-400); border-radius: var(--r-sm);
  padding: 16px 18px;
}
.area-list { display: grid; gap: 12px; margin-top: 22px; }
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s;
}
.area-card:hover { border-color: var(--brand-200); box-shadow: var(--sh-md); }
.area-card__name { display: inline; font-size: 16px; font-weight: 700; line-height: 1.5; }
.area-card__name a:hover { color: var(--brand-600); text-decoration: underline; }
.area-card .badge { margin-left: 8px; vertical-align: 2px; }
.area-card__sum { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.area-card .meta-list { margin-top: 10px; }
.area-card .meta-list a:hover { color: var(--brand-600); text-decoration: underline; }
.area-card .biz__tags { margin-top: 12px; }

.pref-list a { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pref-list__n { font-size: 11px; color: var(--muted-2); }
.pref-list a:hover .pref-list__n { color: var(--brand-600); }
/* 注記の中に置くアイコン（サイズ指定が無いと巨大になる） */
.form-help svg, .area-lead svg { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.source-list li { font-size: 13.5px; line-height: 1.8; }
.source-list li + li { margin-top: 4px; }
.source-list a { color: var(--brand-600); text-decoration: underline; }
.source-list a:hover { color: var(--brand-700); }
.inline-icon { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
