/* RIDER'S HIGH（SWELL）に合わせた淡い背景＋紺のアクセント。価格比較は「一覧は要点だけ・詳しくは商品ページ」の2段構え */
:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #22262d;
  --muted: #6b7280;
  --line: #e4e6ea;
  --line-soft: #eef0f3;
  --accent: #023f84;
  --accent-soft: #e8eef7;
  --accent-hover: #0a56ad;
  --ok: #1f7a3d;
  --ok-soft: #e6f4ea;
  --wait: #8a5300;
  --wait-soft: #fff3df;
  --out: #6b7280;
  --out-soft: #eceef1;
  --both: #5b3e96;
  --both-soft: #efe9f8;
  --street: #9a3d12;
  --street-soft: #fbebe3;
  --low: #9b1c1c;
  --low-soft: #fde8e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 4px 14px rgba(20, 30, 50, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.35; }
small { font-size: .8em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 上部: 題名と検索。常に出しておく ---- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
/* トップページ以外はヘッダーを付いてこさせない */
.top.top-static { position: static; }
.top-static ~ .layout .side { top: 12px; max-height: calc(100vh - 80px); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.2; flex: none; }
.logo-site { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.logo-title { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 0 7px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.search { position: relative; flex: 1 1 auto; max-width: 560px; margin-left: auto; }
.search input {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 44px 9px 14px;
  border: 1px solid #cfd3d8; border-radius: 999px; background: #fff; color: var(--text);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
.search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.search button .ic { width: 18px; height: 18px; }
.search button:hover { background: var(--accent-hover); }

/* ---- 2列: 左にカテゴリ、右に一覧 ---- */
.layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 20px; padding-bottom: 40px; }
.layout-product { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.cat-toggle { display: none; }
.side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.side-group { margin-bottom: 12px; }
/* まとまりの見出しは薄いグレーの帯・中央揃え（境目がひと目でわかるように。運営者が「グレー1」を選択） */
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #4b5563; background: #e3e6ea;
  text-align: center; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; }
.side a, .side-all {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px;
}
.side a:hover { background: #e9ebef; color: var(--text); }
.side a.on, .side-all.on { background: var(--accent); color: #fff; font-weight: 700; }
/* カテゴリのアイコン。選んでいる項目（紺地）では白く抜く */
.side .cat-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cat-ic { width: 22px; height: 22px; flex: none; object-fit: contain; display: inline-block; }
.side a.on .cat-ic { filter: brightness(0) invert(1); }
.side .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side a.on .n, .side-all.on .n { color: rgba(255,255,255,.8); }
.side-all { margin-bottom: 10px; border: 1px solid var(--line); background: #fff; }

/* ---- 一覧の見出し・並び順 ---- */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head h1 { margin: 0; font-size: 22px; }
.h1-sub { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.list-head .count { display: inline-block; margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-form label { display: flex; align-items: center; gap: 6px; }
.sort-form select, .more-form select, .more-form input {
  font: inherit; font-size: 14px; color: var(--text); padding: 6px 10px; border: 1px solid #cfd3d8; border-radius: 8px; background: #fff;
}
.btn-s { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }

/* ---- 絞り込みの道具 ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.seg a { padding: 6px 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: var(--accent); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; list-style: none;
}
.chip:hover { border-color: #b9c3d3; color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.more-filters { position: relative; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::marker { content: ''; }
.more-form {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 8px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.more-form label, .range-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.range { display: flex; align-items: center; gap: 6px; }
.range input { width: 100px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.link { font-size: 13px; }
.more-filters[open] { flex-basis: 100%; }
.more-filters[open] > summary { display: inline-flex; }

.facets { display: grid; gap: 6px; margin-bottom: 12px; }
.facet { display: flex; align-items: center; gap: 10px; min-width: 0; }
.facet-label { flex: none; width: 92px; font-size: 12px; font-weight: 700; color: var(--muted); }
.facet-label small { display: block; font-weight: 400; }
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.facet-chips a {
  flex: none; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums;
}
.facet-chips a small { color: var(--muted); margin-left: 3px; }
.facet-chips a:hover { border-color: #b9c3d3; color: var(--text); }
.facet-chips a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.facet-chips a.on small { color: rgba(255,255,255,.8); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.active-filters a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-weight: 600; }
.active-filters .x { width: .9em; height: .9em; }
.active-filters .clear { background: none; font-weight: 500; text-decoration: underline; }

/* ---- 商品カード（一覧） ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.card {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 190px; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.card:hover { border-color: #c5cdd9; }
.card-media { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.card-thumb { display: block; }
/* 画像の出所（ショップ名）は省略せず最後まで出す。入りきらなければ折り返す（出典の明記なので切らない） */
.credit { display: block; max-width: 104px; font-size: 10px; line-height: 1.3; color: var(--muted); text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
a.credit:hover, .credit a:hover { color: var(--accent); text-decoration: underline; }
.thumb {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 10px; background: #f6f7f9; border: 1px solid var(--line-soft); overflow: hidden; color: #b8bdc6;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .ph { display: none; width: 34px; height: 34px; }
.thumb.is-broken img { display: none; }
.thumb.is-broken .ph { display: block; }
.card-body { min-width: 0; }
.card-brand { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.card-brand .type { padding: 0 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600; letter-spacing: 0; }
.card-name { margin: 2px 0 4px; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.card-name a { color: var(--text); text-decoration: none; }
.card-name a:hover { color: var(--accent); text-decoration: underline; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 4px; }
.tagc { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.style-flat { color: var(--accent); background: var(--accent-soft); }
.style-both { color: var(--both); background: var(--both-soft); }
.style-street { color: var(--street); background: var(--street-soft); }
.tagc.low-psi, .badge.low-psi { color: var(--low); background: var(--low-soft); }
.card-sizes { font-size: 13px; color: var(--text); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.card-sizes span { white-space: nowrap; }
.facet-toggle { display: none; }
.facet-toggle .chev { transition: transform .15s; }
#facetnav:checked ~ .toolbar .facet-toggle .chev { transform: rotate(180deg); }
.card-shops { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.card-shops b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-shops .out, .card-shops .out b { color: #9aa0a8; }
.card-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.price small.tax { margin: 0 0 0 3px; font-weight: 500; }
.price-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.stock-in_stock { color: var(--ok); background: var(--ok-soft); }
.stock-backorder { color: var(--wait); background: var(--wait-soft); }
.stock-sold_out, .stock-unknown { color: var(--out); background: var(--out-soft); }
.badge.multi { color: var(--accent); background: var(--accent-soft); }
.btn-detail {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; padding: 7px 12px 7px 14px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
}
.btn-detail:hover { background: var(--accent-hover); color: #fff; }
.ic.right { transform: rotate(-90deg); }

.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 4px 0; }

/* ---- ページ送り ---- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; margin: 22px 0 6px; }
.pager a, .pager .cur, .pager .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.pager a { background: #fff; border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { background: var(--accent); color: #fff; }
.pager .gap { color: var(--muted); }
.pager .prev, .pager .next { gap: 2px; }
.pager-note { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }

/* ---- 商品ページ ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; gap: 14px; }
.product > * { min-width: 0; }
.phead { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.thumb.big { width: 200px; height: 200px; }
.thumb.big .ph { width: 48px; height: 48px; }
.phead-img .credit { max-width: none; white-space: normal; margin: 6px 0 0; font-size: 11px; }
.thumb.big.large { width: 320px; height: 320px; }
.credit a { color: var(--muted); }
.pname { margin: 2px 0 6px; font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.pprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 10px; }
.pprice .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pprice .num { font-size: 32px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pprice .tax { font-size: 12px; color: var(--muted); }
.pprice .range { font-size: 13px; color: var(--muted); }
.phead .price-meta { justify-content: flex-start; margin-top: 8px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
/* 特記事項（管理ページで運営者が書いたもの） */
.pnote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 14px; line-height: 1.6; }
.pnote-label { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.card-note { margin-top: 5px; font-size: 12px; color: var(--text); }
.low-psi-note { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: #fdf2f2; color: var(--low); font-size: 13px; display: inline-block; }

.matrix-section, .shops { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.matrix-section h2, .shops h2 { margin: 0 0 12px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { border-collapse: separate; border-spacing: 4px; min-width: 100%; font-size: 13px; }
.matrix th { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 4px; white-space: nowrap; }
.matrix th.line-th { text-align: left; min-width: 6em; }
.matrix tbody th.line-th { color: var(--text); }
.matrix td { padding: 0; vertical-align: top; }
.matrix td.none { text-align: center; color: #c3c7ce; padding-top: 10px; }
.cell { display: grid; gap: 1px; min-width: 92px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); background: #fafbfc; }
.cell:hover { border-color: var(--accent); color: var(--text); }
.cell.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cell.low { border-color: #f3b4b4; background: #fff7f7; }
.cell-price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cell-low { font-size: 11px; font-weight: 700; color: var(--low); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: #b8bcc3; }
.dot.stock-in_stock { background: var(--ok); }
.dot.stock-backorder { background: var(--wait); }
.filter-note { margin: -4px 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }

.shop-rows { list-style: none; margin: 0; padding: 0; }
.shop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main price btn" "more more more"; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.shop-row:first-child { border-top: 0; padding-top: 4px; }
/* 同じショップの店商品をまとめた枠（公開ページ）。枠と枠の間に線、枠の中は点線で区切る */
.shop-group { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.shop-group:first-child { border-top: 0; padding-top: 4px; }
.shop-group.is-out { opacity: .72; }
/* ショップ名を見出しのように（淡い背景＋左にテーマ色の線。文字の大きさはそのまま） */
.shop-group > .shop-name { padding: 6px 10px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 4px; }
.shop-group > .shop-title { margin-top: 6px; }
/* ショップの中は「1行＝1つの選択肢」の表（開閉なし） */
.opt-table { margin-top: 6px; table-layout: fixed; }
/* ショップが変わっても列の位置がそろうように幅を決める */
.opt-table th:nth-child(2) { width: 96px; }
.opt-table th:nth-child(3) { width: 110px; }
.opt-table th:nth-child(4) { width: 130px; }
.opt-table td { vertical-align: middle; }
.opt-table td.num { font-size: 15px; font-weight: 700; }
.opt-table td.num .list-price { display: block; font-weight: 400; }
.opt-table tr.out td { color: var(--muted); }
.opt-table tr.out td.num { font-weight: 400; }
.opt-table tr.lst-start td { border-top: 1px solid var(--line); }
.opt-name { overflow-wrap: anywhere; }
.opt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.opt-tags .note { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0 7px; border-radius: 4px; }
.opt-feat { font-size: 12px; color: var(--muted); }
.opt-stock { white-space: nowrap; font-size: 12px; }
.opt-go { text-align: right; }
.opt-go .btn-shop { padding: 6px 10px; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .opt-go .go-text { display: none; }
  .opt-table th:nth-child(2) { width: 76px; }
  .opt-table th:nth-child(3) { width: 84px; }
  .opt-table th:nth-child(4) { width: 44px; }
  .opt-stock { white-space: normal; }
  .opt-go .btn-shop { padding: 8px; }
  .opt-table th, .opt-table td { padding-left: 4px; padding-right: 4px; }
}
.shop-row.is-out { opacity: .72; }
.shop-main { grid-area: main; min-width: 0; }
.shop-name { font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.shop-name .img-src { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--out-soft); padding: 0 7px; border-radius: 4px; }
.shop-name .note { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0 7px; border-radius: 4px; }
.shop-title { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.shop-sizes { font-size: 13px; margin-top: 2px; }
.shop-price { grid-area: price; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.shop-price .num { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.list-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.btn-shop {
  grid-area: btn; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; white-space: nowrap;
  border: 1px solid var(--accent); color: var(--accent); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
}
.btn-shop:hover { background: var(--accent-soft); }
.variants-box { grid-area: more; font-size: 13px; }
.variants-box summary { cursor: pointer; color: var(--accent); }
.variants { width: 100%; border-collapse: collapse; margin: 8px 0 2px; font-size: 13px; }
.variants th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 4px 6px; }
.variants td { border-bottom: 1px solid var(--line-soft); padding: 5px 6px; vertical-align: top; }
.variants td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.options { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.options-label { color: var(--muted); margin-right: 2px; }
.chip-s { padding: 1px 8px; border-radius: 4px; font-size: 12px; }

.about { font-size: 13px; color: var(--muted); }
.about summary { cursor: pointer; }
.about-body { padding: 8px 2px 0; }
.about-body ul { margin: 6px 0; padding-left: 20px; }
.about-body p { margin: 6px 0; }
.back-link { margin: 6px 0 0; font-size: 14px; }
.back-link a { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }

/* ---- 下部 ---- */
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 18px 0 30px; font-size: 12px; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot-contact a { font-weight: 700; }

/* ---- タブレット以下 ---- */
@media (max-width: 900px) {
  .card { grid-template-columns: 88px minmax(0, 1fr); }
  .thumb { width: 88px; height: 88px; }
  .credit { max-width: 88px; }
  .card-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 6px 10px; }
  .card-price .price { font-size: 20px; }
  .btn-detail { margin: 0 0 0 auto; }
  .price-meta { justify-content: flex-start; }
}

/* ---- スマホ ---- */
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .top-row { flex-wrap: wrap; gap: 6px 12px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .logo { flex-direction: column; gap: 0; }
  .logo-site { font-size: 10px; }
  .logo-title { font-size: 18px; letter-spacing: .02em; }
  .search { flex-basis: 100%; max-width: none; margin: 0; }
  .search input { padding: 8px 42px 8px 14px; font-size: 16px; }
  html { scroll-padding-top: 110px; }

  .layout { display: block; padding-top: 12px; }
  .cat-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; margin-bottom: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; color: var(--text);
  }
  .cat-toggle b { color: var(--accent); }
  .cat-toggle .chev { margin-left: auto; transition: transform .15s; }
  #catnav:checked ~ .cat-toggle .chev { transform: rotate(180deg); }
  .side { display: none; position: static; max-height: none; margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
  #catnav:checked ~ .side { display: block; }
  .side-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 8px; }
  .side-label { width: 100%; margin-bottom: 2px; }
  .side a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; gap: 5px; }
  .side a.on { border-color: var(--accent); }
  .side .cat-name { gap: 5px; }
  .cat-ic { width: 18px; height: 18px; }
  .side span.cat-ic { display: none; }

  .list-head h1 { font-size: 19px; }
  .sort-form { width: 100%; }
  .sort-form select { flex: 1; }
  .toolbar { gap: 6px; }
  .seg a, .chip { padding: 5px 11px; font-size: 12px; }
  .facet-toggle { display: inline-flex; }
  .facets { display: none; padding: 10px 12px 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
  #facetnav:checked ~ .facets { display: grid; }
  .facet { flex-direction: column; align-items: stretch; gap: 2px; }
  .facet-label { width: auto; }
  .facet-label small { display: inline; margin-left: 4px; }
  .facet-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: thin; }
  .more-form { width: 100%; }
  .range input { width: 100%; }
  .range { width: 100%; }
  .more-form label, .range-field { flex: 1 1 100%; }
  .btn { width: 100%; }

  .card { grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .thumb { width: 76px; height: 76px; }
  .credit { max-width: 76px; }
  .card-name { font-size: 16px; }
  .card-price { grid-column: 1 / -1; }
  .card-price .price { font-size: 20px; }
  .btn-detail { padding: 6px 10px 6px 12px; }

  .phead { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .phead-img { display: flex; flex-direction: column; align-items: center; }
  .thumb.big { width: 160px; height: 160px; }
  .thumb.big.large { width: 240px; height: 240px; }
  .pname { font-size: 20px; }
  .pprice .num { font-size: 28px; }
  .btn-primary { width: 100%; justify-content: center; }
  .matrix-section, .shops { padding: 14px; }
  .matrix { font-size: 12px; }
  .cell { min-width: 84px; padding: 6px 8px; }
  .matrix th.line-th { min-width: 4.5em; }
  .shop-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "price btn" "more more"; }
  .shop-price { align-items: flex-start; text-align: left; }
  .btn-shop { justify-self: end; }
}

/* ---- カラー ---- */
.cdot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); vertical-align: -3px; flex: none; }
.cdot.light { border-color: rgba(0,0,0,.28); }
.cdot.sm { width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.card-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.card-colors .more, .card-colors .clabel { font-size: 12px; color: var(--muted); margin-left: 2px; }
.card-colors.none-avail .cdot { opacity: .35; }
.colors-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.colors-section h2 { margin: 0 0 12px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--text); font-size: 13px; }
.color-chip .cdot { width: 22px; height: 22px; }
.color-chip:hover { border-color: var(--accent); color: var(--text); }
.color-chip.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.color-chip.out { color: var(--muted); }
.color-chip.out .cdot { opacity: .45; }
.color-chip .cname { font-weight: 600; }
.color-chip .cmeta { font-size: 11px; color: var(--muted); }
.colors-section .hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.shop-colors { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; }
.shop-color { display: inline-flex; align-items: center; gap: 5px; }
.shop-color .cdot { width: 13px; height: 13px; }
.shop-color.out { color: var(--muted); text-decoration: line-through; }
.shop-color.out .cdot { opacity: .45; }
.shop-color.on { font-weight: 700; color: var(--accent); }
.part-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--out-soft); color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .colors-section { padding: 14px; } }
.colors-section { min-width: 0; }
.color-chip { max-width: 100%; min-width: 0; }
.color-chip .cname { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .color-chips { gap: 6px; }
  .color-chip { padding: 4px 10px 4px 6px; font-size: 12px; gap: 6px; }
  .color-chip .cdot { width: 18px; height: 18px; }
}

/* ---- トップページ（カテゴリを選ぶ画面・新着・閲覧数の多い商品） ---- */
.home { display: grid; gap: 28px; }
.home-h { font-size: 18px; margin: 0 0 12px; }
.home-group { margin: 14px 0 8px; }
.home-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 12px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.home-btn:hover { background: var(--accent-hover); color: #fff; }
.home-btn .ic { width: 20px; height: 20px; flex: none; }
.home-btn.is-off { background: #d5d9df; color: #8a919b; cursor: not-allowed; }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cat-tiles a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; }
.cat-tiles a:hover { border-color: var(--accent); color: var(--accent); }
.cat-tiles .cat-ic { width: 30px; height: 30px; }
.cat-tiles .tile-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tiles .n { font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.mini > a:first-child { display: flex; flex-direction: column; gap: 2px; padding: 10px;
  text-decoration: none; color: var(--text); flex: 1; }
.mini:hover { border-color: var(--accent); }
.mini .credit { max-width: none; padding: 0 10px 8px; font-size: 10px; color: var(--muted); text-decoration: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.mini-media .thumb { width: 100%; height: 130px; margin-bottom: 6px; }
.mini-brand { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.mini-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.mini-price { margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 700; }
.mini-price small { font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.mini-shops { font-size: 12px; color: var(--muted); }
.home-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-more .ic { width: 14px; height: 14px; transform: rotate(-90deg); }
.mini-media { position: relative; display: block; }
.off-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: #b42318; color: #fff; font-size: 11px; font-weight: 700; }
.sale-at { font-size: 12px; color: var(--muted); line-height: 1.4; }
.mini-sale .mini-price { color: #b42318; }
.mini-price .was { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.sale-h { margin: 0 0 6px; font-size: 22px; }
.sale-h .count { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sale-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.sale-street-tag { align-self: flex-start; margin: 2px 0; padding: 0 7px; border-radius: 999px; background: #eef1f5; color: var(--muted); font-size: 11px; font-weight: 600; }
@media (max-width: 760px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cat-tiles a { padding: 8px 10px; font-size: 13px; gap: 8px; }
  .cat-tiles .cat-ic { width: 24px; height: 24px; }
  .cat-tiles .tile-name { white-space: normal; line-height: 1.3; }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mini-media .thumb { height: 110px; }
}

/* 画面の下にいつも出る細い帯（報告ボタン・検索窓）。目立たせない（2026-10-08） */
body { padding-bottom: 52px; }
.fbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.fbar-row { display: flex; align-items: center; gap: 10px; height: 44px; }
.fbar-report { flex: none; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.fbar-report:hover { color: var(--accent); }
.fbar-search { flex: 1 1 auto; max-width: 360px; margin-left: auto; position: relative; }
.fbar-search input[type=search] { width: 100%; height: 30px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; }
.fbar-search input[type=search]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
.fbar-search:focus-within input[type=search] { height: 42px; font-size: 16px; padding-right: 46px; }
.fbar:has(.fbar-search:focus-within) .fbar-row { height: 56px; }
@media (max-width: 760px) {
  .fbar:has(.fbar-search:focus-within) .fbar-report { display: none; }
  .fbar:has(.fbar-search:focus-within) .fbar-search { max-width: none; margin-left: 0; }
  .fbar:has(.fbar-search:focus-within) .fbar-search button { width: 34px; height: 34px; }
}
.fbar-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fbar-search button .ic { width: 13px; height: 13px; }
/* 報告の窓 */
.report-dlg { width: min(460px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.report-dlg::backdrop { background: rgba(20, 30, 50, .35); }
.report-dlg h2 { margin: 0 0 12px; font-size: 16px; }
.rp-label { display: block; margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.report-dlg input[type=text], .report-dlg textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.report-dlg textarea { resize: vertical; }
.rp-note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rp-done { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.rp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rp-cancel, .rp-send { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.rp-cancel { border: 1px solid var(--line); background: #fff; }
.rp-send { border: 0; background: var(--accent); color: #fff; font-weight: 700; }

/* ---- お気に入り（LINE でログイン。2026-10-09） ---- */
.top-fav { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.top-fav:hover { border-color: var(--accent); color: var(--accent); }
.top-fav .ic { width: 16px; height: 16px; }
.top-fav-n { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.fav-btn:hover { border-color: #e0a100; }
.fav-btn .ic { width: 17px; height: 17px; color: #b8860b; }
.fav-btn.on { background: #fff8e1; border-color: #e0a100; color: #8a6400; }
.fav-btn.on .ic { fill: #f5b800; color: #c99400; }
.fav-btn .fav-on, .fav-btn.on .fav-off { display: none; }
.fav-btn.on .fav-on { display: inline; }
.fav-btn:disabled { opacity: .6; cursor: default; }
.fav-login { max-width: 560px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.8; }
.fav-login p { margin: 0 0 14px; }
.line-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; padding: 11px 22px; border-radius: 8px;
  background: #06c755; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; margin-bottom: 14px; }
.line-btn:hover { background: #05b34c; color: #fff; }
.fav-small { font-size: 12px; color: var(--muted); }
.mini-fav .fav-actions { padding: 0 10px 10px; }
.mini-fav .fav-btn { margin: 0; padding: 5px 10px; font-size: 12px; }
.fav-gone { display: flex; flex-direction: column; gap: 4px; padding: 10px; flex: 1; }
.fav-account { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 24px; font-size: 13px; }
.fav-account form { margin: 0; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.mini-fav .fav-btn { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .top-row { flex-wrap: nowrap; }
  .top-fav { padding: 4px 8px; gap: 3px; font-size: 11px; white-space: nowrap; }
  .top-fav .ic { width: 14px; height: 14px; }
  .mini-fav .fav-btn { font-size: 11px; padding: 5px 6px; }
}

/* ---- 重さ（運営者が確定したものだけ。2026-10-09） ---- */
.pweight { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; font-size: 14px; }
.pweight-label { flex: none; padding: 1px 8px; border-radius: 6px; background: #eef1f5; color: var(--muted); font-size: 12px; font-weight: 700; }
.pweight ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.pweight-size { color: var(--text); }
.pweight-src { margin-left: 6px; font-size: 12px; color: var(--muted); }
