/* ============================================================
   パーツ選択 → お問い合わせ（js-n/parts-select.js 用）
   作成：AL・Claude Opus 5.5（2026-11-09）
   ============================================================ */
/* ---- 車種ページ：選択チェック ---- */
.cpv-variant.ps-has-pick{ position:relative; transition:box-shadow .2s, outline-color .2s; outline:2px solid transparent; outline-offset:4px; }
.cpv-variant.ps-on{ outline-color:#222; }
.ps-pick{ display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin:4px 0 16px; padding:10px 16px;
  border:1px solid #222; border-radius:0; background:#fff; color:#222; cursor:pointer; user-select:none;
  font-size:14px; letter-spacing:.1em; line-height:1.2; transition:background .2s, color .2s; position:relative; }
.ps-pick:hover{ background:#f2f2f2; }
.ps-pick input{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.ps-pick:focus-within{ outline:2px solid #222; outline-offset:2px; }
.ps-on .ps-pick{ background:#222; color:#fff; }
.ps-on .ps-pick:hover{ background:#444; }
.ps-off .ps-pick{ background:#f2f2f2; border-color:#ccc; color:#999; cursor:not-allowed; }
.ps-off .ps-pick:hover{ background:#f2f2f2; }

/* ---- 車種ページ：下のバー ---- */
.ps-bar{ position:fixed; left:0; right:0; bottom:0; z-index:900; background:rgba(17,17,17,.96); color:#fff;
  transform:translateY(110%); transition:transform .3s ease; box-shadow:0 -4px 16px rgba(0,0,0,.2); }
.ps-bar.is-on{ transform:none; }
.ps-bar-in{ max-width:1200px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ps-bar-info{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; font-size:13px; }
.ps-bar-count{ color:#ccc; letter-spacing:.06em; }
.ps-bar-total strong{ font-size:24px; letter-spacing:.02em; }
.ps-bar-note{ width:100%; font-size:11px; color:#aaa; }
.ps-bar-btns{ display:flex; gap:8px; flex:none; }
.ps-bar-list{ background:none; border:1px solid #666; color:#fff; padding:10px 14px; font-size:13px; cursor:pointer; }
.ps-bar-go{ display:inline-block; background:#fff; color:#111 !important; padding:11px 20px; font-size:13px; letter-spacing:.06em; text-decoration:none !important; white-space:nowrap; }
.ps-bar-go:hover{ background:#ddd; }
.ps-bar-btns .ps-bar-clear{ border:1px solid #666; color:#ccc; padding:10px 12px; font-size:12px; white-space:nowrap; }   /* 黒帯の「すべて外す」（2026-11-27） */
.ps-bar-btns .ps-bar-clear:hover{ color:#fff; border-color:#999; }
.ps-bar-pop{ max-width:1200px; margin:0 auto; padding:0 16px 12px; max-height:45vh; overflow:auto; }
.ps-bar-pop ul{ list-style:none; margin:0 0 8px; padding:0; border-top:1px solid #333; }
.ps-bar-pop li{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid #333; font-size:12px; line-height:1.5; }
.ps-bar-pop li button, .ps-bar-clear{ background:none; border:1px solid #555; color:#ccc; cursor:pointer; font-size:12px; padding:2px 8px; flex:none; }
body.ps-bar-pad{ padding-bottom:96px; }
@media (max-width:767px){
  .ps-bar-in{ flex-direction:column; align-items:stretch; gap:8px; padding:10px 16px; }
  .ps-bar-btns{ justify-content:stretch; }
  .ps-bar-go{ flex:1; text-align:center; padding:11px 8px; font-size:12px; letter-spacing:.02em; }
  .ps-bar-list{ padding:10px 10px; font-size:12px; }
  .ps-bar-btns .ps-bar-clear{ padding:10px 8px; font-size:11px; }
  .ps-bar-total strong{ font-size:20px; }
  body.ps-bar-pad{ padding-bottom:140px; }
}

/* ---- フォームページ：選択パーツ ---- */
.ps-fs[hidden]{ display:none; }
.ps-table{ width:100%; border-collapse:collapse; font-size:13px; line-height:1.5; margin:4px 0 8px; }
.ps-table th{ text-align:left; font-weight:normal; color:#777; font-size:12px; border-bottom:1px solid #ccc; padding:6px 8px; }
.ps-table td{ border-bottom:1px solid #e5e5e5; padding:10px 8px; vertical-align:top; }
.ps-table tfoot td{ border-bottom:0; border-top:2px solid #222; font-weight:bold; }
.ps-table .ps-r{ text-align:right; white-space:nowrap; }
.ps-table small{ color:#777; font-weight:normal; }
.ps-v{ display:block; font-size:11px; color:#888; }
.ps-kit{ display:inline-block; font-size:10px; background:#222; color:#fff; padding:1px 5px; margin-right:6px; vertical-align:1px; }
.ps-rm{ background:none; border:1px solid #ccc; color:#777; cursor:pointer; padding:0 7px; font-size:13px; }
.ps-rm:hover{ border-color:#222; color:#222; }
.ps-fs-back a{ font-size:13px; color:#222; text-decoration:underline; }
@media (max-width:767px){
  .ps-table thead{ display:none; }
  .ps-table, .ps-table tbody, .ps-table tr, .ps-table td{ display:block; width:100%; }
  .ps-table tbody tr{ position:relative; border-bottom:1px solid #e5e5e5; padding:8px 36px 8px 0; }
  .ps-table tbody td{ border:0; padding:2px 0; }
  .ps-table tbody td.ps-r{ text-align:left; }
  .ps-table tbody td:last-child{ position:absolute; right:0; top:10px; width:auto; }
  .ps-table tfoot tr{ display:flex; justify-content:space-between; }
  .ps-table tfoot td{ width:auto; padding:10px 0; }
  .ps-table tfoot td:last-child{ display:none; }
}
/* 数量（AL・Claude Opus 5.5 2026-11-25） */
.ps-bar-pop li > span:first-child{ flex:1; }
.ps-q{ display:inline-flex; align-items:center; gap:6px; flex:none; }
.ps-q button{ background:none; border:1px solid #555; color:#fff; width:24px; height:24px; line-height:1; cursor:pointer; font-size:13px; padding:0; }
.ps-q button:disabled{ opacity:.3; cursor:default; }
.ps-q b{ min-width:14px; text-align:center; font-weight:normal; }
