/*
 * 防犯カメラ導入ナビ — デザインシステム（v5）
 * 白ベース × ティールCTA × ネイビーの信頼感。参考: 「近くの屋根修理Navi」のデザインシステム。
 * モバイルファースト。ブレークポイントは概ね768px / 1080px。
 */

:root {
  /* カラー */
  --primary: #00a29a; /* ティール: CTA・アクセント */
  --primary-dark: #00776f; /* hover */
  --primary-pale: #e9f7f6; /* ティール系の淡い背景（CTA帯・絞り込み帯） */
  --navy: #14315f; /* 見出し・ヘッダー文字・フッター背景 */
  --navy-dark: #0e2347; /* フッター下段 */
  --ink: #2a2a2a; /* 本文 */
  --muted: #6b7280; /* 補足文 */
  --line: #e6e9ee; /* 罫線 */
  --bg: #ffffff; /* 基調は白 */
  --bg-alt: #f6f8fa; /* 交互セクション背景 */
  --shadow: 0 4px 16px rgba(20, 49, 95, 0.08);
  --shadow-strong: 0 12px 32px rgba(20, 49, 95, 0.14);
  --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(--navy);
  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(--navy);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  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(--navy);
  color: var(--navy);
  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(0, 162, 154, 0.28);
  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(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
}

.header-inner {
  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 {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  color: var(--navy);
  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 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) {
  .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;
}

/* --- ヒーロー（v12: 淡ティールのグラデ面＋ドットパターン、右カラムは検索カード） --- */

.hero-section {
  padding: 40px 0 36px;
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 49, 95, 0.07) 1px, transparent 0) 0 0/24px 24px,
    linear-gradient(180deg, #f4fbfa 0%, #ffffff 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-media {
  margin-top: 28px;
}

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

.hero-media-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.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(--navy);
  background: linear-gradient(transparent 55%, rgba(0, 162, 154, 0.18) 55%);
}

/* 見出し内のフレーズが単語の途中で改行されるのを防ぐ（改行位置はブラウザの自動折返しに委ねる） */
.nowrap {
  display: inline-block;
  max-width: 100%;
}

.hero-catch {
  max-width: 720px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--navy);
  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-lead-mobile {
  display: none;
}

/* 統計3つ: 白カードのバッジ化 */
.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, 49, 95, 0.08);
}

.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(--primary-pale);
  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-stat-area-mobile {
  display: none;
}

/* 信頼チップ2つ */
.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(--primary-pale);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

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

/* v8品質改善: 375px前後で3項目が不揃いに折り返すのを解消。1行固定・文字縮小。 */
@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-area-desktop {
    display: none;
  }

  .hero-stat-area-mobile {
    display: block;
  }

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

/* --- ヒーロー右カラム: 検索カード（旧area-select-cta帯を統合） --- */

.hero-card {
  display: grid;
  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: 230px;
  overflow: hidden;
}

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

@media (max-width: 599px) {
  .hero-section {
    padding: 24px 0 28px;
  }

  .hero-eyebrow-row {
    margin-bottom: 10px;
  }

  .hero-section h1 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .hero-catch {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .hero-lead-desktop {
    display: none;
  }

  .hero-lead-mobile {
    display: block;
    font-size: 14px;
  }

  .hero-stats {
    margin-top: 16px;
  }

  .hero-trust-chips {
    margin-top: 10px;
  }

  .hero-card {
    margin-top: 16px;
  }

  .hero-card-body {
    order: 1;
    padding: 16px;
  }

  .hero-card-header {
    order: 2;
    height: 132px;
  }
}

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

.hero-card-title {
  margin: 0;
  color: var(--navy);
  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(--primary-pale);
  padding: 20px 0;
}

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

.filter-bar-label {
  margin: 0;
  color: var(--navy);
  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, 49, 95, 0.15);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--navy);
  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-dark);
}

@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;
  }
}

/* --- 掲載までの流れ（page-advertise.php等の下層ページで使用する共通コンポーネント） --- */

.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(--navy);
  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));
  }
}

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

/* v8品質改善: モバイルから2カラム固定（参考サイトのpurpose-gridと同挙動）。 */
.intent-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.intent-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

/* 上部グラデーションタイル。用途ごとに濃淡を変える（v8品質改善: 90pxに縮小しSP2列でも収まりやすく）。 */
.intent-card-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.intent-card-tile--store {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
}

.intent-card-tile--factory {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
}

.intent-card-tile--mansion {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy-dark) 100%);
}

.intent-card-tile--parking {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary) 100%);
}

.intent-icon {
  color: #fff;
}

/* v10画像強化: グラデタイル→実写タイル。旧グラデ(--store等)は画像読み込み前の
   背景色として残し、写真の上にオーバーレイ・アイコンバッジ・白文字ラベルを重ねる。 */
.intent-card-tile--photo {
  position: relative;
  overflow: hidden;
  height: 132px;
}

.intent-card-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intent-card-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 49, 95, 0.1) 0%, rgba(14, 35, 71, 0.82) 100%);
}

.intent-icon-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

.intent-icon-badge .intent-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
}

.intent-card-tile-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.intent-card-body {
  display: block;
  padding: 20px;
}

.intent-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.45;
}

.intent-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
}

/* --- 編集部ピックアップ（まず確認したい3社） --- */

.pickup-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

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

.pickup-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* サムネイルタイル: グラデ＋カメラのフラットイラスト＋番号サークル（社名イニシャルではない）。 */
.pickup-card-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
}

.pickup-card-thumb--2 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
}

.pickup-card-thumb--3 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy-dark) 100%);
}

.pickup-card-thumb .illustration-camera {
  width: 104px;
  height: 78px;
}

.pickup-card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.pickup-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pickup-card-thumb .pickup-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--navy);
  background: #fff;
}

.pickup-rank {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.pickup-card-top h3 {
  flex: 1 1 100%;
  margin: 4px 0 0;
}

.pickup-card-top .tag-list {
  flex: 1 1 100%;
}

.pickup-card-body {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (min-width: 640px) {
  .pickup-card-body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.pickup-card-main p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pickup-checkpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--primary-dark);
  background: var(--primary-pale);
  font-size: 12px;
  font-weight: 700;
}

.pickup-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 640px) {
  .pickup-card-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 150px;
  }

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

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

.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(--navy);
  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);
  color: var(--primary-dark);
}

/* 都道府県ブロック（関東など地方見出し＋都道府県チップ）。他地域はダミーチップを置かず、この1ブロックのみ表示する。 */
.region-block {
  margin-bottom: 18px;
}

.region-block-title {
  margin: 0 0 12px;
  color: var(--navy);
  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);
}

.area-chip-list-sub {
  gap: 8px;
}

.area-chip-list-sub .area-chip {
  padding: 7px 14px;
  box-shadow: none;
  font-size: 12px;
}

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

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

.result-bar {
  display: grid;
  gap: 2px;
  min-width: 130px;
  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,
.status-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-row {
  margin-bottom: 10px;
}

.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(--navy);
  background: #eaf0f8;
}

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

.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: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.company-source-status {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 162, 154, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--primary-pale);
}

.company-source-status-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-source-status-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.company-source-status-copy strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
}

.company-source-status-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-secondary-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.company-source-link {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

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

.gmaps-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.gmaps-link:hover {
  color: var(--navy);
}

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

.company-name-link:hover {
  color: var(--primary-dark);
  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(--navy);
  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(--navy);
  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(--primary-pale);
}

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

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

.company-pref-tab:focus-visible {
  outline: 3px solid rgba(0, 162, 154, 0.3);
  outline-offset: 2px;
}

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

.company-source-legend {
  display: flex;
  align-items: center;
  gap: 12px 14px;
  margin: 0 0 24px;
  border: 1px solid rgba(0, 162, 154, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

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

.company-source-legend strong {
  color: var(--navy);
  font-size: 13px;
}

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

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

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

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

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

  .company-source-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);
}

/* --- 広告枠（優先掲載枠） --- */
/* #companyGridの外に置く専用セクション。編集面（company-grid本体）とは背景で区切り、
   カードはfeaturedの見た目（ティール枠・強い影）を流用せずネイビー系の枠線に留める。 */

.ad-frame-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 49, 95, 0.03);
}

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

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

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

.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;
}

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(--navy);
  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(--primary-pale);
  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;
}

/* --- 費用確認 --- */

.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-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* v10画像強化: page-companies.phpの費用カードのみ上部に写真ヘッダーを追加
   （cost-gridクラス自体は他ページの費用カード・企業ページの確認ポイントカードでも
   再利用されているため、必ず--photo修飾子つきで上書きし他ページに影響させない）。 */
.cost-grid--photo article {
  overflow: hidden;
  padding: 0;
  border-top: 0;
}

.cost-card-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.cost-grid--photo .cost-card-body {
  padding: 18px 20px 20px;
}

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

/* --- 見積もり前チェックリスト（業者個別ページで使用） --- */

.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(--navy);
  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(--navy);
}

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

/* --- このサイトについて（2カラム・研究ノートの調べ方を統合） --- */

.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);
}

/* v10画像強化: 運営者カードの上に事務所デスク写真を小さく added（about-side） */
.about-side {
  display: grid;
  gap: 14px;
}

.about-side-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.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-editor-avatar {
  flex: 0 0 auto;
}

.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(--navy);
  font-weight: 700;
  text-align: right;
}

/* --- CTA帯（掲載企業の方へ・ネイビーグラデ全幅） --- */

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

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

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

#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;
}

/* v10画像強化: トップページのCTA帯のみ、作業員写真で2カラム化（page-lp.phpのみで
   cta-band-inner--mediaクラスを付与。県ページ等のCTA帯には付与しないため無影響）。 */
.cta-band-media {
  display: none;
}

@media (min-width: 769px) {
  .cta-band-inner--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: center;
    gap: 40px;
    max-width: 1040px;
  }

  .cta-band-media {
    display: block;
  }
}

.cta-band-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

/* --- 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-dark);
  font-size: 12px;
  font-weight: 900;
}

.article-link-grid strong {
  display: block;
  color: var(--navy);
  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-dark);
}

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

.notes-list-item strong {
  display: block;
  color: var(--navy);
  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;
}

/* 下層ページで使う旧来のシンプルなフッター（2部構成のまま、配色のみ新デザインに合わせる） */

.site-footer:not(.site-footer-full) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
}

.site-footer:not(.site-footer-full) strong {
  color: var(--navy);
}

@media (max-width: 767px) {
  .site-footer:not(.site-footer-full) {
    flex-direction: column;
  }
}

/* 新フッター（全ページ共通・sscg_site_footer） */

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

.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 strong {
  display: block;
  margin-bottom: 10px;
  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-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
}

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

.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: var(--navy-dark);
}

.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(--navy);
  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-dark);
}

.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);
}

/* 記事本文の写真。h2直後に等間隔で入れる運用（shared/docs/記事運用ガイド.md「記事の画像」）。
   width/heightを属性で持たせたうえでaspect-ratioを指定し、読み込み前の高さを確保してCLSを防ぐ。 */
.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-dark);
  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);
}

/* --- 業者個別ページ（page-company.php）の細部調整（v7: 参考サイト並みのシンプル構成） --- */

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

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

/* ヒーロー: 白背景・下ボーダーのみ。頭文字タイル＋社名H1＋住所。 */
.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-dark);
}

/* ヒーロー直下の灰色帯: 対応サービスの✓チップを全件並べる。 */
.company-chip-band {
  padding: 20px 0;
}

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}

.tag-check svg {
  flex: 0 0 auto;
  color: var(--primary-dark);
}

/* 会社情報セクション（画像＋アイコン付きテーブルの2カラム） */
.company-info-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .company-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.company-info-media {
  display: grid;
  gap: 8px;
}

.company-info-image {
  display: block;
  width: 100%;
  /* v10画像強化: ストック写真は縦長(camera-close)/横長が混在するため、
     aspect-ratioで表示比率を固定しobject-fit:coverで中央トリミングする。 */
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.image-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.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(--navy);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

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

.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;
  }
}

/* 会社紹介: bg-alt左ボーダー付きボックス */
.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行: 公式サイト・比較への導線を中央寄せで */
.cta-row-section {
  text-align: center;
}

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

/* 対応エリアから探す（テーブル型・全幅bg-altセクション） */
.company-area-table-wrap {
  margin-top: 4px;
}

.company-area-table {
  min-width: 560px;
}

.company-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* 対応領域の確認状況（4項目グリッド） */
.coverage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

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

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

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

.coverage-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.coverage-card h3 {
  margin: 0;
  font-size: 15px;
}

.coverage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 口コミ・評判を確認する（v13 Phase 0: 外部誘導＋読み方ガイド。口コミデータは持たない） */
.review-guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--bg-alt);
}

.review-guide-no-link {
  align-self: stretch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.review-guide-points {
  align-self: stretch;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-guide-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.review-guide-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

/* 問い合わせ前に確認したいこと: 番号付きカード（cost-gridの見た目を流用） */
.checkpoint-grid .checkpoint-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

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

/* --- 業者一覧ページ（page-companies.php）の導入セクション --- */

.companies-intro-section {
  padding-bottom: 8px;
}

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

/* v10画像強化: 業者一覧・県ページの導入部を2カラム化し、右側にカメラ写真を添える
   （companies-intro-sectionはpage-companies.php / page-prefecture.php共用）。 */
.intro-hero-grid {
  display: block;
}

@media (min-width: 900px) {
  .intro-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    align-items: center;
    gap: 40px;
  }
}

.intro-hero-content p {
  max-width: 780px;
}

.intro-hero-media {
  margin-top: 20px;
}

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

.intro-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

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

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

[hidden] {
  display: none !important;
}

/* ロゴ画像（C案: カメラ＋スイープ下線の一体型） */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
.footer-logo {
  display: block;
  height: 38px;
  width: auto;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .brand-logo {
    height: 36px;
  }
}

.review-guide-more {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

/* --- 市の補助制度（v21 / page-city.php の #subsidy） --- */

/* 制度が1件の市は1枚で全幅、2件の市は2列。市によって件数が変わるため、
   固定2列にすると1件の市でデスクトップの右半分が空く。 */
.subsidy-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

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

.subsidy-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.subsidy-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.5;
}

.subsidy-card dl {
  margin: 0;
  font-size: 14px;
}

.subsidy-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.subsidy-card dd {
  margin: 2px 0 12px;
  line-height: 1.7;
}

.subsidy-card dd:last-child {
  margin-bottom: 0;
}

.subsidy-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.subsidy-note + .subsidy-note {
  padding-top: 0;
  border-top: 0;
}

.subsidy-source {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.subsidy-source a {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- 2〜5社の選択比較 --- */

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

.compare-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--navy);
  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(--primary-pale);
}

.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(0, 162, 154, 0.13), transparent 34%),
    #fff;
  box-shadow: var(--shadow);
}

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

.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(--navy);
  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(--navy);
  font-size: 25px;
}

.compare-editorial-note,
.compare-disclosure {
  color: var(--muted);
  font-size: 12px;
}

.compare-editorial-note {
  margin: 18px 0 0;
}

.button.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #e9edf1;
  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, 49, 95, 0.97);
  box-shadow: 0 -12px 30px rgba(20, 49, 95, 0.22);
  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: 11px;
}

.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(0, 162, 154, 0.14), transparent 34%),
    var(--bg);
}

.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(--navy);
  font-size: 13px;
}

.compare-condition-summary span {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--navy);
  background: var(--primary-pale);
  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,
.compare-selection-head > p {
  margin: 0;
}

.compare-selection-head > p {
  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 {
  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: var(--shadow);
  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(--navy);
  background: var(--primary-pale);
  font-size: 23px;
  font-weight: 900;
}

.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(--navy);
  background: var(--primary-pale);
}

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

.compare-matrix-wrap {
  display: none;
  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(--navy);
  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(--navy);
  background: var(--bg-alt);
  box-shadow: 8px 0 12px rgba(20, 49, 95, 0.05);
}

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

.compare-matrix-table tbody tr:nth-child(even) td {
  background: rgba(233, 247, 246, 0.38);
}

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

.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 {
  color: var(--ink);
  font-weight: 800;
}

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

.compare-value.is-unknown {
  color: var(--muted);
}

.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: var(--shadow);
  overflow: hidden;
}

.compare-mobile-group h3 {
  margin: 0;
  padding: 12px 14px;
  color: var(--navy);
  background: var(--primary-pale);
  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(--navy);
  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(--navy);
  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;
}

.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(--navy);
}

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

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

.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(--navy);
  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 {
    margin-right: -24px;
    padding-right: 24px;
  }
}
/* v57: 検索操作と公開情報の比較を中心にした共通レイアウト。 */
body { overflow-x: visible; padding-bottom: var(--compare-dock-height, 0px); }
:root { --primary: #00776f; --primary-dark: #005f59; --primary-pale: #eef8f6; --muted: #566273; --shadow: none; --shadow-strong: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.wrap { max-width: 1160px; }
.content-section { padding-block: 56px; }
.section-heading { margin-bottom: 24px; }
.button, .button.btn-sm, button, select, input[type="search"], .compare-toggle { min-height: 44px; }
.discovery-hero h1 > span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.button { box-shadow: none; }
.discovery-hero { padding: 64px 0 48px; background: var(--primary-pale); border-bottom: 1px solid var(--line); }
.discovery-hero h1 { max-width: 880px; font-size: clamp(29px, 3.8vw, 48px); line-height: 1.5; letter-spacing: -.025em; margin-bottom: 18px; }
.discovery-lead { font-size: 18px; margin-bottom: 12px; }
.discovery-facts { color: var(--navy); font-size: 15px; }
.discovery-facts span { margin-left: 16px; }
.discovery-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; margin-top: 28px; padding: 28px; background: white; border-top: 3px solid var(--primary); }
.discovery-search .field { min-width: 0; }
.discovery-search .field span { font-size: 15px; font-weight: 700; color: var(--navy); }
.discovery-search-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; }
.discovery-step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-left: 24px; margin: 28px 0 0; }
.discovery-step-list li { padding-left: 6px; }
.discovery-step-list li::marker { color: var(--primary); font-weight: 700; }
.discovery-step-list strong { color: var(--navy); font-size: 19px; }
.discovery-step-list p { margin: 8px 0 0; color: var(--muted); }
.discovery-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.discovery-guides article { border-top: 2px solid var(--primary); padding-top: 20px; }
.discovery-guides h3 { font-size: 21px; margin: 0 0 12px; }
.discovery-guides p { color: var(--muted); }
.discovery-guides a { display: block; padding-block: 10px; color: var(--primary); font-weight: 700; }
.discovery-guides .guide-secondary { color: var(--muted); font-size: 14px; font-weight: 400; }
.about-grid { align-items: start; }
.about-operator-card { padding: 24px; border: 0; border-left: 2px solid var(--line); background: transparent; box-shadow: none; }
.about-operator-card h3 { margin-bottom: 12px; }
.cta-band-inner--media { display: block; }
.companies-intro-section { padding: 28px 0 20px; }
.companies-intro-section h1 { font-size: clamp(26px, 3vw, 38px); }
.companies-intro-section p { margin-bottom: 0; }
.filter-bar-section { position: static; padding: 24px 0; background: var(--primary-pale); }
.filter-bar-inner { display: block; }
.filter-bar-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.filter-bar-form .field { min-width: 0; }
.filter-bar-form .field > span { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.filter-bar-form input, .filter-bar-form select { width: 100%; min-width: 0; padding: 10px; font-size: 15px; }
.filter-bar-form .keyword-field { grid-column: span 2; }
.filter-bar-actions { display: flex; flex-direction: row; align-items: end; grid-column: span 2; gap: 12px; }
.filter-scope { margin: 16px 0 4px; font-size: 14px; font-weight: 700; color: var(--navy); }
.filter-note { margin: 0; font-size: 13px; color: var(--muted); }
#companies { padding-block: 28px 44px; background: white; }
#companies .row-heading { margin-bottom: 20px; align-items: center; }
#companies .row-heading h2 { font-size: 24px; margin-bottom: 0; }
.pref-block { padding: 0; border: 0; background: transparent; }
.pref-block-head { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pref-block-head h3 { margin: 0; font-size: 18px; }
.company-grid { gap: 0 28px; }
.company-card { box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 0; }
.company-card:hover { transform: none; box-shadow: none; }
.company-card h3 { font-size: 22px; line-height: 1.55; }
.company-source-status { background: transparent; border: 0; padding: 10px 0; }
.company-source-status-copy strong { font-size: 13px; }
.company-card-label { font-size: 12px; }
.company-use-evidence { font-size: 14px; margin-bottom: 12px; }
.company-use-evidence .company-card-label { display: block; }
.company-card .tag { font-size: 12px; background: var(--bg-alt); }
.company-card .card-feature { font-size: 15px; }
.company-secondary-links a { display: inline-flex; align-items: center; min-height: 44px; }
.company-hero-actions a, .company-info-table .js-tel, .company-info-table .js-outbound, .company-info-table .js-gmaps { display: inline-flex; align-items: center; min-height: 44px; }
.article-page .table-wrap > table:has(th[scope="row"]):not(:has(thead)) { min-width: 0; width: 100%; table-layout: fixed; }
.article-page .table-wrap > table:has(th[scope="row"]):not(:has(thead)) th { width: 30%; }
.article-page .table-wrap > table:has(th[scope="row"]):not(:has(thead)) th, .article-page .table-wrap > table:has(th[scope="row"]):not(:has(thead)) td { overflow-wrap: anywhere; }
.company-hero-row { display: block; }
.company-hero-section { padding: 24px 0 28px; }
.company-hero-content { width: 100%; }
.company-hero-content h1 { font-size: clamp(28px, 3vw, 40px); }
.company-hero-address { display: block; }
.company-purpose-summary { margin-bottom: 16px; }
.company-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.company-hero-actions .company-card-compare { margin: 0; }
.company-hero-actions .compare-toggle { padding: 10px 16px; border: 1px solid var(--line); }
.company-evidence-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; margin-bottom: 0; }
.company-evidence-summary div { border-top: 1px solid var(--line); padding-top: 16px; }
.company-evidence-summary dt { font-weight: 700; color: var(--navy); }
.company-evidence-summary dd { margin: 8px 0 0; font-size: 15px; }
.company-info-grid { grid-template-columns: 1fr; }
.company-info-table { table-layout: fixed; width: 100%; }
.company-info-table td { overflow-wrap: anywhere; }
.compare-company-mini { box-shadow: none; grid-template-columns: 1fr auto; border-radius: 0; }
.compare-company-strip { margin-right: 0; padding-right: 0; }
.compare-common { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-common summary { padding: 18px 4px; cursor: pointer; font-weight: 700; color: var(--navy); }
.compare-common summary::before { content: none; }
.compare-common dl { margin: 0; }
.compare-common dl div { padding: 16px 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(110px, 1fr) 3fr; gap: 16px; }
.compare-common dt { font-weight: 700; }
.compare-common dd { margin: 0; }
.compare-next-panel, .compare-entry-panel, .compare-mobile-group { box-shadow: none; border-radius: 0; }
.compare-dock { padding: 8px 16px; border-top: 1px solid var(--line); background: #fff; color: var(--navy); }
.has-compare-dock { padding-bottom: var(--compare-dock-height, 0px); }
.compare-dock-inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.compare-dock-count { flex-shrink: 0; font-size: 12px; gap: 0; }
.compare-dock-count strong { font-size: 16px; white-space: nowrap; }
.compare-dock-chips { flex: 1; min-width: 0; }
.compare-dock .button, .compare-dock-clear { min-height: 44px; white-space: nowrap; margin: 0; padding: 10px 14px; }
.compare-dock .button { order: 2; }
.compare-dock-clear { display: block; order: 3; text-decoration: underline; color: var(--navy); }
.footer-pref-heading { min-height: 44px; padding-block: 10px; cursor: pointer; }
.site-footer details.footer-pref-group { background: transparent; color: #fff; border: 0; border-bottom: 1px solid #53637a; border-radius: 0; padding: 0; box-shadow: none; margin: 0; }
.site-footer .footer-pref-heading { color: #fff; font-size: 15px; }
.site-footer .footer-pref-heading::before { content: none; }
.pref-chip { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--navy); padding: 12px 4px; }
.pref-chip:hover { color: var(--primary); background: var(--primary-pale); }
.pref-chip-list { gap: 6px 24px; }
.footer-pref-group > a { display: block; padding: 8px 0; min-height: 44px; }
.footer-link-list a { display: inline-block; padding: 8px 0; min-height: 44px; }
.nav-toggle { display: none; }
@media (max-width: 1079px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .brand { min-width: 0; }
  .brand-logo { width: 210px; }
  .site-header .header-cta { display: none; }
  .nav-toggle:not([hidden]) { display: block; padding: 8px 12px; background: white; border: 1px solid var(--line); color: var(--navy); border-radius: 4px; font-weight: 700; }
  .site-header .nav-links { display: flex; width: 100%; flex-wrap: wrap; gap: 0; order: 3; }
  .has-nav-js .site-header .nav-links { display: none; }
  .has-nav-js .site-header .nav-links.is-open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; }
  .discovery-guides { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .content-section { padding-block: 36px; }
  .discovery-hero { padding: 32px 0; }
  .discovery-hero h1 { font-size: 29px; line-height: 1.5; }
  .discovery-lead { font-size: 16px; }
  .discovery-facts { font-size: 13px; }
  .discovery-facts span { margin-left: 8px; }
  .discovery-search { grid-template-columns: 1fr; padding: 20px; gap: 14px; margin-top: 22px; }
  .discovery-step-list { grid-template-columns: 1fr; gap: 22px; }
  .discovery-guides { gap: 24px 20px; }
  .discovery-guides h3 { font-size: 19px; }
  .discovery-guides p, .discovery-guides a { font-size: 14px; }
  .about-operator-card { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .companies-intro-section { padding: 18px 0; }
  .companies-intro-section h1 { font-size: 25px; line-height: 1.5; margin-bottom: 8px; }
  .companies-intro-section p { font-size: 14px; }
  .companies-intro-section .breadcrumb { margin-bottom: 12px; font-size: 12px; }
  .filter-bar-section { padding: 20px 0; }
  .filter-bar-label { font-size: 15px; margin-bottom: 12px; }
  .filter-bar-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-bar-form .field > span { font-size: 12px; }
  .filter-bar-form input, .filter-bar-form select { font-size: 14px; }
  .filter-bar-actions { align-items: center; }
  .filter-bar-actions .button { flex: 1; font-size: 14px; padding-inline: 8px; }
  .filter-note { font-size: 12px; line-height: 1.65; }
  .filter-scope { font-size: 12px; }
  #companies .row-heading { display: flex; flex-direction: row; gap: 10px; margin-bottom: 18px; }
  #companies .row-heading h2 { font-size: 19px; border: 0; padding: 0; }
  #companies .result-bar { font-size: 11px; gap: 4px; }
  #resultCount { font-size: 22px; }
  .pref-block-head { align-items: center; gap: 8px; }
  .pref-block-head h3 { font-size: 16px; }
  .pref-block-head a { font-size: 12px; }
  .company-grid { grid-template-columns: 1fr; }
  .company-card { padding: 22px 0; }
  .company-hero-actions .button { flex: 1; font-size: 14px; padding-inline: 10px; }
  .company-hero-actions .company-card-compare { flex-basis: 100%; }
  .company-hero-actions .compare-toggle { width: 100%; justify-content: center; }
  .company-evidence-summary { grid-template-columns: 1fr; gap: 16px; }
  .company-hero-address { font-size: 14px; overflow-wrap: anywhere; }
  .company-info-table th { width: 32%; padding: 12px 8px; font-size: 13px; }
  .company-info-table td { padding: 12px 8px; font-size: 14px; }
  .compare-dock { padding: 8px 12px; }
  .compare-dock-inner { gap: 8px; flex-wrap: wrap; }
  .compare-dock-chips { display: none; }
  .compare-dock-count { margin-right: auto; }
  .compare-dock .button, .compare-dock-clear { font-size: 14px; padding: 10px 12px; width: auto; }
  .compare-dock-count > span { display: none; }
  .compare-company-strip { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .compare-mobile-group article { padding: 14px 0; border-radius: 0; box-shadow: none; }
}

/* v57: published article reading and notes navigation. */
.note-article { width: min(820px, calc(100% - 40px)); padding-top: 20px; }
.note-article .article-hero, .notes-index .article-hero { border: 0; border-radius: 0; padding: 16px 0 24px; box-shadow: none; margin-bottom: 0; }
.note-article h1 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.55; overflow-wrap: anywhere; text-wrap: balance; }
.note-article h1 > span { display: block; }
html:not(.has-nav-js) .note-single .site-header { position: static; }
.note-article .post-meta { font-size: 13px; font-weight: 400; margin-bottom: 0; }
.note-article .breadcrumb { flex-wrap: nowrap; align-items: center; margin: 0 0 4px; }
.note-article .breadcrumb > a, .note-article .breadcrumb > [aria-hidden] { flex-shrink: 0; }
.note-article .breadcrumb-current { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note-article .post-content { max-width: none; padding-top: 8px; }
.note-article .post-content h2 { margin-top: 44px; line-height: 1.55; }
.note-article .post-content h2[id], .note-article [data-article-request] { scroll-margin-top: 110px; }
.note-article .article-featured-image { box-shadow: none; border-radius: 4px; margin-top: 28px; }
.note-article .article-featured-image img { aspect-ratio: 40 / 21; }
.note-article .post-content p, .note-article .post-content li { font-size: 17px; line-height: 1.95; }
.article-summary { padding: 20px; background: var(--primary-pale); border-left: 3px solid var(--primary); margin: 0 0 24px; }
.article-summary-title { color: var(--navy); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.article-summary ul { padding-left: 20px; margin: 0 0 10px; }
.article-summary li { margin-block: 4px; font-size: 15px; }
.article-request-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--primary-dark); font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.article-toc { margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-toc details { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.article-toc summary { min-height: 44px; padding: 14px 0; color: var(--navy); font-size: 16px; font-weight: 700; cursor: pointer; }
.article-toc summary::before, .article-toc details[open] summary::before { content: none; }
.article-toc summary::after { content: "+"; float: right; color: var(--primary); font-size: 20px; line-height: 1.3; }
.article-toc details[open] summary::after { content: "−"; }
.article-toc ol { padding: 0 0 16px 24px; margin: 0; }
.article-toc li { padding-left: 2px; font-size: 14px; line-height: 1.65; }
.article-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--primary-dark); text-underline-offset: 3px; }
.article-request-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 10px; }
.article-request-tools .button { min-height: 44px; margin: 0; padding: 10px 16px; }
.article-request-tools [hidden] { display: none; }
.article-request-tools [data-article-copy-status] { flex-basis: 100%; font-size: 14px; line-height: 1.7; margin: 0; }
.note-article [data-article-request] { padding: 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.8; white-space: pre-wrap !important; overflow-wrap: anywhere; }
.note-article [data-article-request]:focus { outline: 3px solid var(--primary); outline-offset: 3px; }
.notes-index { width: min(1040px, calc(100% - 40px)); }
.notes-index .article-hero h1 { font-size: clamp(28px, 3vw, 38px); }
.notes-purposes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.notes-purposes a { display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 8px; border: 1px solid var(--primary); color: var(--primary-dark); font-size: 15px; font-weight: 700; text-decoration: none; }
.notes-purposes a:hover { background: var(--primary-pale); }
.notes-index .post-list { max-width: none; gap: 0; }
.notes-index .post-list-item a { padding: 26px 0; gap: 28px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; flex-direction: row; align-items: flex-start; }
.notes-index .post-list-item strong { font-size: 22px; line-height: 1.6; margin-top: 5px; }
.notes-index .post-list-item p { line-height: 1.85; font-size: 15px; }
.post-list-item-image { display: block; flex: 0 0 210px; padding-top: 5px; }
.post-list-item-image img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 4px; }
.notes-index .post-pagination .page-numbers { min-width: 44px; min-height: 44px; text-align: center; }
@media (max-width: 767px) {
  .note-article, .notes-index { padding-top: 16px; }
  .note-article .article-hero { padding-top: 12px; }
  .note-article h1 { font-size: 27px; text-wrap: wrap; }
  .note-article h1 > span { display: inline; }
  .note-article .post-content p, .note-article .post-content li { font-size: 16px; }
  .article-summary { padding: 16px; }
  .notes-purposes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .notes-purposes a { font-size: 14px; }
  .notes-index .post-list-item a { gap: 16px; padding-block: 22px; }
  .post-list-item-image { flex-basis: 100px; }
  .notes-index .post-list-item strong { font-size: 17px; line-height: 1.65; }
  .notes-index .post-list-item p { font-size: 14px; }
}
@media print {
  body.note-single { padding: 0 !important; color: #000; background: #fff; }
  .note-single .site-header, .note-single .site-footer, .note-single .compare-dock,
  .note-article .breadcrumb, .note-article .article-toc, .note-article .article-featured-image,
  .note-article .article-request-tools, .note-article .article-next-links { display: none !important; }
  .note-article { width: 100%; max-width: none; padding: 0; margin: 0; }
  .note-article h1 { font-size: 22pt; }
  .note-article .post-content h2 { break-after: avoid; }
  .note-article .post-content p, .note-article .post-content li { font-size: 11pt; }
  .note-article .table-wrap { overflow: visible; max-height: none; }
  .note-article .post-content table { min-width: 0 !important; width: 100%; table-layout: fixed; }
  .note-article .post-content th, .note-article .post-content td { white-space: normal; overflow-wrap: anywhere; padding: 6px; font-size: 9pt; }
  .note-article [data-article-request] { white-space: pre-wrap !important; overflow: visible !important; overflow-wrap: anywhere; font-size: 10pt; }
  .note-article .post-figure { break-inside: avoid; }
}

/* Prefecture comparisons: keep long company names readable on narrow screens. */
.prefecture-comparison table { min-width: 1120px; }
.prefecture-comparison th:first-child,
.prefecture-comparison td:first-child { min-width: 190px; }
.prefecture-comparison th:nth-child(2),
.prefecture-comparison td:nth-child(2) { min-width: 100px; }
.prefecture-comparison th:last-child,
.prefecture-comparison td:last-child { min-width: 220px; }
.prefecture-comparison:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
/* Region directory: keep prefectures and their cities together, without changing other area chips. */
.area-directory { background: #fff; scroll-margin-top: 90px; }
.area-directory .section-heading { margin-bottom: 28px; }
.area-directory .section-heading h2 { border: 0; padding: 0; font-size: clamp(24px, 2.6vw, 32px); }
.area-directory .section-heading p:not(.eyebrow) { font-size: 16px; }
.area-directory-region + .area-directory-region { margin-top: 32px; }
.area-directory-region-label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; color: var(--navy); font-size: 18px; font-weight: 700; }
.area-directory-region-label span { color: var(--muted); font-size: 14px; font-weight: 400; }
.area-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area-directory-card { min-width: 0; border: 1px solid #cfdedc; border-radius: 12px; background: #fff; }
.area-directory-pref { display: block; padding: 20px 22px 16px; border-radius: 11px 11px 0 0; border-bottom: 1px solid #dbe7e4; background: #eef6f3; color: var(--navy); font-size: 16px; text-decoration: none; }
.area-directory-pref-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.area-directory-pref h3 { margin: 0; padding: 0; border: 0; font-size: 24px; line-height: 1.5; }
.area-directory-count { white-space: nowrap; color: #435955; font-size: 13px; }
.area-directory-count strong { color: var(--navy); font-size: 20px; }
.area-directory-pref-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--primary); font-size: 15px; font-weight: 700; }
.area-directory-pref:hover { background: #e0efe9; }
.area-directory-cities { padding: 14px 22px 16px; }
.area-directory-cities-label { margin: 0 0 5px; color: #526363; font-size: 13px; }
.area-directory-cities ul { list-style: none; padding: 0; margin: 0; }
.area-directory-cities li + li { border-top: 1px solid #edf1f0; }
.area-directory-cities li a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 0; color: var(--navy); font-size: 16px; text-decoration: none; border-radius: 3px; }
.area-directory-city-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; }
.area-directory-city-count { color: #526363; font-size: 14px; white-space: nowrap; }
.area-directory-city-arrow { color: var(--primary); }
.area-directory-cities li a:hover { color: var(--primary); background: #f2f7f5; }
.area-directory-cities li a:hover .area-directory-city-name { text-decoration: underline; text-underline-offset: 4px; }
.area-directory a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.area-directory-empty { margin: 8px 0; color: #526363; font-size: 14px; line-height: 1.9; }
.area-directory-note { margin: 20px 0 0; color: #526363; font-size: 14px; line-height: 1.8; }
@media (max-width: 1079px) {
  .area-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 639px) {
  .area-directory { padding-block: 36px; }
  .area-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .area-directory .section-heading { margin-bottom: 22px; }
  .area-directory-pref { padding: 16px 18px 14px; }
  .area-directory-cities { padding: 12px 18px; }
}
/* v58: installation scenes first; local design revision, not a company endorsement. */
.visual-hero { background: #f4f7f4; padding: 46px 0; }
.visual-hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: 46px; }
.visual-hero-copy { padding-block: 12px; }
.visual-hero h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.45; margin-bottom: 22px; letter-spacing: -.035em; }
.visual-hero h1 > span { display: block; }
.visual-hero .eyebrow { letter-spacing: .07em; font-size: 13px; margin-bottom: 18px; }
.visual-hero .discovery-lead { font-size: 17px; line-height: 1.85; margin-bottom: 24px; }
.visual-hero-cta { min-width: 236px; min-height: 54px; justify-content: space-between; border-radius: 8px; }
.visual-hero .discovery-facts { margin: 16px 0 0; font-size: 13px; }
.visual-hero-photo { margin: 0; min-width: 0; }
.visual-hero-photo img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: 65% center; border-radius: 18px; }
.visual-hero-photo figcaption { font-size: 11px; color: #55636a; margin-top: 8px; text-align: right; }
.visual-search-section { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.visual-search-heading { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.visual-search-heading h2 { font-size: 22px; border: 0; padding: 0; margin: 0; }
.visual-search-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.visual-search-section .discovery-search { margin-top: 18px; padding: 0; border: 0; gap: 14px 20px; }
.visual-search-section .discovery-search .field span { display: block; margin-bottom: 6px; font-size: 13px; }
.visual-search-section .discovery-search select { width: 100%; min-width: 0; font-size: 16px; padding: 12px; background: #f8faf9; }
.visual-search-section .button { min-height: 49px; border-radius: 7px; }
.visual-search-section .discovery-search-note { font-size: 12px; }
.visual-intent-section { padding-block: 54px; background: #fff; }
.visual-intent-section .section-heading { margin-bottom: 26px; }
.visual-intent-section .section-heading h2, .visual-steps .section-heading h2 { border: 0; padding: 0; }
.visual-purpose-grid { gap: 24px; }
.visual-purpose-grid .visual-purpose-card { border: 1px solid var(--line); padding: 0; border-radius: 12px; overflow: hidden; background: #fff; }
.visual-purpose-grid a.visual-purpose-link { padding: 0; color: var(--navy); text-decoration: none; height: auto; }
.visual-purpose-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.visual-purpose-text { padding: 18px 18px 14px; }
.visual-purpose-grid h3 { font-size: 20px; margin-bottom: 6px; }
.visual-purpose-grid .visual-purpose-text p { font-size: 13px; font-weight: 400; margin-bottom: 14px; line-height: 1.65; }
.visual-purpose-action { display: flex; justify-content: space-between; gap: 8px; color: var(--primary); font-size: 14px; }
.visual-purpose-grid a.guide-secondary { padding: 12px 18px; margin: 0; border-top: 1px solid var(--line); font-size: 12px; text-underline-offset: 3px; }
.visual-purpose-link:hover { background: #eef7f5; }
.visual-purpose-link:hover h3 { color: var(--primary); }
.visual-purpose-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -4px; }
.visual-image-note { margin: 14px 0 0; font-size: 11px; color: #55636a; }
.visual-steps { background: #f4f7f4; }
.visual-steps .discovery-step-list { list-style: none; padding: 0; counter-reset: steps; margin-top: 26px; gap: 32px; }
.visual-steps .discovery-step-list li { position: relative; padding-left: 48px; counter-increment: steps; }
.visual-steps .discovery-step-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 0; left: 0; color: var(--primary); font-size: 23px; font-weight: 700; line-height: 1.5; }
.visual-steps .discovery-step-list p { font-size: 14px; }
.visual-template-link { display: inline-flex; gap: 24px; align-items: center; padding: 12px 0; margin-top: 22px; color: var(--primary); font-weight: 700; text-underline-offset: 5px; }
.filter-bar-main { display: block; }
.filter-bar-label { max-width: none; margin: 0 0 12px; }
.filter-bar-form .filter-details { grid-column: 1 / -1; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.filter-details > summary { min-height: 44px; padding: 9px 0; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; display: list-item; }
.filter-details > summary::before { content: none; }
.filter-details > summary::after { content: '+'; float: right; color: var(--primary); font-size: 18px; line-height: 1.4; }
.filter-details[open] > summary::after { content: '−'; }
.filter-detail-hint { font-size: 12px; font-weight: 400; margin-left: 8px; }
[data-filter-extra-count]:not([hidden]) { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 3px; background: var(--primary); color: white; font-size: 12px; }
.filter-details-fields { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; padding: 8px 0 14px; }
.filter-details-fields .keyword-field { grid-column: auto; }
.filter-bar-form .filter-bar-actions { grid-column: 1 / -1; }
.filter-bar-form .filter-bar-actions .button { min-height: 44px; }
@media (min-width: 1080px) {
  .filter-bar-form { grid-template-columns: 1fr 1fr auto; }
  .filter-bar-form > .filter-bar-actions { grid-column: 3; grid-row: 1; }
  .filter-bar-form > .filter-details { grid-column: 1 / -1; }
}
@media (max-width: 1079px) {
  .visual-hero-grid { gap: 26px; }
  .visual-hero-photo img { height: 355px; }
  .visual-purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .visual-hero { padding: 22px 0 24px; }
  .visual-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .visual-hero-copy { padding: 0; }
  .visual-hero .eyebrow { font-size: 11px; margin-bottom: 10px; }
  .visual-hero h1 { font-size: 31px; line-height: 1.4; margin-bottom: 12px; }
  .visual-hero .discovery-lead { font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
  .visual-hero-cta { width: 100%; min-height: 48px; }
  .visual-hero .discovery-facts { margin-top: 12px; font-size: 12px; }
  .visual-hero-photo img { height: auto; aspect-ratio: 16 / 9; object-position: center 28%; border-radius: 10px; }
  .visual-hero-photo figcaption { font-size: 10px; text-align: left; }
  .visual-search-section { padding-block: 24px; }
  .visual-search-heading { gap: 6px; }
  .visual-search-heading h2 { font-size: 20px; }
  .visual-search-heading p { font-size: 12px; }
  .visual-search-section .discovery-search { grid-template-columns: 1fr 1fr; gap: 12px; }
  .visual-search-section .button, .visual-search-section .discovery-search-note { grid-column: 1 / -1; }
  .visual-search-section .discovery-search .field span { font-size: 12px; }
  .visual-search-section .discovery-search select { padding: 10px 6px; font-size: 16px; }
  .visual-purpose-grid { gap: 14px; }
  .visual-purpose-text { padding: 12px 10px; }
  .visual-purpose-grid h3 { font-size: 17px; line-height: 1.5; }
  .visual-purpose-grid .visual-purpose-text p { font-size: 12px; margin-bottom: 10px; min-height: 3.3em; }
  .visual-purpose-action { font-size: 12px; }
  .visual-purpose-grid a.guide-secondary { padding: 11px 10px; font-size: 13px; min-height: 44px; }
  .visual-image-note { font-size: 10px; }
  .visual-steps .discovery-step-list { gap: 22px; }
  .filter-details-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-details-fields .keyword-field { grid-column: 1 / -1; }
  .filter-bar-form input, .filter-bar-form select { font-size: 16px; }
  .filter-bar-form { gap: 8px 12px; }
  .filter-note { font-size: 11px; }
  #companies .pref-block-head { flex-direction: row; justify-content: space-between; text-align: left; }
  #companies .result-bar { border: 0; padding: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
