/*
 * 解体業者しらべ — デザインシステム（v1）
 * オフホワイト背景 × 深緑CTA × アンバーの小面積アクセント。
 * サイト1（防犯カメラ導入ナビ）のティール×ネイビー配色は一切流用しない
 * （research/kaitai-shiraberu/site-design.md 第12章）。
 * モバイルファースト。ブレークポイントは概ね768px / 1080px。
 */

:root {
  /* カラー（第12章の色見本どおり） */
  --primary: #1f7a4d; /* 深緑: CTA・キーカラー */
  --primary-dark: #143926; /* ディープグリーン: 見出し・フッター・hover */
  --accent: #d98e1b; /* アンバー: 確認日バッジ・注意喚起（面積小・文字は必ずprimary-dark） */
  --accent-pale: #f7e9d2; /* アンバーの淡色面 */
  --ink: #222222; /* 本文 */
  --muted: #5b665f; /* 補足文（緑がかったグレー） */
  --line: #ded9c9; /* 罫線（オフホワイト系） */
  --bg: #f7f5f0; /* 基調は温かみのあるオフホワイト */
  --bg-alt: #eaf3ee; /* 交互セクション背景・表の縞 */
  --card-bg: #ffffff; /* カード面は白でbgとコントラストを付ける */
  --shadow: 0 4px 16px rgba(20, 57, 38, 0.1);
  --shadow-strong: 0 12px 32px rgba(20, 57, 38, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 5px solid var(--primary);
  color: var(--primary-dark);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
}

h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 17px;
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* --- 共通レイアウト --- */

.wrap,
.header-inner,
.site-footer,
.article-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.content-section {
  padding: 40px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

@media (min-width: 768px) {
  .content-section {
    padding: 64px 0;
  }
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.row-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: none;
}

@media (min-width: 768px) {
  .row-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* --- ボタン --- */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.button.primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.button.ghost {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  background: #fff;
}

.button.ghost:hover {
  background: var(--bg-alt);
}

.button.arrow::after {
  content: "\2192";
  margin-left: 8px;
}

.button.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

input:focus,
select:focus,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 122, 77, 0.3);
  outline-offset: 2px;
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

/* --- ヘッダー --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(6px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark-svg {
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: none;
  gap: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-links.is-open {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-links.is-open a {
  min-height: 44px;
  padding: 12px;
}

.mobile-nav-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--primary-dark);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mobile-nav-toggle-icon {
  display: grid;
  width: 18px;
  gap: 3px;
}

.mobile-nav-toggle-icon span {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-cta {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

@media (min-width: 1080px) {
  .mobile-nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .header-cta {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* --- ユーティリティ --- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  display: inline-block;
  max-width: 100%;
}

/* --- ヒーロー --- */

.hero-section {
  padding: 40px 0 36px;
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 57, 38, 0.08) 1px, transparent 0) 0 0/24px 24px,
    linear-gradient(180deg, #eef4ee 0%, #f7f5f0 78%);
}

.hero-wrap {
  max-width: 1180px;
}

@media (min-width: 900px) {
  .hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: start;
    gap: 48px;
  }
}

.hero-content {
  min-width: 0;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-eyebrow {
  margin: 0;
}

.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.hero-section h1 {
  border-left: 0;
  padding-left: 0;
}

.hero-highlight {
  color: var(--primary-dark);
  background: linear-gradient(transparent 55%, rgba(31, 122, 77, 0.2) 55%);
}

.hero-catch {
  max-width: 720px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--primary-dark);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 900;
  line-height: 1.5;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stat {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 57, 38, 0.1);
}

.hero-stat-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-alt);
  color: var(--primary-dark);
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-stat strong {
  color: var(--primary-dark);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-stat-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.hero-trust-chips svg {
  flex: 0 0 auto;
  color: var(--primary-dark);
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-stat {
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 8px;
    min-width: 0;
  }

  .hero-stat-icon {
    width: 24px;
    height: 24px;
  }

  .hero-stat-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero-stat strong {
    font-size: 15px;
    word-break: keep-all;
  }

  .hero-stat-text span {
    word-break: keep-all;
    font-size: 9px;
    line-height: 1.3;
  }
}

/* --- ヒーロー右カラム: エリア検索カード --- */

.hero-card {
  overflow: hidden;
  margin-top: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  border-top: 3px solid var(--primary);
}

@media (min-width: 900px) {
  .hero-card {
    margin-top: 0;
  }
}

.hero-card-header {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-card-header img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 480px) {
  .hero-card-header {
    height: 160px;
  }
}

.hero-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.hero-card-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 900;
}

.hero-card-body .field {
  display: grid;
  gap: 0;
}

.hero-card-button {
  width: 100%;
  justify-content: center;
}

.hero-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* --- 絞り込みCTAバー --- */

.filter-bar-section {
  border-top: 2px solid var(--primary);
  background: var(--bg-alt);
  padding: 20px 0;
}

.filter-bar-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-bar-label {
  margin: 0;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.filter-bar-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field select:disabled {
  background: var(--bg-alt, #f5f5f5);
  color: var(--muted);
  cursor: not-allowed;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.filter-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-bar-actions .button {
  width: 100%;
  justify-content: center;
}

.filter-bar-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.filter-bar-suggestions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-bar-suggestions button {
  border: 1px solid rgba(20, 57, 38, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.filter-bar-suggestions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 768px) {
  .filter-bar-main {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .filter-bar-label {
    flex: 0 0 auto;
    max-width: 200px;
  }

  .filter-bar-form {
    flex: 1 1 auto;
  }

  .filter-bar-actions {
    flex-direction: row;
  }

  .filter-bar-actions .button {
    width: auto;
  }
}

@media (min-width: 1080px) {
  /* 拠点が都道府県+市区町村の2段階になり、見出しと横並びでは選択欄の文字が切れる。
     見出しを上に戻してフォームに横幅を渡す（結論20）。 */
  .filter-bar-main {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar-label {
    max-width: none;
  }

  .filter-bar-form {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
    align-items: center;
  }
}

/* --- 掲載までの流れ --- */

.guide-flow-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-flow-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-flow-list li > span:first-child {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--primary);
  font-size: 17px;
  font-weight: 900;
}

.guide-flow-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 16px;
}

.guide-flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .guide-flow-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* --- こんな不安はありませんか --- */

.worry-section-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .worry-section-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: stretch;
  }
}

/* 写真の高さが隣のテキスト列より短く、下に大きな余白ができていた（redesign-spec.md 結論18）。
   親の高さいっぱいに伸ばして揃える。狭い画面では列が縦に積まれるため固定高に戻す。 */
.worry-media {
  height: 100%;
  min-height: 220px;
}

.worry-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.worry-body {
  min-width: 0;
}

.worry-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .worry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.worry-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.worry-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.worry-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* 「次の一歩」セクション：worry-gridのカードにリンクを追加するための調整。
   カードごとに文章量が違うと、リンクボタンの縦位置が揃わずページが雑に見える。
   カードを縦のflexにして、リンクだけを下端へ寄せる。既存の worry-section の
   カードにはリンクが無いため、影響を出さないよう .next-step-section に閉じている。 */
.next-step-section .worry-grid article {
  display: flex;
  flex-direction: column;
}

.next-step-section .worry-grid p {
  margin-bottom: 14px;
}

.next-step-section .next-step-link {
  margin-top: auto;
  align-self: flex-start;
}

/* --- 検証の仕組み（登録簿突合） --- */

.verify-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .verify-grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: stretch;
  }
}

.verify-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  height: 100%;
  min-height: 220px;
}

.verify-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.verify-content p {
  max-width: 720px;
  color: var(--ink);
}

.verify-content p:last-of-type {
  margin-bottom: 18px;
}

/* --- エリアから探す（チップ型） --- */

.region-block {
  margin-bottom: 18px;
}

.region-block-title {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.pref-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.pref-chip:hover {
  box-shadow: var(--shadow-strong);
}

/* --- 都道府県カード（トップの「都道府県から探す」） ---
   チップ（県名＋社数）だけでは情報が薄く、地域キーワードの受け皿としても弱かったため、
   掲載社の所在市区町村を件数順に出すカードへ変更した（redesign-spec.md 結論17）。 */

.pref-card-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .pref-card-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.pref-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pref-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.pref-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pref-card-name {
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 900;
}

.pref-card-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.pref-card-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pref-card-area {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 4px 9px;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.pref-card-area-rest {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.pref-card-area-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pref-card-link {
  margin-top: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.pref-card-link::after {
  content: " →";
}

.area-chip-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.area-chip::after {
  content: "\2192";
  color: var(--primary);
  font-weight: 900;
}

.area-chip:hover {
  border-color: var(--primary);
}

/* --- 業者一覧カード --- */

.result-bar {
  display: grid;
  gap: 2px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.result-bar span:first-child {
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1.2;
}

.company-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card-head,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  color: var(--primary-dark);
  background: var(--bg-alt);
}

.tag {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-alt);
}

.tag-muted {
  color: var(--muted);
  font-style: normal;
}

.company-card h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.card-feature {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.company-service-group {
  display: grid;
  gap: 6px;
}

.company-card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.company-license-status {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(31, 122, 77, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-alt);
}

.company-license-icon,
.company-license-legend-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.company-license-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.company-license-copy strong {
  color: var(--primary-dark);
  font-size: 13px;
  line-height: 1.4;
}

.company-license-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.card-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.card-links .detail-link,
.card-links .company-card-compare,
.card-links .compare-toggle {
  width: 100%;
}

.company-source-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.company-source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.excerpt-section .card-links {
  grid-template-columns: 1fr;
}

.company-name-link {
  color: inherit;
  text-decoration: none;
}

.company-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  background: var(--bg-alt);
  text-align: center;
}

/* --- 一覧の数字帯（掲載社数・掲載エリア・確認日） --- */

.companies-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.companies-stat {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.companies-stat-num {
  color: var(--primary-dark);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 900;
  line-height: 1.2;
}

.companies-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .companies-stats {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .companies-stat {
    padding: 10px 10px;
  }

  .companies-stat-num {
    font-size: 16px;
  }
}

/* --- 用途から探す --- */

.purpose-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .purpose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .purpose-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.purpose-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.purpose-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-strong);
}

.purpose-card-label {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 900;
}

.purpose-card-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.purpose-card-count {
  margin-top: auto;
  padding-top: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

/* --- 都道府県から探す --- */

.pref-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- 業者一覧: 県ごとのブロック --- */

.company-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.company-pref-switcher {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.company-pref-switcher-label {
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.company-pref-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-pref-tab {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--primary-dark);
  background: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.company-pref-tab small {
  display: inline-grid;
  min-width: 38px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.company-pref-tab:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}

.company-pref-tab.is-active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.company-pref-tab.is-active small {
  color: var(--primary-dark);
  background: #fff;
}

.company-pref-tab:focus-visible {
  outline: 3px solid rgba(217, 142, 27, 0.55);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .company-pref-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.company-license-legend {
  display: flex;
  align-items: center;
  gap: 12px 14px;
  margin: 0 0 24px;
  border: 1px solid rgba(31, 122, 77, 0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

.company-license-legend p {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  margin: 0;
}

.company-license-legend strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.company-license-legend p span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.company-license-legend a {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.company-license-legend a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .company-license-legend {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .company-license-legend p {
    flex-basis: calc(100% - 40px);
  }

  .company-license-legend a {
    margin-left: 38px;
  }
}

.pref-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pref-block-head h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.pref-block-head a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pref-block-head a:hover {
  text-decoration: underline;
}

.pref-block-more {
  margin-top: 14px;
}

@media (max-width: 480px) {
  .pref-block-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- 畳み（is-hiddenとは別軸。resultCountの集計対象には含めない） --- */

.is-folded {
  display: none;
}

/* --- 比較表（既定で閉じるdetails） --- */

.compare-details summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 700;
}

.compare-details[open] summary {
  margin-bottom: 20px;
}

/* 全体のsummaryはFAQ用に「Q」「A」のバッジを出す。比較表はQ&Aではないので開閉記号に差し替える。 */
.compare-details summary::before {
  content: "▼";
  font-size: 11px;
}

.compare-details[open] summary::before {
  content: "▲";
  background: var(--primary-dark);
}

/* --- 広告枠（優先掲載枠） --- */

.ad-frame-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 57, 38, 0.04);
}

.ad-card {
  border-color: rgba(20, 57, 38, 0.35);
}

.ad-badge {
  color: #fff;
  background: var(--primary-dark);
}

/* --- 比較表 / 汎用テーブル --- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow-x: auto;
}

.table-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 確認の範囲を県ページで開示する一文（結論21）。面積の小さいアンバーで注意を示し、文字はprimary-dark。 */
.scope-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-pale);
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.8;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

td {
  font-size: 14px;
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tr:last-child td {
  border-bottom: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--primary-dark);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.check::before {
  content: "\2713";
}

.dash {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.license-no {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* --- 解体費補助金 横断表 --- */

/* 共通ルール2枚。カード自体は既存の.license-guide-noteをそのまま流用し、グリッドだけ足す。 */
.subsidy-rule-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .subsidy-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.subsidy-rule-grid .license-guide-note {
  margin: 0;
}

/* 表セル内の補足（市町村のstatus・上限額のcap_note）。.license-noと同じ見た目。 */
.cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* --- 費用・カード共通グリッド --- */

.cost-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cost-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cost-grid article {
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cost-grid > span,
.cost-grid article > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cost-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* --- 許可・登録の確認（license-guide） --- */

.license-guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .license-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .header-cta {
    display: none;
  }
}

@media (min-width: 960px) {
  .city-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-article-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.license-guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.license-guide-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.license-guide-card h3 svg {
  color: var(--primary);
}

.license-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.license-guide-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--accent-pale);
}

.license-guide-note p {
  margin: 0;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.75;
}

.license-guide-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* --- 見積もり前チェックリスト --- */

.quote-checklist {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .quote-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.55;
}

.quote-checklist input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 4px;
}

/* --- FAQ --- */

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}

summary {
  position: relative;
  padding-left: 36px;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -2px;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

details[open] summary::before {
  content: "A";
  background: var(--primary-dark);
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* --- このサイトについて --- */

.about-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.about-main p {
  max-width: 640px;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.about-points svg {
  flex: 0 0 auto;
  color: var(--primary);
}

.about-side {
  display: grid;
  gap: 14px;
}

.about-operator-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-operator-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.about-operator-card h3 {
  margin-bottom: 0;
}

.about-operator-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.about-operator-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 13px;
}

.about-operator-card dt {
  color: var(--muted);
  font-weight: 700;
}

.about-operator-card dd {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: right;
}

/* --- CTA帯（掲載企業の方へ・深緑グラデ全幅） --- */

#listing.listing-section {
  border-top: 0;
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2418 100%);
}

.cta-band-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.cta-eyebrow {
  color: var(--accent);
}

#listing h2 {
  border-left: 0;
  padding-left: 0;
  color: #fff;
}

.cta-lead {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.cta-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- article-section 内のlisting-section（下層ページ・カード型） --- */

.article-section.listing-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

@media (min-width: 768px) {
  .article-section.listing-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.article-section.listing-section p {
  max-width: 700px;
  color: var(--muted);
}

/* --- 調査ノート導線 / 関連リンク --- */

.article-link-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .article-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .article-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.article-link-grid a {
  display: block;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.article-link-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.article-link-grid strong {
  display: block;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- 調査ノート（トップ・テキストリスト） --- */

.notes-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list-item a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
  text-decoration: none;
}

.notes-list-item a:hover strong {
  color: var(--primary);
}

.notes-list-date {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.notes-list-item strong {
  display: block;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- フッター --- */

.site-footer {
  color: var(--muted);
}

.footer-note {
  max-width: 460px;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 700;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer.site-footer-full {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  background: var(--primary-dark);
}

.footer-main {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding: 44px 0 32px;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-col h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand-row strong {
  color: #fff;
  font-size: 17px;
}

.footer-brand p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.footer-operator {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 700;
}

.footer-pref-group {
  margin-bottom: 16px;
}

.footer-pref-group:last-child {
  margin-bottom: 0;
}

.footer-pref-heading {
  margin: 0 0 8px;
}

.footer-pref-heading a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-pref-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
}

.footer-city-links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-city-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-col .footer-nav {
  flex-direction: column;
  gap: 8px;
}

.footer-col .footer-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col .footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d2418;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom .footer-note {
  max-width: 640px;
  margin: 0;
  color: inherit;
}

.footer-copyright {
  margin: 0;
  white-space: nowrap;
}

/* --- 調査ノート（投稿一覧・投稿詳細） --- */

.post-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.post-list-item a {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.post-list-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.post-list-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-list-item strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.4;
}

.post-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .post-list-item a {
    flex-direction: column;
  }
}

.post-list-item a:hover strong {
  color: var(--primary);
}

.post-pagination {
  margin-top: 24px;
  font-weight: 700;
}

.post-pagination .page-numbers {
  display: inline-block;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: #fff;
  text-decoration: none;
}

.post-pagination .page-numbers.current {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.post-content {
  max-width: 780px;
}

.post-content h2 {
  margin-top: 40px;
}

.post-content h3 {
  margin-top: 28px;
}

.post-content p,
.post-content li {
  font-size: 16px;
  line-height: 1.9;
}

.post-content img {
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.post-figure {
  margin: 24px 0 28px;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.post-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.post-content table {
  min-width: 0;
}

.post-content blockquote {
  margin: 20px 0;
  border-left: 4px solid var(--primary);
  padding: 4px 0 4px 18px;
  color: var(--muted);
}

/* --- 下層ページ共通（article-page） --- */

.article-page {
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  padding: 28px 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-hero p {
  max-width: 820px;
  color: var(--muted);
}

.article-featured-image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-section {
  padding: 28px 0;
}

.article-section > p {
  max-width: 850px;
  color: var(--muted);
}

/* --- 業者一覧ページ・県ページの導入セクション --- */

.companies-intro-section p {
  max-width: 780px;
  color: var(--muted);
}

/* --- 業者個別ページ --- */

.company-page-head {
  padding-top: 32px;
}

.company-page-foot {
  padding-bottom: 64px;
}

.company-hero-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
  background: var(--bg);
}

.company-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 640px) {
  .company-hero-row {
    gap: 28px;
  }
}

.company-hero-tile {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-strong);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 640px) {
  .company-hero-tile {
    width: 108px;
    height: 108px;
    font-size: 48px;
  }
}

.company-hero-content {
  min-width: 0;
}

.company-hero-content h1 {
  margin: 10px 0 8px;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--primary);
}

.badge-verified svg {
  flex: 0 0 auto;
}

.company-hero-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.company-hero-address svg {
  flex: 0 0 auto;
  color: var(--primary);
}

/* 法令情報ブロック（許可・登録の確認状況） */

.license-block {
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  background: var(--bg-alt);
}

.license-statement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.license-statement svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--primary);
}

.license-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .license-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.license-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: #fff;
}

.license-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.license-meta dd {
  margin: 2px 0 0;
  color: var(--primary-dark);
  font-weight: 700;
}

.license-caveat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  line-height: 1.7;
}

.license-caveat svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.muted-note {
  color: var(--muted);
  font-size: 13px;
}

/* 会社情報テーブル */

.company-info-table-wrap .eyebrow {
  margin-bottom: 12px;
}

.company-info-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.company-info-table th,
.company-info-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: 0;
}

.company-info-table th {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 150px;
  color: var(--primary-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.company-info-table th svg {
  flex: 0 0 auto;
  color: var(--primary);
}

.company-info-table td {
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 640px) {
  .company-info-table,
  .company-info-table tbody,
  .company-info-table tr,
  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
  }

  .company-info-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .company-info-table td {
    padding-top: 0;
    padding-bottom: 14px;
  }
}

.company-intro-box {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--bg-alt);
}

.company-intro-box p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.cta-row-section {
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.company-page .listing-section {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-alt);
}

/* --- 装飾イラスト --- */

.illustration {
  display: block;
}

/* --- 表示切り替え（絞り込みJS） --- */

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* --- 2〜5社比較（AIDesigner案をテーマの既存トークンへ移植） --- */

.company-card-compare {
  margin: 0;
  padding: 0;
}

.compare-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--primary-dark);
  background: var(--bg);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.compare-toggle:hover,
.compare-toggle.is-selected {
  border-color: var(--primary);
  background: var(--bg-alt);
}

.compare-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.compare-toggle input:disabled + span {
  color: var(--muted);
}

.compare-entry-panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 96% 8%, rgba(31, 122, 77, 0.12), transparent 32%),
    #fff;
  box-shadow: var(--shadow);
}

.compare-entry-panel .section-heading {
  max-width: 720px;
}

.compare-steps {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.compare-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.compare-steps li span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
}

.compare-entry-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.compare-entry-action p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.compare-entry-action strong {
  color: var(--primary-dark);
  font-size: 25px;
}

.compare-editorial-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.button.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #e9e7e1;
  cursor: not-allowed;
  pointer-events: auto;
}

.compare-dock {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  color: #fff;
  background: rgba(20, 57, 38, 0.97);
  box-shadow: 0 -12px 30px rgba(20, 57, 38, 0.2);
  backdrop-filter: blur(10px);
}

.has-compare-dock {
  padding-bottom: 112px;
}

.compare-dock-inner {
  display: grid;
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}

.compare-dock-count {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.compare-dock-count strong {
  font-size: 15px;
}

.compare-dock-chips {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}

.compare-dock-chip {
  display: flex;
  min-width: 0;
  max-width: 160px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
}

.compare-dock-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-dock-chip button,
.compare-dock-clear {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.compare-dock-chip button {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.compare-dock-chip button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.compare-dock-clear {
  display: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  text-decoration: underline;
}

.compare-dock .button {
  grid-column: 1 / -1;
  min-height: 42px;
}

@media (min-width: 768px) {
  .compare-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-steps li:not(:last-child)::after {
    content: "→";
    margin-left: auto;
    color: var(--line);
  }

  .compare-dock-inner {
    grid-template-columns: auto minmax(240px, 1fr) auto auto;
  }

  .compare-dock-clear {
    display: block;
  }

  .compare-dock .button {
    grid-column: auto;
    min-width: 190px;
  }
}

.compare-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 12%, rgba(31, 122, 77, 0.13), transparent 34%),
    var(--bg);
}

.compare-page h1,
.compare-matrix-section .section-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.02em;
}

.compare-hero-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}

.compare-hero-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.compare-condition-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
}

.compare-condition-summary strong {
  margin-right: 4px;
  color: var(--primary-dark);
  font-size: 13px;
}

.compare-condition-summary span {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--primary-dark);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 800;
}

.compare-selection-section {
  padding-bottom: 26px;
}

.compare-selection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.compare-selection-head h2 {
  margin: 0;
}

.compare-selection-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-company-strip {
  display: grid;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.compare-company-mini {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 57, 38, 0.06);
  scroll-snap-align: start;
}

.compare-company-initial {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--bg);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 23px;
  font-weight: 800;
}

.compare-company-mini h3,
.compare-company-mini p {
  margin: 0;
}

.compare-company-mini h3 {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-company-mini p {
  color: var(--muted);
  font-size: 11px;
}

.compare-company-mini > button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.compare-company-mini > button:hover {
  color: var(--primary-dark);
  background: var(--bg-alt);
}

.compare-matrix-section {
  padding-top: 30px;
}

.compare-matrix-wrap {
  display: none;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.compare-matrix-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.compare-matrix-table[data-compare-columns="4"] {
  min-width: 980px;
}

.compare-matrix-table[data-compare-columns="5"] {
  min-width: 1180px;
}

.compare-matrix-table th,
.compare-matrix-table td {
  min-width: 185px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  vertical-align: top;
  text-align: left;
}

.compare-matrix-table tr:last-child th,
.compare-matrix-table tr:last-child td {
  border-bottom: 0;
}

.compare-matrix-table th:last-child,
.compare-matrix-table td:last-child {
  border-right: 0;
}

.compare-matrix-table thead th {
  color: var(--primary-dark);
  background: #fff;
  font-size: 14px;
}

.compare-matrix-table th:first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  width: 160px;
  min-width: 160px;
  color: var(--primary-dark);
  background: var(--bg);
  box-shadow: 8px 0 12px rgba(20, 57, 38, 0.04);
}

.compare-matrix-table thead th:first-child {
  z-index: 4;
}

.compare-matrix-table tbody tr:nth-child(even) td {
  background: rgba(234, 243, 238, 0.34);
}

.compare-table-company {
  display: block;
  line-height: 1.5;
}

.compare-reason-row ul,
.compare-mobile-group ul {
  margin: 0;
  padding-left: 18px;
}

.compare-reason-row li::marker,
.compare-mobile-group li::marker {
  color: var(--primary);
}

.compare-value,
.compare-value-detail {
  display: block;
}

.compare-value {
  color: var(--ink);
  font-weight: 800;
}

.compare-value.is-yes {
  color: var(--primary);
}

.compare-value.is-unknown {
  color: #77736c;
}

.compare-value-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.compare-action-row td {
  white-space: nowrap;
}

.compare-action-row .button + .button {
  margin-left: 5px;
}

.compare-mobile-list {
  display: grid;
  gap: 14px;
}

.compare-mobile-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 57, 38, 0.05);
  overflow: hidden;
}

.compare-mobile-group h3 {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-alt);
  font-size: 15px;
}

.compare-mobile-group article {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.compare-mobile-group article:last-child {
  border-bottom: 0;
}

.compare-mobile-group article > strong {
  color: var(--primary-dark);
  font-size: 12px;
}

.compare-mobile-group article li {
  font-size: 13px;
}

.compare-mobile-actions {
  display: grid;
  gap: 10px;
}

.compare-mobile-actions article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
}

.compare-mobile-actions article > strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.compare-mobile-actions article > div {
  display: flex;
  gap: 7px;
}

.compare-disclosure {
  margin: 20px 0 0;
  border-left: 3px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 12px;
}

.compare-next-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  color: #fff;
  background: var(--primary-dark);
}

.compare-next-panel h2,
.compare-next-panel p,
.compare-next-panel .eyebrow {
  color: #fff;
}

.compare-next-panel h2 {
  border-left-color: var(--accent);
}

.compare-next-panel p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.compare-empty {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 6vw, 58px);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.compare-empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--primary-dark);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 26px;
  font-weight: 900;
}

.compare-empty h2 {
  border: 0;
  padding: 0;
}

.compare-empty p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .compare-hero-heading,
  .compare-next-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .compare-company-strip {
    grid-auto-columns: minmax(0, 1fr);
  }

  .compare-matrix-wrap {
    display: block;
  }

  .compare-mobile-list {
    display: none;
  }
}

@media (max-width: 480px) {
  .has-compare-dock {
    padding-bottom: 132px;
  }

  .compare-dock-chips {
    min-height: 27px;
  }

  .compare-dock-chip {
    max-width: 110px;
  }

  .compare-entry-action .button {
    width: 100%;
  }

  .compare-company-strip {
    /* The audit layout uses a 16px mobile page gutter. Bleed only through that gutter
       so the strip scrolls internally without widening the document. */
    margin-right: -16px;
    padding-right: 16px;
  }
}

/* --- 2026-09 audit remediation: search-first hierarchy and compact evidence UI --- */

/* Keep headings distinct without repeating the former green side rule on every block. */
h2 {
  border-left: 0;
  padding-left: 0;
  letter-spacing: -0.01em;
}

.section-heading {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.section-heading h2 {
  max-width: 24em;
}

.content-section,
.article-section {
  scroll-margin-top: 84px;
}

.button.btn-sm,
.compare-toggle,
.company-source-link,
.company-license-legend a,
.directory-pagination button,
.directory-pagination .button,
.directory-pagination a {
  min-height: 44px;
  font-size: 14px;
}

.company-source-link,
.company-license-legend a {
  display: inline-flex;
  align-items: center;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(217, 142, 27, 0.58);
  outline-offset: 3px;
}

/* The JS also resets menu state; this desktop rule is a resilient CSS fallback. */
@media (min-width: 1080px) {
  .nav-links.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links.is-open a {
    min-height: 0;
    padding: 0;
  }
}

/* Home: introduction, search, then concise proof. The card DOM keeps form before photo. */
.home-search-hero {
  padding: clamp(24px, 5vw, 56px) 0 clamp(28px, 5vw, 52px);
}

.home-search-hero .hero-wrap {
  display: grid;
  gap: 18px;
}

.home-search-hero .hero-content {
  align-self: center;
}

.home-search-hero .hero-content h1 {
  max-width: 16em;
  margin-bottom: 12px;
}

.home-search-hero .hero-lead {
  max-width: 44em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
}

.home-search-hero .hero-card {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  border: 1px solid rgba(31, 122, 77, 0.24);
  border-top: 3px solid var(--primary);
  box-shadow: 0 10px 28px rgba(20, 57, 38, 0.13);
}

.home-search-hero .hero-card-body {
  order: 1;
  gap: 10px;
  padding: 18px;
}

.home-search-hero .hero-card-header {
  order: 2;
  height: clamp(112px, 30vw, 156px);
}

.home-search-hero .hero-card-title {
  font-size: 17px;
}

.home-search-hero .hero-card-note {
  font-size: 14px;
  line-height: 1.55;
}

.home-search-hero .hero-proof {
  display: grid;
  gap: 10px;
  align-self: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.hero-proof .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
}

.hero-proof .hero-stat {
  display: grid;
  gap: 2px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-proof .hero-stat-icon {
  display: none;
}

.hero-proof .hero-stat strong {
  font-size: clamp(16px, 2.2vw, 21px);
}

.hero-proof .hero-stat-text span {
  font-size: 12px;
  line-height: 1.45;
}

.hero-proof .hero-trust-chips {
  gap: 6px;
  margin: 0;
}

.hero-proof .hero-trust-chips li {
  padding: 4px 9px;
  font-size: 12px;
}

.hero-proof a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .home-search-hero .hero-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    grid-template-areas:
      "intro search"
      "proof search";
    align-items: start;
    column-gap: clamp(32px, 5vw, 68px);
    row-gap: 24px;
  }

  .home-search-hero .hero-content {
    grid-area: intro;
  }

  .home-search-hero .hero-card {
    grid-area: search;
  }

  .home-search-hero .hero-proof {
    grid-area: proof;
  }

  .home-search-hero .hero-card-header {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .header-inner,
  .site-footer,
  .article-page {
    width: min(100% - 32px, 1280px);
  }

  .home-search-hero {
    padding-top: 22px;
  }

  .home-search-hero .hero-wrap {
    gap: 14px;
  }

  .home-search-hero .hero-content h1 {
    margin-bottom: 8px;
    font-size: clamp(27px, 8.3vw, 34px);
  }

  .home-search-hero .hero-card-body {
    padding: 15px;
  }

  .home-search-hero .hero-card-header {
    height: 112px;
  }

  .hero-proof .hero-stats {
    align-items: start;
  }

  .hero-proof .hero-stat {
    align-items: start;
  }
}

/* Company detail: actionable overview precedes the longer legal evidence block. */
.company-overview {
  display: grid;
  gap: 18px;
  margin: 20px auto 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
}

.company-overview > :last-child {
  margin-bottom: 0;
}

.company-overview-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-overview-facts > div {
  display: grid;
  grid-template-columns: minmax(6.5em, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.company-overview-facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.company-overview-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.company-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-primary-actions .button,
.company-primary-actions .compare-toggle,
.company-primary-actions form {
  width: 100%;
}

.company-primary-actions .button,
.company-primary-actions .compare-toggle {
  min-height: 48px;
}

.company-evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-evidence-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .company-primary-actions {
    grid-template-columns: 1fr;
  }

  .company-overview-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Directory: results follow filters; help and purpose explanation remain available on demand. */
.directory-results {
  display: grid;
  gap: clamp(26px, 5vw, 44px);
}

.directory-results [data-directory-list] {
  display: grid;
  gap: 14px;
}

.directory-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 18px;
}

.directory-pagination p,
.directory-pagination [role="status"],
.directory-pagination [aria-live] {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.directory-pagination button,
.directory-pagination .button,
.directory-pagination a {
  min-width: min(100%, 176px);
}

.purpose-disclosure,
.directory-help,
.directory-comparison {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  background: transparent;
}

.purpose-disclosure > summary,
.directory-help > summary,
.directory-comparison > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 46px 10px 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.purpose-disclosure > summary::before,
.directory-help > summary::before,
.directory-comparison > summary::before {
  content: "+";
  right: 14px;
  left: auto;
  top: 50%;
  width: 26px;
  height: 26px;
  color: var(--primary-dark);
  background: var(--bg-alt);
  transform: translateY(-50%);
}

.purpose-disclosure[open] > summary::before,
.directory-help[open] > summary::before,
.directory-comparison[open] > summary::before {
  content: "−";
  color: #fff;
  background: var(--primary);
}

.purpose-disclosure > :not(summary),
.directory-help > :not(summary),
.directory-comparison > :not(summary) {
  margin-right: 14px;
  margin-left: 14px;
}

.purpose-disclosure > :last-child,
.directory-help > :last-child,
.directory-comparison > :last-child {
  margin-bottom: 16px;
}

.purpose-disclosure .purpose-grid {
  margin-top: 4px;
}

.purpose-disclosure .purpose-card {
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: none;
}

.directory-comparison .table-wrap {
  margin-top: 6px;
}

/* City/prefecture data remains tabular on desktop and becomes labelled records on small screens. */
.responsive-data-table table,
table.responsive-data-table {
  width: 100%;
}

@media (max-width: 700px) {
  .responsive-data-table.table-wrap,
  .responsive-data-table .table-wrap,
  .responsive-data-table:has(> table) {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  :is(table.responsive-data-table, .responsive-data-table table) {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  :is(table.responsive-data-table, .responsive-data-table table) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  :is(table.responsive-data-table, .responsive-data-table table) tbody {
    display: grid;
    gap: 12px;
  }

  :is(table.responsive-data-table, .responsive-data-table table) tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
  }

  :is(table.responsive-data-table, .responsive-data-table table) td {
    display: grid;
    grid-template-columns: minmax(7em, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    background: #fff;
    font-size: 14px;
  }

  :is(table.responsive-data-table, .responsive-data-table table) td::before {
    content: attr(data-label);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.55;
  }

  /* The label pseudo-element owns column 1; every authored value element stays in column 2.
     Plain text becomes the anonymous first value item, followed by these explicit rows. */
  :is(table.responsive-data-table, .responsive-data-table table) td > * {
    grid-column: 2;
    min-width: 0;
  }

  :is(table.responsive-data-table, .responsive-data-table table) td > :is(.cell-sub, .license-no) {
    margin-top: 0;
  }

  :is(table.responsive-data-table, .responsive-data-table table) td[data-label=""]::before {
    content: none;
  }

  :is(table.responsive-data-table, .responsive-data-table table) td:last-child {
    border-bottom: 0;
  }
}

/* B2B information is retained but visually separated from the consumer decision path. */
#listing.listing-section {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--ink);
  background: var(--bg-alt);
}

#listing .cta-band-inner {
  max-width: 880px;
  text-align: left;
}

#listing .cta-eyebrow {
  color: var(--primary);
}

#listing h2 {
  color: var(--primary-dark);
  font-size: clamp(20px, 3vw, 25px);
}

#listing .cta-lead {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
}

#listing .cta-actions {
  justify-content: flex-start;
  margin-bottom: 8px;
}

#listing .cta-note,
#listing .cta-note a {
  color: var(--muted);
  font-size: 14px;
}

.article-section.listing-section,
.company-page .listing-section {
  gap: 14px;
  margin-top: 22px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0 0;
  background: transparent;
}

/* Footer region links: compact disclosure groups, with every city link kept in the DOM. */
.footer-area-group {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.footer-area-group:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-area-group > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 36px 8px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.footer-area-group > summary::before {
  content: "+";
  right: 0;
  left: auto;
  top: 50%;
  width: 24px;
  height: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

.footer-area-group[open] > summary::before {
  content: "−";
  background: rgba(255, 255, 255, 0.18);
}

.footer-area-group > :not(summary) {
  margin-right: 0;
  margin-left: 0;
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 2px 0 12px;
}

.footer-cities a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-decoration: none;
}

.footer-cities a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-main {
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 26px;
}

/* Editorial discovery and long-form reading. */
.note-topics {
  padding-top: 20px;
}

.note-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.note-topic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fff;
}

.note-topic-card h2,
.note-topic-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.note-topic-card > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.note-topic-links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-topic-links li + li {
  border-top: 1px solid var(--line);
}

.note-topic-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.note-topic-links a::after {
  content: "→";
  margin-left: auto;
  padding-left: 10px;
}

.note-topic-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-summary {
  max-width: 780px;
  margin: 0 0 18px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--primary-dark);
  background: var(--accent-pale);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.article-summary > :last-child {
  margin-bottom: 0;
}

.article-toc {
  max-width: 780px;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.article-toc h2,
.article-toc h3,
.article-toc-title {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 900;
}

.article-toc-list {
  display: grid;
  gap: 0 24px;
  margin: 0;
  padding-left: 1.5em;
}

.article-toc-list li {
  color: var(--primary);
}

.article-toc-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-underline-offset: 3px;
}

.article-featured-image img {
  max-height: 360px;
  aspect-ratio: 12 / 5;
}

.article-related {
  border-top: 1px solid var(--line);
}

.article-related .note-topics {
  padding: 0;
}

.post-content h2[id],
.note-topic-card[id] {
  scroll-margin-top: 84px;
}

@media (min-width: 700px) {
  .note-topic-grid,
  .article-toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .article-featured-image img {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Printed articles keep the editorial argument, tables, citations, and checklists. */
@media print {
  @page {
    margin: 16mm;
  }

  body {
    overflow: visible;
    color: #111;
    background: #fff;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .site-header,
  .site-footer,
  .breadcrumb,
  .compare-dock,
  .listing-section,
  .post-pagination,
  .article-related,
  .button,
  .compare-toggle {
    display: none !important;
  }

  .article-page,
  .post-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .article-hero {
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .article-featured-image,
  .post-figure {
    max-width: 150mm;
    break-inside: avoid;
    box-shadow: none;
  }

  .post-content h2,
  .post-content h3,
  .post-content table,
  .post-content blockquote,
  .quote-checklist label {
    break-inside: avoid;
  }

  .post-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  details > :not(summary) {
    display: block !important;
  }
}
