/* 既存サイトの外枠で包む在庫ページ（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: 3; -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; white-space: pre-wrap; margin-bottom: 16px; }
.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: 400; font-size: 13px; color: #444; }
.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; }
