/* Paddle Radar
 *
 * 比較サイトで大事なのは「違いが一目で分かる」こと。
 * 数字を並べただけの表は、読む人が頭の中で引き算をすることになる。
 * だから、
 *   1. 3本の色を最初から最後まで固定する（青・赤・緑）
 *   2. 数値には必ず横棒を添えて、長さで大小が分かるようにする
 *   3. いちばん大きい値だけを太字にする。全部を強調すると何も強調されない
 * という3点を通す。
 *
 * 色は明度差もつけてある。色の区別がつきにくい人でも、
 * 濃さと位置で追えるようにするため。
 */
:root {
  --pr-bg: #ffffff;
  --pr-surface: #f7f9fc;
  --pr-line: #e3e8ef;
  --pr-grid: #d8dde5;
  --pr-ink: #1a2332;
  --pr-ink2: #4a5568;
  --pr-ink3: #718096;
  --pr-accent: #2563eb;
  --pr-1: #2563eb;   /* 1本目 青 */
  --pr-2: #dc2626;   /* 2本目 赤 */
  --pr-3: #059669;   /* 3本目 緑 */
  --pr-warn: #b45309;
  --pr-radius: 12px;
  --pr-font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP",
             "Noto Sans TC", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pr-bg: #10141c; --pr-surface: #171d28; --pr-line: #2a3341; --pr-grid: #323c4d;
    --pr-ink: #e8edf4; --pr-ink2: #b4bfcf; --pr-ink3: #8494a8;
    --pr-1: #60a5fa; --pr-2: #f87171; --pr-3: #34d399;
  }
}
:root[data-theme="dark"] {
  --pr-bg: #10141c; --pr-surface: #171d28; --pr-line: #2a3341; --pr-grid: #323c4d;
  --pr-ink: #e8edf4; --pr-ink2: #b4bfcf; --pr-ink3: #8494a8;
  --pr-1: #60a5fa; --pr-2: #f87171; --pr-3: #34d399;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--pr-bg); color: var(--pr-ink);
       font-family: var(--pr-font); line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { color: var(--pr-accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* --- ヘッダ。言語切替を常に見える位置に置く --- */
header.site { border-bottom: 1px solid var(--pr-line); background: var(--pr-bg);
  position: sticky; top: 0; z-index: 30; }
header.site .row { display: flex; align-items: center; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 12px 16px; }
.brandmark { font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--pr-ink); text-decoration: none; white-space: nowrap; }
.brandmark span { color: var(--pr-accent); }
nav.main { display: flex; gap: 14px; margin-left: auto; flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { white-space: nowrap; }
nav.main a { color: var(--pr-ink2); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a[aria-current="page"] { color: var(--pr-ink); border-bottom-color: var(--pr-accent); }
.langPick { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-ink);
  min-height: 38px; }

/* --- パドルの一覧。カードで並べる --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin: 20px 0 40px; }
.pcard { border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
  background: var(--pr-surface); padding: 14px; display: flex; flex-direction: column; gap: 8px;
  position: relative; transition: border-color .15s, transform .15s; }
/* display を指定すると、HTML の hidden 属性（＝display:none）が打ち消される。
   絞り込みで hidden を付けても消えなかったのはこれが理由。明示的に戻す。 */
.pcard[hidden] { display: none; }
.pcard:hover { border-color: var(--pr-accent); }
.pcard .thumb { aspect-ratio: 1/1; background: var(--pr-bg); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pcard .brand { font-size: 12px; font-weight: 700; color: var(--pr-ink3);
  letter-spacing: .06em; text-transform: uppercase; }
/* 名前の長さでカードの高さが変わると、隣と見比べるときに行がずれる。
   2行ぶんで固定し、長いものは3行目で省略する。
   全部を表示するより、横に並べて比べられることを優先する。 */
.pcard h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 700;
  min-height: calc(15px * 1.4 * 2); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard .meta { font-size: 12px; color: var(--pr-ink3); display: flex; gap: 10px; flex-wrap: wrap; }

/* 公表値は3つを必ず同じ位置に出す。値が無いものも枠を残し、
   隣のカードと行がずれないようにする。横に並べて見比べるための表示なので、
   同じ情報がカードごとに別の高さにあると、目で追えなくなる。 */
.specRow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 7px 0; border-top: 1px solid var(--pr-line); border-bottom: 1px solid var(--pr-line); }
.sp { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sp i { font-style: normal; font-size: 12px; color: var(--pr-ink3); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp > span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-na { color: var(--pr-ink3); font-weight: 400; }

/* タグも4つを必ず同じ並びで出す。無いものは「—」にして位置を保つ */
.tagRow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 24px; }
.gen.na { background: transparent; border: 1px dashed var(--pr-line); color: var(--pr-ink3); }
.stk.ok { background: transparent; color: var(--pr-ink3); border: 1px solid var(--pr-line); }
/* 注意書きが無いカードでも高さを合わせる */
.flag.ph { min-height: 15px; }

/* 性格タグ。色で種類が分かるようにする */
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; border: 1px solid currentColor; }
.tag.power { color: #dc2626; } .tag.pop { color: #d97706; }
.tag.control { color: #2563eb; } .tag.balanced { color: #059669; }
.tag.handling { color: #7c3aed; } .tag.forgiveness { color: #0891b2; }

/* 未確認・データ不足の注意書き */
.flag { font-size: 12px; color: var(--pr-warn); font-weight: 600; }

/* 比較に入れるチェック。押せる範囲を広く取る */
.pickbox { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 6px 0; min-height: 40px; color: var(--pr-ink2); }
.pickbox input { width: 22px; height: 22px; accent-color: var(--pr-accent); }
/* 指で押す最低は44px。チェック箱そのものは小さくても、
   ラベル全体を押せる範囲にすれば取りこぼしが減る。 */
.pickbox { min-height: 44px; }
.outlink { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }

/* --- 画面下に貼りつく比較バー --- */
.cmpBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--pr-bg); border-top: 1px solid var(--pr-line);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08); transform: translateY(105%);
  transition: transform .2s ease; }
.cmpBar.on { transform: translateY(0); }
.cmpBar .inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slot { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--pr-line);
  border-radius: 10px; padding: 6px 10px; font-size: 13px; min-width: 150px; min-height: 44px; }
.slot.filled { border-style: solid; }
.slot.s1 { border-color: var(--pr-1); } .slot.s2 { border-color: var(--pr-2); }
.slot.s3 { border-color: var(--pr-3); }
.slot .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.slot.s1 .dot { background: var(--pr-1); } .slot.s2 .dot { background: var(--pr-2); }
.slot.s3 .dot { background: var(--pr-3); }
.slot .x { margin-left: auto; cursor: pointer; color: var(--pr-ink3); font-size: 18px;
  line-height: 1; padding: 4px 6px; }
.cmpGo { margin-left: auto; background: var(--pr-accent); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer;
  min-height: 44px; }
.cmpGo[disabled] { opacity: .45; cursor: default; }

/* --- 比較画面 --- */
.cmpHead { display: grid; gap: 14px; margin: 18px 0 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cmpCol { border-top: 4px solid var(--pr-line); padding-top: 12px; }
.cmpCol.c1 { border-top-color: var(--pr-1); } .cmpCol.c2 { border-top-color: var(--pr-2); }
.cmpCol.c3 { border-top-color: var(--pr-3); }
.cmpCol .n { font-size: 11px; font-weight: 700; color: var(--pr-ink3); letter-spacing: .06em; }
.cmpCol h2 { margin: 2px 0 6px; font-size: 17px; line-height: 1.35; border: 0; padding: 0; }

.radarWrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  justify-content: center; margin: 8px 0 24px; }
.radar { width: min(420px, 92vw); height: auto; }
.radarLegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.radarLegend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  margin-right: 5px; vertical-align: -1px; }

/* 数値の表。棒を添えて、目で大小が分かるようにする */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--pr-line); text-align: left;
  vertical-align: middle; }
thead th { font-size: 12px; color: var(--pr-ink3); font-weight: 700; white-space: nowrap; }
th.axis { font-weight: 600; color: var(--pr-ink2); width: 30%; }
td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
td.best { font-weight: 800; }
td .bar { display: block; height: 5px; border-radius: 3px; margin-top: 4px;
  background: var(--pr-line); }
td .bar i { display: block; height: 100%; border-radius: 3px; }
.na { color: var(--pr-ink3); font-size: 12px; font-weight: 400; }

/* 差が出ている行だけ薄く色を敷いて、目を誘導する */
tr.differs { background: color-mix(in srgb, var(--pr-accent) 5%, transparent); }

h1 { font-size: 26px; line-height: 1.35; margin: 24px 0 10px; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 32px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--pr-line); }
p.lead { color: var(--pr-ink2); margin: 0 0 20px; }
.note { font-size: 13px; color: var(--pr-ink3); line-height: 1.75; }
footer.site { border-top: 1px solid var(--pr-line); margin-top: 48px; padding: 24px 0 90px;
  font-size: 13px; color: var(--pr-ink3); }

@media (max-width: 640px) {
  h1 { font-size: 21px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cmpBar .inner { gap: 8px; padding: 8px 12px; }
  .slot { min-width: 0; flex: 1; font-size: 12px; padding: 5px 8px; }
  .cmpGo { width: 100%; margin-left: 0; }
  th, td { padding: 7px 6px; font-size: 13px; }
  th.axis { width: 26%; }
}

/* --- 製品ページへの導線 ---
   比較して決めた人が、そのまま買いに行けるようにする。
   外部へ出るリンクなので rel は nofollow/sponsored を付けてある。 */
.cta { margin: 14px 0 18px; }
.btn { display: inline-block; background: var(--pr-accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 10px; min-height: 44px; line-height: 22px; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 13px; min-height: 38px; line-height: 24px; }
.outlink { font-size: 12px; font-weight: 700; color: var(--pr-accent); text-decoration: none;
  margin-top: -4px; }
.outlink:hover { text-decoration: underline; }

/* メーカーが名前を付けた技術。事実の並びとして出す（説明文は転載しない） */
.feats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 18px; }
.featsLead { font-size: 13px; color: var(--pr-ink3); font-weight: 600; margin-right: 4px;
  width: 100%; }
.feat { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--pr-surface);
  border: 1px solid var(--pr-line); color: var(--pr-ink2); }

/* --- 広告 ---
   読み終えた位置にだけ置く。比較の途中に挟むと、判断の邪魔になる。
   広告だと分かるように必ずラベルを付ける。 */
.ads { margin: 36px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pr-line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.adsLead { width: 100%; font-size: 12px; color: var(--pr-ink3); font-weight: 600;
  letter-spacing: .08em; }
.ad { font-size: 13px; line-height: 1.6; }
.ad img { max-width: 100%; height: auto; }

/* --- 絞り込み ---
   選択肢が3つまでのものはボタン、それ以上は選択式にする。
   18ブランドをボタンで並べると、スマホでは画面1枚ぶんを絞り込みが占めてしまい、
   肝心のパドルが1枚も見えないまま下へ送られる。 */
.filters { border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
  background: var(--pr-surface); padding: 10px 12px; margin: 16px 0 20px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.frow + .frow { margin-top: 7px; }
.fset { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtn { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; min-height: 36px;
  border: 1px solid var(--pr-line); border-radius: 999px; background: var(--pr-bg);
  color: var(--pr-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; }
.fbtn:hover { border-color: var(--pr-accent); color: var(--pr-ink); }
.fbtn.on { background: var(--pr-accent); border-color: var(--pr-accent); color: #fff; }
.fnum { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }

.fpicks { gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--pr-line); }
.fsel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--pr-ink3); font-weight: 600; }
.fsel select { font: inherit; font-size: 13px; padding: 6px 9px; min-height: 36px;
  border: 1px solid var(--pr-line); border-radius: 8px; background: var(--pr-bg);
  color: var(--pr-ink); max-width: 46vw; }
.fcount { margin-left: auto; font-size: 13px; color: var(--pr-ink3); white-space: nowrap; }
.fcount b { color: var(--pr-ink); font-size: 16px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  /* 画面の高さが限られるので、最初のパドルが早く見えるようにする。
     絞り込みは大事だが、それだけで1画面を占めては本末転倒。 */
  header.site .row { padding: 8px 12px; gap: 10px; }
  .brandmark { font-size: 17px; }
  nav.main { gap: 10px; }
  nav.main a { font-size: 13px; }
  .langPick { padding: 5px 7px; font-size: 12px; min-height: 34px; }
  h1 { font-size: 19px; margin: 16px 0 8px; }
  p.lead { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
  .filters { padding: 9px 10px; }
  .fbtn { font-size: 12px; padding: 5px 10px; min-height: 34px; }
  .fsel span { display: none; }          /* 幅が足りないので、選択式は中身で分かるようにする */
  .fsel select { max-width: 30vw; }
  .fcount { width: 100%; margin: 4px 0 0; text-align: right; }
}

/* --- 製品ページへの導線 ---
   比較して決めた人が、そのまま買いに行けるようにする。
   外部へ出るリンクなので rel は nofollow/sponsored を付けてある。 */
.cta { margin: 14px 0 18px; }
.btn { display: inline-block; background: var(--pr-accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 10px; min-height: 44px; line-height: 22px; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 13px; min-height: 38px; line-height: 24px; }
.outlink { font-size: 12px; font-weight: 700; color: var(--pr-accent); text-decoration: none;
  margin-top: -4px; }
.outlink:hover { text-decoration: underline; }

/* メーカーが名前を付けた技術。事実の並びとして出す（説明文は転載しない） */
.feats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 18px; }
.featsLead { font-size: 13px; color: var(--pr-ink3); font-weight: 600; margin-right: 4px;
  width: 100%; }
.feat { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--pr-surface);
  border: 1px solid var(--pr-line); color: var(--pr-ink2); }

/* --- 広告 ---
   読み終えた位置にだけ置く。比較の途中に挟むと、判断の邪魔になる。
   広告だと分かるように必ずラベルを付ける。 */
.ads { margin: 36px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pr-line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.adsLead { width: 100%; font-size: 12px; color: var(--pr-ink3); font-weight: 600;
  letter-spacing: .08em; }
.ad { font-size: 13px; line-height: 1.6; }
.ad img { max-width: 100%; height: auto; }

/* --- 絞り込み ---
   ベトナム語の検索は「giá rẻ（安い）」が中心にある。だから価格を先頭に置く。
   選んでいるものを色で示し、各ボタンに件数を添える。
   件数が見えないと、押してみるまで何本あるか分からず、空振りが起きる。 */
.filters { border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
  background: var(--pr-surface); padding: 14px 16px; margin: 18px 0 22px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 10px; }
.fgroup:last-of-type { margin-bottom: 4px; }
.flabel { font-size: 12px; font-weight: 700; color: var(--pr-ink3); width: 100%;
  letter-spacing: .04em; }
.fbtn { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; min-height: 38px;
  border: 1px solid var(--pr-line); border-radius: 999px; background: var(--pr-bg);
  color: var(--pr-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fbtn:hover { border-color: var(--pr-accent); color: var(--pr-ink); }
.fbtn.on { background: var(--pr-accent); border-color: var(--pr-accent); color: #fff; }
.fnum { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.fbtn.on .fnum { opacity: .9; }
.fcount { margin: 10px 0 0; font-size: 13px; color: var(--pr-ink3); }
.fcount b { color: var(--pr-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .filters { padding: 12px; }
  .fbtn { font-size: 12px; padding: 6px 10px; min-height: 36px; }
}

/* 発売日。新しいものを探している人が多いので、カードに小さく添える */
.rel { font-size: 12px; color: var(--pr-ink3); font-variant-numeric: tabular-nums; }

/* 判定できないもの・世代・通貨換算 */
.tag.unk { color: var(--pr-ink3); }
.gen { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  background: var(--pr-line); color: var(--pr-ink2); }
.gen.est { background: transparent; border: 1px dashed var(--pr-line); }  /* 推定は点線で区別 */
.fx { display: block; font-size: 12px; color: var(--pr-ink3); margin-top: 2px;
  font-variant-numeric: tabular-nums; }

/* 在庫の状態。売り切れでも理由で意味が違うので、色を分ける。
   赤＝もう手に入らない、橙＝待てば買える、青＝これから届く */
.stk { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.stk.out { background: #fdf0e6; color: #b45309; }
.stk.dis { background: #fbeae8; color: #b3392f; }
.stk.pre { background: #e8f0fe; color: #2563eb; }
.stockBox { border-left: 4px solid var(--pr-warn); background: var(--pr-surface);
  border-radius: 8px; padding: 12px 14px; margin: 14px 0 18px;
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.stockBox.dis { border-left-color: #b3392f; }
.stockBox.pre { border-left-color: var(--pr-accent); }
.stockBox b { font-size: 15px; }
.stockBox .eta { font-size: 13px; color: var(--pr-ink3); }
.stockBox a { font-size: 13px; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stk.out { background: #3a2a15; color: #f0b866; }
  :root:not([data-theme="light"]) .stk.dis { background: #3a1f1c; color: #f0a89f; }
  :root:not([data-theme="light"]) .stk.pre { background: #1a2740; color: #8ab4f8; }
}

/* 通貨の選択。言語とは別に選べる（日本語で読みつつ米ドルで比べる人がいる）*/
.curPick { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-ink);
  min-height: 34px; }
/* 換算した値は、店頭の値段そのものではないので点線で区別する */
.pr.conv { border-bottom: 1px dotted var(--pr-ink3); }
@media (max-width: 640px) { .curPick { padding: 4px 6px; font-size: 11px; } }
