/* YOKOYAMA（横山商会）提案用見本サイト
   方向性：大型車・建機の塗装工場。チャコール × セーフティイエロー、太い斜体の英字見出し */
:root {
  --ink: #15171a;
  --coal: #1d2024;
  --steel: #2a2e34;
  --line: #e3e5e8;
  --muted: #6b7179;
  --paper: #f4f4f1;
  --white: #fff;
  --yellow: #ffc20e;
  --yellow-d: #e0a800;
  --red: #d7261e;
  --wrap: 1180px;
  --en: "Archivo", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ja); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nb { display: inline-block; }
.en { font-family: var(--en); font-style: italic; font-weight: 900; letter-spacing: .01em; }

/* 見本の表示（控えめ） */
.proposal-banner { background: var(--ink); color: #c9ccd1; font-size: 12px; text-align: center; padding: 6px 12px; line-height: 1.6; border-bottom: 1px solid #000; }
.proposal-banner b { color: var(--yellow); font-weight: 700; }
.ph { outline: 1.5px dashed #3b82f6; outline-offset: 3px; border-radius: 2px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,23,26,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand .logo { font-family: var(--en); font-style: italic; font-weight: 900; font-size: 26px; letter-spacing: .02em; padding-bottom: 5px; border-bottom: 4px solid currentColor; }
.brand small { font-size: 10px; color: #aeb3ba; margin-top: 5px; letter-spacing: .12em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 4px; color: #d6d9dd; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--yellow); }
.tel-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 4px; white-space: nowrap; }
.tel-btn svg { width: 18px; height: 18px; }
.tel-btn:hover { background: #ffd34d; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 4px; border: 2px solid transparent; transition: .15s; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover { background: #ffd34d; }
.btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-out { border-color: var(--ink); color: var(--ink); }
.btn-out:hover { background: var(--ink); color: #fff; }

/* ヒーロー */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.hero-slides { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; background: center 40% / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease-out; }
.hero-img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,16,18,.92) 0%, rgba(15,16,18,.7) 42%, rgba(15,16,18,.15) 100%), linear-gradient(0deg, rgba(15,16,18,.85) 0%, transparent 45%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); }
.hero-kicker::before { content: ""; width: 34px; height: 3px; background: var(--yellow); }
.hero-en { font-family: var(--en); font-style: italic; font-weight: 900; font-size: clamp(44px, 8.4vw, 112px); line-height: .92; margin: 18px 0 18px; letter-spacing: -.01em; text-transform: uppercase; }
.hero-en span { color: var(--yellow); }
.hero h1 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.5; margin: 0 0 14px; }
.hero p { margin: 0; color: #d4d7db; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.hero-tags li { font-size: 12px; font-weight: 700; padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #e7e9ec; }

/* 黄黒の帯 */
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }

/* セクション */
.block { padding: 96px 0; }
.block.dark { background: var(--ink); color: #fff; }
.block.paper { background: var(--paper); }
.sec-head { margin-bottom: 44px; }
.sec-en { font-family: var(--en); font-style: italic; font-weight: 900; font-size: clamp(36px, 5.4vw, 64px); line-height: 1; text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.sec-en::after { content: ""; display: block; width: 64px; height: 6px; background: var(--yellow); margin-top: 14px; }
.sec-title { font-size: 20px; font-weight: 800; margin: 16px 0 0; }
.sec-lead { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.dark .sec-lead { color: #aeb3ba; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* 動画プレイヤー（トップ） */
.reel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.reel-side { position: relative; align-self: stretch; }
.reel-stage { position: relative; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.reel-stage video { width: 100%; height: 100%; object-fit: cover; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; pointer-events: none; }
.reel-cap b { display: block; font-size: 18px; line-height: 1.4; }
.reel-cap span { font-size: 13px; color: #c9ccd1; }
.reel-cap a { pointer-events: auto; flex-shrink: 0; }
.reel-badge { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 3px; display: flex; align-items: center; gap: 6px; }
.reel-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.reel-sound { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 6px 12px; cursor: pointer; font-family: inherit; }
.reel-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yellow); width: 0; z-index: 2; }
.reel-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.reel-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; background: var(--steel); color: #fff; border: 2px solid transparent; cursor: pointer; text-align: left; font-family: inherit; }
.reel-item img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.reel-item b { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-item small { display: block; color: var(--yellow); font-weight: 700; font-size: 12px; margin-top: 2px; }
.reel-item.on { border-color: var(--yellow); }
.reel-item:hover { background: #343941; }
.reel-note { font-size: 12px; color: #8a9098; margin-top: 14px; }

/* 強み */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.point { background: #fff; padding: 34px 30px; }
.point .num { font-family: var(--en); font-style: italic; font-weight: 900; font-size: 44px; line-height: 1; color: var(--yellow-d); }
.point h3 { font-size: 19px; margin: 12px 0 8px; line-height: 1.5; }
.point p { margin: 0; color: #4a5058; font-size: 15px; }

/* 施工の流れ（ビフォーアフター） */
.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: ba; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.ba figcaption { margin-top: 12px; }
.ba figcaption b { font-family: var(--en); font-style: italic; font-weight: 900; font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ba figcaption b::before { counter-increment: ba; content: "0" counter(ba); font-size: 13px; background: var(--yellow); color: var(--ink); padding: 2px 7px; border-radius: 2px; font-style: normal; }
.ba figcaption span { color: #aeb3ba; font-size: 14px; }
.ba-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.ba-wide figure { margin: 0; position: relative; }
.ba-wide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.ba-wide .tag { position: absolute; top: 12px; left: 12px; font-family: var(--en); font-style: italic; font-weight: 900; font-size: 14px; padding: 3px 12px; border-radius: 2px; background: #fff; color: var(--ink); }
.ba-wide .tag.after { background: var(--yellow); }

/* サービス */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.dark .svc { color: var(--ink); border-color: #2f343b; }
.svc img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc-body { padding: 20px 22px 24px; }
.svc h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.svc p { margin: 0; font-size: 14.5px; color: #4a5058; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; list-style: none; }
.chips li { background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 3px; }
.chips.light li { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* 施工事例ギャラリー */
.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; }
.works figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: #000; }
.works figure.w2 { grid-column: span 2; }
.works figure.h2 { grid-row: span 2; }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; opacity: .95; }
.works figure:hover img { transform: scale(1.05); }
.works figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }

/* 在庫カード */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: .2s; }
.item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.item-ph { position: relative; aspect-ratio: 4/3; background: #eee; }
.item-ph img { width: 100%; height: 100%; object-fit: cover; }
.badge-video { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(29,111,224,.95); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.badge-video svg { width: 18px; height: 18px; }
.badge-sold { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 3px; letter-spacing: .06em; }
.item.sold { background: #eeeff1; border-color: #e0e2e5; color: #6b7179; }
.item.sold:hover { transform: none; box-shadow: none; }
.item.sold .item-title { color: #4a5058; }
.item.sold .item-price { font-size: 12px; }
.item-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-cat { font-size: 12px; font-weight: 700; color: var(--muted); }
.item-title { font-size: 15px; line-height: 1.5; }
.item-spec { font-size: 12.5px; color: var(--muted); }
.item-price { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.item-price b { font-family: var(--en); font-weight: 800; font-size: 26px; color: var(--ink); font-style: normal; }
.item-price small { font-size: 13px; color: var(--ink); font-weight: 700; }
.dark .item { border-color: #2f343b; }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filters button { font-family: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.filters button.on span { color: #c9ccd1; }

/* ページ見出し */
.page-head { background: var(--ink) center / cover no-repeat; color: #fff; position: relative; padding: 76px 0 60px; }
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(15,16,18,.72); }
.page-head .wrap { position: relative; }
.page-head .sec-en { font-size: clamp(40px, 6vw, 72px); }
.page-head p { margin: 14px 0 0; color: #c9ccd1; }
.page-head.slim { padding: 22px 0; }
.page-head.slim::before { background: none; }
.crumb { font-size: 13px; color: #aeb3ba; }
.crumb a { color: #fff; }

/* 在庫の詳細 */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery-main { position: relative; background: #111; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4/3; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--yellow); }
.d-title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; margin: 6px 0 14px; }
.d-catch { font-weight: 700; color: var(--red); margin: -6px 0 12px; }
.d-price { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.d-price div { flex: 1; padding: 12px 16px; }
.d-price div + div { border-left: 1px solid var(--line); }
.d-price div.total { background: var(--ink); color: #fff; }
.d-price span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.d-price .total span { color: var(--yellow); }
.d-price b { font-family: var(--en); font-weight: 800; font-size: 30px; line-height: 1.2; }
.d-price small { font-size: 14px; font-weight: 700; }
.movie-link { display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.movie-link svg { width: 18px; height: 18px; }
.movie-link small { margin-left: auto; font-weight: 500; opacity: .85; }
.movie-link:hover { background: #b81e17; }
#movie { scroll-margin-top: 90px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 22px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 9px 4px; text-align: left; vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 700; }
.d-desc { background: var(--paper); border-radius: 6px; padding: 18px 20px; font-size: 14.5px; margin-bottom: 22px; }
/* 欄の見出し（装備・状態／アピールポイント／保証について・11/19） */
.d-desc h3.d-desc-h { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; line-height: 1.4; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 2px solid var(--yellow); }
.d-desc h3.d-desc-h::before { content: ""; display: block; width: 4px; height: 1em; border-radius: 2px; background: var(--yellow); }
.d-desc-b { white-space: pre-wrap; line-height: 1.75; }
.d-ask { border-top: 4px solid var(--yellow); background: var(--ink); color: #fff; padding: 22px; border-radius: 0 0 6px 6px; }
.d-ask p { margin: 0 0 14px; font-size: 14px; color: #c9ccd1; }
.d-ask .btns { display: grid; gap: 10px; }
.video-col h2 { font-size: 18px; margin: 0 0 4px; }
.video-col { margin-top: 34px; }
.video-box { background: var(--ink); color: #fff; border-radius: 8px; padding: 26px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.video-box #mc-video .mcv { margin: 0; max-width: none; }
.video-box #mc-video .mcv h3 { color: #fff; }
.video-box .why b { font-family: var(--en); font-style: italic; font-weight: 900; font-size: 30px; color: var(--yellow); line-height: 1.1; display: block; margin-bottom: 10px; text-transform: uppercase; }
.video-box .why p { color: #c9ccd1; margin: 0 0 10px; font-size: 14.5px; }

/* 会社案内 */
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { padding: 16px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.info th { width: 26%; font-weight: 700; color: var(--muted); white-space: nowrap; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cc { background: var(--steel); color: #fff; border-radius: 6px; padding: 26px 24px; text-decoration: none; display: block; transition: .15s; }
.cc:hover { background: #343941; }
.cc span { font-size: 13px; color: #aeb3ba; font-weight: 700; display: block; }
.cc b { display: block; font-size: 22px; font-family: var(--en); font-weight: 800; margin: 6px 0 4px; word-break: break-all; }
.cc small { color: var(--yellow); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.map-link { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; aspect-ratio: 4/3; border-radius: 6px; background: url(img/carrier-bed.webp) center / cover; position: relative; color: #fff; text-decoration: none; overflow: hidden; }
.map-link::before { content: ""; position: absolute; inset: 0; background: rgba(15,16,18,.7); }
.map-link > * { position: relative; }
.map-link b { font-size: 18px; }

/* CTA */
.cta { background: var(--yellow); color: var(--ink); padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2, .cta .cta-h { font-family: var(--en); font-style: italic; font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1; margin: 0 0 10px; text-transform: uppercase; }
.cta p { margin: 0; font-weight: 700; }
.cta-tel { text-decoration: none; display: block; text-align: right; }
.cta-tel small { display: block; font-size: 13px; font-weight: 700; }
.cta-tel b { font-family: var(--en); font-weight: 900; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: .01em; }

/* フッター */
.site-footer { background: #0e0f11; color: #aeb3ba; padding: 56px 0 40px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { text-decoration: none; color: #fff; }
.site-footer small { color: #6b7179; }

/* スマホ下部メニュー */
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .tel-btn { margin-left: auto; }
  .reel { grid-template-columns: minmax(0, 1fr); }
  .reel-list { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .reel-item { flex: 0 0 240px; scroll-snap-align: start; }
  .points, .services { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .detail, .two-col { grid-template-columns: 1fr; gap: 30px; }
  .video-box { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .block { padding: 64px 0; }
  .site-header .wrap { height: 58px; gap: 12px; }
  .brand .logo { font-size: 21px; border-bottom-width: 3px; padding-bottom: 4px; }
  .tel-btn { font-size: 0; padding: 10px; }
  .tel-btn svg { width: 20px; height: 20px; }
  .hero { min-height: 88vh; }
  .hero::after { background: linear-gradient(0deg, rgba(15,16,18,.95) 0%, rgba(15,16,18,.65) 55%, rgba(15,16,18,.25) 100%); }
  .hero .wrap { padding-bottom: 44px; }
  .hero-actions .btn { flex: 1; padding: 14px 8px; font-size: 14px; white-space: nowrap; }
  .hero h1 { font-size: 22px; }
  .reel-stage.portrait { aspect-ratio: 9 / 14; }
  .points, .services, .ba { grid-template-columns: 1fr; }
  .ba { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ba figure { scroll-snap-align: start; }
  .ba-wide { grid-template-columns: 1fr; }
  .works { grid-auto-rows: 140px; gap: 6px; }
  .works figure.w2 { grid-column: span 2; }
  .items { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item-body { padding: 10px 10px 14px; }
  .item-title { font-size: 13.5px; }
  .item-price b { font-size: 21px; }
  .d-price b { font-size: 24px; }
  .info th { width: 30%; white-space: normal; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .cta-tel { text-align: left; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 1px solid #2f343b; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; text-decoration: none; color: #c9ccd1; font-size: 10.5px; font-weight: 700; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-nav a.hl { background: var(--yellow); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .hero-img { transition: none; transform: none; } .reel-badge::before { animation: none; } }

/* ── 10/10 追加 ── */
/* 電話番号：PC ではリンクにしない */
@media (min-width: 641px) {
  a.tel-link { pointer-events: none; cursor: text; text-decoration: none; color: inherit; }
  .btn.tel-link { background: none; border-color: transparent; font-family: var(--en); font-size: 22px; padding: 6px 0; justify-content: flex-start; }
}
.cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cta-tel small { display: block; font-size: 13px; font-weight: 700; }
.cta-num { font-family: var(--en); font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; text-decoration: none; color: var(--ink); }
.f-sns { display: flex; gap: 12px; margin-top: 18px; }
.f-sns a { width: 40px; height: 40px; border-radius: 50%; background: #23262b; color: #fff; display: flex; align-items: center; justify-content: center; }
.f-sns a:hover { background: var(--yellow); color: var(--ink); }
.f-sns svg { width: 20px; height: 20px; }

/* ページトップ */
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 55; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: #ffd34d; }

/* 詳細の動画（PC 横長・スマホ縦長） */
.video-box { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.cv h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: #fff; }
.cv h3 i { font-style: normal; font-size: 11px; background: var(--red); color: #fff; border-radius: 3px; padding: 1px 6px; }
.cv .f { position: relative; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.cv.portrait .f { aspect-ratio: 9 / 16; }
.cv .f img, .cv .f video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv .f video { object-fit: contain; }
.cv .p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cv .p span { width: 80px; height: 80px; border-radius: 50%; background: rgba(0,0,0,.6); border: 3px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.cv .p svg { width: 34px; height: 34px; margin-left: 5px; }
.cv .f:hover .p span { background: var(--red); }
.cv .n { font-size: 12px; color: #8a9098; margin-top: 8px; text-align: right; }

/* お問い合わせ */
.contact-cards { grid-template-columns: repeat(4, 1fr); }
.cc { display: flex; flex-direction: column; gap: 2px; }
.cc .cc-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex !important; align-items: center; justify-content: center; margin-bottom: 12px; }
.cc .cc-ic svg { width: 24px; height: 24px; }
.cc b, .cc .tel-link { display: block; font-size: 19px; font-family: var(--en); font-weight: 800; margin: 6px 0 4px; word-break: break-all; color: #fff; text-decoration: none; line-height: 1.35; }
.form { max-width: 760px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form label > span { display: flex; align-items: center; gap: 8px; }
.form input:not([type=radio]), .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #cfd3d8; border-radius: 6px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--yellow); border-color: var(--ink); }
.form input[readonly] { background: var(--paper); }
.req { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.form-kind label { display: block; }
.form-kind input { position: absolute; opacity: 0; }
.form-kind span { display: inline-block; padding: 9px 16px; border: 1px solid #cfd3d8; border-radius: 999px; cursor: pointer; font-size: 14px; }
.form-kind input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-kind input:focus-visible + span { outline: 2px solid var(--yellow); }
.form button { justify-self: start; min-width: 220px; }
.form-msg { background: #fff1f0; color: #a4161a; border-radius: 6px; padding: 12px 14px; margin: 0; font-size: 14px; }
.form [hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 地図・Instagram */
.map { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.insta-ph { min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: repeating-linear-gradient(90deg, var(--paper) 0 24%, #fff 24% 25.3%); border-radius: 6px; color: var(--muted); font-size: 14px; }
.btn-out svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .video-box { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tel-btn { font-size: 13px; padding: 9px 12px; }
  .tel-btn svg { width: 18px; height: 18px; }
  .mobile-nav { grid-template-columns: repeat(5, 1fr); }
  .to-top { bottom: calc(72px + env(safe-area-inset-bottom)); right: 12px; width: 44px; height: 44px; }
  .cta-right { align-items: flex-start; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .form button { justify-self: stretch; }
  .cv .f { max-width: 360px; margin: 0 auto; }
}

/* ── 10/10 その2 ── */
.video-box { grid-template-columns: 1fr; }
.cv { width: 100%; max-width: 980px; margin: 0 auto; }
.cv.portrait { max-width: 420px; }
.cv .n { text-align: left; }
.cc .cc-h { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cc .cc-h .cc-ic { margin: 0; width: 42px; height: 42px; flex-shrink: 0; }
.form-item { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border-left: 5px solid var(--yellow); border-radius: 6px; padding: 16px; }
.form-item img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.form-item div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.form-item .fi-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.form-item b { font-size: 17px; line-height: 1.45; margin-bottom: 4px; }
.form-item a { margin-top: 6px; font-size: 13px; }
.insta { display: flex; justify-content: center; }
@media (max-width: 640px) {
  .form-item { flex-direction: column; }
  .form-item img { width: 100%; }
  .cv.portrait { max-width: none; }
  .cv .f { max-width: none; }
}
.cc b.cc-s { font-size: 14px; word-break: normal; overflow-wrap: anywhere; }
.points.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .points.two { grid-template-columns: 1fr; } }

/* 写真ギャラリー（共通部品 gallery.css）の色 */
.cg { --cg-accent: var(--yellow); }
.item-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.d-price div + div + div { border-left: 1px solid var(--line); }
.sl { --sl-accent: var(--ink); }
.sl-filters { margin-bottom: 14px; }
/* 車名：「メーカー名 車種名」を太字の1行、グレード・PR はその下（engine/naming.py） */
.item-name { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.item-body .item-title { font-weight: 400; font-size: 13px; color: #4a5058; }
.d-title .d-name { display: block; font-weight: 800; }
.d-title .d-grade { display: block; font-size: 16px; font-weight: 400; line-height: 1.6; margin-top: 4px; color: #333; }
@media (max-width: 640px) { .item-name { font-size: 14px; } .d-title .d-grade { font-size: 14px; } }
/* 商談中など（青）。売約済み（赤）と区別 */
.badge-nego { position: absolute; left: 8px; top: 8px; z-index: 3; background: #1d6fe0; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 3px; letter-spacing: .06em; }
.badge-nego.static { position: static; display: inline-block; }
.d-nego { margin: 0 0 8px; color: #1d6fe0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* 日本語のページ見出し（英語は飾り。10/16 SEO） */
.page-head .page-h1 { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: #c9ccd1; line-height: 1.6; }

/* 施工事例（works.html・2026-10-31） */
.works figure > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.works figcaption small { display: block; font-size: 11px; font-weight: 500; opacity: .85; margin-top: 2px; }
.works figure[hidden] { display: none; }
.w-cnt { position: absolute; top: 8px; right: 8px; background: rgba(21,23,26,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.wfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.wfilter button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 4px; cursor: pointer; }
.wfilter button small { font-size: 12px; margin-left: 6px; opacity: .7; }
.wfilter button[aria-pressed="true"] { background: var(--yellow); }
.more-link { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.more-link a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }
.more-link a::after { content: " →"; }
.more-link.light a { color: #fff; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,11,13,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 92vw; text-align: center; }
.lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.lb figcaption { color: #fff; font-size: 14px; font-weight: 700; margin-top: 12px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 16px; }
.lb-x { top: 8px; right: 8px; font-size: 36px !important; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .wfilter { flex-wrap: nowrap; overflow-x: auto; margin: 20px -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
  .wfilter button { flex: none; white-space: nowrap; font-size: 13px; padding: 7px 12px; }
}
.lb-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; overflow-x: auto; max-width: 92vw; padding-bottom: 4px; }
.lb-thumbs[hidden] { display: none; }
.lb .lb-thumbs button { position: static; flex: none; padding: 0; width: 72px; height: 54px; border: 2px solid transparent; border-radius: 3px; overflow: hidden; opacity: .55; font-size: 0; }
.lb .lb-thumbs button.on { border-color: var(--yellow); opacity: 1; }
.lb .lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb img { max-height: 72vh; }
@media (max-width: 640px) { .lb .lb-thumbs { justify-content: flex-start; } .lb .lb-thumbs button { width: 60px; height: 45px; } }

/* 詳細：保証・法定整備の印と支払総額の注記（CARbase の詳細と同じ項目・11/19） */
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.d-badges span { font-size: 12px; font-weight: 700; background: #f2f2f2; border-radius: 4px; padding: 3px 8px; }
.d-pnote { list-style: none; margin: 0 0 14px; padding: 0; font-size: 11px; line-height: 1.6; color: #777; }
.d-pnote li { padding-left: 1em; text-indent: -1em; }
.d-pnote li::before { content: "※"; color: #d23; }

/* NEW・更新の印（CARbase の一覧と同じ決まり・色。engine/fresh.py が出す・11/20 永谷さん）。商談中の印はその下へ */
.cb-fresh { position: absolute; top: 8px; left: 8px; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 3px; letter-spacing: .05em; pointer-events: none; }
.cb-fresh.cb-new { background: #e54b62; }
.cb-fresh.cb-upd { background: #84c700; }
.cb-fresh ~ .badge-nego { top: 36px; }
.cb-fresh-all { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; line-height: 1; color: #fff !important; background: #e54b62; padding: 4px 10px; border-radius: 4px; vertical-align: middle; letter-spacing: .03em; }
@media (max-width: 640px) { .cb-fresh { font-size: 11px; padding: 3px 6px; } .cb-fresh ~ .badge-nego { top: 32px; } }

/* 価格の小数点以下を小さく（11/20） */
b .pd { font-size: .62em; font-weight: inherit; letter-spacing: 0; }
