/* 明るいテーマを基準に定義し、暗いテーマでは色だけ差し替える。
   端末の設定(prefers-color-scheme)と、明示指定(data-theme)の両方に対応する。 */
:root {
  --bg: #fbfbfa; --panel: #ffffff; --line: #e3e2df;
  --ink: #23211d; --muted: #6d6a63; --accent: #1f6f5c;
  --down: #b0392b; --low: #1f6f5c; --near: #8a6d1f; --flat: #6d6a63;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17161a; --panel: #201f24; --line: #34323a;
    --ink: #eceaf0; --muted: #a09daa; --accent: #64c2a6;
    --down: #f08a7c; --low: #64c2a6; --near: #d9b45c; --flat: #a09daa;
  }
}
:root[data-theme="dark"] {
  --bg: #17161a; --panel: #201f24; --line: #34323a;
  --ink: #eceaf0; --muted: #a09daa; --accent: #64c2a6;
  --down: #f08a7c; --low: #64c2a6; --near: #d9b45c; --flat: #a09daa;
}

* { box-sizing: border-box; }

/* 読み上げとキーボード操作のための飛ばしリンク。ナビは12項目ある。 */
.skip { position: absolute; left: -9999px; top: 0; z-index: 10;
  padding: 10px 16px; background: var(--accent); color: var(--bg);
  text-decoration: none; border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }

/* キーボードで今どこにいるか分かるようにする。 */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

.site-head { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  padding: 14px 16px; min-width: 0; }
.site-name { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
/* よく使う5つを出し、残りは「ほかの一覧」に畳む。14項目を横に流していたとき、
   携帯では 1,187px 中 844px が画面の外にあり、見えていたのは3項目だった。 */
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  font-size: 14px; min-width: 0; }
.site-nav > a { white-space: nowrap; padding: 6px 0; }
.nav-more { position: relative; }
.nav-more > summary { cursor: pointer; white-space: nowrap; padding: 6px 0;
  color: var(--accent); list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: " ▾"; }
.nav-more[open] > summary::after { content: " ▴"; }
/* 開いた一覧は上に重ねる。押し広げると本文が飛ぶ。 */
.nav-more-list { position: absolute; z-index: 20; top: 100%; left: 0;
  display: grid; gap: 2px; min-width: 190px; padding: 8px 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.nav-more-list a { padding: 9px 12px; border-radius: 7px; white-space: nowrap; }
.nav-more-list a:hover { background: var(--bg); }

main { padding: 24px 16px 48px; }
h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 8px; }
.lead { color: var(--muted); margin: 0 0 16px; }

/* サイトの規模と記録の厚み。値下がりが少ない日でも、何を持っているサイトなのか
   最初に伝わるようにする。数字だけ地の文より濃くして拾いやすくする。 */
.stats { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.stats strong { color: var(--ink); font-size: 16px; }
.sep { margin: 0 8px; opacity: .5; }

h1 .count { margin-left: 10px; font-size: 16px; font-weight: 500; color: var(--muted); }

/* 広告表記。ステマ規制で明示が必須なので文言も位置も変えない。
   枠を外して主張だけ弱める（読めることが要件で、目立つことは要件ではない）。 */
.ad-notice {
  margin: 0 0 20px; padding: 0; font-size: 13px; color: var(--muted);
}

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  display: flex; gap: 14px; padding: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card .thumb { flex: 0 0 96px; }
.card img, .card .noimg {
  display: block; width: 96px; height: 96px; object-fit: contain;
  background: var(--bg); border-radius: 6px;
}
.card .body { min-width: 0; }
.card .name { display: block; font-weight: 600; text-decoration: none; color: var(--ink); }
.card .name:hover { color: var(--accent); }
.card .price { margin: 6px 0 2px; font-size: 15px;
  font-variant-numeric: tabular-nums; }
.card .price strong { font-size: 19px; }
.card .meta { margin: 0; font-size: 13px; color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.down { color: var(--down); font-weight: 700; margin-right: 8px; }
.up { color: var(--near); font-weight: 700; margin-right: 8px; }

/* ポイント込みの実質価格。価格を置き換えず、併記する。 */
.point-line { margin: 4px 0 0; font-size: 13px; }
.point-line:empty { display: none; }
.point { display: inline-block; padding: 1px 8px; margin-right: 8px; border-radius: 999px;
  font-size: 12px; color: var(--near); border: 1px solid currentColor; }
.eff { color: var(--ink); font-weight: 600; }
.eff small { font-weight: 400; color: var(--muted); font-size: 11px; }
.empty { padding: 24px; text-align: center; color: var(--muted); list-style: none;
  border: 1px dashed var(--line); border-radius: var(--radius); }
.go { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 12px; }
.thin { margin: 0 0 14px; padding: 10px 12px; font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; border: 1px solid currentColor; white-space: nowrap; }
.badge.low { color: var(--low); } .badge.near { color: var(--near); }
.badge.drop { color: var(--down); } .badge.flat { color: var(--flat); }

/* 送料と在庫。買うかどうかに直結するので、判定と並べて出す。 */
.cond { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; white-space: nowrap; }
.cond.free { color: var(--low); border: 1px solid currentColor; }
.cond.out { color: var(--down); border: 1px solid currentColor; }

.tools .check { display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--ink); white-space: nowrap; }
.tools .check input { width: 18px; height: 18px; }

/* 目標の値段。通知は出せないので、次に来たときに拾えるようにする。 */
.target { margin: 6px 0 14px; font-size: 14px; }
.target label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.target input { width: 130px; padding: 7px 10px; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.target .note { display: block; margin-top: 4px; }
.hit.reached { background: color-mix(in srgb, var(--low) 8%, transparent); }
.down small { font-weight: 400; font-size: 12px; }

/* いまの価格が履歴のどこにあるかを一文で。高いときは高いと書く。 */
.verdict { margin: 0 0 14px; font-size: 15px; color: var(--ink); }

.item .headline { font-size: 15px; margin: 12px 0; }
.item .headline strong { font-size: 28px; }
.chart { color: var(--accent); margin: 8px 0 20px; }
.spark { width: 100%; max-width: 320px; height: auto; }
.spark-none { color: var(--muted); font-size: 13px; }

/* 一覧の並び替え・絞り込み */
.tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.tools select { font-size: 14px; padding: 5px 8px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }

/* ページ送り */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 14px 0; font-size: 14px; }
.pager a { padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; }
.pager .now { padding: 4px 9px; border: 1px solid var(--accent); border-radius: 8px;
  color: var(--accent); font-weight: 700; }
.pager .gap { color: var(--muted); }
.pager .of { margin-left: auto; color: var(--muted); font-size: 13px; }

/* 見守り */
.watch { margin: 16px 0 8px; }
.watch button { padding: 9px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  color: var(--accent); background: var(--panel);
  border: 1px solid var(--accent); border-radius: var(--radius); }
.watch button.on { color: var(--bg); background: var(--accent); }
.watch .note { margin-left: 10px; font-size: 13px; color: var(--muted); }

/* 一覧から直接見守る。商品ページまで開かせない */
.watch-mini { margin-left: 10px; padding: 2px 9px; font-size: 12px; cursor: pointer;
  color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 999px; }
.watch-mini.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }

.tools .scope { color: var(--muted); font-size: 12px; }
.reset { padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--accent);
  background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; }

/* 押せる場所を広げる。携帯では文字だけだと当てにくい。 */
.card .name { padding: 2px 0; }
.watch-mini, .reset, .pager a { min-height: 32px; display: inline-flex;
  align-items: center; }
.to-top { display: inline-block; margin: 8px 0 0; font-size: 13px; }
.hit .since { color: var(--muted); font-size: 12px; margin-left: 8px; }
.hit .badge { margin-left: 8px; }

/* 商品ページの価格推移 */
.chart-svg { width: 100%; max-width: 560px; height: auto; color: var(--accent); }

/* 商品ページの画像。一覧にあるのに詳細で消えるのは不親切。 */
.back { margin: 0 0 14px; font-size: 13px; }
.hero { margin: 4px 0 16px; }
.hero img { width: 100%; max-width: 260px; height: auto; border-radius: var(--radius);
  background: var(--panel); }
/* 広い画面では値段と横に並べる。縦に積むと、開いて最初に見たいものが下がる。 */
@media (min-width: 720px) {
  .item .hero { float: right; margin: 0 0 12px 20px; }
  .item .hero img { max-width: 220px; }
}

/* 楽天での正式名称。題から外した宣伝が本文の先頭に戻らないよう畳む。 */
.fullname { max-width: 62em; margin: -2px 0 14px; }
.fullname > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.fullname > p { margin: 8px 0 0; padding: 10px 12px; font-size: 13px;
  color: var(--muted); line-height: 1.7; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.note { font-size: 13px; color: var(--muted); }
.history th { font-variant-numeric: tabular-nums; }

/* 一覧に出す小さな推移。履歴がこのサイトの値打ちなので、開く前に形を見せる。 */
.card-spark { margin-top: 6px; color: var(--accent); opacity: .8; }
.card-spark .spark { max-width: 140px; }

/* 商品を探す */
.q { width: 100%; padding: 11px 14px; font-size: 16px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.note { margin: 10px 0; font-size: 13px; color: var(--muted); }
.hits { list-style: none; margin: 0; padding: 0; }
.hit { display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.hit a { color: var(--ink); text-decoration: none; }
.hit a:hover { color: var(--accent); }
.hit .price { white-space: nowrap; font-weight: 600;
  font-variant-numeric: tabular-nums; }

.facts { border-collapse: collapse; width: 100%; margin: 0 0 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.facts th, .facts td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 15px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { color: var(--muted); font-weight: 500; white-space: nowrap; }

.buy { display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; }
.shop { color: var(--muted); font-size: 14px; }

.static p, .static li { max-width: 62em; }

.site-foot { border-top: 1px solid var(--line); background: var(--panel);
  margin-top: 40px; padding: 20px 0 32px; font-size: 13px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.site-foot .disclaimer, .site-foot .copy, .updated { margin: 8px 0 0; }
.site-foot .ad-notice { background: none; border: 0; padding: 0; margin: 8px 0 0; }


@media (max-width: 560px) {
  .card { gap: 10px; }
  .card .thumb { flex-basis: 72px; }
  .card img, .card .noimg { width: 72px; height: 72px; }
  h1 { font-size: 21px; }
  .sep { margin: 0 5px; }
  .stats { font-size: 13px; }
  /* 並び替えは縦に積む。横並びだと選択肢が潰れる。 */
  .tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .tools label { display: flex; justify-content: space-between; align-items: center;
    gap: 10px; }
  .tools select { flex: 1; min-width: 0; }
  .site-head .wrap { padding: 12px 16px; }
  .site-name { font-size: 16px; }
  .hit { flex-wrap: wrap; }
  .pager .of { width: 100%; margin-left: 0; }
}

/* 10ページごとの飛び先。近辺だけだと81ページの奥まで20回押すことになる */
.jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
        margin: -6px 0 14px; font-size: 13px; }
.jump span { color: var(--muted); }
.jump a { padding: 2px 7px; border: 1px solid var(--line); border-radius: 7px;
          color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--accent); border-color: var(--accent); }

/* --- 条件のそろい具合。CSSが無く、点と内訳が地続きの文字列に見えていた
   （画面では「100/100最安値への近さ 40・…」）。点を先に、内訳は札で。 */
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  margin: 8px 0 0; }
.score .num { font-size: 17px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; }
.score .max { margin-right: 4px; font-size: 12px; color: var(--muted); }
.score .parts { display: flex; flex-wrap: wrap; gap: 3px; }
.score .part { display: inline-flex; align-items: baseline; gap: 5px;
  padding: 1px 8px; font-size: 12px; line-height: 1.6; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.score .part b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- ジャンル索引。CSSが無く「パソコン・周辺機器1,524商品」と繋がっていた。 */
.genres { list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 8px; }
.genre { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.genre a { font-weight: 600; text-decoration: none; }
.genre a:hover { color: var(--accent); }
.genre .count { flex: none; font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .genres { grid-template-columns: 1fr 1fr; }
}

/* --- 絞り込みは畳んでおく。開いたまま置くと、携帯では1件目の商品が
   730px下（画面まるごと1枚ぶん先）にあった。 */
.tools-box { margin: 10px 0 14px; }
.tools-box > summary { display: inline-block; cursor: pointer;
  padding: 8px 14px; font-size: 14px; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; }
.tools-box > summary::after { content: " ▾"; }
.tools-box[open] > summary::after { content: " ▴"; }
.tools-box > .tools { margin-top: 10px; }

/* --- 押す場所は指で届く大きさにする。ナビは24pxしかなかった。 */
@media (max-width: 560px) {
  .site-nav { gap: 0 12px; }
  .site-nav > a, .nav-more > summary { padding: 9px 0; }
  .foot-nav { gap: 4px 16px; }
  .foot-nav a { padding: 8px 0; }
  .tools select { padding: 9px 10px; }
  .tools .check { padding: 6px 0; }
  .to-top { display: inline-block; padding: 9px 0; }
  .pager a, .pager .now { padding: 9px 13px; }
  .jump a { padding: 7px 11px; }
  /* 小さすぎる字を13pxへ。12pxは日本語では読みにくい。 */
  .badge, .cond, .down small, .watch-mini, .tools .scope,
  .hit .since { font-size: 13px; }
  /* 印と説明が画面の両端に離れていて、どちらの話か分かりにくかった */
  .tools .check { justify-content: flex-start; }
  .tools label { justify-content: flex-start; gap: 8px; }
  /* 商品ページの画像が画面の高さの3分の1を占め、値段を画面の外へ押していた */
  .item .hero img { max-width: 180px; }
}

/* ===== 構成とデザイン（2026-09-26） ===== */

/* ヘッダに手がかりを置く。サイト名だけでは何のサイトか分からなかった。
   説明は config.json の description を出しているので二重に書かない。 */
.site-head .wrap { align-items: center; }
.site-name { display: inline-flex; align-items: center; gap: 8px; }
.site-name .mark { width: 18px; height: 18px; flex: none; border-radius: 5px;
  background: var(--accent); position: relative; }
.site-name .mark::after { content: ""; position: absolute; left: 50%; top: 4px;
  width: 2px; height: 7px; margin-left: -1px; background: var(--panel);
  box-shadow: 0 7px 0 -1px var(--panel), -3px 5px 0 -1px var(--panel),
              3px 5px 0 -1px var(--panel); }
.tagline { flex: 1 1 100%; order: 3; margin: 0; font-size: 13px; color: var(--muted); }
.site-nav { order: 2; }

/* 広い画面でカードの右側が空いていた。値段を右へ回すと商品名が潰れたので、
   推移の図をそこへ持っていく。図は下に置くより値段の隣にある方が読める。 */
@media (min-width: 760px) {
  .card .body { display: grid; grid-template-columns: 1fr 150px;
    column-gap: 20px; align-items: start; }
  .card > .body > .badge, .card .name, .card .price,
  .card .point-line, .card .meta { grid-column: 1; }
  /* グリッドの子は既定で列いっぱいに伸びる。札は中身の幅で止める */
  .card > .body > .badge { justify-self: start; }
  .card .card-spark { grid-column: 2; grid-row: 1 / span 4;
    margin-top: 0; align-self: center; }
  .card .score { grid-column: 1 / -1; }
}

/* 点は札の集まりに埋もれていた。満点に対する位置を帯で見せる。 */
.score { position: relative; padding-top: 10px; }
.score::before { content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 2px; background: var(--line); }
.score::after { content: ""; position: absolute; top: 0; left: 0;
  width: var(--fill, 0%); height: 3px; border-radius: 2px; background: var(--accent); }

/* 動いていない商品の図は畳む。88%（11,172件）が一直線だった。 */
.chart.flat > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.chart.flat[open] > summary { margin-bottom: 8px; }

/* 読み終えた先の行き先。見出しの上ではなく本文の終わりに置く。 */
.onward { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; }
.onward > span { color: var(--muted); }

/* 見出しの強弱。h1 と h2 が近すぎて、どこで話が変わるのか読めなかった。 */
h2 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.item h2 { margin-top: 32px; }

/* 一覧の索引。名前が並ぶだけでは「よく動く」と「最安値更新」を使い分けられない。 */
.views { margin: 36px 0 0; }
.views ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.views li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px;
  align-items: baseline; padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.views a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.views a:hover { color: var(--accent); }
.views .n { font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.views .what { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .views li { grid-template-columns: 1fr auto; }
  .views .what { grid-column: 1 / -1; }
}

/* 検索の例。入力欄だけだと何を打てば当たるのか分からなかった。 */
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 12px 0 0; }
.examples > span { font-size: 13px; color: var(--muted); }
.examples button { padding: 6px 12px; font-size: 14px; cursor: pointer;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; font-family: inherit; }
.examples button:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 見た目の作り直し（2026-09-26）
   参考にしたのは価格.com（順位を出す・価格を主役にする）と
   camelcamelcamel（判定を写真の角に置く・絞り込みを押せる札にする）。 */

/* 順位。並び順に意味があることを画面から読めるようにする。 */
.card { position: relative; transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.rank { position: absolute; top: -8px; left: -8px; z-index: 1;
  min-width: 26px; height: 26px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--panel); background: var(--muted); border-radius: 999px; }
/* 上位3件だけ色を変える。全部を強調すると強調にならない。 */
.card:nth-child(1) .rank, .card:nth-child(2) .rank, .card:nth-child(3) .rank {
  background: var(--accent); }

/* 判定は名前の上に1行で出す。価格の後ろに並べると、価格・判定・送料が
   一列に連なってどれが値段なのか分からなくなる。写真の角に載せる形も
   試したが、「記録した中で最安」は携帯（72px）で2行になり写真を半分隠した。
   日本語の長い札は、角より行で置く方が読める。 */
.card .thumb { align-self: flex-start; }
.card .body > .badge { display: inline-block; margin: 0 0 4px; padding: 2px 9px;
  font-size: 12px; font-weight: 600; border: 0; border-radius: 999px;
  color: var(--panel); }
.card .body > .badge.low { background: var(--low); }
.card .body > .badge.near { background: var(--near); }
.card .body > .badge.drop { background: var(--down); }
.card .body > .badge.flat { display: none; }   /* 「横ばい」は貼る値打ちがない */

/* 価格を主役にする。カードの中でいちばん大きい字にする。 */
.card .price { margin: 8px 0 4px; }
.card .price strong { font-size: 22px; letter-spacing: -.01em; }

/* 商品写真。白背景の写真が紙の上に浮くので、薄い枠で受ける。 */
.card img, .card .noimg { border: 1px solid var(--line); padding: 4px; }

/* 絞り込みは押せる札にして、畳まずに出す。使うのはこの2つがほとんど。 */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 10px; }
.quick .chip { display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; }
.quick .chip:hover { border-color: var(--accent); }
.quick .chip:has(input:checked) { color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent); }
.quick .chip input { width: 16px; height: 16px; accent-color: var(--accent); }
.quick .of { margin-left: auto; font-size: 13px; color: var(--muted); }

/* 見出しの段。h1 を大きくして、一覧の題と本文の差をはっきりさせる。 */
h1 { font-size: 27px; letter-spacing: -.01em; }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .card .price strong { font-size: 20px; }
  .rank { top: -6px; left: -6px; min-width: 23px; height: 23px; font-size: 12px; }
  .quick .of { width: 100%; margin-left: 0; }
}

/* トップの一番上の検索窓。価格を追うサイトで最初にやるのは
   「自分の商品を探す」。camelcamelcamel も入口の一番上が検索窓だった。 */
.hero { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hero input { flex: 1 1 260px; min-width: 0; padding: 12px 15px; font-size: 16px;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.hero input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hero button { padding: 12px 24px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; color: var(--panel);
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: var(--radius); }
.hero button:hover { filter: brightness(1.08); }
/* 読み上げにだけ渡す見出し。目で見る人には placeholder が同じことを言う。 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
