/*
 * 家づくりの解体新書 用CSS（kaitai.css）
 *
 * 対象ページ:
 *   - report/kaitaishinsho/index.html  入り口ページ（.kaitai-entry-page）
 *   - report/kaitaishinsho/search.html 絞り込みページ（.kaitai-search-page）
 *   - jneoma/index.html         住宅トップの解体新書セクション（.kt-top）
 *
 * 既存CSS（common.css / style.css）の後に読み込みます。jneoma では Swiper CSS も先に読み込まれています。
 * クラスはすべて kt- で始めます。Figma: 家づくりの解体新書(kaitai-shinsho) 58:235
 * PC基準幅 1440px / コンテンツ幅 1208px。レスポンシブは各部品の直後にまとめています。
 */

:root {
  --kt-red: #d22615;
  --kt-text: #222222;
  --kt-gray-bg: #f8f8f8;
  --kt-panel-bg: rgba(245, 245, 245, 0.7);
  --kt-content-w: 1208px;
}

/* ===== 共通部品 ===== */
.kaitai-entry-page .sub,
.kaitai-search-page .sub,
.kt-top .sub {
  font-size: 75%;
  line-height: 0;
  vertical-align: sub;
}

.kaitai-entry-page,
.kaitai-search-page,
.kt-form-page {
  font-feature-settings: "palt";
}

.kt-wrap {
  width: min(var(--kt-content-w), calc(100% - 48px));
  margin-inline: auto;
}

/* 見出し（32px / 160% / 字間0.1em）。下の赤い帯は1行目の下に敷く */
.kt-h2 {
  position: relative;
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--kt-text);
  margin: 0;
}
.kt-h2--center {
  text-align: center;
}
.kt-h2 .kt-h2-mark {
  position: relative;
  display: inline-block;
}
.kt-h2 .kt-h2-mark::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 22px;
  background: rgba(210, 38, 21, 0.15);
  z-index: -1;
}

/* 赤い大ボタン（レポートを読む）872x112 r10 */
.kt-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(872px, 100%);
  min-height: 112px;
  margin: 0 auto; /* 中央。Figma 58:1028 は x252（中央より32px左）だが作図ズレと判断して中央寄せ（2026-10-05 ろく指摘） */
  padding: 0 60px;
  background: var(--kt-red);
  border-radius: 10px;
  color: #fff;
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.kt-cta:hover,
.kt-cta:focus-visible {
  color: #fff;
}
.kt-cta .kt-cta-arrow {
  position: absolute;
  right: 48px; /* Figma 58:1032/383:723: 円の右端はボタン右端から48px */
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: #fbfbfb;
}
/* 三角は Figma と同じ 9.33x14.67 を円の幾何中心に置く（SVG背景で小数位置ズレを避ける） */
.kt-cta .kt-cta-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Figma 383:722 を4倍書き出しして実測: 三角の見た目は 6.5x11.75、円の中心より 1px 右（光学中心） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'%3E%3Cpath d='M0 0l9 7-9 7z' fill='%23d22615'/%3E%3C/svg%3E") no-repeat calc(50% + 1px) 50% / 6.5px 11.75px;
}
@media (max-width: 767.98px) {
  .kt-cta {
    min-height: 72px;
    font-size: 20px;
    padding: 0 48px 0 24px;
  }
}

/* 「詳しく見る」テキストリンク（カード右下） */
.kt-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--kt-text);
}
.kt-more::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--kt-red);
}

/* ===== 入り口ページ: パンくず ===== */
.kaitai-entry-page .kt-breadcrumb {
  padding: 0;
  margin-bottom: 94px; /* Figma 58:235: パンくず文字下端(174) → FV(265) 91。文字箱の差3pxを含めて94 */
}

/* ===== 入り口ページ: FV（赤グラデーション 1440x690） ===== */
.kt-fv {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 160px 120px 160px 112px;
  background: #fff;
}
/* 書き出し済みの背景画像（赤い色味を含む） */
.kt-fv-deco {
  position: absolute;
  inset: 0;
  background: #d22615 url('../images/kaitai/bg-pc.png') no-repeat center top / cover;
  z-index: 0;
  pointer-events: none;
}
.kt-fv-inner {
  position: relative;
  z-index: 2;
  max-width: 1208px;
  margin-inline: auto;
}
.kt-fv h1 {
  font-size: 48px;
  line-height: 2; /* 2026-10-05 仁科修正: 行間200%（77→96） */
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 24px;
}
.kt-fv p {
  max-width: 648px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0;
}
@media (max-width: 991.98px) {
  .kt-fv {
    padding: 80px 24px;
  }
  .kt-fv h1 {
    font-size: 28px;
  }
  .kt-fv p {
    font-size: 14px;
  }
}

/* ===== 入り口ページ: 5つのテーマ ===== */
.kt-themes {
  padding: 120px 0 0;
}
.kt-themes .kt-h2 {
  margin-bottom: 33px;
}
/* 円 264px x5 を 236px 間隔で並べる（Figma通り端が28px重なる） */
.kt-theme-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 80px;
}
/* 画面幅が 1152+48px より狭いときは、5つの円の列を丸ごと比例縮小する（折り返さない）。
 * --kt-circle = 円の直径。264px を上限に、(画面幅 - 48px) の 264/1152 倍。重なり・文字・余白も同じ比率 */
.kt-themes {
  container-type: inline-size; /* 円の直径をセクション幅(cqw)から計算する */
}
.kt-theme-list {
  --kt-circle: min(264px, calc((100vw - 48px) * 0.21854)); /* 264/1208（列全体 = 円5つ − 重なり4つ）。cqw 非対応ブラウザ用 */
  --kt-circle: min(264px, calc(100cqw * 0.21854));
}
.kt-theme-list > li {
  flex: 0 0 auto;
  width: var(--kt-circle);
  height: var(--kt-circle);
  margin-left: calc(var(--kt-circle) * -0.10606); /* -28/264 */
}
.kt-theme-list > li:first-child {
  margin-left: 0;
}
.kt-theme {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: calc(var(--kt-circle) * 0.17803); /* 47/264 */
  border: 1px solid var(--kt-red);
  border-radius: 50%;
  color: var(--kt-red);
  text-decoration: none;
  cursor: default; /* リンクではない（2026-10-05） */
  background: transparent; /* Figma: 円の中は透明（重なった隣の円の線が見える） */
  transition: background-color 0.2s, color 0.2s;
}
/* ホバーで赤く反転する仕様は無し（2026-10-05 ろく指示。円はリンクでも無い） */
.kt-theme .kt-theme-no {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: calc(var(--kt-circle) * 0.06061); /* 16/264 */
  line-height: 1;
  margin-bottom: calc(var(--kt-circle) * 0.26515); /* 70/264 */
}
.kt-theme .kt-theme-label {
  font-size: calc(var(--kt-circle) * 0.09091); /* 24/264 */
  line-height: 1;
}
/* --- 表示アニメーション（参考: wandy.co.jp/about の c-culture__value）
 * 円: scale(.8)・透明 → 画面に入ったら中心から広がって scale(1)（1秒）。data-d で 0.1秒ずつ遅らせる。
 * 文字: 文字形に切り抜いたグラデーションの位置をずらして、ふわっと浮かび上がらせる（3.6秒）。
 * トリガーは .kt-iv に data-shown="1"（kaitai-entry.js の IntersectionObserver）。 --- */
.kt-iv .kt-theme {
  opacity: 0;
  transform: scale(0.8);
  transition: transform 1s cubic-bezier(0.355, 0.395, 0.185, 1), opacity 0.2s cubic-bezier(0.355, 0.395, 0.185, 1), background-color 0.2s;
  will-change: transform, opacity;
}
.kt-iv[data-shown='1'] .kt-theme {
  opacity: 1;
  transform: scale(1);
}
.kt-iv .kt-i-text {
  background-image: radial-gradient(120vw 100vw at 0% 0%, var(--kt-red) 50%, rgba(210, 38, 21, 0.45) 75%, rgba(210, 38, 21, 0) 100%);
  background-size: 240vw 100vh;
  background-repeat: repeat-x;
  background-position: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kt-red);
  transition: background-position 3.6s cubic-bezier(0, 0.33, 0.11, 1);
}
.kt-iv[data-shown='1'] .kt-i-text {
  background-position: 0 0;
}
.kt-iv [data-d='1'] .kt-theme,
.kt-iv [data-d='1'] .kt-i-text { transition-delay: 0.1s; }
.kt-iv [data-d='2'] .kt-theme,
.kt-iv [data-d='2'] .kt-i-text { transition-delay: 0.2s; }
.kt-iv [data-d='3'] .kt-theme,
.kt-iv [data-d='3'] .kt-i-text { transition-delay: 0.3s; }
.kt-iv [data-d='4'] .kt-theme,
.kt-iv [data-d='4'] .kt-i-text { transition-delay: 0.4s; }
/* 出現アニメが終わったら(.is-revealed)切り抜きをやめて通常の文字に戻す */
.kt-iv.is-revealed .kt-i-text {
  background-image: none;
  -webkit-text-fill-color: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  .kt-iv .kt-theme { opacity: 1; transform: none; transition: none; }
  .kt-iv .kt-i-text { background-image: none; -webkit-text-fill-color: currentColor; transition: none; }
}

/* ===== 入り口ページ: 掲載工務店一覧（#f8f8f8）
 * Figma 58:804: 上下160px。見出しは赤丸12px + 24/38 字間0.3em（x62）。
 * カードは 430x375 白 r8 余白16、横に32間隔で並び画面右へはみ出す（横スクロール） ===== */
.kt-builders {
  background: var(--kt-gray-bg);
  padding: 160px 0;
  margin: 120px 0 18px; /* 下: Figmaはセクション下端→フッターロゴ138px。実フッターの内側120pxを引いて18px */
}
.kt-builders .kt-wrap {
  width: auto;
  margin: 0;
}
.kt-builders .kt-h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 62px;
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.3em;
  margin-bottom: 40px;
}
.kt-builders .kt-h2::before {
  content: '';
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--kt-red);
}
/* 横スクロールの列。スクロールバーは隠す（タッチ/ホイールで横に動く） */
.kt-builder-grid {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0 62px;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.kt-builder-grid::-webkit-scrollbar {
  display: none;
}
.kt-builder-grid > li {
  flex: 0 0 430px;
  width: 430px;
  scroll-snap-align: start;
}
/* Swiper 有効時は横スクロールの設定を外す（Swiper が translate で動かす） */
.kt-builder-swiper.is-swiper .kt-builder-grid {
  padding: 0;
  gap: 0; /* 間隔は Swiper の spaceBetween に任せる（CSS gap と二重にしない） */
  overflow: visible;
  scroll-snap-type: none;
}
.kt-builder-swiper.is-swiper {
  overflow: hidden;
}
.kt-builder-card {
  display: block;
  box-sizing: border-box;
  height: 375px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  color: var(--kt-text);
  text-decoration: none;
}
.kt-builder-card .kt-builder-img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.kt-builder-card .kt-builder-catch {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.kt-builder-card .kt-builder-name {
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.kt-builder-card .kt-more {
  display: block;
  text-align: right;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.1em;
}
/* 赤丸は文字のベースライン基準で置く（漢字かなの見た目の中心 ≒ ベースライン+0.38em）。
 * 行ボックス中央揃えだと代替フォント（dev環境）で円が下がって見えるため */
.kt-builder-card .kt-more::after {
  content: none; /* 共通の .kt-more の小三角は使わない（赤丸矢印の要素を使う） */
}
.kt-builder-card .kt-more .kt-arrow-red--sm {
  vertical-align: -3.4px; /* 文字（漢字かな）の見た目の中心に合わせる */
  margin-left: 16px;
}
/* 旧「もっと見る」ボタン（横スクロール化で不要。JSが .is-hidden を付ける） */
.kt-builders-more.is-hidden,
.kt-builder-grid > li.is-hidden {
  display: none;
}
@media (max-width: 991.98px) {
  .kt-builders {
    padding: 64px 0;
    margin-top: 80px;
  }
  .kt-builder-grid {
    grid-template-columns: minmax(0, 430px);
  }
}

/* ===== 絞り込みページ（search.html）Figma 19:6284 =====
 * 見出し 48/77 字間0.3em (x60,y237) → リード 16/32 → 全幅グレー箱 #f5f5f5 h574 (y495) → 結果 (y1189) */
.kaitai-search-page .kt-wrap {
  width: min(1322px, calc(100% - 48px));
}
.kaitai-search-page .kt-page-head {
  padding: 50px 0 0; /* Figma 19:6284: パンくず文字下端(174) → h1(237) 63。文字箱の差を含めて50 */
}
.kaitai-search-page .kt-page-head h1 {
  font-size: 48px;
  line-height: 77px;
  letter-spacing: 0.3em;
  color: var(--kt-text);
  margin: 0 0 32px;
}
.kaitai-search-page .kt-page-lead {
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.1em;
  margin: 0;
}
/* 絞り込み検索ボックス: 全幅 #f5f5f5、上80px（見出し）、行は80px間隔、下80px */
.kt-filter {
  margin-top: 40px;
  padding: 40px 0;
  background: #f5f5f5;
}
.kt-filter-inner {
  width: min(1322px, calc(100% - 48px));
  margin-inline: auto;
}
.kt-filter .kt-filter-head {
  font-size: 24px;
  line-height: 48px;
  letter-spacing: 0.3em;
  color: var(--kt-text);
  margin: 0 0 32px;
}
.kt-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 40px;
  margin-bottom: 32px;
}
.kt-filter-row:last-of-type {
  margin-bottom: 0;
}
.kt-filter-row .kt-filter-label {
  flex: 0 0 223px; /* ラベル x60 → ボタン x283 */
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.3em;
  color: #000;
  margin: 4px 0 0;
}
.kt-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
/* 条件ボタン（pill 40px, 文字18/36 字間0.1em, 余白1/24, 枠#aeaeae r64）。選択中 .is-active は赤塗り白文字 */
.kt-filter-btn {
  padding: 1px 23px;
  border: 1px solid #aeaeae;
  border-radius: 64px;
  background: #fff;
  color: var(--kt-text);
  font-size: 18px;
  line-height: 36px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.kt-filter-btn:hover {
  border-color: var(--kt-red);
  color: var(--kt-red);
}
.kt-filter-btn.is-active {
  background: var(--kt-red);
  border-color: #fff;
  color: #fff;
}
/* 検索ボタン 318x38 r64 + 件数 24/38 字間0.3em + リセット 16/32（Figma: x534 から、間隔24） */
.kt-filter-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px 0 0 474px;
}
.kt-filter-actions .kt-search-btn {
  width: 318px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 64px;
  background: var(--kt-red);
  color: #fff;
  font-size: 18px;
  line-height: 36px;
  letter-spacing: 0.1em;
}
.kt-filter-actions .kt-pre-count {
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.3em;
  color: var(--kt-text);
  margin: 0;
  white-space: nowrap;
}
.kt-filter-actions .kt-reset-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.1em;
  color: var(--kt-text);
  text-decoration: underline;
}
/* 検索結果: グレー箱の下 120px から。テーマごとのセクションは 83px 間隔 */
.kt-result {
  /* 上: グレー箱から120px。下: Figmaは免責の箱→フッターのロゴまで138px。実フッターは内側に120pxあるので 18px */
  padding: 64px 0 18px;
}
.kt-result .kt-result-empty {
  margin: 0 0 0 67px; /* Figma x126（コンテンツ左59 + 67） */
}
.kt-result .kt-result-empty-count {
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.kt-result .kt-result-empty-text {
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.1em;
  margin: 0;
}
.kt-result .kt-result-empty.is-hidden {
  display: none;
}
.kt-result-section + .kt-result-section {
  margin-top: 83px;
}
/* セクション見出し: 2px #f5f5f5 の線 → 16px → 24/38 字間0.3em → 24px → カード */
.kt-result-section .kt-result-title {
  padding-top: 14px; /* 線2px + 14px = 線の上端から文字まで16px（Figma 1189→1205） */
  border-top: 2px solid #f5f5f5;
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.3em;
  color: var(--kt-text);
  margin: 0 0 24px;
}
/* 記事カード 4列 317px, 列間16px（Figma 19:6351） */
.kt-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px; /* 行間はFigma 19:6346 の2段目(1670)−1段目下端(1629)=41 */
  list-style: none;
  padding: 0;
  margin: 0;
}
.kt-article-card {
  display: block;
  color: var(--kt-text);
  text-decoration: none;
}
.kt-article-card .kt-article-img {
  display: block;
  width: 100%;
  aspect-ratio: 317 / 179;
  object-fit: cover;
  margin-bottom: 16px;
}
/* タグ行: 赤塗りピル(30px, 14px白, 余白8/16, r16, 間隔8) と右端の鍵アイコン */
.kt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.kt-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-card-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  background: var(--kt-red);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
.kt-card-lock {
  flex: 0 0 15px;
  width: 15px;
  height: 17px;
  background: url('../images/kaitai/icon-lock.svg') no-repeat center / contain;
}
.kt-article-card .kt-article-title {
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.1em;
  margin: 0;
}
/* 免責（Figma 73:2357: #f5f5f5 の箱 1022x173、余白24、文字 14/25 #818181）。最後のセクションから83px、中央寄せ（ろく指示） */
.kt-disclaimer {
  box-sizing: border-box;
  width: min(1022px, 100%);
  margin: 83px auto 0;
  padding: 24px;
  background: #f5f5f5;
  color: #818181;
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.02em;
}
.kt-result.is-empty .kt-disclaimer {
  display: none;
}
@media (max-width: 1199.98px) {
  .kt-filter-actions {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  .kt-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .kaitai-search-page .kt-page-head h1 {
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: 0.1em;
  }
  .kt-filter {
    padding: 48px 0;
  }
  .kt-filter-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }
  .kt-filter-row .kt-filter-label {
    flex-basis: auto;
    margin: 0;
  }
  .kt-filter-btn {
    font-size: 14px;
    line-height: 28px;
    padding: 1px 16px;
  }
  .kt-filter-actions .kt-search-btn {
    width: min(318px, 100%);
  }
  .kt-result {
    padding: 64px 0;
  }
  .kt-article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .kt-disclaimer {
    margin-top: 48px;
  }
}

/* SPだけで効かせる改行（PCでは非表示）/ PCだけの改行・文字 */
.kt-sp-only {
  display: none;
}
@media (max-width: 767.98px) {
  .kt-sp-only {
    display: inline;
  }
  .kt-pc-only {
    display: none;
  }
}

/* ===== 住宅トップ: 家づくりの解体新書セクション（jneoma/index.html, Figma 10:63 Group 3778） =====
 * 1440基準: セクション高さ887 / 左テキスト x132 y200 w587 / カルーセル x798 y206 カード588x507 gap40（右は画面外へはみ出す） */
.kt-top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #d22615 33%, rgba(210, 38, 21, 0.7) 100%);
  color: #fff;
  padding: 200px 0 174px;
}
.kt-top.is-empty {
  display: none;
}
.kt-top-inner {
  display: flex;
  align-items: flex-start;
  gap: 79px;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: 132px;
}
.kt-top-text {
  position: relative;
  z-index: 2; /* カルーセルより前面（カードが文字に被らない） */
  flex: 0 0 587px;
  width: 587px;
}
.kt-top .kt-top-title {
  font-size: 48px; /* 2026-10-05 仁科修正: 64→48、行間200%、字間30% */
  line-height: 2;
  letter-spacing: 0.3em;
  color: #fff;
  margin: 0 0 40px; /* Figma: h2下端2502 → リード2542 */
}
.kt-top .kt-top-lead {
  font-size: 24px;
  line-height: 2; /* 2026-10-05 仁科修正: 行間200% */
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 32px;
}
.kt-top .kt-top-body {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 32px;
}
/* 白いピルボタン 327x55、文字は赤 16px 字間0.3em、右に赤丸矢印 */
.kt-top-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 327px;
  height: 55px;
  padding-left: 48px;
  background: #fff;
  border-radius: 999px;
  color: var(--kt-red);
  font-size: 16px;
  letter-spacing: 0.3em;
  line-height: 1;
  text-decoration: none;
}
.kt-top-btn:hover,
.kt-top-btn:focus-visible {
  color: var(--kt-red);
}
.kt-top-btn .kt-arrow-red {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -18px;
}
/* 赤丸(36px)+白三角の矢印。ボタンとカードで共通 */
.kt-arrow-red {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kt-red);
}
.kt-arrow-red::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Figma 10:410/10:439 を4倍書き出しして実測: 三角の見た目は 6.75x12、円の中心より 1px 右（光学中心） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'%3E%3Cpath d='M0 0l9 7-9 7z' fill='%23fff'/%3E%3C/svg%3E") no-repeat calc(50% + 1px) 50% / 6.75px 12px;
}
/* カルーセル。Swiper未読込時は横スクロールでフォールバック */
.kt-top-carousel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 6px;
  /* 左へ流れたカードは文字側に出さず、カルーセル左端（文字との間隔79pxの途中）で切る。
   * 右と上下は切らない（右は .kt-top の overflow:hidden で画面端まで見せる）。
   * 左の -30px はカード影(20px)の逃げ。前のカードは間隔40px分左にあるので見えない。 */
  clip-path: inset(-40px -9999px -40px -30px);
}
.kt-top-swiper {
  overflow: visible; /* 右側はセクション(overflow:hidden)で切る */
}
.kt-top-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 40px;
  overflow-x: auto;
}
.kt-top-slide {
  width: 588px;
  height: auto;
}
.kt-top-card {
  position: relative;
  display: block;
  min-height: 507px;
  padding: 58px 51px 57px 50px; /* Figma 10:429: 画像 y+58, x+50(848-798), 矢印は右51/下57 */
  background: #fff;
  border-radius: 16px;
  color: var(--kt-text);
  text-decoration: none;
}
.kt-top-card .kt-top-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 487 / 274;
  object-fit: cover;
  background: #f5f5f5;
  box-shadow: 0 4px 20px rgba(131, 131, 131, 0.25);
  margin-bottom: 20px;
}
.kt-top-card .kt-top-card-catch {
  min-height: 60px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}
.kt-top-card .kt-top-card-name {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #000;
  margin: 0;
  padding-right: 48px;
}
.kt-top-card .kt-arrow-red {
  position: absolute;
  right: 51px;
  bottom: 57px;
}
.kt-top-pagination {
  position: static;
  margin-top: 0;
  display: none; /* Figma 10:63 にページネーションは無い */
  text-align: left;
}
.kt-top-pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.kt-top-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}
.kt-top-pagination.swiper-pagination-lock {
  display: none;
}
@media (max-width: 1259.98px) {
  .kt-top-inner {
    gap: 40px;
    padding-left: 48px;
  }
  .kt-top-text {
    flex-basis: 440px;
    width: 440px;
  }
  .kt-top .kt-top-title {
    font-size: 48px;
  }
}
@media (max-width: 991.98px) {
  .kt-top {
    padding: 64px 0 72px;
  }
  .kt-top-inner {
    flex-direction: column;
    gap: 40px;
    padding-left: 24px;
  }
  .kt-top-text {
    flex-basis: auto;
    width: auto;
    padding-right: 24px;
  }
  .kt-top .kt-top-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .kt-top .kt-top-lead {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .kt-top .kt-top-body {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .kt-top-carousel {
    width: 100%;
    margin-top: 0;
  }
  .kt-top-slide {
    width: min(588px, 82vw);
  }
  .kt-top-card {
    min-height: 0;
    padding: 20px 20px 24px;
  }
  .kt-top-card .kt-top-card-catch {
    min-height: 0;
    font-size: 16px;
  }
  .kt-top-card .kt-top-card-name {
    font-size: 13px;
    padding-right: 40px;
  }
  .kt-top-card .kt-arrow-red {
    right: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
  }
  .kt-top-swiper:not(.swiper-initialized) .swiper-wrapper {
    gap: 16px;
  }
}
/* SP（Figma 314:2299 iPhone 16 / 393基準）: セクション y2200 h999、左右12。
 * h2 32/48 字間0.3em → 40 → リード 20/40 → 32 → 本文 16/32(幅353) → 32 → ボタン 327x55 → 39 → カード 298x307 (pad16 r8 gap16) → 下82 */
@media (max-width: 767.98px) {
  .kt-top {
    padding: 100px 0 82px;
  }
  .kt-top-inner {
    gap: 39px;
    padding-left: 12px;
  }
  .kt-top-text {
    min-width: 0;
    max-width: 100%;
    padding-right: 12px;
  }
  .kt-top .kt-top-title {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.3em;
    margin-bottom: 40px;
  }
  .kt-top .kt-top-lead {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 32px;
  }
  .kt-top .kt-top-body {
    font-size: 16px;
    line-height: 2;
    /*max-width: 353px;*/
    margin-bottom: 32px;
  }
  .kt-top-btn {
    width: 327px;
    max-width: 100%;
    height: 55px;
    padding-left: 48px;
    font-size: 16px;
  }
  .kt-top-btn .kt-arrow-red {
    width: 36px;
    height: 36px;
    right: 10px;
    bottom: auto;
    margin-top: -18px;
  }
  .kt-top-carousel {
    clip-path: inset(-40px -9999px -40px -12px); /* 左は画面端(12px)で切る */
  }
  .kt-top-slide {
    width: 298px;
  }
  .kt-top-card {
    padding: 16px 16px 15px;
    border-radius: 8px;
  }
  .kt-top-card .kt-top-card-img {
    aspect-ratio: 266 / 150;
    margin-bottom: 16px;
    box-shadow: none;
  }
  .kt-top-card .kt-top-card-catch {
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
    margin-bottom: 8px;
  }
  .kt-top-card .kt-top-card-name {
    font-size: 12px;
    line-height: 19px;
    padding-right: 0;
  }
  .kt-top-card {
    padding-bottom: 50px; /* 工務店名の下 16 → 矢印19 → 15（SPは矢印が名前の下段） */
  }
  .kt-top-card .kt-arrow-red {
    right: 16px;
    bottom: 15px;
    width: 19px;
    height: 19px;
  }
  .kt-top-card .kt-arrow-red::after {
    background-size: 5px 8px;
  }
}

/* ===== 入り口ページ: 地域から探す（日本地図 + 右パネル）
 * Figma 58:278: 内側幅1093を中央配置(x174)。見出し 32/51 → 113px → 地図 624x622 (x+39) / 右パネル 362x553 (x+731, 地図より7px上) ===== */
.kt-area {
  padding: 120px 0 0; /* Figma: CTA下端(1666) → 見出し(1786) 120px。下は一覧セクション(margin-top 120)が続く */
}
.kt-area .kt-wrap {
  width: min(1093px, calc(100% - 48px));
}
.kt-area .kt-h2 {
  margin-bottom: 113px;
}
.kt-area-body {
  display: flex;
  align-items: flex-start;
  gap: 68px;
  padding-left: 39px;
}
/* 地図: 624x622。ドット地図はFigma 58:285「地域区分確認用画像」の形状を書き出した map_japan.svg */
.kt-map {
  position: relative;
  flex: 0 0 624px;
  width: 624px;
  height: 622px;
  background: url('../images/kaitai/map_japan.svg') no-repeat center / contain;
}
/* JSでSVGをインライン化できたら背景は外し、地域ごとに濃さを変える
 * （Figma: 通常 .15 / ホバー 76:2375 = .5 / 選択 58:285 = .7） */
.kt-map.has-inline-map {
  background: none;
}
.kt-map-dots,
.kt-map-dots svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.kt-map-area path {
  fill-opacity: 0.15;
  transition: fill-opacity 0.2s;
}
/* ホバー＝薄め（.35）、クリック＝濃い赤（.8）。ホバーとクリックが同じ色にならないよう差をつける。クリック済みの地域はホバーしても濃いまま */
.kt-map-area.is-hover path {
  fill-opacity: 0.35;
}
.kt-map-area.is-active path,
.kt-map-area.is-active.is-hover path {
  fill-opacity: 0.8;
}
/* 地域ボタン（Figma: 48px 二重の薄赤リング + 白27px 赤2px枠 + 件数14px赤）。
 * 位置(left/top)はJSが MAP_POS から入れる（中心座標の%）。
 * 3状態: 通常 / hover(.is-hover=中間色) / 選択中(.is-active=赤)。0件は .is-empty で非表示。 */
.kt-map-region {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
/* 数字の周りの薄い輪は、ゆっくり広がって消える波紋（ほわんほわん）を2本ずらして繰り返す */
.kt-map-region::before,
.kt-map-region::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(210, 38, 21, 0.28);
  animation: kt-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.kt-map-region::after {
  animation-delay: 1.2s;
}
@keyframes kt-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kt-map-region::before,
  .kt-map-region::after {
    animation: none;
    transform: none;
    opacity: 1;
    background: rgba(210, 38, 21, 0.15);
  }
  .kt-map-region::after {
    inset: 5px;
  }
}
.kt-map-region .kt-map-count {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 2px solid #d80c24;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--kt-red);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0; /* 字間を付けると右側に余白が出て数字が左に寄る（2026-10-05 ろく指摘） */
  padding-bottom: 1px; /* 数字の見た目を上下中央に */
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
}
.kt-map-region .kt-map-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* バッジ: ホバー＝白地（不透明）に赤文字、クリック＝赤地に白文字 */
.kt-map-region:hover .kt-map-count,
.kt-map-region.is-hover .kt-map-count {
  background: #fff;
  color: var(--kt-red);
}
/* クリック後も丸の中は白のまま（地域のドットだけ濃い赤になる） */
.kt-map-region.is-active .kt-map-count,
.kt-map-region.is-active:hover .kt-map-count {
  background: #fff;
  color: var(--kt-red);
}
.kt-map-region.is-empty {
  display: none;
}
/* 右パネル: paddingを保ち、中身に合わせて高さを可変にする */
.kt-area-panel {
  flex: 0 0 362px;
  width: 362px;
  margin-top: -7px;
  padding: 32px;
  background: var(--kt-panel-bg);
  border-radius: 19px;
}
.kt-panel-content > :last-child {
  margin-bottom: 0;
}
.kt-area-panel .kt-panel-close {
  display: none; /* SP のポップアップでだけ表示 */
}
.kt-area-panel .kt-panel-region {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--kt-red);
  margin: 0 0 16px;
}
.kt-area-panel .kt-panel-empty {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #818181;
  margin: 0;
}
/* 大カード（先頭の工務店）: 白 298x307 r8 padding16 gap16。画像266x150 → キャッチ16/24 → 社名12/19、右下に赤丸矢印19px（Figma 58:783） */
.kt-panel-main {
  position: relative;
  display: block;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  color: var(--kt-text);
  text-decoration: none;
  margin-bottom: 16px;
}
.kt-panel-main img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 16px;
}
.kt-panel-main .kt-panel-catch {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.kt-panel-main .kt-panel-name {
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.kt-arrow-red--sm {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--kt-red);
  vertical-align: middle;
}
/* 三角は Figma の書き出し実測（3.5x6.25、中心より0.6px右）に合わせる */
.kt-arrow-red--sm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'%3E%3Cpath d='M0 0l9 7-9 7z' fill='%23fff'/%3E%3C/svg%3E") no-repeat calc(50% + 0.6px) 50% / 3.5px 6.25px;
}
.kt-panel-main .kt-arrow-red--sm {
  display: block;
  margin-left: auto; /* 社名の下、右寄せ（Figma: 社名下16px、カード下16px） */
}
/* 小カード（2件目以降）: 240x57、画像104x57 + 社名12/19（Figma 58:797） */
.kt-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.kt-panel-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: var(--kt-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0.1em;
}
.kt-panel-sub img {
  flex: 0 0 104px;
  width: 104px;
  height: 57px;
  object-fit: cover;
  background: #d9d9d9;
}
.kt-panel-sub span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* タブレット〜小さいPC（768〜1255px）: 地図と右パネルを縦に落とさず、Figma の 1093px レイアウトを丸ごと比例縮小する。
 * --au = 「デザイン上の1px」（コンテンツ幅 ÷ 1093）。地図・パネル・バッジ・パネル内の文字/画像を全部この単位で計算 */
.kt-area .kt-wrap {
  container-type: inline-size;
}
@media (min-width: 768px) and (max-width: 1255.98px) {
  .kt-area .kt-wrap {
    --au: calc(100cqw / 1093);
  }
  .kt-area-body {
    padding-left: calc(var(--au) * 39);
    gap: calc(var(--au) * 68);
  }
  .kt-map {
    flex-basis: calc(var(--au) * 624);
    width: calc(var(--au) * 624);
    height: auto;
    aspect-ratio: 624 / 622;
  }
  .kt-map-region {
    width: calc(var(--au) * 48);
    height: calc(var(--au) * 48);
  }
  .kt-map-region::after {
    inset: calc(var(--au) * 5);
  }
  .kt-map-region .kt-map-count {
    width: calc(var(--au) * 27);
    height: calc(var(--au) * 27);
    font-size: calc(var(--au) * 14);
  }
  .kt-area-panel {
    flex-basis: calc(var(--au) * 362);
    width: calc(var(--au) * 362);
    margin-top: calc(var(--au) * -7);
    padding: calc(var(--au) * 32);
    border-radius: calc(var(--au) * 19);
  }
  .kt-area-panel .kt-panel-region {
    font-size: calc(var(--au) * 20);
    margin-bottom: calc(var(--au) * 16);
  }
  .kt-area-panel .kt-panel-empty {
    font-size: calc(var(--au) * 14);
  }
  .kt-panel-main {
    padding: calc(var(--au) * 16);
    margin-bottom: calc(var(--au) * 16);
  }
  .kt-panel-main img {
    height: calc(var(--au) * 150);
    margin-bottom: calc(var(--au) * 16);
  }
  .kt-panel-main .kt-panel-catch {
    font-size: calc(var(--au) * 16);
    line-height: calc(var(--au) * 24);
    margin-bottom: calc(var(--au) * 8);
  }
  .kt-panel-main .kt-panel-name {
    font-size: calc(var(--au) * 12);
    line-height: calc(var(--au) * 19);
    margin-bottom: calc(var(--au) * 16);
  }
  .kt-panel-main .kt-arrow-red--sm {
    width: calc(var(--au) * 19);
    height: calc(var(--au) * 19);
  }
  .kt-panel-list {
    gap: calc(var(--au) * 16);
  }
  .kt-panel-sub {
    gap: calc(var(--au) * 9);
    font-size: calc(var(--au) * 12);
    line-height: calc(var(--au) * 19);
  }
  .kt-panel-sub img {
    flex-basis: calc(var(--au) * 104);
    width: calc(var(--au) * 104);
    height: calc(var(--au) * 57);
  }
}
@media (max-width: 991.98px) {
  .kt-area {
    padding: 80px 0 100px;
  }
}

/* ===== 追従CTA（入り口ページ。.kt-cta を通過したら画面下に固定表示） ===== */
.kt-cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.kt-cta-sticky.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.kt-cta-sticky .kt-cta--sticky {
  width: min(640px, 100%);
  min-height: 64px;
  font-size: 22px;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .kt-cta-sticky .kt-cta--sticky {
    min-height: 52px;
    font-size: 16px;
    padding: 0 40px 0 20px;
  }
}

/* ===== 文字色の上書き =====
 * 共通CSS(common.css)に `main a { color: #333 !important }` があり、リンク内の文字色が全部 #333 になる。
 * Figma の指定色（白/赤/#222）を優先させるため、ここだけ !important で上書きする。 */
.kt-cta,
.kt-cta--sticky {
  color: #fff !important; /* Figma 58:1030 */
}
.kt-top-btn,
.kt-theme {
  color: var(--kt-red) !important; /* 一覧を見る / テーマ円（Figma #d22615） */
}
.kt-builder-card,
.kt-panel-main,
.kt-article-card,
.kt-top-card {
  color: #222 !important; /* カード内の文字（Figma #222222） */
}

/* ===== 文字の太さを揃える =====
 * Figma は見出し・CTA・円の文字など全部「秀英角ゴシック銀 B（600）」。本番は FontPlus の B 書体1つで出るので太さは揃うが、
 * dev環境（FontPlus のライセンス外ドメイン）では代替フォントになり、h2(500) と p/span(400) の差がそのまま見えてしまう。
 * 解体新書の要素は B 指定のものを一律 500 にして、代替フォントでも太さが揃うようにする。 */
.kt-fv h1,
.kt-h2,
.kt-cta,
.kt-theme-no,
.kt-theme-label,
.kt-top-title,
.kt-top-lead,
.kt-top-btn,
.kt-top-card-catch,
.kt-builder-catch,
.kt-builder-name,
.kt-builder-card .kt-more,
.kt-panel-region,
.kt-panel-catch,
.kt-panel-name,
.kt-panel-sub span,
.kt-page-head h1,
.kt-filter-label,
.kt-filter button,
.kt-search-btn,
.kt-result-count,
.kt-article-card .kt-card-title,
.kt-result h2 {
  font-weight: 500;
}
/* 本文は「L」（2026-10-05 仁科修正: 住宅TOP本文・入り口FV本文） */
.kt-top-body,
.kt-fv p {
  font-weight: 400;
}
/* 共通CSS(style.css)の `button { color:#333 !important }` を上書き: 絞り込みボタンは通常#222、選択中・検索ボタンは白 */
.kt-filter-btn {
  color: #222 !important;
}
.kt-filter-btn.is-active,
.kt-search-btn {
  color: #fff !important;
}

/* ===== フォームページ（report/kaitaishinsho/form.html, Figma 16:5524） =====
 * 既存の閲覧フォーム雛形（etc/movie_contents_form.html）をベースに、Figma 実測へ寄せる。
 * Figma: パンくず文字 y148 / h1 文字 y274(48/77) / フォーム先頭「区分」中心 y519 / 送信ボタン y2001-2036 / フッターロゴ y2332 */
@media (min-width: 768px) { /* PCのみ。SPはFigmaにフォーム画面が無いので雛形（既存フォーム）の余白のまま */
  .kt-form-page .etc-form-intro {
    margin-top: -24px; /* h1 を Figma の位置へ（雛形は24px下） */
    margin-bottom: calc(2rem + 111px); /* h1 → フォーム先頭の間隔 206px */
  }
  .kt-form-page .kt-form-section {
    margin-bottom: 119px; /* 送信ボタン → フッターロゴ 296px */
  }
}

/* =====================================================================
 * 入り口ページ SP（Figma 314:2460 iPhone 16 / 393基準）
 * パンくず y101 → FV y183 h677（h1 32/51 x11 y283、本文 16/32 w370 y460、下80）
 * → 80 → テーマ見出し 24/38 中央（下線 255x13）→ 40 → 円 131px 3+2段（横は12px重ね）→ 40 → CTA 368x62 r4
 * → 80 → 地域見出し 24/38 → 40 → 地図 367x366（x14）→ 81 → 工務店一覧 #f8f8f8（上下80、見出し 20/32、カード 298x307 gap20）→ 80 → フッター
 * 地域パネルは SP では ×付きのポップアップ（Figma 314:5321: パネル 362x553 r19、×34px はパネル右上の10px上）
 * ===================================================================== */
@media (max-width: 767.98px) {
  .kaitai-entry-page .kt-wrap {
    width: calc(100% - 24px);
  }
  .kaitai-entry-page .kt-breadcrumb {
    margin-bottom: 62px; /* パンくず文字下端(120) → FV(183) */
  }
  /* FV。本文は9行(288px)。Figmaの文字箱は10行分(320)なので、FV下端(860)を合わせるため下余白は 80+32=112 */
  .kt-fv {
    padding: 100px 12px 112px 11px;
  }
  .kt-fv-deco {
    background-image: url('../images/kaitai/bg-sp.png');
  }
  .kt-fv h1 {
    font-size: 32px;
    line-height: 51px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }
  .kt-fv p {
    max-width: 370px;
    font-size: 16px;
    line-height: 2;
  }
  /* 5つのテーマ */
  .kt-themes {
    padding-top: 80px;
  }
  .kt-themes .kt-h2 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
  }
  .kt-h2 .kt-h2-mark::after {
    height: 13px;
    bottom: -3px;
    left: -2px;
    right: -2px;
  }
  .kt-theme-list {
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
  }
  /* SP も幅に合わせて比例拡縮: Figma(393幅、内側369)で円131 → 円 = 内側幅 × 131/369。重なり12・2段目の頭出し64・文字も同比率 */
  .kt-theme-list {
    --kt-circle: calc((100vw - 24px) * 0.3545); /* cqw 非対応ブラウザ用 */
    --kt-circle: calc(100cqw * 0.3545); /* 131/369 から 0.1% 小さくして丸め誤差で3段目に落ちないようにする */
    flex-wrap: wrap; /* 3+2 の2段 */
  }
  .kt-theme-list > li {
    width: var(--kt-circle);
    height: var(--kt-circle);
    margin-left: calc(var(--kt-circle) * -0.0916); /* -12/131: 隣と重なる */
  }
  .kt-theme-list > li:first-child {
    margin-left: 0;
  }
  /* 並び: 1段目 仕様(01)・コスト(03)・施工(02)、2段目 売り方(04)・経営(05) */
  .kt-theme-list > li[data-d='1'] { order: 2; }
  .kt-theme-list > li[data-d='2'] { order: 1; }
  .kt-theme-list > li[data-d='3'] { order: 3; margin-left: calc(var(--kt-circle) * 0.48855); } /* 64/131: 2段目は x76（=12+64）から */
  .kt-theme-list > li[data-d='4'] { order: 4; }
  .kt-theme {
    padding-top: calc(var(--kt-circle) * 0.16031); /* 21/131 */
  }
  .kt-theme .kt-theme-no {
    font-size: calc(var(--kt-circle) * 0.07634); /* 10/131 */
    margin-bottom: calc(var(--kt-circle) * 0.24427); /* 32/131 */
  }
  .kt-theme .kt-theme-label {
    font-size: calc(var(--kt-circle) * 0.1374); /* 18/131 */
  }
  .kt-cta {
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 0 48px 0 24px;
    border-radius: 4px;
    font-size: 20px;
    line-height: 32px;
  }
  .kt-cta .kt-cta-arrow {
    right: 20px;
    width: 19px;
    height: 19px;
    margin-top: -9.5px;
  }
  .kt-cta .kt-cta-arrow::after {
    background-size: 5px 8px;
  }
  /* 地域から探す */
  .kt-area {
    padding: 80px 0 0;
  }
  .kt-area .kt-h2 {
    font-size: 24px;
    line-height: 38px;
    margin-bottom: 40px;
  }
  .kt-area-body {
    display: block;
    padding-left: 0;
  }
  .kt-map {
    width: 367px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 367 / 366;
    margin-inline: auto; /* 中央寄せ（2026-10-05 ろく指示。Figma 314:2460 は x14 だが幅が違う端末でも中央に） */
  }
  .kt-map-region {
    width: 45px;
    height: 45px;
  }
  .kt-map-region::after {
    inset: 4.5px; /* 内側の輪 36px（Figma SP 314:5279） */
  }
  .kt-map-region .kt-map-count {
    width: 26px;
    height: 26px;
    font-size: 14px; /* Figma SP: 白丸 26px・数字 14px */
  }
  /* パネル = ポップアップ（地域を選ぶと開く。× か背景で閉じる） */
  .kt-area-panel {
    display: none;
  }
  .kt-area-panel.is-open {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1061;
    width: min(362px, calc(100% - 32px));
    min-height: 0;
    padding: 0;
    margin: 0;
    transform: translate(-50%, -50%);
    background: #f5f5f5; /* ポップアップは不透明（下のページが透けない） */
  }
  .kt-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.6);
    display: none;
  }
  .kt-panel-backdrop.is-open {
    display: block;
  }
  .kt-area-panel .kt-panel-close {
    display: block;
    position: absolute;
    right: -4px;
    top: -44px; /* パネルの10px上に 34px の丸 */
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a9a9a9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    cursor: pointer;
  }
  .kt-area-panel .kt-panel-content {
    max-height: calc(100dvh - 100px);
    padding: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
  }
  /* 掲載工務店一覧 */
  .kt-builders {
    padding: 80px 0;
    margin: 81px 0 6px; /* 下: Figmaはセクション下端(2602)→フッターロゴ(2688) 86。実フッター内側80を引いて6 */
  }
  .kt-builders .kt-h2 {
    padding-left: 12px;
    font-size: 20px;
    line-height: 32px;
    gap: 11px;
    margin-bottom: 40px;
  }
  .kt-builder-grid {
    gap: 20px;
    padding: 0 12px;
  }
  .kt-builder-grid > li {
    flex-basis: 298px;
    width: 298px;
  }
  .kt-builder-card {
    position: relative;
    height: 307px;
    padding: 16px 16px 50px;
  }
  .kt-builder-card .kt-builder-img {
    height: 150px;
    border-radius: 0;
  }
  .kt-builder-card .kt-builder-name {
    margin-bottom: 0;
  }
  .kt-builder-card .kt-more {
    position: absolute;
    right: 16px;
    bottom: 15px;
    font-size: 0;
    line-height: 0;
  }
  .kt-builder-card .kt-more .kt-arrow-red--sm {
    margin-left: 0;
    vertical-align: top;
  }
}

/* 地域区分・所在地のラベル（Figma SP 314:5868。PC も 2026-10-05 のデザイン更新 390:781 で追加） */
.kt-card-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.kt-card-areas li {
  padding: 4px 8px;
  border-radius: 2px;
  background: #f5f5f5;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.1em;
}
/* =====================================================================
 * 絞り込みページ SP（Figma 314:5868 iPhone 16 / 393基準）
 * パンくず y101 → h1 24/38 字間0.3em (x12,y186) → 24 → リード 16/32 3行 (y248) → グレー箱 #f5f5f5 (y418 h966, 上下80)
 *   「絞り込み検索」24/48 字間0.3em (x20) → 48 → ラベル 16/32 字間0.3em (x14) → 16 → ピル(h36, 文字16/32, 左右24, 間隔16/16) → グループ間40
 *   → 64 → 検索ボタン 260x50 (x28) + 件数 24/38 (右に24) → 24 → 条件をリセット（中央）→ 80
 * → 80 → 結果: 線2px → 16 → テーマ見出し 20/32 字間0.3em → 32 → カード列（横スクロール、カード318 間隔16: 画像318x179 → 16 → タグ(h30) → 8 → タイトル16/32 → 8 → 地域ラベル(h20 #f5f5f5 r2 12px #8b8b8b)）→ 24 → 次の線
 * → 40 → 免責（x12 w369 内側24）→ フッター
 * ===================================================================== */
@media (max-width: 767.98px) {
  .kaitai-search-page .kt-wrap {
    width: calc(100% - 24px);
  }
  .kaitai-search-page .kt-page-head {
    padding-top: 49px; /* パンくず下端(120) → h1(186) */
  }
  .kaitai-search-page .kt-page-head h1 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
  }
  .kaitai-search-page .kt-page-lead {
    font-size: 16px;
    line-height: 32px;
  }
  .kt-filter {
    padding: 40px 0;
  }
  .kt-filter-inner {
    width: auto;
    margin: 0 12px 0 14px;
  }
  .kt-filter .kt-filter-head {
    margin: 0 0 32px 6px; /* x20 */
  }
  .kt-filter-row {
    display: block;
    min-height: 0;
    margin-bottom: 32px;
  }
  .kt-filter-row .kt-filter-label {
    margin: 0 0 16px;
  }
  .kt-filter-group {
    gap: 16px 16px;
  }
  .kt-filter-btn {
    padding: 1px 24px;
    font-size: 16px;
    line-height: 32px;
  }
  .kt-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    margin: 48px 0 0 14px; /* 検索ボタン x28 */
  }
  .kt-filter-actions .kt-search-btn {
    width: 260px;
    height: 50px;
    line-height: 36px;
  }
  .kt-filter-actions .kt-pre-count {
    margin-left: 24px;
  }
  .kt-filter-actions .kt-reset-btn {
    flex: 0 0 100%;
    width: 100%;
    margin: 24px 0 0 -14px;
    text-align: center;
  }
  .kt-result {
    padding: 64px 0 47px; /* 下: 免責下端(4202) → フッターロゴ(4329) 127 − 実フッター内側80 */
  }
  .kt-result .kt-result-empty {
    margin-left: 0;
  }
  .kt-result-section + .kt-result-section {
    margin-top: 24px;
  }
  .kt-result-section .kt-result-title {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 32px;
  }
  /* カード列は横スクロール（画面右端まで流す） */
  .kt-article-grid {
    display: flex;
    gap: 16px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kt-article-grid::-webkit-scrollbar {
    display: none;
  }
  .kt-article-grid > li {
    flex: 0 0 318px;
    width: 318px;
    scroll-snap-align: start;
  }
  .kt-article-card .kt-article-img {
    aspect-ratio: 318 / 179;
  }
  .kt-card-areas {
    display: flex;
  }
  .kt-disclaimer {
    margin-top: 40px; /* 最終カード列下端(3789) → 箱(3829) */
  }
}
