@charset "UTF-8";
/*
 * IC Auto — I&C株式会社の在庫車両サイト
 *
 * ══════════ 2026-08-19 全面的に作り直した ══════════
 *
 * オーナー指示「サイトのデザインを刷新してほしい」→「デザインはLovableにやってもらったらいいよ」。
 * **Lovableに出させた案（デザイン刷新/Lovable案/）を、ここに移している。**
 * Lovableのコードは使っていない。掲載可否の判定・法定表示・MOTOR GATE取り込み・管理画面は
 * Lovableには作れないため、**デザインの判断だけを引き取った。**
 *
 * ── 何が悪かったのか（実物をブラウザで測って特定した6件） ──
 *
 *   1. **在庫が «枠の中» でスクロールしていた。** 24台あるのに、開いた画面に3台しか出ない。
 *      枠にしたのは «絞り込みが画面から消える» のを防ぐためだったが、
 *      **それは検索の帯を画面の上に貼り付ければ済む話**だった。手段を間違えていた
 *   2. **カードが罫線の格子だった。** カーセンサーの «ごちゃつき» のほうを真似ていた
 *   3. **値段が車名より上にあった。** 人は «何の車か» を見てから «いくらか» を見る
 *   4. **スマホで、車が1台見えるまでに1,100px スクロールが要った**
 *   5. トップに «顔» が無かった
 *   6. 詳細が19行の表で、«年式» と «在庫番号» が同じ大きさで並んでいた
 *
 * ── 写真が1枚も無いという制約への答え ──
 *
 * **写真の枠に、灰色の «山の絵» を置かない。メーカー名と車名を組む**（.photo-none）。
 * 写真が無いことは隠さず、«代わりに文章で書いている» と宣言する。
 * これは当社の «修復歴を隠さない» という主張と筋が通っている。
 * 写真が入れば、そのまま置き換わる。
 *
 * ── 色 ──
 * いただいたロゴから機械で抽出した2色。#0E6EB8（文字の青）／#008AD4（シンボルの青）。
 * 価格だけ赤。**金額はいちばん先に目に入る必要があり、青の中の青字は沈む。**
 *
 * 守るものは変えない：本文16px以上、行間1.7以上、タップ44px、375pxで横スクロールなし。
 */

:root {
  --navy:      #0e6eb8;
  --navy-d:    #0a5490;
  --navy-l:    #008ad4;
  --price:     #c0392b;
  --accent:    #0e6eb8;

  --bg:        #f4f6f8;
  --panel:     #ffffff;
  --tint:      #eef2f7;   /* 写真の無い枠と、諸元のタイル */
  --line:      #dfe5ea;
  --line-soft: #edf1f4;
  --muted:     #6b7681;
  --text:      #1a1f24;

  --ok:        #14713f;
  --warn:      #8a5a00;

  --radius:    12px;
  --radius-sm: 8px;
  --wrap:      1180px;
  --shadow:    0 1px 2px rgba(16,42,67,.05), 0 3px 12px rgba(16,42,67,.05);
  --shadow-up: 0 2px 5px rgba(16,42,67,.07), 0 10px 26px rgba(16,42,67,.09);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* OS標準に任せると、Windowsは游ゴシック、Macはヒラギノで **別のサイトに見える。**
     游ゴシックは太字が細く、見出しに «強さ» が出ない */
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

/* 金額と走行距離を車ごとに «縦に並べて比べる» サイトなので、数字の幅を揃える */
.card-price, .price-total, .price-body, .result-count strong,
.spec-strip td, .spec-table td, .hero-num b, .keyspec-v { font-variant-numeric: tabular-nums; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-l); }
h1, h2, h3 { line-height: 1.35; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.sep { color: #b9c3cc; margin-inline: .45em; }

/* ══════════ 帯（サンプル・下見中・環境） ══════════
   **本番では1本も出ない。** 出ているうちは、それは本番ではない */
.demo-bar, .env-bar {
  font-size: 13.5px; line-height: 1.6; padding: 9px 20px; text-align: center; color: #fff;
}
.demo-bar { background: #8a3311; }
.demo-bar-preview { background: #0a5490; }
.env-bar { background: #3f3f52; }
.demo-bar strong, .env-bar strong { margin-right: .6em; }

/* ══════════ ヘッダ ══════════
   ロゴは «白地» に置く。いただいたロゴは濃い青と水色でできているため、
   青のヘッダに置くと沈んで読めない。**もらったロゴをそのまま使えるほうが、名刺や印刷物と揃う。**

   ⚠ 前は «青いナビの帯» を敷いていたが、白地に変えた。
   青の帯・青の検索帯が重なって、上部100pxが «操作» で埋まっていたためである。
   いまナビは白地で、いま見ているところだけ下に青い線が入る。 */
.site-header { background: #fff; position: relative; z-index: 20; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  min-height: 74px; padding-block: 12px;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--navy); margin-right: auto; min-height: 44px;
}
.logo img { width: 178px; height: auto; }
.logo-owner { font-size: 13px; color: var(--muted); letter-spacing: .02em; padding-top: 4px; }

.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-tel-label { font-size: 12px; color: var(--muted); }
.header-tel-num {
  font-size: 28px; font-weight: 900; color: var(--navy); text-decoration: none; letter-spacing: .01em;
}
.header-tel-num::before { content: "\260E"; font-size: 20px; margin-right: 7px; font-weight: 400; }
.header-tel-num:hover { color: var(--navy-l); }

.nav-bar { background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 0; }
.nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 20px;
  color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 700;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--navy); }
.nav a.is-current { color: var(--navy); border-bottom-color: var(--navy); }

/* ══════════ ヒーロー（トップのみ） ══════════

   ── 写真が無いのに «顔» を作るには ──

   置けるものは2つしかない。**言葉と、本物の数字。**
   在庫台数・軽自動車の台数・4WDの台数・価格の幅は、**この店のデータから機械で数えている。**
   もっともらしい実績や «お客様の声» は作らない。無いものは書かない。 */
.hero { background: #fff; border-bottom: 1px solid var(--line); padding-block: 46px 34px; }
.hero-eyebrow {
  margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: var(--navy); letter-spacing: .06em;
}
.hero-title { margin: 0 0 18px; font-size: 44px; font-weight: 900; letter-spacing: .01em; line-height: 1.28; }
.hero-title em { font-style: normal; color: var(--navy); }
.hero-lead { margin: 0; font-size: 16px; line-height: 1.95; color: #4a545e; max-width: 46em; }

.hero-nums {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-num b { display: block; font-size: 34px; font-weight: 900; color: var(--navy); line-height: 1.15; }
.hero-num b i { font-style: normal; font-size: 15px; font-weight: 700; margin-left: 3px; }
.hero-num span { display: block; font-size: 13px; color: var(--muted); }

/* ══════════ 検索の帯 ══════════

   ── 枠の中のスクロールをやめた ──

   前は一覧を «枠» に閉じ込めていた。理由は「下まで見ると絞り込みが画面から消える」。
   **その心配は、検索の帯を画面の上に貼り付ければ消える。**
   一覧はページごとスクロールさせるのが自然で、24台をひと続きに見られる。 */
.searchbar {
  position: sticky; top: 0; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(16,42,67,.05);
}
.searchbar-inner {
  /* 5つ（軽／普通・メーカー・車種・支払総額・走行距離）＋ ボタン（2026-08-21 車種を追加） */
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto;
  align-items: end; gap: 10px 14px; padding-block: 14px 12px;
}
.sb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-field label { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.sb-field select, .result-sort select {
  min-height: 46px; padding: 0 34px 0 12px; font-size: 15px; font-family: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.sb-field select:focus-visible, .result-sort select:focus-visible {
  outline: 2px solid var(--navy-l); outline-offset: 1px;
}
.sb-go {
  min-height: 46px; padding: 0 26px;
  border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  font-size: 15.5px; font-weight: 800; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.sb-go:hover { background: #0b5c9c; }

/* 2段目（チェックと件数とクリア） */
.sb-check { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.sb-check label {
  min-height: 44px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.sb-check input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--navy); }
.sb-reset {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13.5px; color: var(--muted); margin-left: auto;
}

/* スマホでは畳む（開閉の «つまみ» はPCでは出さない） */
.sb-toggle > summary { display: none; }

/* ══════════ 一覧の頭 ══════════ */
.list-head { padding-block: 26px 4px; }
.list-title { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.list-note { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--muted); max-width: 80ch; }
.list-note strong { color: var(--text); }

.resultbar { display: flex; align-items: center; gap: 12px; padding: 14px 0 16px; }
.result-count { margin: 0; font-size: 15px; color: var(--muted); }
.result-count strong { font-size: 25px; font-weight: 900; color: var(--text); margin-inline: 5px; }
.result-sort { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.result-sort label { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.result-sort select { min-width: 190px; }

/* ══════════ 在庫のカード ══════════

   ── 罫線の格子をやめた ──

   前は諸元を «年式｜値｜走行距離｜値» の4列の表にしていた。数字は揃うが、
   **24台ぶん並ぶと罫線だけが目に残る。** いまは罫線を消し、
   «項目（小さく）／値（太く）» を4つ、同じ位置に置くだけにした。
   比べられることは保ったまま、静かにした。 */
.cards-wrap { position: relative; }
.cards { display: grid; gap: 16px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-up); border-color: #cbd8e3; }
.card-inner { display: grid; grid-template-columns: 280px minmax(0,1fr); }

/* ── カードの写真は «切り取らない»（2026-08-20 オーナー指摘）──
   前は height:100% で枠いっぱいに引き伸ばし、object-fit:cover で切っていた。
   カードの高さ（約310px）に対して写真の枠は280pxしかないため、
   **縦長に切り抜かれて «拡大» になり、車の前後がはみ出していた。**
   元の写真は 4624x3472 ＝ ちょうど 4:3 なので、枠を4:3にすれば1ピクセルも切れない。
   余った高さは、写真を上下の真ん中に置いて埋める */
.card-photo { position: relative; background: var(--tint); overflow: hidden;
              display: flex; align-items: center; }
/* ⚠ `:not(.photo-none)` を外さないこと。
   外すと **この指定のほうが強くて**（クラス＋要素）、下の .photo-none の display:flex を
   打ち消し、車名とメーカー名が横1列に潰れる。2026-08-19 に実際にそうなった */
.card-photo > a:not(.photo-none) { display: block; width: 100%; }
.card-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* **写真がまだ無い車。** 山の絵を24個並べない。代わりに車名を組む。
   無いものを大きく見せず、そこにある事実（メーカーと車名）を見せる */
.photo-none {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; min-height: 186px; padding: 16px 18px 14px;
  background: var(--tint); text-decoration: none; overflow: hidden;
}
/* 右上のうっすらした弧。**写真が入る場所であることの余韻**。主張はしない */
.photo-none::after {
  content: ""; position: absolute; right: -58px; top: -58px; width: 168px; height: 168px;
  border: 12px solid #dce7f1; border-radius: 50%; opacity: .8;
}
.photo-none-maker { position: relative; font-size: 13px; font-weight: 700; color: #7d8d9c; }
.photo-none-model {
  position: relative; font-size: 25px; font-weight: 900; line-height: 1.25; color: var(--navy);
  letter-spacing: .02em; overflow-wrap: anywhere; margin: auto 0;
}
.photo-none-note { position: relative; font-size: 12px; color: #7d8d9c; }
.photo-none-note b { font-weight: 700; color: #5f7285; margin-right: .6em; }

/* ⚠ 印は «右上» に置く。左上に置くと、写真の無い車で
   **メーカー名の上に重なって読めなくなる**（2026-08-19 実際にそうなった） */
.card-badges { position: absolute; top: 0; right: 0; display: flex; flex-wrap: wrap; gap: 0; z-index: 2; }
.badge {
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  padding: 5px 11px; color: #fff; background: var(--muted); border-bottom-left-radius: var(--radius-sm);
}
.badge-ok { background: var(--ok); }
.badge-warn { background: #a1620a; }
/* «新着» は青、«値下げ» は赤（2026-08-21 札を2種類に分けた）。
   **金額の話だけを赤にする。** このサイトは値段を赤で書いており、
   新着まで赤にすると «赤＝金額» の約束が崩れて、どちらも目に留まらなくなる */
.badge-new  { background: var(--navy-l); }
.badge-drop { background: var(--price); }
.badge-nego { background: #444d55; }
.photo-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-size: 12px; color: #fff; background: rgba(12,32,50,.72); padding: 3px 9px; border-radius: 4px;
}

/* ── カードの中身 ──
   **車名を先に、値段をその下に。** 前は値段が上、車名がその下だった。
   人は «何の車か» を見てから «いくらか» を見る。逆にすると、毎回2度読むことになる */
.card-body { padding: 18px 22px 14px; display: flex; flex-direction: column; }
.card-title { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.4; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--navy); text-decoration: underline; }
.card-place { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.card-place span:not(.sep) {
  background: #f0f3f6; color: #4a545e; border-radius: 4px; padding: 3px 9px; font-weight: 700;
}
.card-place .sep { display: none; }

.card-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 16px; }
.card-price {
  margin: 0; font-size: 34px; font-weight: 900; color: var(--price); line-height: 1.1; white-space: nowrap;
}
.price-label {
  font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 10px; vertical-align: 6px;
}
.card-price-old { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

/* ── 諸元 ──
   表のままだと «行» ができる。display:contents で行を消し、
   «項目（上・小）／値（下・太）» を4つ横に並べる。罫線は引かない */
.spec-strip { width: 100%; border-collapse: collapse; margin-top: auto; }
.spec-strip tbody { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px 14px; }
.spec-strip tr { display: contents; }
.spec-strip th {
  font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; padding: 0; border: 0;
}
.spec-strip td { font-size: 17px; font-weight: 800; color: var(--text); padding: 0 0 8px; }
.spec-strip th:empty, .spec-strip td:empty { display: none; }
/* 4列ぴったりに割るため、項目と値を «縦に» 組む。th を1行目、td を2行目に置く */
.spec-strip tbody { grid-auto-flow: column; grid-template-rows: auto auto; grid-auto-columns: minmax(0,1fr); grid-template-columns: none; }

.card-foot {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
.card-fresh { font-weight: 700; }
.card-more {
  margin-left: auto; font-weight: 800; font-size: 14.5px; color: var(--navy); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.card-more::after { content: " \203A"; font-size: 18px; margin-left: 5px; }
.card-more:hover { text-decoration: underline; }
.cards-note { display: none; }   /* 枠内スクロールをやめたので、案内も要らない */

/* ══════════ 在庫が0台のとき ══════════
   «見つかりませんでした» で終わらせない。**探している車を聞く受け皿を必ず置く** */
.empty {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 28px; text-align: center; box-shadow: var(--shadow);
}
.empty-title { margin: 0 0 10px; font-size: 23px; font-weight: 900; }
.empty-lead {
  max-width: 62ch; margin: 24px auto; padding-top: 22px; border-top: 1px solid var(--line-soft);
  text-align: left; font-size: 15.5px; line-height: 1.95;
}
.empty .btn { display: inline-flex; }

/* ══════════ 当社の在庫について（主張は在庫の «下» に置く） ══════════ */
.section-title { margin: 0 0 16px; font-size: 22px; font-weight: 900; }
.why { margin: 48px 0 8px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.why-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.why-item h3 { margin: 0 0 10px; font-size: 18px; font-weight: 900; color: var(--navy); }
.why-item p { margin: 0; font-size: 14.5px; line-height: 1.95; color: #4a545e; }

/* ══════════ 車両詳細 ══════════ */
.breadcrumb { padding: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
/* «›» が文字に貼りついて読みにくかった（2026-08-21）。区切りだと分かる程度に離す */
.breadcrumb span { margin-inline: 6px; opacity: .55; }

.detail-head { padding: 16px 0 22px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.detail-badges .badge { border-radius: 4px; }
.detail-badges .chip {
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 4px;
  background: #e7eff6; color: var(--navy-d);
}
.detail-title { margin: 0 0 7px; font-size: 34px; font-weight: 900; line-height: 1.3; }
.detail-sub { margin: 0; font-size: 13px; color: var(--muted); }
.detail-nego {
  display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 4px;
  background: #444d55; color: #fff; font-size: 13px; font-weight: 800;
}

.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.detail-main { min-width: 0; }

/* ── 写真 ── */
.gallery { margin-bottom: 24px; }
.gallery-main {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* ── 写真を1枚ずつ送るボタン（2026-08-20 オーナー指摘）──
   「下までスクロールして画像を選ぶのは不便すぎる」。写真が50〜120枚あるので、そのとおり。
   **写真の上に重ねる。** 別の場所に置くと、見ている場所と押す場所が離れる。
   ⚠ JavaScriptが動かない環境では、app.js がこのボタンを出さない（下の :not(.ready) ） */
.gallery-main { position: relative; }
/* 既定では出さない。**app.js が動いたときだけ `.ready` を付けて出す。**
   押しても何も起きないボタンは、無いより悪い */
.gal-nav, .gal-count { display: none; }
.gallery.ready .gal-nav   { display: flex; }
.gallery.ready .gal-count { display: block; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--navy);
  font-size: 30px; line-height: 1; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(16,42,67,.18);
}
.gal-nav:hover { background: #fff; color: var(--navy-l); }
.gal-prev { left: 12px; padding-right: 4px; }
.gal-next { right: 12px; padding-left: 4px; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; margin: 0;
  background: rgba(12,32,50,.72); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.gallery-caption { margin: 9px 0 0; font-size: 14px; color: var(--muted); }
.gallery-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.gallery-thumbs .thumb {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm);
  background: none; cursor: pointer; overflow: hidden; line-height: 0;
}
.gallery-thumbs .thumb img { width: 94px; height: 71px; object-fit: cover; }
.gallery-thumbs .is-current { border-color: var(--navy); }

/* 写真がまだ無い車（詳細ページ）。カードと同じ考え方で、大きく組む */
.photo-none-big {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 22px 26px 20px; margin-bottom: 12px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.photo-none-big::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px;
  border: 16px solid #dce7f1; border-radius: 50%; opacity: .85;
}
.photo-none-big .photo-none-maker { font-size: 14.5px; }
.photo-none-big .photo-none-model { font-size: 46px; margin: auto 0; }
.photo-none-big .photo-none-note { font-size: 13.5px; }
/* **写真が無いことを隠さない。** «代わりに文章で書いている» と言い切る */
.photo-none-say { margin: 0 0 26px; font-size: 14.5px; line-height: 1.9; color: #4a545e; }
.photo-none-say strong { color: var(--text); }

/* ── まず知りたい4つ ──
   19行の諸元表の中に «年式» と «在庫番号» が同じ大きさで並んでいた。
   買う人が最初に見るのは4つだけなので、それを表から引き上げて大きく出す */
.keyspec { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
.keyspec > div { background: var(--tint); border-radius: var(--radius-sm); padding: 12px 16px; }
.keyspec-k { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.keyspec-v { display: block; font-size: 19px; font-weight: 900; line-height: 1.4; }
.keyspec-v.is-ok { color: var(--ok); }

/* ── 先にお伝えしておきます ──
   **この店の主張。諸元表より目立たせる。**
   隠して来ていただいても、お互いに時間の無駄になる */
.honest {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 24px;
}
.honest .section-title { color: var(--navy); margin-bottom: 6px; font-size: 21px; }
.honest-lead { margin: 0 0 16px; font-size: 14.5px; line-height: 1.9; color: #4a545e; }
.honest-list { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.honest-list li {
  position: relative; margin-bottom: 12px; padding-left: 32px;
  font-size: 16px; font-weight: 700; line-height: 1.8;
}
.honest-list li::before {
  counter-increment: h; content: counter(h);
  position: absolute; left: 0; top: 0; width: 22px; text-align: center;
  color: var(--navy); font-weight: 900;
}
.honest-list li:last-child { margin-bottom: 0; }

.note-block, .specs, .equip, .voice, .maint, .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  font-size: 15px; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 32%; font-weight: 700; color: var(--muted); background: #f8fafb; white-space: nowrap; }
.equip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.equip-list li {
  font-size: 13.5px; padding: 6px 13px; border-radius: 999px;
  background: var(--tint); color: #35536e;
}
.ok-text { color: var(--ok); font-weight: 800; }
.warn-text { color: var(--warn); font-weight: 800; }

.voice-body { display: flex; gap: 14px; align-items: flex-start; }
.voice-name { font-weight: 900; }
.voice-role { font-size: 13px; color: var(--muted); }
.voice-text { margin: 6px 0 0; font-size: 15px; line-height: 1.9; }

/* ── 右の «値段と電話» ── */
/* ── スクロールへの追従は «しない»（2026-08-20 オーナー指示）──
   「画像とサイドバー固定にして」→ 一度なし →「やっぱり固定」→ **最終的に «固定をやめる»。**
   写真も値段の箱も、ページと一緒に動く。ふつうに流れる。

   ⚠ もともとこの箱は `sticky top:88px` で **追従する設定だった**（刷新前からの持ち越し）。
     «固定をやめる» という指示なので、**そちらも止めて完全に静止させている。**
     値段だけ追わせたくなったら、下の1行を `position: sticky; top: 16px;` に戻すだけでよい。 */
.detail-side { position: static; }
.price-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-up);
}
.price-total-label { margin: 0; font-size: 13px; color: var(--muted); }
/* 値下げ前の金額。**取り消し線は控えめに、いまの値段より必ず小さく。**
   元値を大きく出すと «高かった車» の印象が残る（2026-08-21） */
.price-was {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin: 4px 0 0; font-size: 14px; color: var(--muted);
}
.price-was-label {
  font-size: 12px; font-weight: 800; color: #fff; background: var(--price);
  padding: 2px 8px; border-radius: 4px;
}
.price-was s { color: var(--muted); }
.price-was b { color: var(--price); font-weight: 800; }

.price-total { margin: 2px 0 8px; font-size: 40px; font-weight: 900; color: var(--price); line-height: 1.1; }
.price-body { margin: 0 0 8px; font-size: 15.5px; font-weight: 800; }
.price-diff { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.price-area { margin: 0; font-size: 13px; color: var(--muted); }
.price-note {
  margin-top: 14px; padding: 12px 14px; background: #f8fafb;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
.price-note-title { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; color: var(--warn); }
.price-note p { margin: 0; font-size: 13.5px; line-height: 1.8; }

/* ── お住まいの地域で、いくら足されるか（2026-08-20）──
   «支払総額に含まないもの» のすぐ下に置く。**離すと、読む順番が切れる。**
   金額が1つも決まっていないあいだは、PHP側でこの欄ごと出さない */
.fee-est {
  margin-top: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #f8fafb;
}
.fee-est-title { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; color: var(--navy-d); }
.fee-est-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fee-est-select {
  width: 100%; min-height: 46px; padding: 0 34px 0 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.fee-est-check {
  display: flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: 14.5px; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.fee-est-check input { width: 19px; height: 19px; accent-color: var(--navy); }

.fee-est-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.fee-est-table th, .fee-est-table td {
  font-size: 14px; padding: 7px 0; text-align: left; border-bottom: 1px solid var(--line-soft);
}
.fee-est-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fee-est-table th { color: var(--muted); font-weight: 700; }
.fee-est-table em { font-style: normal; font-weight: 700; color: var(--warn); font-size: 13px; }
.fee-est-table tfoot th { color: var(--text); font-weight: 900; font-size: 15px; border-bottom: 0; }
.fee-est-table tfoot td { color: var(--price); font-weight: 900; font-size: 18px; border-bottom: 0; }
/* 幅（«〜 573,000円»）は、金額と同じ行に押し込むと折り返して読めない。行を分ける */
.fee-est-table tfoot td em { display: block; margin-top: 2px; font-size: 15px; }
.fee-est-table th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.fee-est-note { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.fee-est-note strong { color: var(--text); }

.side-cta { display: grid; gap: 10px; margin-top: 20px; }
.side-note { margin: 16px 0 0; font-size: 13px; line-height: 1.85; color: var(--muted); }

/* ══════════ ボタン ══════════ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 8px 22px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 800; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.35;
}
.btn-tel { background: #fff; color: var(--navy); border-color: var(--navy); flex-direction: column; gap: 0; }
.btn-tel span { font-size: 22px; font-weight: 900; }
.btn-tel:hover { background: #f2f7fb; color: var(--navy); }
.btn-form, .btn-submit { background: var(--accent); color: #fff; }
.btn-form:hover, .btn-submit:hover { background: #0b5c9c; color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: #f2f7fb; }
.btn-fav { background: #fff; color: var(--muted); border-color: var(--line); font-size: 15px; min-height: 48px; }
.btn-fav[aria-pressed="true"] { color: #b8860b; border-color: #e2c46a; background: #fffbf0; }
.fav-star { font-size: 17px; }

/* ══════════ 問い合わせへの帯 ══════════
   **電話を先に置く。** 中古車は «まだあるか» を今すぐ知りたい商品で、
   フォームだけにすると «明日の返信» を待つことになり、他店へ流れる */
.cta { margin-top: 48px; background: var(--navy-d); color: #fff; padding-block: 32px; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.cta-text { flex: 1 1 320px; min-width: 0; }
.cta-title { margin: 0 0 5px; font-size: 24px; font-weight: 900; }
.cta-note { margin: 0; font-size: 14.5px; line-height: 1.9; color: #d0e2f0; }
.cta-note strong { color: #fff; }
.cta-buttons { display: flex; gap: 10px; flex: 0 0 auto; }
.cta .btn-tel { min-width: 215px; }
.cta .btn-form { min-width: 195px; background: #fff; color: var(--navy-d); border-color: #fff; }
.cta .btn-form:hover { background: #e6f0f8; color: var(--navy-d); }

/* ══════════ フォーム ══════════ */
.form-intro { font-size: 15px; line-height: 1.95; margin: 0 0 20px; }
.form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
/* ⚠ `margin:` の一括指定にしないこと（2026-08-20 実機を目で見て発覚）。
   `<main class="wrap form-section">` という使い方をしている画面が4つある
   （店舗案内・お問い合わせ・売却査定・車検整備）。
   一括指定だと **`.wrap` の `margin-inline: auto` を打ち消し、中央寄せが効かなくなる。**
   その4画面だけ本文が左端に張り付いていた。
   **横あふれもエラーも出ないので、機械の検査は素通りする。** 目で見て初めて分かった */
.form-section { margin-block: 0 22px; }
.form-row { margin-bottom: 18px; }
.form-row > label { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row select, .form-row textarea, .form input, .form textarea, .form select {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.form-row textarea, .form textarea { min-height: 150px; line-height: 1.85; }
.form-row input:focus-visible, .form-row textarea:focus-visible, .form-row select:focus-visible {
  outline: 2px solid var(--navy-l); outline-offset: 1px; border-color: var(--navy-l);
}
.req {
  font-size: 11.5px; font-weight: 800; color: #fff; background: var(--price);
  padding: 2px 7px; border-radius: 3px; margin-left: 7px; vertical-align: 2px;
}
.form-hint { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 5px 0 0; }
.form-err { font-size: 13.5px; font-weight: 700; color: var(--price); margin: 5px 0 0; }
.form-row-err input, .form-row-err textarea, .form-row-err select { border-color: var(--price); background: #fff8f7; }
.form-alert {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  background: #eef7f1; border: 1px solid #b9dcc7; font-size: 14.5px; line-height: 1.8;
}
.form-alert-error { background: #fdf2f0; border-color: #eec3bc; color: #8a2b1c; }
.form-privacy { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 18px 0 0; }
.form-target {
  background: var(--tint); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 20px; font-size: 14.5px;
}
/* 人には見えない欄（機械の投稿を落とすためのもの）。**画面から完全に外す** */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { min-height: 0; }

.thanks {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 30px; text-align: center; box-shadow: var(--shadow);
}
.thanks-title { margin: 0 0 12px; font-size: 26px; font-weight: 900; color: var(--ok); }

/* ══════════ スマホの下部に貼り付く «電話する／メールで問い合わせ» ══════════
   詳細ページだけ。**指の届くところに置く。**
   PCでは出さない（右側に同じものが常に見えているため） */
.sp-cta, .sp-cta-space { display: none; }

/* ══════════ フッタ ══════════
   **古物商許可番号はここに出る。** ホームページで中古車を売る以上、表示の義務がある */
.site-footer { background: #12293d; color: #c5d3df; padding-block: 36px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 40px; }
.footer-name { margin: 0 0 4px; font-size: 21px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.footer-line { margin: 0 0 4px; font-size: 14px; line-height: 1.85; }
.footer-line a { color: #9fd2f2; }
.footer-license {
  margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius-sm);
  padding: 7px 13px; display: inline-block;
}
.footer-note {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: 13px; line-height: 1.9; color: #a7bacb;
}
.footer-note strong { color: #fff; }
.footer-copy { margin: 14px 0 0; font-size: 12.5px; color: #7d94a7; }

/* ══════════ 幅が狭いとき ══════════ */
@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: minmax(0,1fr) 306px; }
  .hero-title { font-size: 37px; }
  .card-inner { grid-template-columns: 240px minmax(0,1fr); }
}

@media (max-width: 900px) {
  /* 詳細は1列になる。**そのとき «値段と電話» を先頭へ持ち上げる。**
     中古車を見に来た人が最初に知りたいのは «いくらで乗れるか» であって、排気量ではない */
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { order: -1; position: static; }
  .why-grid { grid-template-columns: 1fr; }
  .searchbar-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-go { grid-column: 1 / -1; }
  .cta-in { flex-direction: column; align-items: stretch; }
  .cta-buttons { flex-direction: column; }
  .hero-nums { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
}

@media (max-width: 760px) {
  .wrap { padding-inline: 14px; }

  /* ── ヘッダ ── */
  .header-inner { min-height: 0; gap: 2px; padding-block: 12px 8px; }
  .logo { gap: 10px; }
  .logo img { width: 150px; }
  .logo-owner { display: none; }        /* 屋号の下の社名は、狭い画面では折り返しの元になる */
  .header-tel { align-items: flex-start; width: 100%; }
  .header-tel-num { font-size: 25px; }

  /* ナビは «横に流す»。4つを2行に折り返すと、それだけで画面の1/4を使う */
  .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0 15px; font-size: 14.5px; white-space: nowrap; min-height: 48px; }

  /* ── ヒーロー ── */
  .hero { padding-block: 28px 24px; }
  .hero-title { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .hero-nums { margin-top: 20px; padding-top: 18px; gap: 12px; }
  .hero-num b { font-size: 25px; white-space: nowrap; }
  /* 価格の «はば» は桁が多い。同じ大きさにすると «万円» だけが次の行に落ちる */
  .hero-num-range b { font-size: 21px; }

  /* ── 検索は畳む ──
     **前は、車が1台見えるまでに1,100px スクロールが要った。**
     最初に見えるのが «タイプ ▼ すべて» では、車を見に来た人の邪魔でしかない */
  .sb-toggle > summary {
    display: flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 2px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 800; color: var(--navy);
  }
  .sb-toggle > summary::-webkit-details-marker { display: none; }
  .sb-toggle > summary .sb-count { margin-left: auto; color: var(--text); font-weight: 900; }
  .sb-toggle > summary::after {
    content: "\25BE"; font-size: 14px; color: var(--muted); transition: transform .15s ease;
  }
  .sb-toggle[open] > summary::after { transform: rotate(180deg); }
  .searchbar-inner { padding-block: 0 14px; }
  .sb-check { gap: 4px; }
  .sb-reset { margin-left: 0; width: 100%; }

  /* ── 一覧 ── */
  .list-head { padding-block: 18px 0; }
  .list-title { font-size: 20px; }
  .resultbar { flex-wrap: wrap; gap: 8px; padding: 10px 0 12px; }
  /* 件数は «条件をしぼる» の行に出ているので、ここでは繰り返さない。
     スマホは «車が1台見えるまでの距離» がそのまま成果に効く */
  .result-count { display: none; }
  .result-sort { width: 100%; margin-left: 0; }
  .result-sort select { flex: 1; min-width: 0; }

  /* カードは1列。写真の枠は上に置き、**高くしすぎない。**
     写真が無いいまは、車名の枠が画面の半分を占めないようにする */
  .card-inner { grid-template-columns: 1fr; }
  .photo-none { min-height: 0; padding: 14px 16px 12px; }
  .photo-none-model { font-size: 22px; margin: 10px 0; }
  .photo-none::after { right: -48px; top: -48px; width: 130px; height: 130px; border-width: 10px; }
  .card-body { padding: 16px; }
  /* 12.5px は «本文» には小さい。機械の検査（tests/layout.mjs）が名指しした */
  .card-place, .card-foot { font-size: 13px; }
  .card-title { font-size: 19.5px; }
  .card-top { margin: 12px 0 14px; }
  .card-price { font-size: 30px; }
  .spec-strip tbody { grid-template-rows: auto auto auto auto; grid-auto-flow: column;
                      grid-auto-columns: minmax(0,1fr); }
  .spec-strip td { font-size: 16px; }

  /* ── 詳細 ── */
  .detail-title { font-size: 25px; }
  .price-total { font-size: 35px; }
  .photo-none-big { min-height: 210px; padding: 18px 18px 16px; }
  .photo-none-big .photo-none-model { font-size: 30px; }
  .keyspec { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .keyspec > div { padding: 11px 13px; }
  .keyspec-v { font-size: 17px; }
  .note-block, .specs, .equip, .voice, .maint, .box, .honest { padding: 18px 16px; }
  .spec-table th, .spec-table td { padding: 10px; font-size: 14.5px; }
  .spec-table th { width: 36%; }
  .form { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 19px; }
  .cta-title { font-size: 20px; }

  /* 下部に貼り付くボタン。**詳細ページで «電話» を指の届くところに置く** */
  .sp-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(16,42,67,.10);
  }
  .sp-cta .btn { min-height: 52px; font-size: 15px; padding: 8px 10px; white-space: nowrap; }
  /* 固定ボタンがフッタの最後の1行を隠さないように、同じ高さの «空き» を置く */
  .sp-cta-space { display: block; height: 78px; }
}

/* ══════════ 実機確認で拾った «注意» を潰す（2026-08-20） ══════════

   共通の検査（C:/dev/site-check/check.mjs）が、本番の25画面で
   **小さい文字52件・押しにくい場所を各ページで**数えた。
   件数だけでは直せないので、要素を名指しして（tests/_offenders.mjs）1つずつ当てている。

   判定はこう:
     ・小さい文字 … p,li,td,dd,a のうち «子要素を持たず8文字以上» で 14px 未満
     ・押しにくい … a,button のうち高さ 40px 未満

   ⚠ **見出しの «項目名» や札は対象外**（子要素を持つ、または8文字未満のため）。
   ここで上げているのは **読ませる文章**だけである。ラベルまで太らせると、
   何が本文で何が注記か分からなくなる。 */

/* ── 読ませる文章は14px以上 ── */
.hero-eyebrow      { font-size: 14px; }
.footer-license    { font-size: 14px; }
.footer-copy       { font-size: 14px; }
.footer-note       { font-size: 14px; }
.equip-list li     { font-size: 14px; }
.price-total-label { font-size: 14px; }
.price-diff        { font-size: 14px; }
.price-area        { font-size: 14px; }
.price-note-title  { font-size: 14px; }
.price-note p      { font-size: 14px; }
.side-note         { font-size: 14px; }
.detail-sub        { font-size: 14px; }
.breadcrumb        { font-size: 14px; }
.card-foot         { font-size: 14px; }
.form-hint, .form-err, .form-privacy { font-size: 14px; }
.gallery-caption   { font-size: 14px; }
.list-note         { font-size: 15px; }
.cta-note          { font-size: 15px; }

/* ── 押す場所は高さ40px以上 ──
   指で押すものだけでなく、**マウスでも «狙う» 手間は同じ**である */
.header-tel-num { display: inline-flex; align-items: center; min-height: 44px; }
.card-title a   { display: inline-block; padding-block: 5px; }   /* 32px → 42px */
.footer-line a  { display: inline-flex; align-items: center; min-height: 40px; }
.breadcrumb a   { display: inline-flex; align-items: center; min-height: 40px; }

/* 文中に置いた電話番号。**このサイトでいちばん押される場所である。**
   店舗案内の表の中と、問い合わせの前書きに、素の tel: リンクが残っていた（21px）。
   個別に当てると必ず取りこぼすので、**tel: で始まるリンクは全部まとめて**押せる大きさにする */
/* ⚠ `.btn` を除くこと。属性セレクタは `.btn-tel` より強く、
   除かないと **電話ボタンが inline-flex に化けて、幅が中身なりに縮み、
   上のボタンに食い込む。**（2026-08-20 この修正を入れた直後に、実物で発覚した）
   `.header-tel-num` も自前で大きさを持っているので触らない */
a[href^="tel:"]:not(.btn):not(.header-tel-num) {
  display: inline-flex; align-items: center; min-height: 40px; font-weight: 800;
}

/* ── 下層ページの «上の余白» ──
   `.form-section` の一括指定をやめたときに、上の余白まで 0 になった。
   ナビの線に見出しが貼り付いて見える（2026-08-20 実物で発覚） */
main.form-section { padding-block-start: 26px; }

/* 文中に並べたボタンが、くっついて見えないように */
main > p > .btn + .btn { margin-top: 10px; }

/* ══════════ 印刷 ══════════
   在庫の紙を出す人がいる。**帯・ボタン・検索は紙に要らない** */
@media print {
  .searchbar, .cta, .side-cta, .sp-cta, .demo-bar, .env-bar, .btn, .nav-bar { display: none !important; }
  body { background: #fff; }
  .card, .price-box, .note-block, .specs, .honest { box-shadow: none; }
}

/* ── スタッフ紹介（2026-08-22 作り直し）──

   最初の版は «丸い顔写真＋名前＋本文» のカードを縦に並べただけで、実測すると
   本文が **1行60文字**（日本語で読みやすいのは35〜45字）、
   いちばん大きいものが **写真の代わりの仮置きの丸** だった。
   **仮置きが主役の画面は、必ず «作りかけ» に見える。**

   いまは «代表の言葉» を主役に置く。代表メッセージは
   **写真が無くても成立する数少ない型**で、顔写真が無いことを «そういう作り» に変えられる */

.staff-page { padding-block: 8px 0; }

/* ── 代表より ── */
.rep {
  position: relative;
  background: linear-gradient(180deg, #f7fafd 0%, var(--panel) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px 34px;
  margin-block: 18px 40px;
  overflow: hidden;
  /* **枠を本文の幅に合わせる。**
     枠だけ1440pxで、中身が左40%に寄っていると «入れ忘れ» に見える。
     器が中身の大きさに合っていること自体が、丁寧さとして伝わる */
  max-width: 900px;
}
/* 左の細い帯。**枠線だけの箱は «申込用紙» に見える。** 1本入れるだけで «誌面» になる */
.rep::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--navy-l), var(--navy));
}
.rep-label {
  margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .16em;
  color: var(--navy);
}
.rep-body {
  /* **文章は «器の幅» ではなく «読める幅» で置く**（およそ38文字） */
  max-width: 38em;
}
.rep-para {
  margin: 0 0 20px; font-size: 17.5px; line-height: 2.15; color: #2a333c; font-weight: 500;
}
/* 最後の段落＝約束の一文。**ここだけ大きくする。**
   ⚠ 以前は ::first-line で書き出しを大きくしていたが、
   **日本語では «展開しておりま／す。» と文の途中で切れる。** 段落で扱うこと */
.rep-close {
  margin: 26px 0 0; font-size: 21px; line-height: 1.95;
  font-weight: 800; color: var(--navy-d); letter-spacing: .01em;
}

.rep-sign {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  max-width: 38em;
}
.rep-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.rep-sign-text { display: flex; flex-direction: column; gap: 3px; }
.rep-org  { font-size: 13px; color: var(--muted); }
.rep-name { font-size: 22px; font-weight: 900; letter-spacing: .04em; }

/* ── スタッフ（代表以外）── */
.staff-sec { margin-block: 0 40px; }
.staff-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) {
  /* 2列にする。**1列だと «1人ずつの帯» が積み上がって、名簿に見える** */
  .staff-list { grid-template-columns: 1fr 1fr; }
}
.staff-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.staff-photo img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  display: block; background: var(--tint);
}
.staff-initial {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--navy);
  font-size: 34px; font-weight: 900; line-height: 1;
}
.staff-name { margin: 0; font-size: 19px; font-weight: 900; color: var(--text); }
.staff-role {
  display: inline-block; margin-inline-start: 9px; vertical-align: 2px;
  font-size: 12px; font-weight: 800; color: var(--navy);
  background: var(--tint); border-radius: 4px; padding: 3px 9px;
}
.staff-since { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.staff-comment { margin: 9px 0 0; font-size: 15px; line-height: 1.9; max-width: 34em; }
.staff-skills { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 0; }
.staff-skills .chip {
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: var(--tint); border-radius: 999px; padding: 4px 12px;
}

/* ── 言っていることと、やっていること ──
   **言葉だけのページにしない。** «透明度が高く» と言った以上、
   それが画面のどこに出ているかを示す */
.staff-proof { margin-block: 0 8px; }
.proof-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .proof-list { grid-template-columns: repeat(3, 1fr); } }
.proof-list li {
  background: var(--tint); border-radius: var(--radius-sm); padding: 18px 20px;
}
.proof-list b { display: block; font-size: 16px; color: var(--navy-d); margin-bottom: 7px; }
.proof-list span { font-size: 14.5px; line-height: 1.85; color: #47525c; }

/* 車両詳細の «担当者から» を、紹介へつなぐ */
.voice-name a { color: inherit; }

@media (max-width: 700px) {
  .rep { padding: 28px 22px 24px; margin-block: 14px 30px; max-width: none; }
  .rep-para  { font-size: 16px; line-height: 2.05; margin-bottom: 16px; }
  .rep-close { font-size: 18px; line-height: 1.9; margin-top: 20px; }
  .rep-sign { gap: 12px; }
  .rep-face { width: 58px; height: 58px; }
  .rep-name { font-size: 19px; }

  /* 丸を小さくし、名前の横に置く。**縦に96pxを積むと、本文が下へ逃げる** */
  .staff-card { grid-template-columns: 64px 1fr; gap: 13px; padding: 16px; }
  .staff-photo img, .staff-initial { width: 64px; height: 64px; }
  .staff-initial { font-size: 25px; }
  /* span を block にすると **役割の札が横幅いっぱいに伸びて «帯» に見える** */
  .staff-name { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .staff-role { margin-inline-start: 0; vertical-align: baseline; }
}
