/* 既存サイトの外枠で包む在庫ページ（stock-sites 共通）。サイトの CSS とぶつからないよう .sk の中だけ。
   店の色は .sk{--sk-accent;--sk-accent-d} で上書き（render_wrap.py が差し込む） */
.sk { --sk-accent: #e60012; --sk-accent-d: #b0000e; --sk-ink: #222; --sk-muted: #6b7179; --sk-line: #e3e5e8; --sk-soft: #f6f6f4; --sk-red: #d7261e; --sk-blue: #1d6fe0;
  color: var(--sk-ink); font-size: 15px; line-height: 1.75; max-width: 1180px; margin: 0 auto; text-align: left; }
.sk *, .sk *::before, .sk *::after { box-sizing: border-box; }
.sk img { max-width: 100%; display: block; }
.sk a { color: inherit; }
.sk-lead { margin: 0 0 18px; font-size: 15px; }
.sk-lead b { font-size: 22px; color: var(--sk-accent-d); }
.sk-lead span { font-size: 12px; color: var(--sk-muted); margin-left: 6px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.sk-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sk-line); border-radius: 8px; overflow: hidden; text-decoration: none !important; transition: .2s; }
a.sk-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.sk-ph { position: relative; display: block; aspect-ratio: 4 / 3; background: #eee; }
.sk-ph img { width: 100%; height: 100%; object-fit: cover; }
.sk-vid { 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); }
.sk-vid svg { width: 18px; height: 18px; }
.sk-sold { position: absolute; left: 8px; top: 8px; background: var(--sk-red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.sk-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; flex: 1; }
.sk-title { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sk-spec { font-size: 12px; color: var(--sk-muted); }
.sk-price { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 12px; color: var(--sk-muted); }
.sk-total b { font-size: 24px; color: var(--sk-red); font-weight: 800; margin: 0 2px; }
.sk-base b, .sk-fee b { font-size: 15px; color: var(--sk-ink); font-weight: 700; margin: 0 2px; }
.sk-item.sold { background: #f1f2f4; border-color: #e0e2e5; color: var(--sk-muted); }
.sk-note { font-size: 12px; color: var(--sk-muted); margin-top: 24px; }
.sk-back { margin: 0 0 14px; font-size: 14px; }
.sk-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.sk-main { background: #111; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.sk-main img { width: 100%; height: 100%; object-fit: contain; }
.sk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 8px; }
.sk-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.sk-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.sk-thumbs button.on { border-color: var(--sk-accent); }
.sk-h1 { font-size: 21px; line-height: 1.5; margin: 0 0 8px; font-weight: 700; }
.sk-catch { color: var(--sk-red); font-weight: 700; margin: 0 0 10px; }
.sk-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 12px 16px; border: 2px solid var(--sk-accent); border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.sk-prices .sk-total b { font-size: 32px; }
.sk-prices .sk-base b, .sk-prices .sk-fee b { font-size: 18px; }
.sk-movie-link { display: flex; align-items: center; gap: 10px; background: var(--sk-red); color: #fff !important; text-decoration: none !important; font-weight: 700; padding: 11px 16px; border-radius: 6px; margin-bottom: 16px; }
.sk-movie-link svg { width: 18px; height: 18px; }
.sk-movie-link small { margin-left: auto; font-weight: 400; opacity: .85; }
.sk-spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.sk-spec th, .sk-spec td { border-bottom: 1px solid var(--sk-line); padding: 8px 4px; text-align: left; vertical-align: top; }
.sk-spec th { width: 32%; color: var(--sk-muted); font-weight: 700; }
.sk-eq { background: var(--sk-soft); border-radius: 6px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
/* 欄の見出し（装備・状態／アピールポイント／保証について・11/19）。テーマの h3 の飾りを打ち消してから付ける */
.sk .sk-eq h3.sk-eq-h { all: unset; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--sk-ink); padding: 0 0 8px; margin: 0 0 10px; border-bottom: 2px solid var(--sk-accent); }
.sk .sk-eq h3.sk-eq-h::before { content: ""; display: block; width: 4px; height: 1em; border-radius: 2px; background: var(--sk-accent); }
.sk .sk-eq h3.sk-eq-h::after { content: none; }
.sk .sk-eq-b { white-space: pre-wrap; line-height: 1.75; }
.sk-ask { background: var(--sk-soft); border-top: 4px solid var(--sk-accent); border-radius: 0 0 8px 8px; padding: 16px; display: grid; gap: 10px; }
.sk-ask p { margin: 0; font-size: 13px; color: var(--sk-muted); }
.sk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none !important; padding: 13px 16px; border-radius: 6px; font-size: 15px; }
.sk-btn svg { width: 18px; height: 18px; }
.sk-tel { background: #fff; border: 2px solid var(--sk-accent); color: var(--sk-ink) !important; font-size: 18px; }
.sk-mail { background: var(--sk-accent-d); color: #fff !important; }
.sk-movie { margin-top: 36px; background: #15171a; border-radius: 10px; padding: 22px; }
.sk-cv { max-width: 980px; margin: 0 auto; }
.sk-cv.portrait { max-width: 420px; }
.sk-cv h3 { color: #fff; font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.sk-cv h3 i { font-style: normal; font-size: 11px; background: var(--sk-red); border-radius: 3px; padding: 1px 6px; }
.sk-cv .f { position: relative; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.sk-cv.portrait .f { aspect-ratio: 9 / 16; }
.sk-cv .f img, .sk-cv .f video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-cv .f video { object-fit: contain; }
.sk-cv .p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sk-cv .p span { width: 78px; height: 78px; border-radius: 50%; background: rgba(0,0,0,.6); border: 3px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.sk-cv .p svg { width: 32px; height: 32px; margin-left: 5px; }
.sk-cv .n { color: #8a9098; font-size: 12px; margin-top: 8px; }
/* PC では電話番号をリンクにしない */
@media (min-width: 641px) { .sk a[href^="tel:"] { pointer-events: none; cursor: text; } }
@media (max-width: 960px) { .sk-detail { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) {
  .sk-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sk-body { padding: 10px 10px 12px; }
  .sk-title { font-size: 13px; }
  .sk-total b { font-size: 20px; }
  .sk-h1 { font-size: 18px; }
  .sk-movie { padding: 14px; margin-left: -6px; margin-right: -6px; }
}
.sk-soldpage { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.sk-soldpage img { width: 100%; border-radius: 8px; }
.sk-soldmsg { font-size: 20px; font-weight: 700; color: var(--sk-red); margin: 8px 0 0; }
.sk-soldpage .sk-btn { min-width: 240px; }
/* お問い合わせ（site-forms の基本形を外枠で包む） */
.sk-contact { max-width: 760px; margin: 0 auto; }
.sk-telbox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--sk-soft); border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; }
.sk-telbox span { font-size: 13px; color: var(--sk-muted); }
.sk-telbox a { font-size: 22px; font-weight: 700; text-decoration: none; }
.sk-telbox small { font-size: 12px; color: var(--sk-muted); }
.sk .form { --form-accent: var(--sk-accent); max-width: none; }
.sk .form-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.sk .form-kind label { display: block; }
.sk .form-kind input { position: absolute; opacity: 0; }
.sk .form-kind span { display: inline-block; padding: 8px 16px; border: 1px solid #cfd3d8; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 400; }
.sk .form-kind input:checked + span { background: var(--sk-accent-d); color: #fff; border-color: var(--sk-accent-d); }
.sk .form button.sk-btn { border: 0; justify-self: start; min-width: 240px; font-family: inherit; }
@media (max-width: 640px) { .sk .form button.sk-btn { justify-self: stretch; } }
.sk-notes { font-size: 13px; color: var(--sk-muted); margin: 0 0 16px; padding-left: 1.2em; }
.sk .sk-fh { font-size: 16px; font-weight: 700; margin: 10px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--sk-accent); }
.sk .form select { height: auto; min-height: 46px; line-height: 1.4; font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid #cfd3d8; border-radius: 6px; background: #fff; width: 100%; }
.sk .form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .sk .form-2 { grid-template-columns: 1fr; } }
/* 車名：「メーカー名 車種名」を太字の1行、グレード・PR はその下（naming.py） */
.sk-name { display: block; font-size: 15px; font-weight: 800; line-height: 1.4; }
.sk-body .sk-title { font-weight: 700; font-size: 14px; color: #222; }  /* グレードは太く大きめに（11/20 永谷さん） */
.sk-h1 .sk-name { font-size: 24px; margin-bottom: 4px; }
.sk-h1 .sk-grade { display: block; font-size: 16px; font-weight: 400; line-height: 1.6; color: #333; }
@media (max-width: 640px) { .sk-name { font-size: 14px; } .sk-h1 .sk-name { font-size: 21px; } .sk-h1 .sk-grade { font-size: 14px; } }
/* 商談中など（CARbase の status 1。文言はお店が変えられる）：青いバッジ。売約済みの赤と区別する */
.sk-nego { position: absolute; left: 8px; top: 8px; z-index: 3; background: #1d6fe0; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.sk-nego-line { margin: 0 0 8px; font-size: 13px; color: #1d6fe0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sk-nego-tag { background: #1d6fe0; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; }

/* 旧 API と同じ絞り込みの「該当なし」・型式名の検索欄（11/19 札幌リサイクル倉庫から） */
.sk .sk-none{margin:12px 0;color:#c00;font-weight:bold}
.sk .sk-kw{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 10px}
.sk .sk-kw input{padding:6px 8px;border:1px solid #bbb;border-radius:4px;min-width:0;flex:1 1 180px;max-width:280px;font-size:16px}
.sk .sk-kw button,.sk .sk-kw a{padding:6px 12px;border:1px solid var(--sk-accent-d);border-radius:4px;background:#fff;color:var(--sk-accent-d);font-size:14px;text-decoration:none;cursor:pointer}
.sk .sk-kw button{background:var(--sk-accent-d);color:#fff}

/* 列数を店ごとに（render の cols。11/19 札幌リサイクル倉庫から）。無い店は今までどおり 250px 以上で自動 */
.sk-grid.sk-cols { grid-template-columns: repeat(var(--c-pc), minmax(0, 1fr)); }
@media (max-width: 960px) { .sk-grid.sk-cols { grid-template-columns: repeat(var(--c-tab), minmax(0, 1fr)); } }
@media (max-width: 640px) { .sk-grid.sk-cols { grid-template-columns: repeat(var(--c-sp), minmax(0, 1fr)); } }

/* 詰めたカード（render の card_style: "compact"）。横に4〜5台でも読めるように文字・余白を小さく、情報の順番をそろえる */
.sk-compact { gap: 12px; }
.sk-compact .sk-item { border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sk-compact a.sk-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); border-color: var(--sk-accent); }
.sk-compact .sk-sold, .sk-compact .sk-nego { left: 6px; top: 6px; font-size: 11px; padding: 2px 8px; }
.sk-compact .sk-vid { right: 6px; top: 6px; width: 26px; height: 26px; }
.sk-compact .sk-vid svg { width: 14px; height: 14px; }
.sk-compact .sk-cnt { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 10px; }
.sk-compact .sk-body { gap: 5px; padding: 9px 10px 10px; }
.sk-compact .sk-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-compact .sk-body .sk-title { font-size: 13px; line-height: 1.45; color: #222; font-weight: 700; -webkit-line-clamp: 3; }  /* グレードは3行まで（11/20 永谷さん「もう1行」） */
.sk-compact .sk-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.sk-compact .sk-chips i { font-style: normal; font-size: 11px; line-height: 1; color: #555; background: #f2f0ec; border-radius: 3px; padding: 4px 6px; }
.sk-compact .sk-price { display: block; margin-top: auto; padding-top: 7px; border-top: 1px dashed var(--sk-line); }
.sk-compact .sk-total { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; white-space: nowrap; }
.sk-compact .sk-total small { font-size: 11px; color: var(--sk-muted); }
.sk-compact .sk-total small:first-child { flex-basis: 100%; line-height: 1.2; }
.sk-compact .sk-total b { font-size: 21px; line-height: 1.1; margin: 0; }
.sk-compact .sk-sub { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 11px; color: #555; margin-top: 2px; }
.sk-compact .sk-done { font-size: 12px; color: var(--sk-muted); }
.sk-compact .sk-more { display: block; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--sk-accent); padding: 6px 4px; letter-spacing: .05em; }
.sk-compact .sk-more::after { content: " ›"; }
.sk-compact a.sk-item:hover .sk-more { background: var(--sk-accent-d); }
.sk-compact .sk-item.sold .sk-ph img { opacity: .7; }
.sl.sl-list .sk-compact .sk-more { display: none; }
.sl.sl-list .sk-compact .sk-total small:first-child { flex-basis: auto; }
@media (max-width: 640px) {
  .sk-compact { gap: 8px; }
  .sk-compact .sk-body { padding: 8px 8px 9px; }
  .sk-compact .sk-name { font-size: 13px; }
  .sk-compact .sk-total b { font-size: 18px; }
}

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

/* バッジを写真の右上の角ぴったりに（render の badge_pos: "tr"。11/19 札幌リサイクル倉庫の依頼・写真の中身を隠しにくく）。動画の印は左上へ */
.sk-badge-tr .sk-sold, .sk-badge-tr .sk-nego { left: auto; right: 0; top: 0; border-radius: 0 0 0 4px; }
.sk-badge-tr .sk-vid { right: auto; left: 6px; }
/* 詳細ページの大きい写真のバッジを左下の角ぴったりに（render の detail_badge_pos: "bl"。11/19 札幌リサイクル倉庫の依頼・店ごと） */
.sk-badge-bl .cg-main .sk-nego, .sk-badge-bl .cg-main .sk-sold { left: 0; top: auto; bottom: 0; border-radius: 0 4px 0 0; }

/* 横長のカード（render の card_style: "row"・11/20 オートボーイ）。旧 CARbase API の一覧と同じ並びを、見やすく整えたもの */
.sk-grid.sk-row { grid-template-columns: 1fr !important; gap: 16px; }
/* 1台に横長（.sk-dual-row）と詰めたカード（.sk-dual-tile）の両方があり、リスト表示＝横長・コマ表示＝詰めたカードを4・3・2列に（11/20） */
.sk-row .sk-dual-tile { display: none; }
.sl.sl-list .sk-row [data-sl-item] > :first-child { min-height: 0; height: auto; aspect-ratio: auto; }
.sl:not(.sl-list) .sk-grid.sk-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; align-items: stretch; }
.sl:not(.sl-list) .sk-row .sk-dual-row { display: none; }
.sl:not(.sl-list) .sk-row .sk-dual-tile { display: flex; height: 100%; }
.sl:not(.sl-list) .sk-row .sk-dual-tile > .sk-item { flex: 1; }
@media (max-width: 960px) { .sl:not(.sl-list) .sk-grid.sk-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .sl:not(.sl-list) .sk-grid.sk-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } }
.sl.sl-list .sk-row [data-sl-item]:not([hidden]), .sl .sk-row [data-sl-item]:not([hidden]) { display: block !important; }
.sl .sk-row [data-sl-item][hidden] { display: none !important; }  /* 絞り込み・ページ送りで隠した車は出さない */
.sk-ritem { background: #fff; border: 1px solid var(--sk-line); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.06); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.sk-ritem:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); border-color: #d6d6d6; }
.sk-r-name { margin: 0; padding: 12px 16px 11px 14px; font-size: 16px; line-height: 1.5; font-weight: 700; background: linear-gradient(#fafafa, #f2f2f2); border-bottom: 1px solid var(--sk-line); border-left: 5px solid var(--sk-accent); }
.sk-r-name a { color: #222 !important; text-decoration: none !important; }
.sk-r-name a:hover { color: var(--sk-accent-d) !important; }
.sk-r-name span { font-weight: 500; font-size: 14px; color: #444; }
.sk-r-main { display: grid; grid-template-columns: 240px minmax(170px, 210px) minmax(0, 1fr); gap: 16px; padding: 14px 16px; align-items: start; }
.sk-r-left { position: relative; }
.sk-r-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #eee; }
.sk-r-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.sk-r-ph:hover img { transform: scale(1.04); }
.sk-r-cnt { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 12px; }
.sk-r-cnt svg { width: 14px; height: 14px; }
.sk-ritem .sk-vid { right: 6px; top: 6px; width: 30px; height: 30px; }
.sk-ritem .sk-vid svg { width: 16px; height: 16px; }
.sk-r-price { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.sk-r-price th { width: 74px; padding: 6px 8px; font-size: 12px; font-weight: 700; color: #555; background: #f2f2f2; border-radius: 4px 0 0 4px; text-align: center; white-space: nowrap; }
.sk-r-price td { padding: 2px 8px; text-align: right; white-space: nowrap; border-bottom: 1px dotted #ddd; }
.sk-r-price td b { font-size: 22px; font-weight: 700; color: #222; letter-spacing: .01em; }
.sk-r-price td small { font-size: 11px; color: #666; margin-left: 2px; }
.sk-r-price tr.tot th { background: var(--sk-accent); color: #fff; }
.sk-r-price tr.tot td b { font-size: 30px; color: var(--sk-red); }
.sk-r-spec { width: 100%; border-collapse: collapse; font-size: 13px; align-self: start; }
.sk-r-spec th, .sk-r-spec td { border: 1px solid #e3e3e3; padding: 6px 9px; line-height: 1.45; }
.sk-r-spec th { width: 76px; background: #f6f6f6; color: #555; font-weight: 700; text-align: left; white-space: nowrap; }
.sk-r-spec td { color: #222; }
.sk-r-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; background: #f4f4f4; border-top: 1px solid var(--sk-line); }
.sk-r-shop { font-size: 13px; font-weight: 700; color: #444; padding: 3px 10px; border: 1px solid #ccc; border-radius: 999px; background: #fff; }
.sk-r-tel { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 700; color: #222 !important; text-decoration: none !important; }
.sk-r-tel small { font-size: 11px; font-weight: 700; color: #fff; background: #2a8a3e; border-radius: 3px; padding: 2px 5px; margin-right: 2px; }
.sk-r-tel svg { width: 17px; height: 17px; }
.sk-r-btns { display: flex; gap: 8px; margin-left: auto; }
.sk-r-btns a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 5px; font-size: 14px; font-weight: 700; color: #fff !important; text-decoration: none !important; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: filter .15s, transform .15s; }
.sk-r-btns a:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sk-r-btns svg { width: 16px; height: 16px; }
.sk-r-ask { background: #e8850f; }
.sk-r-more { background: var(--sk-accent-d); }
.sk-ritem.sold { opacity: .75; }
.sk-ritem .sk-done { margin: 8px 0 0; font-weight: 700; color: var(--sk-red); }
.sk-shopline { margin: 0 0 8px; font-size: 14px; }
@media (max-width: 960px) {
  .sk-r-main { grid-template-columns: 200px minmax(0, 1fr); }
  .sk-r-spec { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sk-grid.sk-row { gap: 14px; }
  .sk-r-name { font-size: 14px; padding: 10px 12px 9px 10px; border-left-width: 4px; }
  .sk-r-name span { font-size: 12px; }
  .sk-r-main { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .sk-r-price th { width: auto; padding: 5px 4px; font-size: 11px; }
  .sk-r-price td { padding: 2px 4px; }
  .sk-r-price td b { font-size: 18px; }
  .sk-r-price tr.tot td b { font-size: 24px; }
  .sk-r-spec { font-size: 12px; }
  .sk-r-spec th, .sk-r-spec td { padding: 5px 7px; }
  .sk-r-foot { padding: 10px 12px; gap: 8px 10px; }
  .sk-r-btns { width: 100%; margin-left: 0; }
  .sk-r-btns a { flex: 1; padding: 11px 8px; font-size: 13px; }
}
/* 11/20 永谷さん「コントラストを・文字は従来と同じくらいのボールドに」：グレーを濃く、枠をはっきり、車名・グレード・価格・電話を太く */
.sk-ritem { border-color: #c9c9c9; box-shadow: 0 2px 6px rgba(0,0,0,.10); }
.sk-r-name { background: #e6e6e6; border-bottom-color: #c9c9c9; font-weight: 900; color: #111; }
.sk-r-name a { color: #111 !important; }
.sk-r-name span { font-weight: 900; color: #111; font-size: 15px; }
.sk-r-price th { background: #dcdcdc; color: #222; }
.sk-r-price td { border-bottom: 1px solid #c9c9c9; }
.sk-r-price td b { font-weight: 900; color: #111; }
.sk-r-price td small { color: #333; font-weight: 700; }
.sk-r-spec th, .sk-r-spec td { border-color: #c4c4c4; }
.sk-r-spec th { background: #e3e3e3; color: #222; }
.sk-r-spec td { font-weight: 700; color: #111; }
.sk-r-foot { background: #e6e6e6; border-top-color: #c9c9c9; }
.sk-r-shop { border-color: #999; color: #111; }
.sk-r-tel { font-weight: 900; color: #111 !important; font-size: 21px; }
@media (max-width: 640px) {
  .sk-r-name span { font-size: 13px; }
  .sk-r-tel { font-size: 19px; }
}
/* 11/20 永谷さん「横長のカードに相応しい形に」：641〜960px（iPhone の横持ち・タブレット）も PC と同じ3列（写真｜価格｜表）にして、価格の表が横に間延びしないように */
@media (min-width: 641px) and (max-width: 960px) {
  .sk-r-main { grid-template-columns: 30% minmax(150px, 180px) minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .sk-r-spec { grid-column: auto; font-size: 12px; }
  .sk-r-spec th { width: 64px; padding: 5px 7px; }
  .sk-r-spec td { padding: 5px 7px; }
  .sk-r-price th { width: 64px; padding: 5px 6px; }
  .sk-r-price td b { font-size: 19px; }
  .sk-r-price tr.tot td b { font-size: 25px; }
}

/* ── リスト表示（縦1列）のカード（11/20 永谷さん「味気ないので、もう少しかっこ良く」。オートボーイの横長カードの見せ方に寄せる）
   上に車名・商品名の帯（左に店の色の線）／左に写真／中にグレード・札／右に価格の枠と「詳しく見る」。
   中身（.sk-body）は display: contents でほどき、カードの格子に直接並べる。オートボーイ（.sk-row）は別の作りなので触らない */
.sl.sl-list .sk-grid:not(.sk-row) { gap: 14px; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item][hidden] { display: none !important; }  /* 絞り込み・ページ送りで隠したカードは出さない（11/20 桶矢で見つかった誤り） */
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item]:not([hidden]) {
  display: grid !important; grid-template-columns: 220px minmax(0, 1fr) 200px; grid-template-rows: auto auto auto 1fr auto;
  column-gap: 16px; align-items: start; padding: 0 0 14px; border: 1px solid #c9c9c9; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.10); background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.sl.sl-list .sk-grid:not(.sk-row) a[data-sl-item]:hover { box-shadow: 0 8px 22px rgba(0,0,0,.16); transform: translateY(-1px); }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] > .sk-body { display: contents; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-name {
  grid-column: 1 / -1; grid-row: 1; margin: 0 0 12px; padding: 11px 16px 10px 14px; font-size: 16px; font-weight: 900; line-height: 1.5; color: #111;
  background: #ececec; border-bottom: 1px solid #c9c9c9; border-left: 5px solid var(--sk-accent); display: block; -webkit-line-clamp: unset; overflow: visible;
}
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] > .sk-ph {
  grid-column: 1; grid-row: 2 / 6; margin-left: 14px; aspect-ratio: 4 / 3; height: auto; min-height: 0; border-radius: 6px; overflow: hidden;
}
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] > .sk-ph img { height: 100%; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-title { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.6; color: #222; font-weight: 700; -webkit-line-clamp: 4; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-chips,
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-spec { grid-column: 2; grid-row: 3; margin-top: 8px; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-chips i { font-size: 12px; padding: 5px 8px; background: #f2f2f2; border: 1px solid #ddd; color: #333; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-price {
  grid-column: 3; grid-row: 2 / 5; align-self: start; margin: 0 14px 0 0; padding: 10px 12px; border: 2px solid var(--sk-accent); border-radius: 8px; background: #fff;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-total { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 2px; white-space: nowrap; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-total small:first-child { flex-basis: 100%; text-align: right; font-size: 12px; font-weight: 700; color: #555; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-total small:last-child { font-size: 12px; color: #444; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-total b { font-size: 30px; line-height: 1.15; font-weight: 900; color: var(--sk-red); margin: 0; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-sub { justify-content: flex-end; font-size: 12px; color: #444; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-more {
  display: block; grid-column: 3; grid-row: 5; align-self: end; margin: 10px 14px 0 0; padding: 10px 8px; border-radius: 5px; text-align: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--sk-accent-d); box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.sl.sl-list .sk-grid:not(.sk-row) a[data-sl-item]:hover .sk-more { filter: brightness(1.08); }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item].sold .sk-name { border-left-color: #aaa; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item].sold .sk-price { border: 0; background: #f2f2f2; align-items: center; justify-content: center; padding: 12px 6px; }
.sl.sl-list .sk-grid:not(.sk-row) [data-sl-item].sold .sk-done { font-size: 12px; font-weight: 700; color: #666; text-align: center; letter-spacing: 0; }
@media (max-width: 640px) {
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; column-gap: 10px; padding-bottom: 10px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-name { font-size: 14px; padding: 9px 12px 8px 10px; border-left-width: 4px; margin-bottom: 10px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] > .sk-ph { grid-row: 2 / 5; margin-left: 10px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-title { grid-column: 2; grid-row: 2; font-size: 13px; -webkit-line-clamp: 3; margin-right: 10px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-chips,
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-spec { grid-column: 2; grid-row: 3; margin: 6px 10px 0 0; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-price { grid-column: 2; grid-row: 4; margin: 8px 10px 0 0; padding: 6px 10px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-total b { font-size: 24px; }
  .sl.sl-list .sk-grid:not(.sk-row) [data-sl-item] .sk-more { grid-column: 1 / -1; grid-row: 5; margin: 10px 10px 0; padding: 11px 8px; }
}

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

/* 在庫0台のときの案内（render_wrap の empty_html・11/20） */
.sk .sk-empty { margin: 8px 0 24px; padding: 32px 20px; text-align: center; background: #fff; border: 1px solid #d5d5d5; border-top: 4px solid var(--sk-accent); border-radius: 8px; color: #222; }
.sk .sk-empty-h { margin: 0 0 10px; font-size: 20px; font-weight: 900; line-height: 1.5; }
.sk .sk-empty-t { margin: 0 auto 18px; max-width: 34em; font-size: 14px; line-height: 1.9; color: #444; }
.sk .sk-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.sk .sk-empty-btns .sk-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 6px; font-weight: 700; text-decoration: none !important; }
.sk .sk-empty-btns .sk-btn svg { width: 18px; height: 18px; }
.sk .sk-empty-btns .sk-tel { background: #fff; color: #222 !important; border: 2px solid #222; font-size: 18px; }
.sk .sk-empty-btns .sk-mail { background: var(--sk-accent-d); color: #fff !important; border: 2px solid var(--sk-accent-d); }
@media (max-width: 640px) { .sk .sk-empty { padding: 24px 14px; } .sk .sk-empty-h { font-size: 17px; } .sk .sk-empty-btns .sk-btn { width: 100%; justify-content: center; } }

