/*
Theme Name: ハイエースカスタム専門店ガイド
Theme URI: https://hiace-custom-guide.com
Description: ハイエースカスタム専門店ガイドの専用テーマ（第1版：県・市のページとお店のカード）
Version: 0.3.116
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hcg
*/
/*
  ハイエースカスタム専門店ガイド（デザイン確認用モック）
  1つのファイルの中に、4種類のページが入っています。
  ・トップ        #/
  ・都道府県      #/fukuoka（県の一覧　有料掲載の契約順→無料掲載）
  ・エリア別      #/fukuoka/fukuoka-city など
  ・店舗の詳細    #/shop/van-base-hakata など（有料掲載のお店だけ　無料掲載は一覧のカードのみ）
  ・無料見積り  #/estimate（店舗から来たときは #/estimate/店舗）
*/
:root {
  --bg: #f6f8f9;
  --white: #ffffff;
  --ink: #1d2730;
  --ink-soft: #5a6670;
  --line: #e0e6ea;
  --main: #0f5f73;      /* メインの色：深い青緑 */
  --main-2: #167c94;
  --tint: #e9f3f5;      /* メインの色のごく淡い色 */
  --star: #f0a500;
  --gold: #e3a400;
  --silver: #9aa6af;
  --bronze: #c07a43;
  --green: #1f8a5b;
  --amber: #a86d00;
  --amber-bg: #fff6e5;  /* お役立ちコラムの注意の枠の地の色（3.81版） */
  --accent: #ef6c1a;    /* 見積りボタンの色：明るいオレンジ */
  --accent-2: #d95a0b;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --num: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--main-2); outline-offset: 2px; }

/* ===== お知らせの帯 ===== */
.pr-bar { background: #eef1f3; color: var(--ink-soft); font-size: 11.5px; text-align: center; padding: 4px 16px; }

/* ===== ヘッダー ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--main); display: grid; place-items: center; flex: 0 0 auto; }
.logo-text { display: grid; line-height: 1.2; }
.logo-text { display: flex; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; }
.logo-text small { font-size: 21px; font-weight: 900; color: var(--ink); letter-spacing: .01em; line-height: 1.2; }
.logo-text strong { font-size: 21px; font-weight: 900; color: var(--main); letter-spacing: .01em; line-height: 1.2; }
.logo-a { flex: 0 0 auto; display: block; }
.gnav { display: flex; gap: 4px; }
.gnav a { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 8px; color: var(--ink); white-space: nowrap; }
.gnav a:hover { background: var(--tint); color: var(--main); }
.gnav a.is-current { color: var(--main); background: var(--tint); }
.gnav a.nav-cta { background: var(--accent); color: var(--white); }
.gnav a.nav-cta:hover, .gnav a.nav-cta.is-current { background: var(--accent-2); color: var(--white); }

/* ===== 共通パーツ ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 11px 20px; font-weight: 700; font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-main { background: var(--main); color: var(--white); }
.btn-main:hover { background: var(--main-2); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 0 var(--accent-2); }
.btn-accent:hover { background: var(--accent-2); }
.btn-line { background: var(--white); color: var(--main); border-color: var(--main); }
.btn-line:hover { background: var(--main); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
section.block { padding-block: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 900; line-height: 1.45; }
.sec-head p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.more { color: var(--main); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--main); }
.crumbs { font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 18px; }
.crumbs a { color: var(--main); }
.tag { display: inline-block; font-size: 12px; background: var(--tint); color: var(--main); padding: 2px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.note { font-size: 12px; color: var(--ink-soft); }
.notice { background: #fff8e6; border: 1px solid #f1dfae; color: #6b5310; font-size: 12.5px; border-radius: 10px; padding: 10px 14px; }

/* ダミー画像（本番で写真に差し替え）：色つきの背景にカメラの印と「入る写真」の説明 */
.photo { position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 6px; color: rgba(255,255,255,.96); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-align: center; padding: 8px; text-shadow: 0 1px 2px rgba(0,0,0,.18);
  background: linear-gradient(160deg, #7cc4d8 0%, #3f8fb0 55%, #2a6f8f 100%); }
.photo::before { content: ""; width: 34px; height: 34px; opacity: .9; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.6-2h6.8L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13.2' r='3.6'/%3E%3C/svg%3E"); }
.photo.v2 { background: linear-gradient(160deg, #f6c58a 0%, #ee8f5a 55%, #d46a4c 100%); }
.photo.v3 { background: linear-gradient(160deg, #9fd3a6 0%, #5aa77a 55%, #3d8460 100%); }
.photo.v4 { background: linear-gradient(160deg, #a9b6e8 0%, #6f7fc6 55%, #4d5aa3 100%); }
.photo.v5 { background: linear-gradient(160deg, #f3dca8 0%, #d9b06b 55%, #b98a45 100%); }
.photo.small::before { width: 22px; height: 22px; }
.photo.tiny { font-size: 0; }
.photo.tiny::before { width: 18px; height: 18px; }
/* 星 */
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; color: #d9dee2; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.stars span::before { content: "★★★★★"; }
.rating { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rating b { font-family: var(--num); font-size: 18px; font-weight: 700; color: var(--ink); }
.rating small { color: var(--ink-soft); font-size: 12px; }

/* 並び順の番号（評価や順位ではない） */
.rank { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-weight: 700; font-size: 19px; color: var(--white); background: var(--main); flex: 0 0 auto; }
.rank.r1 { background: var(--gold); }
.rank.r2 { background: var(--silver); }
.rank.r3 { background: var(--bronze); }
.rank-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: .05em; }

/* ===== トップの見出し ===== */
.hero { background: linear-gradient(180deg, var(--white), var(--tint)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 48px 52px; }
.hero h1 { font-size: clamp(22px, 3.4vw, 36px); font-weight: 900; line-height: 1.4; }
.hero h1 em { font-style: normal; color: var(--main); }
.nb { display: inline-block; white-space: nowrap; }
.hero .lead { color: var(--ink-soft); margin-top: 12px; max-width: 34em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badges span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.hero-badges b { font-family: var(--num); color: var(--main); font-size: 16px; margin-right: 2px; line-height: 1; } /* 3.67版：数字の行が高くて「店舗掲載」が「見積り無料」より下がっていたのをそろえる */
.finder-box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(15,95,115,.08); }
.finder-box h2 { font-size: 16px; font-weight: 900; margin-bottom: 12px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; }
.area-chip small { font-family: var(--num); color: var(--main); font-size: 13px; }
.area-chip:hover { border-color: var(--main); background: var(--tint); }
.finder-box .btn { width: 100%; margin-top: 16px; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; }
.fb-col { padding: 14px 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fb-col + .fb-col { border-left: 1px solid var(--line); }
.fb-col h3, .fb-col .fb-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; color: var(--main); }
.fb-more { font-size: 13px; font-weight: 700; color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.fb-note { font-size: 12px; color: var(--ink-soft); }
.fb-search { position: relative; margin: 0; }
.finder-box .fb-search input { box-sizing: border-box; height: 44px; padding: 0 12px 0 36px !important; font-size: 15px !important; line-height: 1.4; border-width: 1px !important; border-radius: 10px !important; background-position: 12px center !important; background-size: 16px !important; }
@media (max-width: 900px) { .finder-box .fb-search input { font-size: 16px !important; } }
.fb-search .hs-drop { min-width: 240px; }
.gnav .nav-pill { display: inline-flex; align-items: center; gap: 5px; }
.gnav .hs-toggle { display: none; }
.hs-toggle { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap; }

/* トップの大きなメイン写真（パソコンは assets/hero-beach.jpg、スマホは assets/hero-beach-sp.jpg：ファイルの最後） */
.mv { position: relative; min-height: 520px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.mv > .photo { position: absolute; inset: 0; padding: 0; display: block; background: none; }
/* 写真は <img>（front-page.php）。前の背景の指定（幅115%・右寄せ・上下76%）と同じ見え方にする */
.mv > .photo img { position: absolute; right: 0; top: 76%; width: 115%; max-width: none; height: auto; transform: translateY(-76%); }
.mv > .photo::before { content: none; }
.mv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,40,52,.5) 0%, rgba(10,40,52,.25) 45%, rgba(10,40,52,0) 70%); pointer-events: none; }
.mv-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-block: 48px; }
/* 検索の枠：写真が透けて見える */
.mv .finder-box { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(255,255,255,.6); }
.mv .fb-grid, .mv .fb-col + .fb-col { border-color: rgba(15,95,115,.18); }
.mv .finder-box .fb-search input { background-color: rgba(255,255,255,.9) !important; }
/* パソコン用・スマホ用の出し分け（トップの検索枠。3.47版） */
.mv .fb-pc, .mv .mv-est { display: none; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (min-width: 901px) {
  .mv { min-height: 540px; align-items: start; }
  /* 3.47版：写真の車の顔が隠れないよう、検索枠を小さく詰める（幅400px・高さ約220px）。見積りボタンは左側へ */
  /* 3.52版：上が間延びしないよう、左の文字と検索の枠を同じだけ（24px）下げる（上の余白 44px→68px） */
  .mv-inner { padding-block: 68px 44px; grid-template-columns: 1fr 400px; align-items: start; }
  .mv .finder-box { width: 400px; justify-self: end; padding: 14px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(15,95,115,.12); background: rgba(255,255,255,.82); }
  .mv .fb-sp { display: none; }
  .mv .fb-pc { display: inline; }
  .mv .fb-grid { grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .mv .fb-col { padding: 0; gap: 10px; }
  .mv .fb-col + .fb-col { border-left: 0; border-top: 1px solid rgba(15,95,115,.18); padding-top: 10px; margin-top: 10px; }
  .mv .fb-more.fb-pc { font-size: 12.5px; text-decoration: none; white-space: nowrap; }
  .mv .fb-more.fb-pc:hover { text-decoration: underline; }
  .mv .area-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mv .area-pick select { height: 42px; padding: 0 28px 0 10px; background-position: right 10px center; }
  .mv .area-pick .ap-go { grid-column: 1 / -1; height: 42px; }
  .mv .fb-name { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .mv .finder-box .fb-search input { height: 42px; padding: 0 12px !important; background-image: none !important; font-size: 16px !important; }
  .mv .mv-est { display: inline-flex; width: auto; margin-top: 14px; padding: 11px 22px; font-size: 15px; font-weight: 900; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
  /* 3.51版：見出しの1行目の文字の頭（「イ」「専」などいちばん高い字）を、検索の枠の上の線にそろえる。
     行の高さ1.4の上の余白と字の上の余白で、字の頭は箱の上から約0.29em下にあるため、その分だけ上げる（下の文・ボタンとの間隔は変えない） */
  .mv h1 { margin-top: -.29em; }
}
/* 3.47版：1281px より広いと写真の車が大きく左へ寄り、検索枠や左のボタンにかかる。
   幅に合わせて写真の枠を高くし（車の屋根を検索枠より下に）、写真を右へずらす（車の後ろをボタンから離す） */
@media (min-width: 1281px) {
  .mv { min-height: calc(540px + (100vw - 1280px) * .3); }
  .mv > .photo img { right: calc((100vw - 1280px) * -.3); }
}
/* 画面が広いときは、検索の枠を右へ出す。トップだけ上の段のメニューも右端をそろえる */
@media (min-width: 1220px) {
  .mv .finder-box { margin-right: -48px; }
  body.home .site-header .gnav { margin-right: -48px; }
}
.mv h1 { color: var(--white); font-size: clamp(26px, 4.2vw, 44px); font-weight: 900; line-height: 1.4; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.mv h1 em { font-style: normal; color: #ffd08a; }
.mv .lead { color: rgba(255,255,255,.92); margin-top: 12px; font-size: 15.5px; }
.mv .hero-badges span { background: rgba(255,255,255,.95); }
.pref-pick { display: grid; gap: 10px; }
.pref-pick h3 { font-size: 13px; color: var(--ink-soft); }
/* やりたいカスタムから探す */
.styles4 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.style-tile { min-width: 0; }
.style-tile b, .style-tile > span { word-break: keep-all; overflow-wrap: anywhere; }
.style-tile { display: grid; align-content: start; gap: 2px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--main); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.style-tile b { font-size: 18px; font-weight: 900; color: var(--main); }
.style-tile > span { font-size: 13px; color: var(--ink-soft); }
.style-tile small { font-size: 13px; font-weight: 700; color: var(--accent); }
.style-tile:hover { border-color: var(--main); }
/* エリアのカード（写真付き） */
.area-card.with-photo { padding: 0; overflow: hidden; grid-template-columns: 1fr auto; }
.area-card.with-photo .photo { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.area-card.with-photo h3 { padding: 14px 0 0 18px; }
.area-card.with-photo .cnt { padding: 14px 18px 0 0; }
.area-card.with-photo p { padding: 0 18px 16px; }

.pick-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* 店舗カード：たて一列 */
.shop-list { display: grid; gap: 18px; }
.sc-title h3 .pr-mini { vertical-align: 4px; }
.sc-body.no-photo { grid-template-columns: 1fr; }
.feat-list { list-style: none; display: grid; gap: 6px; }
.feat-list li { display: grid; gap: 0; padding-left: 16px; position: relative; font-size: 13.5px; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--main); }
.feat-list b { font-size: 14px; }
.feat-list span { color: var(--ink-soft); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-grid > div { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.spec-grid > div:nth-child(3n) { border-right: 0; }
.spec-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.spec-grid dt { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.spec-grid dd { font-size: 14px; font-weight: 700; }
.spec-grid dd small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.spec-grid .price { font-size: 18px; }
/* 有料掲載：色をしっかり、文字を大きく */
.paid-card { border: 2px solid var(--accent) !important; box-shadow: 0 10px 28px rgba(239,108,26,.14) !important; }
.paid-card .sc-head { margin: -20px -20px 0; padding: 20px 20px 16px; background: linear-gradient(100deg, #fff1e4 0%, #fff8f1 60%, #fff 100%); border-radius: 14px 14px 0 0; border-bottom: 1px solid #f7dcc4; }
.paid-card .sc-head h3 { font-size: 23px; color: var(--main); }
.paid-card .rank-label { color: var(--accent-2); font-weight: 700; }
.paid-card .catch { font-size: 17px !important; color: #b4470a; }
.paid-card .feat-list li::before { background: var(--accent); }
.paid-card .feat-list b { color: var(--main); }
.paid-card .tag { background: #fff1e4; color: #b4470a; }
.paid-card .spec-grid { border-color: #f3d3b8; }
.paid-card .spec-grid dt { color: #b4470a; }
.paid-card .spec-grid .price { color: var(--accent); font-size: 21px; }
.paid-flag { background: linear-gradient(90deg, var(--accent), #f39a2c) !important; font-size: 12px !important; padding: 2px 12px !important; box-shadow: 0 2px 6px rgba(239,108,26,.3); }
/* 無料掲載：灰色寄りで控えめ */
.free-card { background: #fafbfb; padding: 16px 18px; gap: 12px; }
.free-card .rank { background: #8796a0; width: 34px; height: 34px; font-size: 16px; }
.free-card .sc-head h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.free-card .rank-label { color: var(--ink-soft); }
.free-card .catch { font-size: 14px !important; font-weight: 500 !important; color: var(--ink); }
.free-card .tag { background: #eef1f3; color: var(--ink-soft); }
.free-card .feat-list li::before { background: #a9b6bd; }
.free-card .feat-list b { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.free-card .spec-grid { background: #fff; }
.free-card .spec-grid dd { font-weight: 500; }
.free-card .spec-grid .price { color: var(--ink); font-size: 16px; }
.free-card .sc-foot .btn-main { background: #fff; color: var(--main); border: 2px solid var(--main); }
/* 3つのステップ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 6px; }
.step::before { counter-increment: st; content: "STEP " counter(st); font-family: var(--num); font-weight: 700; color: var(--main); font-size: 13px; letter-spacing: .1em; }
.step b { font-size: 17px; }
.step span { font-size: 14px; color: var(--ink-soft); }

/* かんたん3ステップ（矢印つき） */
.steps2 { display: flex; align-items: stretch; gap: 10px; }
.st { position: relative; flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px 22px; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; box-shadow: 0 8px 22px rgba(15,95,115,.07); }
.st-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--main); color: #fff; font-family: var(--num); font-weight: 700; font-size: 11px; letter-spacing: .12em; border-radius: 999px; padding: 3px 12px; display: flex; align-items: baseline; gap: 4px; }
.st-num b { font-size: 17px; letter-spacing: 0; }
.st-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--main); display: grid; place-items: center; }
.st-title { font-size: 19px; font-weight: 900; }
.st-text { font-size: 14px; color: var(--ink-soft); }
.st-arrow { flex: 0 0 auto; align-self: center; color: var(--accent); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff1e4; }
.st.goal { background: linear-gradient(160deg, #fff6ee, #ffe9d6); border: 2px solid var(--accent); }
.st.goal .st-num { background: var(--accent); }
.st.goal .st-ico { background: var(--accent); color: #fff; }
.st-free { position: absolute; top: 14px; right: 14px; background: #ffd166; color: #6b4a00; font-weight: 900; font-size: 12px; border-radius: 6px; padding: 2px 8px; transform: rotate(6deg); }
.st-btn { margin-top: 6px; padding: 10px 18px; font-size: 14px; }

/* ランキングのカード（上位3店） */
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t3 { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.t3 .photo { aspect-ratio: 16 / 10; }
.t3 .rank { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.t3-body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.t3-body h3 { font-size: 18px; line-height: 1.4; }
.t3-body h3 a:hover { color: var(--main); }
.t3-body .catch { font-size: 14px; }
.t3-body .btn { margin-top: auto; }
.mini-spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }
.mini-spec dt { color: var(--ink-soft); }

/* ===== 比較表 ===== */
.table-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 1040px; font-size: 13.5px; }
.cmp th, .cmp td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--main); color: var(--white); font-size: 13px; white-space: nowrap; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover > * { background: #f7fbfc; }
.cmp .col-shop { position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 210px; box-shadow: 1px 0 0 var(--line); }
.cmp thead .col-shop { background: var(--main); z-index: 2; }
.shop-cell { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.shop-cell .rank { width: 30px; height: 30px; font-size: 15px; }
.shop-cell a { font-weight: 700; color: var(--main); }
.shop-cell a:hover { text-decoration: underline; }
.shop-cell small { display: block; color: var(--ink-soft); font-size: 12px; }
.price { font-family: var(--num); font-weight: 700; color: var(--main); font-size: 17px; white-space: nowrap; }
.cmp .nowrap { white-space: nowrap; }
.cmp td.acc { min-width: 150px; }
.cmp td .price + br + small { white-space: nowrap; }
.cmp .menu-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 170px; }
.cmp .menu-tags span { font-size: 11.5px; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 0 7px; white-space: nowrap; }
.scroll-hint { display: none; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.yes { color: var(--green); font-weight: 700; white-space: nowrap; }
.maybe { color: var(--amber); font-weight: 700; white-space: nowrap; }
.no { color: #9aa5ab; white-space: nowrap; }

/* ===== エリアの一覧 ===== */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; transition: border-color .2s; }
.area-card:hover { border-color: var(--main); }
.city-links { display: flex; flex-wrap: wrap; gap: 10px; }
.city-links a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; font-weight: 700; color: var(--ink); }
.city-links a:hover { border-color: var(--main); color: var(--main); }
.area-card h3 { font-size: 18px; }
.area-card h3 small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.area-card .cnt { font-family: var(--num); font-size: 26px; font-weight: 700; color: var(--main); line-height: 1; }
.area-card .cnt small { font-family: var(--font); font-size: 12px; color: var(--ink-soft); margin-left: 2px; font-weight: 500; }
.area-card p { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }

/* 選ばれる理由 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* 選ばれる理由（悩み→解決） */
.why { background: linear-gradient(160deg, #fff6ec 0%, #fffaf4 45%, #e9f5f8 100%); color: var(--ink); padding-block: 56px; position: relative; overflow: hidden; border-top: 1px solid #f6e3d0; border-bottom: 1px solid #d9ebf0; }
.why::before { content: ""; position: absolute; right: -100px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.45), rgba(255,209,102,0) 70%); }
.why::after { content: ""; position: absolute; left: -120px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(15,95,115,.12), rgba(15,95,115,0) 70%); }
.why .wrap { position: relative; }
.why-kicker { display: inline-block; background: var(--accent); color: #fff; font-weight: 900; font-size: 13px; border-radius: 999px; padding: 3px 14px; }
.why h2 { font-size: 28px; font-weight: 900; margin: 10px 0 24px; line-height: 1.4; }
.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.why-stats > div { background: #fff; border: 1px solid #f1dfcc; border-radius: 14px; padding: 16px 12px; text-align: center; display: grid; gap: 2px; box-shadow: 0 6px 18px rgba(239,108,26,.08); }
.why-stats b { font-family: var(--num); font-size: 44px; line-height: 1; color: var(--accent); }
.why-stats b small { font-family: var(--font); font-size: 16px; margin-left: 2px; color: var(--ink); }
.why-stats span { font-size: 13px; color: var(--ink-soft); }
.why h2 { color: var(--main); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.worry { display: grid; gap: 12px; }
.w-q { position: relative; justify-self: start; background: var(--main); color: #fff; font-weight: 700; font-size: 15px; border-radius: 16px; padding: 12px 18px; max-width: 100%; }
.w-q::after { content: ""; position: absolute; left: 26px; bottom: -9px; border: 9px solid transparent; border-top-color: var(--main); border-bottom: 0; }
.w-q { padding-right: 22px; }
.w-a { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-left: 14px; box-shadow: 0 6px 18px rgba(15,95,115,.07); }
.w-a b { color: var(--ink); }
.w-a span { color: var(--ink-soft); opacity: 1 !important; }
.w-check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.w-a b { display: block; font-size: 17px; font-weight: 900; }
.w-a span { display: block; font-size: 13.5px; opacity: .88; margin-top: 2px; }
/* 選ばれる理由のいちばん下：夕暮れの写真の帯と見積りボタン（3.48版。写真は front-page.php の <picture>） */
.cta-photo { position: relative; margin-top: 40px; border-radius: 18px; overflow: hidden; min-height: 300px; display: grid; justify-items: end; align-items: center; text-align: center; background: #22343c; }
.cta-photo .cp-photo { position: absolute; inset: 0; display: block; }
.cta-photo .cp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 38%; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,40,52,0) 0%, rgba(10,40,52,.15) 35%, rgba(10,40,52,.6) 60%, rgba(10,40,52,.7) 100%); }
.cp-in { position: relative; z-index: 2; padding: 44px 64px 44px 20px; color: var(--white); }
.cp-t { font-size: 30px; font-weight: 900; line-height: 1.4; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.cp-s { margin: 8px 0 22px; font-size: 16px; opacity: .95; }
.cp-in .btn { min-width: 300px; padding: 15px 34px; font-size: 16px; }
@media (max-width: 760px) {
  .cta-photo { min-height: 440px; justify-items: stretch; align-items: start; }
  .cta-photo .cp-photo img { object-position: 0% 100%; }
  .cta-photo::before { background: linear-gradient(180deg, rgba(10,40,52,.72) 0%, rgba(10,40,52,.45) 38%, rgba(10,40,52,0) 60%); }
  .cp-in { padding: 26px 20px 0; }
  .cp-t { font-size: 22px; }
  .cp-s { font-size: 14px; }
  .cp-in .btn { min-width: 0; width: 100%; }
}
.reason { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 6px; }
.reason .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; }
.reason b { font-size: 16px; }
.reason span { font-size: 14px; color: var(--ink-soft); }

/* コラム */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.col-card .photo { aspect-ratio: 16 / 9; }
.col-card div.b { padding: 14px 16px 16px; display: grid; gap: 4px; }
.col-card time { font-size: 12px; color: var(--ink-soft); font-family: var(--num); }
.col-card b { font-size: 15px; line-height: 1.55; }

/* ===== エリア別・ランキングのページ ===== */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; line-height: 1.45; margin: 10px 0 8px; }
.page-head .lead { color: var(--ink-soft); max-width: 46em; font-size: 14.5px; }
.page-head .lead-auto { margin-top: 4px; }
/* 見積り・掲載についてのページ：見出しの横に写真のカード（3.49版。page.php）。スマホは見出しの上に帯で出す */
.ph-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; }
.ph-text { grid-column: 1; grid-row: 1; min-width: 0; }
.ph-photo { grid-column: 2; grid-row: 1; display: block; margin: 28px 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(15,95,115,.14); }
.ph-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .ph-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ph-text, .ph-photo { grid-column: auto; grid-row: auto; }
  .ph-photo { margin: 16px 0 6px; aspect-ratio: 16 / 7; border-radius: 14px; box-shadow: none; }
  .ph-listing img { object-position: 50% 92%; }
}
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; padding-bottom: 24px; }
.dd-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; margin-bottom: 22px; box-shadow: 0 6px 20px rgba(15,95,115,.06); }
.dd-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; color: var(--main); margin-bottom: 10px; }
.dd-title .dd-reset { margin-left: auto; }
.dd-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dd { position: relative; min-width: 0; }
.dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 9px 12px; transition: border-color .15s, background .15s; }
.dd summary:hover { border-color: #cfe2e7; }
.dd summary::-webkit-details-marker { display: none; }
.dd-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--main); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(15,95,115,.12); }
.dd-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.dd summary small { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.dd summary b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 15px; }
.dd summary > svg { color: var(--main); transition: transform .2s; flex: 0 0 auto; }
.dd[open] summary { border-color: var(--main); background: #fff; }
.dd[open] summary > svg { transform: rotate(180deg); }
.dd.is-active summary { background: var(--tint); border-color: #b9d8e0; }
.dd.is-active .dd-ico { background: var(--main); color: #fff; }
.dd.is-active summary b { color: var(--main); }
.dd-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15,95,115,.15); padding: 6px; display: grid; max-height: 320px; overflow-y: auto; }
.dd-item { font: inherit; font-size: 15px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.dd-item:hover { background: var(--tint); }
.dd-item[aria-pressed="true"] { background: var(--tint); color: var(--main); font-weight: 700; }
.dd-item small { color: var(--ink-soft); font-weight: 500; }
.form-dd { max-width: 520px; }
.form-dd summary b { white-space: normal; }
.dd-reset { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--main); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.filter-row > span { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--main); border-color: var(--main); color: var(--white); }

/* 店舗カード（エリア別・ランキング） */
.shop-list { display: grid; gap: 18px; }
.shop-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.sc-head { display: flex; gap: 14px; align-items: center; }
.sc-head h3 { font-size: 20px; line-height: 1.35; }
.sc-head h3 a:hover { color: var(--main); }
.sc-head .sub { font-size: 12.5px; color: var(--ink-soft); }
.sc-body { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.sc-body .photo { aspect-ratio: 4 / 3; border-radius: 12px; }
.sc-info { display: grid; gap: 10px; align-content: start; }
.sc-info .catch { font-weight: 700; font-size: 15.5px; }
.sc-table { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.sc-table dt, .sc-table dd { padding: 7px 12px; border-bottom: 1px solid var(--line); }
.sc-table dt { background: var(--bg); color: var(--ink-soft); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.sc-table dt:nth-last-of-type(1), .sc-table dd:last-of-type { border-bottom: 0; }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; font-size: 13.5px; }
.voice-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.voice .stars { font-size: 13px; }
.sc-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }

/* ===== 店舗の詳細ページ ===== */
.shop-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.shop-title { display: flex; gap: 16px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.shop-title h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; line-height: 1.3; }
.checked-on { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.shop-title .sub { font-size: 13px; color: var(--ink-soft); }
.shop-catch { margin-top: 8px; font-size: 15.5px; }
.hp-row { margin-top: 16px; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 22px; }
.quick h2 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.qs { display: grid; border-top: 1px solid var(--line); }
.qs-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qs dt { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.qs dd { min-width: 0; font-size: 14px; }
.qs-big { font-family: var(--num); font-size: 26px; color: var(--main); margin-right: 2px; }
.qs-note { display: block; font-size: 12px; color: var(--ink-soft); }
.qs-links { display: flex; flex-wrap: wrap; gap: 6px; }
.qs-link { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--main); background: var(--tint); border: 1px solid #cfe2e7; border-radius: 999px; padding: 4px 12px; cursor: pointer; text-decoration: none; }
.qs-link small { margin-left: 4px; font-weight: 500; color: var(--ink-soft); }
.qs-link:hover { border-color: var(--main); }
.guide-wrap { display: grid; gap: 16px; }
.guide-wrap h2 { font-size: 19px; margin-bottom: 10px; }
.wz { background: #fff; border: 2px solid var(--main); border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.wz-head { background: var(--main); color: #fff; padding: 14px 20px; }
.wz-head h2 { font-size: 18px; font-weight: 900; }
.wz-head p { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.wz-body { padding: 16px 20px 18px; display: grid; gap: 10px; }
.wz-count { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.wz-bar { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.wz-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .2s; }
.wz-q { font-size: 17px; font-weight: 900; }
.wz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.wz-opt { word-break: keep-all; overflow-wrap: anywhere; font: inherit; font-size: 15px; font-weight: 700; text-align: left; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.wz-opt:hover, .wz-opt.is-on { border-color: var(--main); background: var(--tint); color: var(--main); }
.wz-note, .wz-sum { font-size: 12.5px; color: var(--ink-soft); }
.wz-back { justify-self: start; font: inherit; font-size: 13px; font-weight: 700; color: var(--main); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.wz-form { display: grid; gap: 12px; }
.wz-field { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; }
.wz-field input, .wz-field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .wz-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wz-body { padding: 14px 14px 16px; } .wz-head { padding: 12px 14px; } .wz-head h2 { font-size: 16px; } }
.points { list-style: none; counter-reset: pt; display: grid; gap: 12px; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.points li::before { content: counter(pt); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--num); font-weight: 700; display: grid; place-items: center; }
.points b { font-size: 15.5px; }
.points span { font-size: 13.5px; color: var(--ink-soft); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 26px 13px 30px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 6px; background: var(--main); color: #fff; font-family: var(--num); font-size: 13px; display: grid; place-items: center; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 20px; color: var(--main); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 14px 30px; font-size: 14px; color: var(--ink); }
.unk { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; background: #eef1f3; border-radius: 4px; padding: 0 6px; font-style: normal; }
.sc-head { position: relative; }
.sc-title { min-width: 0; flex: 1 1 auto; }
.shop-list { grid-template-columns: minmax(0, 1fr); }
.shop-card { min-width: 0; grid-template-columns: minmax(0, 1fr); }
/* カードの余白を詰める */
.shop-list { gap: 12px; }
.shop-card { padding: 16px 18px; gap: 10px; }
.paid-card .sc-head { margin: -16px -18px 0; padding: 14px 18px 12px; }
.free-card { padding: 14px 16px; gap: 8px; }
.sc-head { gap: 12px; }
.sc-head h3 { line-height: 1.3; }
.sc-body { gap: 14px; }
.paid-card .sc-body { grid-template-columns: 38% 1fr; align-items: stretch; }
/* 有料掲載の写真：カードの左端まで広げて大きく */
.paid-card .sc-body .photo { margin: -10px 0 0 -18px; border-radius: 0; aspect-ratio: auto; min-height: 250px; height: calc(100% + 10px); }
.sc-info { gap: 6px; }
.sc-info .catch { line-height: 1.5; }
.feat-list { gap: 3px; }
.feat-list li { line-height: 1.5; }
/* 項目の数がお店ごとに変わるので、行の残りは横の項目が広がって埋める（空いたマスを作らない） */
.spec-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); }
.spec-grid > div { border: 0 !important; background: #fff; padding: 7px 10px; flex: 1 1 calc((100% - 5px) / 6); min-width: 0; }
.paid-card .spec-grid { background: #f3d3b8; }
.spec-grid dd { line-height: 1.4; }
.spec-grid > .spec-wide { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.spec-grid > .spec-wide dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.spec-grid > .spec-wide dd small { display: inline; }
.spec-grid .price { font-size: 17px; }
.paid-card .spec-grid .price { font-size: 18px; }
.voices { gap: 8px; }
.voice { padding: 8px 12px; gap: 2px; }
.sc-foot { padding-top: 10px; gap: 8px; }
.sc-foot .btn { padding-top: 9px; padding-bottom: 9px; }
.sc-title h3 { overflow-wrap: anywhere; }
.score { margin-left: auto; display: grid; justify-items: center; line-height: 1.1; background: #fff; border: 2px solid var(--main); color: var(--main); border-radius: 12px; padding: 6px 10px; min-width: 64px; flex: 0 0 auto; text-decoration: none; }
.score small { font-size: 10.5px; font-weight: 700; }
.score b { font-family: var(--num); font-size: 22px; }
.free-card .score { border-width: 1px; padding: 4px 8px; min-width: 56px; }
.free-card .score b { font-size: 18px; }
.rank.num { background: #fff !important; color: var(--ink-soft); border: 2px solid #cfd8dd; font-size: 16px; width: 34px; height: 34px; }
.paid-card .rank.num { border-color: var(--accent); color: var(--accent); }
.pr-head { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; border-radius: 4px; padding: 1px 8px; margin-right: 8px; vertical-align: 3px; }
.pr-block { margin-bottom: 30px; }
.ranked-head { margin-top: 6px; }
.sc-foot { align-items: center; }
.more-link { margin-right: auto; font-size: 14px; font-weight: 700; color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.sc-head h3 a { color: inherit; }
.chip small { margin-left: 4px; font-weight: 500; opacity: .75; }
.score-list { list-style: none; display: grid; gap: 8px; }
.score-list li { display: grid; grid-template-columns: minmax(0, 12em) 1fr; gap: 10px; align-items: center; font-size: 14px; }
.score-list i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--main) var(--w), #e3e9ec var(--w)); }
.score-list em.unk { justify-self: start; }
#s-score h2 small { font-size: 14px; color: var(--ink-soft); margin-left: 4px; }
.policy { display: grid; gap: 16px; max-width: 820px; }
.policy h2 { font-size: 18px; margin-bottom: 8px; }
.policy ol, .policy ul.crit { padding-left: 1.4em; display: grid; gap: 4px; }
.policy p { margin-top: 6px; }
.contact-form { max-width: 720px; }
.badge-sample { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--main); border-radius: 12px; padding: 8px 14px; background: #fff; margin-top: 10px; }
.badge-sample span { display: grid; line-height: 1.25; }
.badge-sample small { font-size: 11px; font-weight: 700; color: var(--ink); }
.badge-sample b { font-size: 16px; color: var(--main); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#order, #citation { scroll-margin-top: 110px; }
.policy-sub { font-size: 20px; font-weight: 900; margin: 18px 0 0; padding-left: 12px; border-left: 5px solid var(--accent); }
.badge-any, .badge-max { font-style: normal; display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 1px; }
.q em.badge-req, em.badge-req { font-style: normal; display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 1px; background: #c0392b !important; color: #fff !important; }
em.badge-any { font-style: normal; display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 1px; background: #e3f2e6; color: #1f7a3a; border: 1px solid #b9dfc3; }
.q span em.badge-any { background: #e3f2e6 !important; color: #1f7a3a !important; border: 1px solid #b9dfc3; }
.q span em.badge-max { background: #eef1f3 !important; color: var(--ink-soft) !important; margin-left: 4px; }
.any-note { font-size: 13px; color: #1f7a3a; background: #f1f9f3; border-radius: 8px; padding: 6px 10px; margin: -2px 0 2px; }
.consent { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.consent p { font-size: 12.5px; color: var(--ink-soft); }
.ph { background: #fff4d6; color: #7a5200; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 8em; color: var(--ink-soft); font-size: 13px; background: var(--bg); }
.near-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--main); background: var(--tint); border: 1px solid #cfe2e7; border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }
.shop-card { scroll-margin-top: 150px; transition: box-shadow .3s; }
.shop-card.flash { box-shadow: 0 0 0 4px rgba(239,108,26,.45); }
.btn-hp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--main); border: 2px solid var(--main); }
.btn-hp:hover { background: var(--tint); }
.side-box .cta { display: grid; gap: 8px; }
.side-box .cta .btn { width: 100%; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; padding-block: 28px 64px; }
.shop-main { display: grid; gap: 38px; min-width: 0; }
.ss h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; padding-left: 12px; border-left: 5px solid var(--main); line-height: 1.4; }
.ss { scroll-margin-top: 84px; }
.gallery { display: grid; gap: 8px; }
.gallery-main { aspect-ratio: 16 / 9; border-radius: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumbs button { aspect-ratio: 4 / 3; border-radius: 8px; border: 2px solid transparent; cursor: pointer; font-size: 12px; }
.thumbs button[aria-pressed="true"] { border-color: var(--main); }
.basic { display: grid; grid-template-columns: 9em 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.basic dt, .basic dd { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.basic dt { background: var(--bg); color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.basic dt:nth-last-of-type(1), .basic dd:last-of-type { border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.fact span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.fact b { font-size: 15px; }
.fact small { font-size: 12px; color: var(--ink-soft); }
.features { list-style: none; display: grid; gap: 10px; }
.features li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.features b { color: var(--main); }
.features span { font-size: 14px; color: var(--ink-soft); }
.menu-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.menu-table th, .menu-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.menu-table thead th { background: var(--tint); color: var(--main); font-size: 12.5px; }
.menu-table tbody th { font-weight: 500; }
.menu-table td { white-space: nowrap; }
.menu-table tbody tr:last-child > * { border-bottom: 0; }
.specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.case .photo { aspect-ratio: 4 / 3; }
.case div.b { padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; }
.case b { font-size: 14.5px; line-height: 1.5; }
.case small { color: var(--ink-soft); }
.review-sum { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 12px; align-items: center; }
.review-sum .big { font-family: var(--num); font-size: 44px; font-weight: 700; line-height: 1; }
.review-sum .stars { font-size: 20px; margin: 6px 0; }
.bars { display: grid; gap: 4px; font-size: 12.5px; }
.bar { display: grid; grid-template-columns: 2.5em 1fr 2.5em; gap: 8px; align-items: center; color: var(--ink-soft); }
.bar i { display: block; height: 8px; border-radius: 99px; background: #e6ebee; overflow: hidden; }
.bar i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--star); }
.review-list { display: grid; gap: 10px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.review .vh { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.review .vh b { color: var(--ink); font-size: 14px; }
.staff { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.staff .photo { width: 96px; height: 96px; border-radius: 50%; font-size: 10px; }
.staff small { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.story { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.story h3 { color: var(--main); font-size: 19px; line-height: 1.6; margin-bottom: 8px; }
.story p { line-height: 2; margin-bottom: .8em; }
.map { aspect-ratio: 16 / 7; border-radius: 12px; margin-top: 12px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mini { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mini:hover { border-color: var(--main); }
.mini .photo { aspect-ratio: 4 / 3; border-radius: 8px; font-size: 0; }
.mini b { color: var(--main); font-size: 14px; display: block; }
.mini small { font-size: 12px; color: var(--ink-soft); }
.side { position: sticky; top: 84px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.side-box .price { font-size: 28px; }
.side-box .cta { display: grid; gap: 8px; }
.cta-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 汎用ページ */
.plain { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.plain a { overflow-wrap: anywhere; }

/* ===== フッター ===== */
.site-footer { background: #13303a; color: #c6d4d9; padding-block: 44px 26px; font-size: 13px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--white); font-size: 14px; margin-bottom: 10px; }
.foot-lead { line-height: 1.8; }
.name-search { margin-bottom: 10px; }
/* ヘッダーの企業名検索 */
.hsearch { position: relative; flex: 0 1 200px; width: 200px; margin: 0 6px; }
.gnav { align-items: center; margin-left: auto; }
.site-header .hsearch input { box-sizing: border-box; height: 36px; padding: 0 10px 0 32px !important; font-size: 13.5px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; background-color: #fff !important; background-position: 11px center !important; background-size: 14px !important; }
.site-header .hsearch input:focus { border-color: var(--main) !important; }
.site-header .hs-drop { left: auto; right: 0; width: 300px; }
.hsearch .name-search { margin: 0; }
.hsearch input { padding-top: 9px; padding-bottom: 9px; font-size: 15px; }
.hs-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin: 0; box-shadow: 0 12px 30px rgba(15,95,115,.15); max-height: 60vh; overflow-y: auto; z-index: 60; }
.hs-drop .name-none { padding: 6px 8px; }
.opt[hidden] { display: none; }
.name-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px 12px 42px; border: 2px solid var(--line); border-radius: 10px; background: #f6f8f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6670' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 14px center; }
.name-search input:focus { outline: none; border-color: var(--main); background-color: #fff; }
.name-result { display: grid; gap: 8px; margin-top: 10px; }
.name-result:empty { display: none; }
.name-hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.name-hit:hover { border-color: var(--main); }
.name-hit b { color: var(--main); }
.name-hit small { color: var(--soft); }
.name-none { color: var(--soft); font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid #2a4a55; font-size: 11.5px; color: #98abb2; line-height: 1.9; }

/* ===== スマートフォン ===== */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 8px; gap: 6px; }
  .gnav { width: 100%; flex-wrap: wrap; margin: 0; }
  .gnav::-webkit-scrollbar { display: none; }
  .gnav a { padding: 6px 9px; font-size: 13px; }
  .logo-text small, .logo-text strong { font-size: 17px; }
  .logo-a { width: 38px; height: 38px; }
  .gnav a[data-nav="top"] { display: none; }
  .gnav a.nav-cta { margin-left: auto; }
  .gnav { gap: 6px; align-items: center; }
  .gnav .nav-pill { background: var(--tint); color: var(--main); border: 1px solid #cfe2e7; border-radius: 999px; padding: 6px 11px; font-size: 13px; }
  .gnav .hs-toggle { display: inline-flex; }
  .gnav .lbl-long { display: none; }
  .hs-toggle[aria-expanded="true"] { background: var(--main); color: #fff; border-color: var(--main); }
  .site-header:not(.show-search) .hsearch { display: none; }
  .fb-grid { grid-template-columns: 1fr; }
  .fb-col + .fb-col { border-left: 0; border-top: 1px solid var(--line); }
  .hsearch { order: 10; flex-basis: 100%; width: auto; max-width: none; margin: 4px 0 2px; }
  .site-header .hsearch input { font-size: 16px !important; height: 40px; }
  .site-header .hs-drop { left: 0; width: auto; }
  .shop-card { scroll-margin-top: 190px; }
  #order, #citation { scroll-margin-top: 180px; }
  .score-list li { grid-template-columns: 1fr; gap: 4px; }
  .sc-foot .more-link { flex: 0 0 100%; text-align: center; margin: 0 0 4px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 30px 34px; }
  .mv { min-height: 0; }
  .mv-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 36px 28px; }
  .mv::after { background: linear-gradient(180deg, rgba(10,40,52,.65), rgba(10,40,52,.35)); }
  .styles4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .styles4 > .style-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps, .top3, .area-grid, .reasons, .columns, .footer-grid { grid-template-columns: 1fr; }
  .steps2 { flex-direction: column; gap: 22px; }
  .st-arrow { transform: rotate(90deg); margin-block: -8px; }
  .why { padding-block: 40px; }
  .dd-panel { padding: 12px; }
  .dd-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dd-row .dd:last-child { grid-column: 1 / -1; }
  .dd summary { padding: 8px 10px; gap: 8px; }
  .dd-ico { width: 30px; height: 30px; }
  .qs-row { grid-template-columns: 1fr; gap: 6px; }
  .quick { padding: 16px; }
  .why h2 { font-size: 21px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .why-stats b { font-size: 34px; }
  .why-list { grid-template-columns: 1fr; }
  section.block { padding-block: 40px; }
  .scroll-hint { display: block; }
  .sc-body { grid-template-columns: 1fr; }
  .spec-grid > div { flex-basis: calc((100% - 1px) / 2); }
  .paid-card .sc-body { grid-template-columns: 1fr; }
  .paid-card .sc-body .photo { margin: -10px -18px 0; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .spec-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .spec-grid > div:nth-child(2n) { border-right: 0; }
  .spec-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .spec-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .menu-table td { white-space: normal; }
  .voices { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; padding-bottom: 100px; }
  .side { position: static; order: -1; }
  .side-box .cta { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .specs, .cases { grid-template-columns: 1fr; }
  .review-sum { grid-template-columns: 1fr; }
  .basic { grid-template-columns: 7em 1fr; }
  .staff { grid-template-columns: 72px 1fr; }
  .staff .photo { width: 72px; height: 72px; }
  .cta-bar { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cta-bar .btn { padding: 11px 8px; }
  .sc-foot .btn { flex: 1; white-space: nowrap; font-size: 14px; padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== 改訂で追加 ===== */
.pr-badge { position: absolute; top: 12px; right: 12px; background: rgba(29,39,48,.82); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; }
.pr-mini { display: inline-block; font-size: 10px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.paid-card { border: 2px solid var(--main); box-shadow: 0 8px 24px rgba(15,95,115,.08); position: relative; }
.paid-flag { position: absolute; top: -11px; left: 18px; background: var(--main); color: var(--white); font-size: 11px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.sc-body .photo { position: relative; }
.free-list { display: grid; gap: 8px; }
.free-row { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.free-row .rank { width: 30px; height: 30px; font-size: 15px; background: #8796a0; }
.free-row b a { color: var(--main); }
.free-row b a:hover { text-decoration: underline; }
.free-row small { display: block; font-size: 12px; color: var(--ink-soft); }
.free-row .tags .tag { background: var(--bg); color: var(--ink-soft); }
.list-label { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.list-label h3 { font-size: 17px; }
.list-label span { font-size: 12.5px; color: var(--ink-soft); }
.cta-band { background: var(--main); color: var(--white); border-radius: 16px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band b { font-size: 20px; font-weight: 900; }
.cta-band p { opacity: .85; font-size: 14px; }
.cta-band { background: linear-gradient(120deg, var(--main), #1b8aa3); position: relative; overflow: hidden; }
.cta-band .btn { background: var(--accent); color: var(--white); box-shadow: 0 4px 0 var(--accent-2); }
.cta-band .btn:hover { background: var(--accent-2); }

/* 見積りツール */
.est-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-block: 28px 64px; }
.est-form { display: grid; gap: 18px; min-width: 0; }
.est-step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; border-width: 1px; }
.est-step legend { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.est-step legend + * { clear: both; }
.est-step legend .n { width: 28px; height: 28px; border-radius: 50%; background: var(--main); color: var(--white); display: grid; place-items: center; font-family: var(--num); font-size: 15px; flex: 0 0 auto; }
.est-step legend small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.q { display: grid; gap: 8px; margin-bottom: 16px; }
.q:last-child { margin-bottom: 0; }
.q > span { font-size: 13.5px; font-weight: 700; }
.q > span em { font-style: normal; font-size: 11px; color: var(--white); background: #c0392b; border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.opt span small { font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }
.opt input:checked + span { border-color: var(--main); background: var(--tint); color: var(--main); box-shadow: inset 0 0 0 1px var(--main); }
.opt input:focus-visible + span { outline: 3px solid var(--main-2); outline-offset: 2px; }
.est-step input[type=text], .est-step input[type=email], .est-step textarea { font: inherit; font-size: 16px; width: 100%; border: 1px solid #cdd6dc; border-radius: 10px; padding: 10px 12px; background: var(--white); color: var(--ink); }
.est-step input:focus, .est-step textarea:focus { outline: 3px solid rgba(15,95,115,.2); border-color: var(--main); }
.est-step [aria-invalid="true"] { border-color: #c0392b; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.agree input { margin-top: 5px; }
.est-err { color: #c0392b; font-weight: 700; font-size: 14px; }
.est-side { position: sticky; top: 84px; }
.est-sum { background: var(--white); border: 2px solid var(--main); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.est-sum h3 { font-size: 15px; }
.est-sum .amt { font-family: var(--num); font-size: 30px; font-weight: 700; color: var(--main); line-height: 1.2; }
.est-sum .amt small { font-family: var(--font); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.est-sum ul { list-style: none; display: grid; gap: 4px; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }
.est-sum li { display: flex; justify-content: space-between; gap: 8px; }
.est-sum li span:last-child { font-family: var(--num); white-space: nowrap; color: var(--ink-soft); }
.est-done { background: var(--white); border: 2px solid var(--green); border-radius: 16px; padding: 28px; display: grid; gap: 10px; }
.est-done h2 { color: var(--green); font-size: 22px; }
.flow-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.flow-mini div { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 13px; }
.flow-mini b { display: block; color: var(--main); font-size: 14px; }

@media (max-width: 900px) {
  .free-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .free-row .tags, .free-row .fr-price { display: none; }
  .est-layout { grid-template-columns: 1fr; padding-bottom: 110px; }
  .est-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; }
  .est-sum { border-radius: 16px 16px 0 0; border-width: 2px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .est-sum h3 { font-size: 12px; grid-column: 1; }
  .est-sum .amt { font-size: 22px; grid-column: 1; }
  .est-sum ul, .est-sum .note { display: none; }
  .est-sum .btn { grid-column: 2; grid-row: 1 / span 2; }
  .flow-mini { grid-template-columns: 1fr; }
  .cta-bar { grid-template-columns: 1fr; }
}

/* ===== 次に見るページへの道（見積り・掲載について・運営者情報・見つからないページ・0件のとき・トップ・フッター） ===== */
.next-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.est-done .next-links { margin-top: 4px; }
.text-link { color: var(--main); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.est-more { margin-top: 4px; }
.no-alt { margin-top: 12px; }
.no-alt button.area-chip { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.no-alt .area-chip:hover { border-color: var(--main); background: var(--tint); }
/* トップ：都道府県から探す（3.63版。地方ごとの行に47都道府県、下に「市区町村から探す」） */
.pf-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.pf-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #eef2f4; }
.pf-row:last-child { border-bottom: 0; }
.pf-rg { flex: none; width: 8em; padding-top: 5px; font-size: 14.5px; font-weight: 900; line-height: 1.5; }
.pf-rg em { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.pf-ps { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pf-p { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
a.pf-p { background: var(--main); color: var(--white); font-weight: 900; }
a.pf-p span { font-family: var(--num); font-weight: 500; font-size: 12.5px; opacity: .85; }
a.pf-p:hover { background: var(--main-2); }
.pf-p.off { background: #f1f4f6; color: #9aa6ae; }
.pf-cities { margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.pf-cities summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; font-size: 15px; font-weight: 900; color: var(--main); cursor: pointer; list-style: none; }
.pf-cities summary::-webkit-details-marker { display: none; }
.pf-cities summary::after { content: "＋"; flex: none; font-size: 18px; line-height: 1; }
.pf-cities[open] summary::after { content: "−"; }
.pf-inner { padding: 0 20px 10px; }
.pf-cl { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #eef2f4; font-size: 13.5px; line-height: 1.9; }
.pf-cp { flex: none; width: 5.5em; font-weight: 900; color: var(--main); }
.pf-cc { min-width: 0; }
.pf-cc a { display: inline-block; margin-right: 14px; color: var(--ink); white-space: nowrap; }
.pf-cc a:hover, .pf-cp:hover { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
/* トップの検索枠：都道府県 → 市区町村 → 探す（文字は16px：スマホで拡大されないように） */
.area-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.area-pick select { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; padding: 0 34px 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f5f73' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid #cdd6dc; border-radius: 10px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.area-pick select:disabled { color: #9aa6ae; background-color: #f1f4f6; cursor: default; }
.area-pick .ap-go { height: 44px; font: inherit; font-size: 16px; font-weight: 900; color: var(--white); background: var(--main); border: 0; border-radius: 10px; cursor: pointer; }
.area-pick .ap-go:hover { background: var(--main-2); }
.area-pick .ap-go:disabled { background: #c5d0d6; cursor: default; }
/* フッター：左にサイトの名前、右に4つの欄（たたんで開く形。3.112版） */
.footer-grid { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 36px; align-items: start; }
.foot-acc { border-top: 1px solid #2a4a55; }
.foot-sec { border-bottom: 1px solid #2a4a55; }
.foot-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 4px; list-style: none; cursor: pointer; }
.foot-sec > summary::-webkit-details-marker { display: none; }
.foot-sec > summary::after { content: "\25B6"; flex: none; font-size: 10px; color: #98abb2; transition: transform .2s; }
.foot-sec[open] > summary::after { transform: rotate(90deg); }
.foot-sec > summary:hover h4 { text-decoration: underline; }
.foot-sec > summary:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 4px; }
.site-footer .foot-sec > summary h4 { margin: 0; }
.site-footer .foot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 2px 16px; padding: 2px 4px 16px; }
.site-footer .foot-list-wide { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.foot-list a { display: inline-block; padding: 4px 0; }
/* 「サイトについて」はいつも開いた形（3.113版）。見出しは、たたむ欄の見出しと同じ高さ・左の位置 */
.site-footer .foot-sec-open > h4 { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 4px; }
.opt-pref { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.opt-pref:first-child { margin-top: 0; }
.sp-bar { display: none; }

/* ===== 回遊（2回目）：一緒に考えたいカスタム・気になるお店 ===== */
.styles4.styles-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.fav-btn { flex: 0 0 auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--main); background: var(--white); border: 1px solid #cfe2e7; border-radius: 999px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.fav-btn:hover { background: var(--tint); }
.fav-btn[aria-pressed="true"] { color: #c2410c; border-color: #f3c3a4; background: #fff4ec; }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }
.fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; background: #fff4ec; border: 1px solid #f3c3a4; border-radius: 12px; }
.fav-bar[hidden] { display: none; }
.fav-ttl { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: #c2410c; margin-right: auto; }
.fav-note { flex-basis: 100%; font-size: 12px; color: var(--ink-soft); }
/* 気になるお店のページ（/kininaru/）：県ごとの見出し */
.fav-group { margin: 0 0 22px; }
.fav-pref { display: flex; align-items: baseline; gap: 4px; margin: 0 0 12px; padding-left: 10px; border-left: 5px solid var(--main); font-size: 19px; font-weight: 900; color: var(--main); }
.fav-pref small { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.fav-empty .notice { margin-bottom: 12px; }

/* ===== 画像（3.25版）：カスタムのイラスト・早見表・地図 ===== */
.style-tile .style-ico { width: 56px; height: 56px; border-radius: 10px; margin-bottom: 6px; }
.h1-ico { display: flex; align-items: center; gap: 12px; }
.h1-ico .h1-ico-img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; }
.h1-ico h1 { min-width: 0; }
.chart-link { margin-top: 12px; text-align: right; font-size: 13.5px; }
.chart-link a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.area-map { margin: 18px 0 0; max-width: 720px; }
.area-map img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.area-map figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-soft); display: grid; gap: 2px; }
.area-map .cap-main { font-size: 13px; font-weight: 700; color: var(--ink); }
.page-head .lead-who { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 3px 12px; font-size: 13.5px; font-weight: 700; color: var(--main); background: var(--tint); border-radius: 999px; }
.page-head .lead-who::before { content: "✓"; color: var(--accent); }

/* ===== 早見表・図解のカード（3.26版）と、大きく表示 ===== */
#styles .fig-card { margin-top: 16px; }
.fig-cards { display: grid; gap: 16px; }
.fig-card { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fig-card figure { margin: 0; min-width: 0; }
.fig-thumb { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.fig-thumb img { display: block; width: 100%; height: auto; }
.fig-card figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.fig-body { display: grid; gap: 12px; justify-items: start; }
.fig-body h3 { font-size: 18px; font-weight: 900; color: var(--main); line-height: 1.4; }
.zoom-on, .zoom-on body { overflow: hidden; }
.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(10, 30, 38, .86); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 48px 16px 12px; }
.zoom-scroll { overflow: auto; -webkit-overflow-scrolling: touch; display: grid; place-items: center; min-height: 0; }
.zoom-scroll img { display: block; max-width: min(1200px, 100%); max-height: none; height: auto; background: #fff; border-radius: 8px; }
.zoom-close { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.zoom-hint { display: none; margin-top: 8px; text-align: center; font-size: 12px; color: rgba(255,255,255,.85); }

/* ===== エリアのページ（3.28版）：区の見出し・近くの市のお店・よくある質問へ ===== */
.ward-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 4px; margin: 10px 0 -4px; padding-left: 10px; border-left: 4px solid var(--main); font-size: 16px; font-weight: 900; color: var(--main); }
.ward-head small { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.shop-list > .ward-head:first-child { margin-top: 0; }
.near-head { margin-top: 32px; }
.near-more { margin-top: 18px; }
.near-more h3 { font-size: 15px; font-weight: 900; margin-bottom: 10px; }
.faq-more { margin-top: 12px; font-size: 14px; }
.faq-more a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===== データで見る（3.34版） ===== */
.dnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.dnums > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.dnums b { font-family: var(--num); font-size: 30px; font-weight: 700; color: var(--main); line-height: 1.2; }
.dnums b small { font-family: var(--font); font-size: 14px; color: var(--ink); margin-left: 2px; }
.dnums span { font-size: 12.5px; color: var(--ink-soft); }
.dsec { max-width: 1000px; }
.dsec > p { margin-top: 8px; }
.dh2 { font-size: 20px; font-weight: 900; margin: 30px 0 12px; padding-left: 12px; border-left: 5px solid var(--main); }
.dsec > .dh2:first-child { margin-top: 0; }
.dbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.dbox-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dmap { margin: 0; max-width: none; }
.dbars { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.dbars li { display: grid; grid-template-columns: 9em minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font-size: 14px; }
.dbar-name a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.dbar-track { height: 12px; background: #e8eef0; border-radius: 999px; overflow: hidden; }
.dbar-fill { display: block; height: 100%; background: var(--main); border-radius: 999px; }
.dbar-n { text-align: right; font-weight: 700; font-family: var(--num); }
.dnote { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.dbox .dnote { margin-top: 12px; }
.dtable-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: center; white-space: nowrap; }
.dtable thead th { background: var(--main); color: #fff; font-weight: 700; }
.dtable tbody th { text-align: left; font-weight: 700; background: #fff; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.dtable thead th:first-child { position: sticky; left: 0; z-index: 2; }
.dtable tbody th small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }
.dtable td a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dtable .dzero { color: #a9b6bb; text-decoration: none; }
.dtable td.dcol-cond { background: #fff8f1; }
.dtable thead th.dcol-cond { background: var(--main); }
.data-link { margin-top: 10px; font-size: 14px; }
.data-link a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .dnums { gap: 8px; }
  .dnums > div { padding: 10px 10px; }
  .dnums b { font-size: 24px; }
  .dbox-map { grid-template-columns: 1fr; }
  .dbars li { grid-template-columns: 6.5em minmax(0, 1fr) 3em; gap: 8px; font-size: 13.5px; }
}

/* ===== 仕上げ（3.31版）：近くの市のお店も見る・紹介文を畳む ===== */
.near-toggle { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--main); cursor: pointer; }
.near-toggle[hidden] { display: none; }
.near-toggle input { width: 18px; height: 18px; accent-color: var(--main); margin: 0; }
.near-wrap { margin-top: 18px; }
.near-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 0 -4px; font-size: 15px; font-weight: 900; color: var(--ink-soft); }
.near-sub::before { content: ""; flex: 0 0 18px; height: 2px; background: var(--line); }
.near-wrap .near-sub { margin: 0 0 10px; }
.intro-more { display: none; }
@media (max-width: 900px) {
  .shop-card .intro:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .intro-more { display: inline-block; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--main); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .intro-more[hidden] { display: none; }
}

/* ===== お役立ちコラム（記事）（3.30版。3.81版で「見本_記事のデザイン」に合わせた） ===== */
/* 記事のページ（single.php）：幅760pxの1列 */
.col-page { padding-top: 0; }
.col-wrap { max-width: 792px; }
.col-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.col-chip { font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--main); background: var(--tint); border-radius: 999px; padding: 3px 12px; }
a.col-chip:hover { text-decoration: underline; }
.col-h1 { font-size: 25px; font-weight: 900; line-height: 1.5; letter-spacing: .02em; margin: 4px 0 10px; }
.col-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--ink-soft); }
.col-meta b { color: var(--ink); font-weight: 500; }
.col-meta a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.col-hero { margin: 18px 0 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--line); }
.col-hero picture, .col-hero img { display: block; width: 100%; height: 100%; }
.col-hero img { object-fit: cover; object-position: 50% 45%; }
.col-rel { margin-top: 36px; }
.col-rel h2 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
/* 本文 */
.col-body { margin-top: 22px; font-size: 15.5px; line-height: 1.95; overflow-wrap: anywhere; }
.col-body p { margin: 12px 0; }
.col-body .col-intro > p:first-child { font-size: 16px; margin-top: 0; }
.col-body a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.col-body ul, .col-body ol { margin: 12px 0; padding-left: 1.5em; }
.col-body li + li { margin-top: 4px; }
.col-body img { max-width: 100%; height: auto; }
.col-body figure { margin: 18px 0; }
.col-body h2 { display: flex; gap: 12px; align-items: flex-start; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 21px; font-weight: 900; line-height: 1.5; scroll-margin-top: 116px; } /* スマホのヘッダー（約97px）の下に出す */
.col-body h2 .n { flex: 0 0 auto; padding-top: 2px; font: 800 30px/1 var(--num); color: var(--accent); }
.col-body h2.src-h { margin-top: 40px; font-size: 18px; }
.col-body h3 { margin: 30px 0 10px; padding-left: 12px; border-left: 4px solid var(--main-2); font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--main); }
.col-body .table-box { overflow-x: auto; margin: 16px 0; }
.col-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.col-body th, .col-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.col-body th { background: var(--tint); font-weight: 700; }
/* 白いチェックの丸の箇条書き */
.col-body ul.checks { list-style: none; padding: 0; }
.col-body .checks li { position: relative; margin: 6px 0; padding-left: 30px; line-height: 1.7; }
.col-body .checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
/* 枠・この記事でわかること・目次 */
.col-body .c-box { margin: 16px 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.col-body .c-box > :first-child { margin-top: 0; }
.col-body .c-box > :last-child { margin-bottom: 0; }
.col-body .c-learn { margin: 20px 0; background: var(--tint); border: 0; }
.col-body .c-box-h { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: var(--main); }
.col-body .c-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.col-body .c-toc li { counter-increment: toc; margin: 0; padding: 7px 0; border-top: 1px dashed var(--line); }
.col-body .c-toc li:first-child { border-top: 0; }
.col-body .c-toc a { display: flex; gap: 10px; align-items: baseline; line-height: 1.6; color: var(--ink); text-decoration: none; }
.col-body .c-toc a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font: 700 14px var(--num); color: var(--accent); }
.col-body .c-toc a:hover { color: var(--main); text-decoration: underline; }
/* 注意の枠 */
.col-body .c-note { position: relative; margin: 18px 0; padding: 14px 16px 14px 52px; background: var(--amber-bg); border: 1px solid var(--line); border-color: color-mix(in srgb, var(--amber) 30%, var(--white)); border-radius: 14px; }
.col-body .c-note::before { content: "!"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--white); font: 800 15px/24px var(--num); text-align: center; }
.col-body .c-note .c-pt { margin: 0 0 2px; font-weight: 700; color: var(--amber); }
.col-body .c-note p { margin: 0; }
/* 図・写真 */
.col-body .c-fig { padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.col-body .c-fig img { display: block; width: 100%; height: auto; }
.col-body .c-fig figcaption { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); text-align: center; }
.col-body .c-fig.photo { padding: 0; overflow: hidden; }
.col-body .c-fig.photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.col-body .c-fig.photo figcaption { margin: 0; padding: 6px 12px 8px; }
/* 写真の出どころ：写真ごとには出さず、記事のいちばん下（出どころの下）に小さな灰色の字で1行（3.89版） */
.col-body .col-photo-cr { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
/* カード（3つの見方など） */
.col-body .c-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
.col-body .c-stat { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.col-body .c-stat .k { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); font: 800 18px var(--num); color: var(--main); }
.col-body .c-stat .t { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.col-body .c-stat .v { font-size: 17px; font-weight: 900; line-height: 1.4; }
.col-body .c-stat .big { margin-right: 2px; font: 800 30px/1.1 var(--num); color: var(--accent); }
/* 式・計算の例 */
.col-body .c-formula { margin: 12px 0; padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: 12px; font-size: 15px; line-height: 1.7; letter-spacing: .02em; }
.col-body .c-formula small { display: block; font-size: 12px; opacity: .7; }
.col-body .c-calc { margin: 12px 0; padding: 12px 16px; background: var(--white); border: 2px dashed var(--main-2); border-radius: 12px; }
.col-body .c-calc .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--main); }
.col-body .c-calc .eq { margin-top: 2px; font: 600 18px/1.6 var(--num); }
.col-body .c-calc .eq em { font-style: normal; font-size: 22px; font-weight: 800; color: var(--accent); }
/* 2列の枠（cols・cases） */
.col-body .c-two { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.col-body .c-two > div { min-width: 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.col-body .c-two .c-pt { margin: 0 0 6px; font-size: 14.5px; font-weight: 900; line-height: 1.5; }
.col-body .c-two p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.8; }
.col-body .c-two ul.checks { margin: 0; }
.col-body .c-cases .c-pt { margin-top: 6px; font-size: 16px; }
.col-body .c-cases p { font-size: 13px; color: var(--ink-soft); }
.col-body .c-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--main); color: var(--white); font: 700 11px/1.6 var(--num); letter-spacing: .12em; }
.col-body .c-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.col-body .c-parts span { padding: 2px 10px; background: var(--white); border: 1px solid var(--main-2); border-radius: 8px; font-size: 12.5px; line-height: 1.6; color: var(--main); }
.col-body .c-pm { font: 800 34px/1.2 var(--num); color: var(--accent); }
.col-body .c-pm small { font-size: 16px; }
.col-body .c-swap { display: flex; align-items: center; gap: 10px; font: 800 28px/1.3 var(--num); }
.col-body .c-swap s { font-weight: 600; color: var(--ink-soft); }
.col-body .c-swap .ar { font-size: 20px; color: var(--ink-soft); }
.col-body .c-swap em { font-style: normal; color: var(--accent); }
/* 写真と文（media） */
.col-body .c-media { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.col-body .c-media figure { margin: 0; min-width: 0; }
.col-body .c-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.col-body .c-media .c-tx { min-width: 0; }
.col-body .c-media .c-tx > :first-child { margin-top: 0; }
.col-body .c-media .c-tx > :last-child { margin-bottom: 0; }
/* 青の帯（cta） */
.col-body .c-cta { display: grid; grid-template-columns: 1fr; margin: 30px 0; border-radius: 18px; overflow: hidden; background: linear-gradient(120deg, var(--main), var(--main-2)); color: var(--white); }
.col-body .c-cta .c-in { padding: 20px; min-width: 0; }
.col-body .c-cta .c-pt { margin: 0 0 4px; font-size: 18px; font-weight: 900; line-height: 1.5; }
.col-body .c-cta p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; opacity: .9; }
.col-body .c-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.col-body .c-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.col-body .c-btn.o { background: var(--accent); color: var(--white); }
.col-body .c-btn.w { background: var(--white); color: var(--main); }
.col-body .c-btn:hover { opacity: .9; }
.col-body .c-cta .c-ph { position: relative; margin: 0; min-width: 0; }
.col-body .c-cta .c-ph picture { display: block; height: 100%; }
.col-body .c-cta .c-ph img { display: block; width: 100%; height: 150px; object-fit: cover; }
/* まとめの枠 */
.col-body .c-sum { position: relative; margin: 26px 0 16px; padding: 22px 18px 18px; background: var(--white); border: 2px solid var(--main); border-radius: 16px; }
.col-body .c-sum .h { position: absolute; top: -13px; left: 16px; padding: 2px 14px; border-radius: 999px; background: var(--main); color: var(--white); font-size: 13px; font-weight: 900; line-height: 1.7; }
.col-body .c-sum ul.checks { margin: 0; }
/* 出どころ：白い小さなカード */
.col-body ul.src { list-style: none; margin: 12px 0; padding: 0; font-size: 13px; }
.col-body .src li { position: relative; margin: 6px 0; padding: 8px 12px 8px 36px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; line-height: 1.6; }
.col-body .src li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; background: var(--main-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5l3-3M7 4.5l1.2-1.2a2.6 2.6 0 013.7 3.7L10.7 8.2M9 11.5l-1.2 1.2a2.6 2.6 0 01-3.7-3.7L5.3 7.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5l3-3M7 4.5l1.2-1.2a2.6 2.6 0 013.7 3.7L10.7 8.2M9 11.5l-1.2 1.2a2.6 2.6 0 01-3.7-3.7L5.3 7.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (min-width: 720px) {
  .col-h1 { font-size: 30px; }
  .col-body .c-cards { grid-template-columns: repeat(3, 1fr); }
  .col-body .c-stat { grid-template-columns: 1fr; }
  .col-body .c-stat .k { grid-row: auto; }
  .col-body .c-two { grid-template-columns: 1fr 1fr; }
  .col-body .c-media { grid-template-columns: 5fr 6fr; }
  .col-body .c-media.no-img { grid-template-columns: 1fr; }
  .col-body .c-cta.has-img { grid-template-columns: 3fr 2fr; }
  .col-body .c-cta.has-img .c-ph img { height: 100%; min-height: 150px; }
}
.col-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; font-size: 14px; }
.col-pager a { color: var(--main); font-weight: 700; text-decoration: underline; }

/* ===== 全国のカスタム・条件のページ（3.29版）：案内のページ ===== */
.pref-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pref-entry { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--main); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.pref-entry b { font-size: 16px; font-weight: 900; color: var(--main); }
.pref-entry span { font-size: 14px; font-weight: 700; color: var(--accent); }
.pref-entry:hover { border-color: var(--main); }
.page-head .lead-sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.page-head .lead-sub span { display: inline-block; margin-right: 8px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--main); background: #fff; }
.sec-sub { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.faq-rel ul { padding-left: 1.2em; display: grid; gap: 4px; }
.faq-rel a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }

/* ===== よくある質問（3.27版） ===== */
.faq-toc ol { padding-left: 1.6em; display: grid; gap: 4px; }
.faq-toc a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.faq-item { scroll-margin-top: 90px; }
.faq-item h2 { display: flex; gap: 10px; align-items: baseline; line-height: 1.5; }
.faq-q { flex: 0 0 auto; font-family: var(--num); font-weight: 700; color: var(--accent); }
.faq-item .fig-card { margin-top: 14px; }
.faq-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; font-size: 13.5px; }
.faq-links a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-src { font-size: 12px; color: var(--ink-soft); }
.faq-src p { font-weight: 700; }
.faq-src ul { padding-left: 1.2em; display: grid; gap: 2px; }
.faq-src a { color: var(--ink-soft); text-decoration: underline; overflow-wrap: anywhere; }
.why-faq { text-align: center; margin-top: 14px; font-size: 14px; }
.why-faq a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.est-faq { grid-column: 1 / -1; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.est-faq h2 { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.est-faq ul { padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.est-faq a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }

/* トップのメイン写真（スマホ）：見出しの上に写真だけの帯。文字は重ねない */
@media (max-width: 900px) {
  .mv { background: linear-gradient(180deg, #2f6f93, #0f5f73); }
  .mv > .photo { position: relative; inset: auto; height: 230px; }
  .mv > .photo img { position: static; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: 52% 80%; }
  .mv::after { content: none; }
  .mv-inner { padding-block: 24px 28px; }
}

/* スマホ：トップの近道・フッターをつめる・画面の下の固定ボタン */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .site-footer h4 { margin-bottom: 6px; }
  .site-footer .foot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0 12px; }
  .site-footer .foot-list-wide { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .sp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(15,95,115,.08); }
  .sp-bar > :only-child { grid-column: 1 / -1; }
  .single-hcg_shop .sp-bar { display: none; } /* 有料店のページは、お店の見積りの固定ボタン（.cta-bar）があるので出さない */
  .styles4.styles-rel { max-width: none; }
  .fav-btn { padding: 4px 8px; font-size: 12px; }
  .style-tile .style-ico { width: 44px; height: 44px; margin-bottom: 4px; }
  .h1-ico { gap: 10px; }
  .h1-ico .h1-ico-img { width: 40px; height: 40px; }
  .fig-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .fig-body { justify-items: stretch; }
  .fig-body h3 { font-size: 16px; }
  .zoom { padding: 52px 8px 10px; }
  .zoom-scroll { place-items: start; }
  .zoom-scroll img { max-width: none; width: 900px; } /* スマホでは大きめに出し、横にずらして読む */
  .zoom-hint { display: block; }
  .sp-bar .btn { padding: 9px 12px; font-size: 14px; }
  .sp-bar .btn-accent { box-shadow: none; }
  /* ページのいちばん下（フッター）がボタンに隠れないように */
  .site-footer { padding-bottom: calc(26px + 60px + env(safe-area-inset-bottom, 0px)); }
  /* 見積りのフォームのページ：見積りの合計の欄を、固定ボタンの上に出す */
  .hcg-est-form .est-side { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .hcg-est-form .est-sum { padding-bottom: 12px; }
  .hcg-est-form .est-layout { padding-bottom: 170px; }
  .hcg-est-form .site-footer { padding-bottom: calc(26px + 170px + env(safe-area-inset-bottom, 0px)); }
}

/* スマホ：都道府県から探す（地方名を上、県のボタンを下に折り返す） */
@media (max-width: 600px) {
  .pf-box { padding: 2px 16px; }
  .pf-row { flex-direction: column; gap: 8px; }
  .pf-rg { width: auto; padding-top: 0; }
  .pf-rg em { display: inline; margin-left: 8px; }
  .pf-cities summary { padding: 14px 16px; }
  .pf-inner { padding: 0 16px 10px; }
  .pf-cl { flex-direction: column; gap: 2px; }
}
