/* ============================================================
   BAWLOOP — site.css
   全ての色は design/tokens.css の CSS変数のみを使用する。
   個別の hex 直書きは禁止（絶対規則1）。
   mock-v8 の hex のうち tokens.css に存在しないものは
   意味的に最も近いトークンへ置き換えている:
     #1B1D1C -> var(--ink)
     #DDE0DC -> var(--panel-edge)
     #E8836F -> var(--price-on-dark)
     #B8860B（星の金色） -> var(--ink-mid)（モノクロに統一。新色を発明しない）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ground);
  font-size: 13px;
  line-height: 1.75;
}
img { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mincho { font-family: var(--font-serif); }

/* --- header --- */
.sitebar {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.wmlink { display: flex; align-items: center; gap: 13px; color: inherit; }
.wmwrap { display: flex; flex-direction: column; line-height: 1.1; }
.wm { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: .09em; color: var(--ink); }
.wm .thin { font-weight: 400; color: var(--ink-soft); }
.kana { font-size: 8.5px; font-weight: 500; letter-spacing: .42em; color: var(--teal); margin-top: 2px; }
.nav { margin-left: auto; display: flex; gap: 18px; font-size: 11.5px; color: var(--ink-mid); flex-wrap: wrap; }
.nav a { color: var(--ink-mid); }
.nav a.on { color: var(--ink); font-weight: 700; }

.catnav {
  max-width: 900px;
  margin: 0 auto;
  display: flex; gap: 6px; padding: 8px 26px 10px 26px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}
.cat { background: var(--panel); border: 1px solid var(--panel-edge-hi); padding: 2px 11px; font-size: 11px; color: var(--ink); }

/* --- page containers --- */
.hero, .salebar, .sec, .footer, .art, .phead, .filter, .grid, .body, .prstrip { max-width: 900px; margin-left: auto; margin-right: auto; }
.narrow .hero, .narrow .art, .narrow .phead, .narrow .filter, .narrow .grid, .narrow .prstrip, .narrow .body, .narrow .foot { max-width: 760px; }

/* --- hero (index) --- */
.hero { background: var(--ground-sunk); display: flex; align-items: center; }
.heroL { flex: 1; padding: 22px 6px 22px 30px; min-width: 0; }
.heroR { flex: none; width: 300px; padding: 10px 26px 10px 0; }
.heroR img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.kicker { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--teal); margin-bottom: 8px; }
.heroTitle { font-size: 24px; font-weight: 900; line-height: 1.42; color: var(--ink); margin: 0; }
.heroSub { font-size: 12px; color: var(--ink-mid); margin-top: 7px; line-height: 1.8; max-width: 44ch; }

/* --- article/pickup hero --- */
.article-hero { align-items: center; }
.article-hero .heroL { padding: 30px 6px 30px 30px; }
.article-hero .heroR { width: 400px; padding: 12px 26px 12px 0; }
.article-hero h1 { font-size: 26px; font-weight: 900; line-height: 1.42; color: var(--ink); margin: 0; }
.hmeta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); margin-top: 14px; }
.prstrip { font-size: 10.5px; color: var(--ink-faint); padding: 7px 26px 0 26px; }

/* --- sale bar --- */
.salebar { background: var(--ink-deep); display: flex; align-items: center; gap: 14px; padding: 10px 26px; flex-wrap: wrap; }
.salebadge { background: var(--price); color: var(--on-dark); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; padding: 2px 9px; flex: none; }
.saletext { color: var(--on-dark); font-size: 12.5px; font-weight: 700; }
.saleterm { font-family: var(--font-mono); font-size: 10.5px; color: var(--on-dark-faint); }
.salelink { margin-left: auto; font-size: 11.5px; color: var(--teal-on-dark); font-weight: 500; }

/* --- generic section --- */
.sec { padding: 20px 26px 0 26px; }
.sh { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; margin-bottom: 12px; }
.sh h2 { font-size: 15.5px; font-weight: 700; margin: 0; }
.sh .en { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); letter-spacing: .14em; }
.sh .more { margin-left: auto; font-size: 11px; }
.emptyNote { font-size: 12.5px; color: var(--ink-soft); padding: 10px 0 20px 0; }

/* --- new reviews grid --- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rcard { background: var(--panel); border: 1px solid var(--panel-edge-hi); display: flex; flex-direction: column; color: inherit; }
.rcard .ph { height: 116px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--panel-edge); }
.rcard .ph img { max-width: 46%; max-height: 94px; display: block; mix-blend-mode: multiply; }
.rcard .ph img.solo { max-width: 88%; }
.rcard .cb { padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cmeta { display: flex; align-items: center; gap: 7px; }
.cat2 { background: var(--ground-sunk); font-size: 9.5px; padding: 0 7px; color: var(--ink-mid); }
.star { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-mid); }
.star svg { fill: var(--ink-mid); }
.rtitle { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.rfoot { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.rprice { font-family: var(--font-mono); font-size: 14px; color: var(--price); font-weight: 600; }
.rdate { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-faint); margin-left: auto; }

/* --- daily pick (今日のピックアップ / /daily/ アーカイブ) --- */
.dpdate { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.dpgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dpcard { background: var(--panel); border: 1px solid var(--panel-edge-hi); display: flex; flex-direction: column; }
.dpph { height: 116px; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--panel-edge); background: var(--ground-sunk); }
.dpph img { max-width: 70%; max-height: 94px; display: block; mix-blend-mode: multiply; }
.dpcb { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dptag { align-self: flex-start; background: var(--ink); color: var(--on-dark); font-family: var(--font-mono); font-size: 9.5px; padding: 2px 8px; letter-spacing: .05em; }
.dpname { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.dpprice { font-family: var(--font-mono); font-size: 15px; color: var(--price); font-weight: 600; }
.dpblurb { font-size: 11.5px; color: var(--ink-mid); line-height: 1.75; margin: 0; }
.dpbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.dpbtns .buy { font-size: 10.5px; padding: 4px 12px; }
.dayhead { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 5px; margin: 0 0 12px 0; }

/* --- category ranking --- */
.ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rankcol { background: var(--panel); border: 1px solid var(--panel-edge-hi); }
.rankcol .rh { border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; padding: 6px 11px; display: flex; justify-content: space-between; align-items: baseline; }
.rankcol .rh .en { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-faint); letter-spacing: .1em; }
.ritem { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-bottom: 1px solid var(--panel-edge); }
.ritem:last-child { border-bottom: none; }
.rk { width: 17px; height: 17px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--on-dark); background: var(--ink-faint); }
.rk.n1 { background: var(--teal); }
.rname { font-size: 11.5px; font-weight: 500; line-height: 1.4; }
.rprice2 { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--price); white-space: nowrap; }

/* --- feature (pickup card) --- */
.feature { display: flex; color: inherit; }
.feature .fph { flex: none; width: 300px; background: var(--ground-sunk); display: flex; align-items: center; justify-content: center; padding: 22px; }
.feature .fph img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.feature .fb { flex: 1; background: var(--ink-deep); padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.flabel { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--price-on-dark); margin-bottom: 8px; }
.feature h3 { font-size: 20px; font-weight: 900; line-height: 1.5; color: var(--on-dark); margin: 0 0 8px 0; }
.feature .fd { font-size: 12px; color: var(--on-dark-soft); line-height: 1.85; }
.feature .fm { font-family: var(--font-mono); font-size: 9.5px; color: var(--on-dark-faint); margin-top: 12px; }

/* --- tables (shared: geardb table, price comparison, spec) --- */
table { border-collapse: collapse; width: 100%; font-size: 12.5px; background: var(--panel); }
th, td { border: 1px solid var(--panel-edge); padding: 7px 10px; text-align: left; }
thead th { background: var(--ground-sunk); font-weight: 700; border-color: var(--rule-strong); font-size: 10.5px; }
td.c { text-align: center; }
.thumb { width: 40px; height: 30px; object-fit: contain; mix-blend-mode: multiply; vertical-align: middle; }
.minb, .badge2 { display: inline-block; background: var(--teal); color: var(--on-dark); font-family: var(--font-mono); font-size: 9px; padding: 0 5px; margin-left: 5px; }
.dbprice { font-family: var(--font-mono); color: var(--price); font-weight: 600; }
.cheap td { background: var(--teal-tint); }
.cheap .p, .cheap td.mono { color: var(--price); font-weight: 700; }

/* --- footer --- */
.footer { margin-top: 24px; border-top: 1px solid var(--ink); background: var(--ground-sunk); }
.fcols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; padding: 20px 26px; }
.fcols h4 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-soft); margin: 0 0 8px 0; font-weight: 600; }
.fcols a { display: block; font-size: 11px; color: var(--ink-mid); margin-bottom: 5px; }
.fbrand { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .09em; color: var(--ink); margin-bottom: 4px; }
.fdesc { font-size: 10.5px; color: var(--ink-soft); line-height: 1.8; }
.legal { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--panel-edge-hi); padding: 10px 26px; font-size: 10px; color: var(--ink-faint); }

/* ============================================================
   article ページ固有
   ============================================================ */
.specbar { max-width: 900px; margin: 0 auto; background: var(--ink-deep); display: flex; flex-wrap: wrap; }
.specbar .c { flex: 1; min-width: 150px; padding: 11px 20px; border-right: 1px solid var(--dark-rule); }
.specbar .c:last-child { border-right: none; }
.specbar .k { font-family: var(--font-mono); font-size: 9.5px; color: var(--on-dark-faint); letter-spacing: .12em; }
.specbar .v { font-family: var(--font-mono); font-size: 14px; color: var(--on-dark); }
.specbar .v.pr { color: var(--price-on-dark); font-size: 19px; }

.body { padding: 26px 26px 0 26px; }
.kbox { background: var(--panel); border: 1px solid var(--ink); padding: 15px 17px; margin-bottom: 24px; max-width: 74ch; }
.kbox .kl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--teal); margin-bottom: 5px; }
.body h2 { font-size: 17px; font-weight: 700; margin: 30px 0 12px 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; gap: 10px; }
.body h2 .en { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-faint); letter-spacing: .14em; font-weight: 400; }
.body p { margin: 0 0 15px 0; max-width: 66ch; }
.body ul { max-width: 66ch; margin: 0 0 15px 0; padding-left: 20px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px 0; }
.gcell { background: var(--panel); border: 1px solid var(--panel-edge); }
.gcell .gi { height: 170px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.gcell .gi img { max-width: 100%; max-height: 146px; display: block; mix-blend-mode: multiply; }
.gcell .gc { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-soft); padding: 5px 9px; border-top: 1px solid var(--panel-edge); }

.buy { display: inline-block; background: var(--ink); color: var(--on-dark); font-size: 11.5px; font-weight: 500; padding: 3px 14px; }
.buy:hover { color: var(--on-dark); background: var(--teal-deep); }
.buy.buyLg { font-size: 13px; font-weight: 700; padding: 7px 20px; }
.noteText { font-size: 10px; color: var(--ink-faint); margin-top: 5px; }

.exp { background: var(--panel); border: 1px solid var(--panel-edge-hi); border-left: 3px solid var(--teal); margin: 24px 0; max-width: 74ch; }
.exp .eh { background: var(--ground-sunk); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; padding: 6px 14px; color: var(--ink-mid); }
.exp .eb { padding: 12px 14px; font-size: 13px; }
.exp .eh small { font-family: var(--font-sans); font-weight: 400; font-size: 11px; color: var(--ink-faint); margin-left: 8px; }

.foot { max-width: 900px; margin: 30px auto 0 auto; border-top: 1px solid var(--ink); color: var(--ink-faint); font-size: 10.5px; padding: 14px 26px 24px 26px; }

/* ============================================================
   pickup（特集）ページ固有
   ============================================================ */
.art { padding: 26px 40px 10px 40px; font-size: 14.5px; line-height: 2.0; }
.art .cat { display: block; background: none; border: none; padding: 0; color: var(--price); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.art h1 { font-size: 27px; font-weight: 800; line-height: 1.6; margin: 10px 0 8px 0; }
.art .lede { font-size: 13.5px; color: var(--ink-mid); line-height: 1.9; border-left: 2px solid var(--price); padding-left: 14px; margin: 14px 0; }
.art .byline { font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); padding: 6px 0; margin: 14px 0 22px 0; display: flex; justify-content: space-between; }
.figure { text-align: center; margin: 20px 0; }
.figure img { mix-blend-mode: multiply; }
.figure .cap { font-size: 11px; color: var(--ink-faint); margin-top: 6px; }
.art h2 { font-family: var(--font-serif); font-size: 19px; font-weight: 800; margin: 30px 0 10px 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.art h2 .en { color: var(--price); margin-right: 10px; font-family: var(--font-serif); }
.art p { margin: 0 0 14px 0; }
.pull { font-family: var(--font-serif); font-size: 17px; color: var(--teal); text-align: center; padding: 14px 0; margin: 18px 0; border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); letter-spacing: .04em; }
.spec th { background: var(--ground-sunk); width: 140px; font-weight: 500; }
.badge { display: inline-block; border: 1px solid var(--price); color: var(--price); font-size: 10px; padding: 0 6px; margin-right: 5px; }

/* ============================================================
   機材DB ページ固有
   ============================================================ */
.phead { background: var(--ink); color: var(--on-dark); padding: 4px 26px 14px 26px; }
.phead h1 { font-size: 19px; font-weight: 700; margin: 0 0 2px 0; }
.phead .en { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); letter-spacing: .14em; }
.phead .desc { font-size: 11.5px; color: var(--panel-edge); margin-top: 4px; }
.filter { display: flex; gap: 8px; align-items: center; padding: 10px 26px; background: var(--ground-sunk); border-bottom: 1px solid var(--panel-edge-hi); font-size: 11.5px; flex-wrap: wrap; }
.fsel { background: var(--panel); border: 1px solid var(--rule-strong); padding: 4px 10px; color: var(--ink); }
.fbtn { background: var(--teal); color: var(--on-dark); border: 1px solid var(--teal); font-weight: 700; padding: 4px 18px; cursor: pointer; }
.fcount { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mid); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 26px; }
.card { background: var(--panel); border: 1px solid var(--panel-edge-hi); display: flex; flex-direction: column; }
.card .ph { background: var(--ground-sunk); border-bottom: 1px solid var(--panel-edge); display: flex; align-items: center; justify-content: center; padding: 16px 0; position: relative; min-height: 70px; }
.stapleb { position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--on-dark); font-family: var(--font-mono); font-size: 9.5px; padding: 1px 7px; letter-spacing: .08em; }
.card .cb { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.brand { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: .06em; }
.name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.catl { font-size: 10.5px; color: var(--ink-faint); }
.starRow { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-mid); }
.starRow svg { fill: var(--ink-mid); }
.prRow { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.pr { font-family: var(--font-mono); font-size: 18px; color: var(--price); font-weight: 600; }

/* ============================================================
   レスポンシブ — 768px 以下は mock-v8/Mobile.dc.html の構成へ
   ============================================================ */
@media (max-width: 768px) {
  .sitebar, .catnav, .hero, .salebar, .sec, .footer, .art, .phead, .filter, .grid, .body, .prstrip, .specbar, .legal, .foot {
    max-width: 100%;
  }
  .sitebar { padding: 12px 16px; }
  .catnav { padding: 8px 16px 10px 16px; overflow-x: auto; flex-wrap: nowrap; }
  .nav { display: none; }

  .hero, .article-hero { flex-direction: column; align-items: stretch; }
  .heroL, .article-hero .heroL { padding: 2px 18px 20px 18px; order: 2; }
  .heroR, .article-hero .heroR { width: 100%; padding: 10px 26px; order: 1; }
  .heroTitle { font-size: 23px; }
  .article-hero h1 { font-size: 21px; }

  .salebar { padding: 10px 16px; }
  .salelink { width: 100%; margin-left: 0; }

  .sec { padding: 20px 16px 0 16px; }
  .prstrip { padding: 5px 16px; font-size: 10.5px; }
  .body, .art { padding: 20px 16px 0 16px; }

  .reviews { grid-template-columns: 1fr; }
  .dpgrid { grid-template-columns: 1fr; }
  .rcard { flex-direction: row; }
  .rcard .ph { flex: none; width: 118px; height: auto; border-bottom: none; border-right: 1px solid var(--panel-edge); }
  .rcard .ph img.solo { max-width: 100%; }

  .ranks { display: none; } /* 5本未満は元々非表示。狭幅では横並びも崩れるため縦積みへ */
  .ranks.show { display: grid; grid-template-columns: 1fr; }

  .feature { flex-direction: column; }
  .feature .fph { width: 100%; padding: 16px 40px; }
  .feature .fb { padding: 18px 18px 20px 18px; }
  .feature h3 { font-size: 18px; }

  .fcols { grid-template-columns: 1fr 1fr; }

  .specbar { flex-direction: column; }
  .specbar .c { border-right: none; border-bottom: 1px solid var(--dark-rule); }
  .specbar .c:last-child { border-bottom: none; }

  .gallery { grid-template-columns: 1fr 1fr; }

  .grid { grid-template-columns: 1fr; padding: 14px 16px; }

  .art { font-size: 13.5px; }
  .art h1 { font-size: 22px; }

  table { font-size: 11px; }
  th, td { padding: 5px 7px; }
}
