/*!
 * applesama theme main stylesheet
 * 統合元: Design_Files/styles/{system,pages,mobile}.css
 * 金融端末(Bloomberg ターミナル)風デザイン: ライト基調・暖色オフホワイト・Anton 書体・日本株慣行(上昇=赤・下落=緑)
 */

/* ============================================================
   1) DESIGN SYSTEM (system.css)
   ============================================================ */
/* applesama redesign — design system
 * ライト基調の金融端末風。新聞紙のような暖色オフホワイト + 太いディスプレイ書体 + 等幅数字。
 */

:root {
  /* surfaces */
  --paper: #f3efe6;
  --paper-2: #ede8dc;
  --card: #fbf9f4;
  --ink: #0a0a0a;
  --ink-2: #1d1b16;
  --muted: #6a665d;
  --hairline: rgba(10, 10, 10, 0.14);
  --hairline-soft: rgba(10, 10, 10, 0.08);
  --rule: #0a0a0a;

  /* signal — JP stock convention: 上昇=赤, 下落=緑 */
  --up: #c8232c;
  --up-soft: #f7e3e3;
  --down: #0a6b3b;
  --down-soft: #dfeee3;
  --warn: #b87800;

  /* fonts */
  --f-display: "Anton", "Bebas Neue", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --f-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* body は viewport 全面、その中で .page を 1280px 中央寄せ。
   背景の暖色オフホワイトはビューポート全体に行き渡る。 */
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
.page::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(10,10,10,0.025) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 62%, rgba(10,10,10,0.02) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 88%, rgba(10,10,10,0.02) 0 1px, transparent 1px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
  opacity: 0.7;
  mix-blend-mode: multiply;
  z-index: 1;
}

.page > * { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.005em; }

/* ---------- Top bar / masthead ---------- */
.bar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.bar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--hairline);
  white-space: nowrap;
  gap: 18px;
}

.bar__top > span { white-space: nowrap; }

.bar__top .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bar__top .live::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--up);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  padding: 14px 28px 12px;
  border-bottom: 2px solid var(--rule);
}

.masthead__logo {
  font-family: var(--f-display);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.masthead__logo .dot {
  width: 12px; height: 12px;
  background: var(--up);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}

.masthead__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__nav {
  display: flex;
  gap: 0;
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  align-self: end;
  margin-bottom: 6px;
}

.masthead__nav a {
  padding: 8px 18px;
  border-left: 1px solid var(--hairline);
  position: relative;
  white-space: nowrap;
}

.masthead__nav a:first-child { border-left: 0; padding-left: 0; }
.masthead__nav a.is-active { color: var(--up); }
.masthead__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: -14px;
  height: 3px;
  background: var(--up);
}
.masthead__nav a:first-child.is-active::after { left: 0; }

.masthead__stamp {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

.masthead__stamp b {
  color: var(--ink);
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  height: 36px;
  position: relative;
}

.ticker__track {
  display: flex;
  gap: 36px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  animation: ticker-roll 90s linear infinite;
  padding-left: 28px;
}

@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item { display: inline-flex; gap: 8px; align-items: center; }
.ticker__item .sym { color: rgba(255,255,255,0.55); letter-spacing: 0.1em; text-transform: uppercase; }
.ticker__item .px { color: #fff; font-weight: 500; }
.ticker__item .dx.up { color: #ff6b6b; }
.ticker__item .dx.down { color: #5be39c; }
.ticker__item .dx.flat { color: rgba(255,255,255,0.4); }
.ticker__item .arr { font-family: var(--f-mono); }

/* ---------- Section frame ---------- */
.frame {
  padding: 0 28px;
}

.frame__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 28px 0 14px;
  border-bottom: 1px solid var(--rule);
}

.frame__head h2 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.frame__head h2 .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  letter-spacing: 0.15em;
}

.frame__head .actions {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 18px;
}

.frame__head .actions a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.foot {
  border-top: 2px solid var(--rule);
  margin-top: 56px;
  padding: 32px 28px 28px;
  background: var(--paper-2);
}

.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--hairline);
}

.foot__brand {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.1;
}

.foot__brand p {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  letter-spacing: 0.04em;
  max-width: 240px;
  line-height: 1.6;
}

.foot__col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.foot__col ul { list-style: none; padding: 0; margin: 0; }
.foot__col li { margin-bottom: 7px; font-size: 13px; }
.foot__col li::before { content: "›"; color: var(--muted); margin-right: 8px; }

.foot__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Common elements ---------- */
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  background: var(--paper);
}

.tag--up { color: var(--up); border-color: var(--up); background: var(--up-soft); }
.tag--down { color: var(--down); border-color: var(--down); background: var(--down-soft); }
.tag--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.rule { height: 0; border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--dashed { border-top: 1px dashed var(--hairline); }
.rule--double { border: 0; border-top: 3px double var(--rule); }

/* ---------- Buttons / inputs (filter bar) ---------- */
.input {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}

.input--lg { padding: 10px 14px; font-size: 13px; }

.input-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 0;
}

.btn--ghost { background: transparent; color: var(--ink); }
.btn--up { background: var(--up); border-color: var(--up); color: #fff; }

/* watermark serial code — adds 'underground document' feel */
.serial {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ============================================================
   2) PAGE LAYOUTS (pages.css)
   ============================================================ */
/* applesama redesign — page-specific styles
 * Front page / Prices / Model detail / News
 */

/* ============ FRONT PAGE ============ */

/* Difftag — explicit 前日比 prefix everywhere */
.difftag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Hero big number (replaces editorial headline) */
.hero__num {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.hero__num-label .lbl {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__num-label .lbl b {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
  letter-spacing: 0.18em;
  margin-left: 4px;
  font-weight: 700;
}
.hero__num-label .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.hero__num-v {
  font-family: var(--f-display);
  font-size: 140px;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.01em;
}
.hero__num-v.up { color: var(--up); }
.hero__num-v.down { color: var(--down); }
.hero__num-v.flat { color: var(--ink); }
.hero__num-v .arr {
  font-size: 60px;
  margin-right: 4px;
  align-self: center;
}
.hero__num-v .num { font-family: var(--f-display); }
.hero__num-v .num .dot { letter-spacing: -0.02em; }
.hero__num-v .pct {
  font-family: var(--f-display);
  font-size: 64px;
  color: var(--muted);
  margin-left: 4px;
}
.difftag .lbl {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.difftag .val { font-weight: 600; }
.difftag .vs { color: var(--muted); font-size: 10px; }
.difftag.up .val { color: var(--up); }
.difftag.down .val { color: var(--down); }
.difftag.flat .val { color: var(--muted); }

/* Market sentiment bar */
.mktbar {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.mktbar__bar {
  display: flex;
  height: 10px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.mktbar__seg.up { background: var(--up); }
.mktbar__seg.down { background: var(--down); }
.mktbar__seg.flat { background: var(--paper-2); border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
.mktbar__legend {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.mktbar__legend .up { color: var(--up); font-weight: 600; }
.mktbar__legend .down { color: var(--down); font-weight: 600; }
.mktbar__legend .flat { color: var(--muted); font-weight: 600; }
.mktbar__legend .avg { margin-left: auto; color: var(--ink); }
.mktbar__legend .avg .muted { color: var(--muted); font-weight: 400; }
.mktbar__legend b { font-family: var(--f-display); font-size: 16px; font-weight: 400; }
.mktbar__legend .avg b { font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.mktbar__legend .avg b.up { color: var(--up); }
.mktbar__legend .avg b.down { color: var(--down); }
.mktbar__legend .of { color: var(--muted); font-weight: 400; margin-left: 2px; font-family: var(--f-mono); font-size: 11px; }

/* KPI grid — 4 stat cards */
.kpi-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.kpi {
  padding: 14px 16px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.kpi__l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi__v {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1.2;
  margin: 6px 0 4px;
}
.kpi__v.up { color: var(--up); }
.kpi__v.down { color: var(--down); }
.kpi__d { font-size: 12px; color: var(--ink-2); }
.kpi__d--mono { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* CTA row */
.hero__cta-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__cta-btn {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__cta-btn.primary { background: var(--ink); color: var(--paper); }
.hero__cta-note {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero rail foot — 急下落 ブロック */
.hero__rail-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.downblock__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.downblock__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--hairline);
}
.downblock__row:last-child { border-bottom: 0; }
.downblock__row .down { color: var(--down); font-weight: 600; }

/* Frame note */
.frame__note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--up-soft);
  border-left: 3px solid var(--up);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}
.frame__note b { color: var(--up); }

/* Mono-muted helper */
.mono-muted {
  font-family: var(--f-mono);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Streak tag */
.streak {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  letter-spacing: 0.04em;
}

/* Spread variant */
.toptable--spread .price-sm {
  display: block;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
}
.toptable--spread .price-sm.up { color: var(--up); }
.toptable--spread .price-sm.down { color: var(--down); }
.toptable--spread .pct {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

/* Sell-window signal table */
.signaltable {
  margin-top: 0;
  border-top: 1px solid var(--rule);
}
.sigrow {
  display: grid;
  grid-template-columns: 60px 1.4fr 2fr 110px 140px;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--hairline);
}
.sigrow:first-child {
  /* #1 行を強調する背景グラデーション(他行と padding/margin は揃えて罫線をズラさない) */
  background: linear-gradient(90deg, var(--up-soft) 0%, transparent 60%);
}
.sigrow__rank {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--muted);
  line-height: 1;
}
.sigrow:first-child .sigrow__rank { color: var(--up); }
.sigrow__name {
  font-weight: 600;
  font-size: 14px;
}
.sigrow__name .meta {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.sigrow__sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.sigrow__sub b { color: var(--ink); font-weight: 600; }

.sigrow__bar-track {
  position: relative;
  height: 18px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}
.sigrow__bar-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.8s ease;
}
.sigrow__bar-peak {
  position: absolute;
  top: -4px; bottom: -4px;
  right: 0;
  width: 2px;
  background: var(--up);
}
.sigrow__bar-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sigrow__pct-v {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.15;
  text-align: right;
}
.sigrow__pct-l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}

.sigrow__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.sigrow__action .tag--up {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}
.sigrow__action-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 2px solid var(--rule);
}

.hero__main {
  padding: 36px 28px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.hero__rail {
  padding: 28px 28px 28px;
  background: var(--paper-2);
  position: relative;
}

.hero__kicker {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  margin: 0;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  color: var(--up);
  font-family: var(--f-display);
}

.hero__sub {
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.hero__sub b { background: linear-gradient(transparent 60%, rgba(200,35,44,0.18) 60%); padding: 0 2px; }

.hero__big {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.hero__big-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero__big-label b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-bottom: 4px; }

.hero__price {
  font-family: var(--f-display);
  font-size: 116px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.hero__price .yen { font-size: 56px; color: var(--muted); }
.hero__price .num { color: var(--ink); }

.hero__price-meta {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero__price-meta .diff { color: var(--up); font-weight: 600; }
.hero__price-meta .label { color: var(--muted); }

.hero__rail-title {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__rail-title .small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__movers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mover {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 12px;
}

.mover:last-child { border-bottom: 0; }

.mover__rank {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 24px;
}

.mover__name {
  font-weight: 500;
  font-size: 12px;
}

.mover__name .gb { color: var(--muted); margin-left: 4px; font-family: var(--f-mono); font-size: 10px; }

.mover__spark { width: 56px; height: 18px; }

.mover__dx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: right;
  min-width: 64px;
}

.mover__dx.up { color: var(--up); }
.mover__dx.down { color: var(--down); }

/* ============ TOP 10 TABLE ============ */

.toptable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  /* 列幅(th の width 指定)を厳密に守ってヘッダと本体のカラムを揃える */
  table-layout: fixed;
}

.toptable thead th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.toptable thead th.num, .toptable thead th.r { text-align: right; }

.toptable tbody td {
  padding: 14px 10px;
  border-bottom: 1px dashed var(--hairline);
  vertical-align: middle;
  font-size: 14px;
}

.toptable tbody tr:nth-child(1) td { background: linear-gradient(90deg, var(--up-soft) 0%, transparent 60%); }
.toptable tbody tr:nth-child(1) .rank b { color: var(--up); }
.toptable tbody tr:hover td { background: var(--paper-2); }

.toptable .rank {
  width: 60px;
  font-family: var(--f-mono);
}
.toptable .rank b {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.toptable .rank .delta {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: inline-block;
}

.toptable .model { font-weight: 600; }
.toptable .model .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
  text-transform: uppercase;
}

.toptable .gb {
  font-family: var(--f-mono);
  font-size: 13px;
}

.toptable .shop {
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.toptable .spark { width: 90px; }

.toptable .price {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.15;
  text-align: right;
  letter-spacing: -0.005em;
}

.toptable .price .yen { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-right: 2px; }

.toptable .dx { text-align: right; font-family: var(--f-mono); font-size: 13px; font-weight: 600; min-width: 90px; }
.toptable .dx.up { color: var(--up); }
.toptable .dx.down { color: var(--down); }

.toptable .pct {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

/* ============ SERIES NAV with iPhone photos ============ */

.series {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}

.series__card {
  border: 1px solid var(--rule);
  border-left: 0;
  padding: 18px 14px 16px;
  background: var(--card);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.series__card .ph {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 10px;
}

.series__card .ph img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* <picture> を box から除外して、子 img の max-height: 100% を親 .ph(200px)に
   ちゃんと効かせる。display: contents なしだと picture が natural サイズで描画され、
   img が枠を突き抜けて巨大化する(iPad mini 等の中間幅で顕著)。 */
.series__card .ph > picture,
.model-hero__media > picture {
  display: contents;
}

.series__card .ph-empty {
  width: 80%; height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--hairline) 0 1px, transparent 1px 8px),
    var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.series__card .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.series__card .name {
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}

.series__card .gb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 4px 0 12px;
}

.series__card .best {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.series__card .best .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.series__card .best .value {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
}

.series__card .best .dx { font-family: var(--f-mono); font-size: 10px; font-weight: 600; margin-left: 4px; }

/* ============ ABOUT / Marquee callouts ============ */

.aboutstrip {
  margin-top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  border-top: 2px solid var(--rule);
}

.aboutstrip h3 {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.45;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.aboutstrip p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.78); margin: 0; }

.aboutstrip .stat {
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 22px;
}

.aboutstrip .stat .n {
  font-family: var(--f-display);
  font-size: 58px;
  line-height: 1.2;
  color: #fff;
}

.aboutstrip .stat .n .small { font-size: 22px; color: rgba(255,255,255,0.6); margin-left: 4px; }

.aboutstrip .stat .l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
}

/* ============ PRICES PAGE ============ */

.prices-hero {
  padding: 28px 28px 24px;
  border-bottom: 2px solid var(--rule);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: end;
}

.prices-hero h1 {
  font-family: var(--f-display);
  font-size: 60px;
  line-height: 1.5;
  margin: 6px 0 14px;
  text-transform: uppercase;
}

.prices-hero p { max-width: 520px; font-size: 13px; line-height: 1.65; color: var(--ink-2); margin: 0; }

.prices-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}

.prices-hero__stats .cell {
  padding: 10px 16px;
  border-right: 1px solid var(--rule);
  background: var(--card);
}
.prices-hero__stats .cell:last-child { border-right: 0; }

.prices-hero__stats .l {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.prices-hero__stats .v {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.25;
  margin-top: 6px;
}
.prices-hero__stats .v .small { font-size: 14px; color: var(--muted); }

.prices-hero__stats .d {
  font-family: var(--f-mono);
  font-size: 11px;
  margin-top: 6px;
  color: var(--up);
  font-weight: 600;
}
.prices-hero__stats .d.down { color: var(--down); }

/* Filter bar */
.filterbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  padding: 18px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  align-items: end;
}

.filterbar__group { display: flex; flex-direction: column; gap: 4px; }
.filterbar__actions { display: flex; gap: 8px; }

/* focus 表示用: 容量 select を広めに(3 select + actions の 4 列) */
.filterbar--focus {
  grid-template-columns: 1fr 2fr 1fr auto;
}
.filterbar--focus .filterbar__group--wide { /* 機種・容量 select の親グループ */ }

/* /shop/{slug}/ のリスト: shop-cell には機種名が入るので、Anton 22px は重い → 本文書体に */
.shoplist--by-model .shop-cell {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.shoplist--by-model .shop-cell a:hover { color: var(--up); }

/* /shop/ の公式サイト CTA */
.shop-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn--cta {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  display: inline-block;
  font-family: var(--f-display);
  letter-spacing: 0.04em;
}
.btn--cta:hover { background: var(--up); color: #fff; }

/* ============ FAQ (構造化データ + アコーディオン) ============ */

.faq {
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 32px 0 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item:last-child { border-bottom: 0; }

.faq__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 28px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "Q.";
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--up);
  flex-shrink: 0;
}
.faq__q::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq__item[open] .faq__q::after {
  content: "−";
}
.faq__q:hover { background: var(--paper-2); }

.faq__a {
  padding: 0 28px 18px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  position: relative;
  padding-left: 56px;
}
.faq__a::before {
  content: "A.";
  position: absolute;
  left: 28px;
  top: 0;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--muted);
}
.faq__a a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.faq__a a:hover { color: var(--up); border-bottom-color: var(--up); }

@media (max-width: 768px) {
  .faq__q { padding: 14px 16px; font-size: 14px; gap: 10px; }
  .faq__a { padding: 0 16px 14px 38px; font-size: 12px; }
  .faq__a::before { left: 16px; }
  .faq .kicker { padding: 0 16px !important; }
}

/* ============ DIAGNOSIS PAGE (T50-T52) ============ */

.diagnosis-form {
  /* filterbar--focus を流用しているが、ラベル先頭の番号がモバイルでも見やすいよう少し余白を増やす */
  align-items: end;
}

.diag-result {
  padding: 0;
  border-top: 1px solid var(--rule);
}

.diag-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--hairline);
}
.diag-card:last-child { border-bottom: 0; }

.diag-card__rank {
  background: var(--paper-2);
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  border-right: 1px solid var(--rule);
}
.diag-card--rank1 .diag-card__rank {
  background: var(--up);
  color: #fff;
}
.diag-card--rank2 .diag-card__rank { color: var(--ink); }
.diag-card--rank3 .diag-card__rank { color: var(--muted); }

.diag-card__body {
  padding: 22px 28px;
  display: grid;
  gap: 12px;
}

.diag-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.diag-card__shop {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.diag-card__shop:hover { color: var(--up); }

.diag-card__price {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.diag-card__price .yen {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--muted);
  margin-right: 2px;
}

.diag-card__reasons {
  margin: 0;
  padding-left: 18px;
  list-style: disc outside;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.85;
}
.diag-card__reasons li { margin: 2px 0; }
.diag-card__reasons b { font-weight: 600; }

.diag-card__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* モバイル: ランク数字を狭く + パディング詰める */
@media (max-width: 768px) {
  .diag-card { grid-template-columns: 56px 1fr; }
  .diag-card__rank { font-size: 36px; }
  .diag-card__body { padding: 16px 14px; }
  .diag-card__head { flex-direction: column; gap: 4px; }
  .diag-card__shop { font-size: 20px; }
  .diag-card__price { font-size: 28px; }
  .diag-card__reasons { font-size: 12px; }
}

/* /prices/ ページ末尾の「凡例 + 注意事項」 */
.prices-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 28px 0;
}
.prices-notes__col { min-width: 0; }
.prices-notes .kicker { margin-bottom: 14px; }

.prices-notes__legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 12px;
  align-items: center;
}
.prices-notes__legend dt {
  font-family: var(--f-mono);
  font-weight: 600;
  white-space: nowrap;
}
.prices-notes__legend dt.up { color: var(--up); }
.prices-notes__legend dt.down { color: var(--down); }
.prices-notes__legend dt.muted { color: var(--muted); }
.prices-notes__legend dd { margin: 0; color: var(--ink-2); }

.prices-notes__list {
  margin: 0;
  padding-left: 18px;
  list-style: disc outside;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.85;
}
.prices-notes__list li { margin: 4px 0; }
.prices-notes__list a {
  border-bottom: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
}
.prices-notes__list a:hover { color: var(--up); border-bottom-color: var(--up); }

/* ============ MODEL PAGE ============ */

.model-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 2px solid var(--rule);
}

.model-hero__media {
  padding: 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-2);
  position: relative;
}

.model-hero__media img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}

.model-hero__media .label {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-hero__info {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}

.model-hero__breadcrumb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.model-hero__title {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1.5;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.model-hero__lede {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 22px;
  line-height: 1.7;
}

.cap-tabs {
  display: flex;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}

.cap-tabs button,
.cap-tabs a {
  appearance: none;
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hairline);
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  font-family: var(--f-display);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cap-tabs button:last-child,
.cap-tabs a:last-child { border-right: 0; }
.cap-tabs button .l,
.cap-tabs a .l {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cap-tabs button .gb,
.cap-tabs a .gb {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink-2);
}
.cap-tabs button .px,
.cap-tabs a .px {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.cap-tabs button.active,
.cap-tabs a.active { background: var(--ink); }
.cap-tabs button.active .l,
.cap-tabs a.active .l { color: rgba(255,255,255,0.55); }
.cap-tabs button.active .gb,
.cap-tabs a.active .gb { color: #fff; }
.cap-tabs button.active .px,
.cap-tabs a.active .px { color: rgba(255,255,255,0.7); }

/* 容量別ベスト価格(model page 末尾) */
.cap-compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-bottom: 0;
}
.cap-compare__cell {
  padding: 20px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.cap-compare__cell:last-child { border-right: 0; }
.cap-compare__cell.is-active { background: var(--paper-2); }
.cap-compare__cell:hover { background: var(--paper-2); }
.cap-compare__l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.cap-compare__v {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.15;
  margin-top: 10px;
  letter-spacing: 0.005em;
}
.cap-compare__d {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.cap-compare__d.up { color: var(--up); }
.cap-compare__d.down { color: var(--down); }
.cap-compare__m {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.model-hero__price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: end;
}

.model-hero__price .yen { font-family: var(--f-display); font-size: 104px; line-height: 0.95; }
.model-hero__price .yen .y { font-size: 50px; color: var(--muted); margin-right: 4px; }

.model-hero__price .meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 6px;
}

.model-hero__price .meta b {
  font-family: var(--f-mono);
  color: var(--ink);
  font-weight: 600;
}

.model-hero__price .meta .up { color: var(--up); }
.model-hero__price .meta .down { color: var(--down); }

/* chart */
.chart {
  margin: 0;
  padding: 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}

.chart__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.chart__head h3 {
  font-family: var(--f-display);
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.02em;
}

.chart__head .range {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
}

.chart__head .range button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.chart__head .range button:last-child { border-right: 0; }
.chart__head .range button.active { background: var(--ink); color: var(--paper); }

.chart__legend {
  display: flex;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i {
  width: 14px;
  height: 0;
  border-top: 2px solid var(--ink);
}
.chart__legend i.peak { border-top-style: dashed; border-color: var(--up); }

.shoplist {
  padding: 0;
}

.shoplist table {
  width: 100%;
  border-collapse: collapse;
}

.shoplist th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.shoplist th.num { text-align: right; }

.shoplist td {
  padding: 16px 14px;
  border-bottom: 1px dashed var(--hairline);
  vertical-align: middle;
}

.shoplist td.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.shoplist tr:hover td { background: var(--paper-2); }

.shoplist .rank-cell {
  width: 60px;
  font-family: var(--f-display);
  font-size: 30px;
}

.shoplist tbody tr:first-child .rank-cell { color: var(--up); }

.shoplist .shop-cell {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.shoplist .shop-cell .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  text-transform: uppercase;
}

.shoplist .px-cell {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.15;
}

.shoplist .px-cell .yen { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-right: 2px; }

.shoplist .dx-cell { font-family: var(--f-mono); font-size: 14px; font-weight: 600; }
.shoplist .dx-cell.up { color: var(--up); }
.shoplist .dx-cell.down { color: var(--down); }

.shoplist .cta {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shoplist tbody tr:first-child .cta { background: var(--ink); color: var(--paper); }

/* ============ NEWS PAGE ============ */

.news-hero {
  padding: 32px 28px 24px;
  border-bottom: 2px solid var(--rule);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: end;
}

.news-hero h1 {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1.5;
  margin: 6px 0 14px;
  text-transform: uppercase;
}

.news-hero p { max-width: 560px; font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.7; }

.news-hero__count {
  text-align: right;
  font-family: var(--f-display);
  font-size: 52px;
  line-height: 1.15;
  border-left: 2px solid var(--rule);
  padding-left: 28px;
}

.news-hero__count .l {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 400;
}

.newsfeed {
  border-top: 0;
}

.newsfeed article {
  display: grid;
  grid-template-columns: 120px 80px 1fr auto;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsfeed article:hover { background: var(--paper-2); }

.newsfeed .date {
  font-family: var(--f-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.newsfeed .date .ago {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.newsfeed .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  white-space: nowrap;
}

.newsfeed .cat.price { background: var(--up); }
.newsfeed .cat.system { background: var(--ink); }
.newsfeed .cat.shop { background: var(--down); }
.newsfeed .cat.notice { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.newsfeed .title {
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
}

.newsfeed .excerpt {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.newsfeed .arrow {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--muted);
}

.newsfeed article:hover .arrow { color: var(--up); }

/* news side rail content */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  padding: 0;
}

.news-layout > aside {
  background: var(--paper-2);
  border-left: 1px solid var(--rule);
  padding: 24px;
}

.news-layout > aside h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.news-layout aside .pop {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 13px;
  font-weight: 500;
}

.news-layout aside .pop .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.news-layout aside .miniwidget {
  margin-top: 28px;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
}

.news-layout aside .miniwidget h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 12px;
}

.news-layout aside .miniwidget .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.news-layout aside .miniwidget .row:last-child { border-bottom: 0; }
.news-layout aside .miniwidget .row .dx.up { color: #ff6b6b; }
.news-layout aside .miniwidget .row .dx.down { color: #5be39c; }

/* news pagination */
.news-pagination {
  padding: 32px 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.news-pagination .page-numbers {
  display: flex;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.news-pagination .page-numbers li { display: inline-block; }
.news-pagination .page-numbers a,
.news-pagination .page-numbers .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.news-pagination .page-numbers a:hover { background: var(--paper-2); }
.news-pagination .page-numbers .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.news-pagination .page-numbers .dots { border: 0; background: transparent; }

/* ============ SINGLE ARTICLE (個別記事) ============ */

.single-article {
  background: var(--paper);
}

.single-article__article {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 48px;
}

.single-article__hero {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 28px;
}

.single-article__catrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.single-article__cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}
.single-article__cat.price { background: var(--up); }
.single-article__cat.system { background: var(--ink); }
.single-article__cat.shop { background: var(--down); }
.single-article__cat.notice {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.single-article__date {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.single-article__sep { color: var(--hairline); }

.single-article__title {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.005em;
}

.single-article__body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.single-article__body > * + * { margin-top: 1.1em; }
.single-article__body h2 {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.005em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.single-article__body h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 18px;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--ink);
}
.single-article__body p { margin: 0; }
.single-article__body ul,
.single-article__body ol { padding-left: 1.4em; }
.single-article__body li { margin-top: 0.4em; }
.single-article__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.single-article__body a:hover { color: var(--up); border-bottom-color: var(--up); }
.single-article__body blockquote {
  margin: 1.4em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--up);
  background: var(--paper-2);
  font-size: 14px;
  color: var(--ink-2);
}
.single-article__body code {
  font-family: var(--f-mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 5px;
  border: 1px solid var(--hairline);
}
.single-article__body pre {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
}
.single-article__body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.single-article__body img {
  max-width: 100%;
  height: auto;
}
.single-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.single-article__body table th,
.single-article__body table td {
  padding: 8px 10px;
  border-bottom: 1px dashed var(--hairline);
  text-align: left;
}
.single-article__body table th {
  background: var(--paper-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.single-article__footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.single-article__back {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.single-article__back:hover { color: var(--up); border-bottom-color: var(--up); }

/* ============ Notice / disclaimer strip ============ */

.pr-strip {
  padding: 14px 28px;
  background: var(--paper-2);
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pr-strip .pr {
  border: 1px solid var(--muted);
  padding: 2px 6px;
  margin-right: 8px;
}

/* applesama_pr_badge() 出力。アフィリエイトリンクの近傍に表示する。 */
.pr-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pr-inline__tag {
  border: 1px solid var(--muted);
  padding: 2px 6px;
  color: var(--muted);
}
.pr-inline__note { font-weight: 400; }

/* ============================================================
   3) MOBILE OVERRIDES (mobile.css)
   ============================================================ */
/* applesama redesign — mobile styles
 * iPhone size (~390px wide). Touch-first, single-column, dense but scannable.
 */

.mpage {
  width: 100%;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.55;
  position: relative;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  /* paper grain reuse via ::before */
}

.mpage::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(10,10,10,0.025) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 62%, rgba(10,10,10,0.02) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  opacity: 0.6;
  mix-blend-mode: multiply;
  z-index: 1;
}

.mpage > * { position: relative; z-index: 2; }

/* ---------- M Top bar ---------- */
.mbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mbar__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--hairline);
  white-space: nowrap;
}

.mbar__strip .live {
  display: inline-flex; gap: 5px; align-items: center;
}
.mbar__strip .live::before {
  content: ""; width: 6px; height: 6px;
  background: var(--up); border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.mhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 8px;
  border-bottom: 2px solid var(--rule);
}

.mhead__logo {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: baseline; gap: 5px;
}

.mhead__logo .dot { width: 7px; height: 7px; background: var(--up); border-radius: 50%; display: inline-block; transform: translateY(-1px); }

.mhead__meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.mhead__meta b { color: var(--ink); font-weight: 600; }

.mtabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow-x: auto;
  scrollbar-width: none;
}
.mtabs::-webkit-scrollbar { display: none; }

.mtabs a {
  padding: 10px 14px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.mtabs a:last-child { border-right: 0; }
.mtabs a.is-active { color: var(--up); }
.mtabs a.is-active::after {
  content: "";
  position: absolute; left: 14px; right: 14px;
  bottom: -1px; height: 2px;
  background: var(--up);
}

/* ---------- M Ticker ---------- */
.mticker {
  background: var(--ink);
  color: var(--paper);
  height: 28px;
  overflow: hidden;
}

.mticker .ticker__track {
  font-size: 10px;
  gap: 22px;
  animation: ticker-roll 60s linear infinite;
  padding-left: 14px;
}
.mticker .ticker__item { gap: 6px; }

/* ---------- M Hero ---------- */
.mhero {
  padding: 18px 14px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.mhero__kicker {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
}

.mhero__title {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.55;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.mhero__title em { font-style: normal; color: var(--up); }

.mhero__sub {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.mhero__sub b { background: linear-gradient(transparent 60%, rgba(200,35,44,0.18) 60%); padding: 0 2px; }

.mhero__pricebox {
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}

.mhero__pricebox .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mhero__pricebox .label b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 11px; }

.mhero__pricebox .px {
  font-family: var(--f-display);
  font-size: 60px;
  line-height: 1.15;
  margin: 10px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.mhero__pricebox .px .yen { font-size: 28px; color: var(--muted); }

.mhero__pricebox .dx {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--up);
}
.mhero__pricebox .peak {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.mhero__cta {
  display: flex;
  margin-top: 14px;
  gap: 8px;
}
.mhero__cta a {
  flex: 1;
  padding: 14px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--ink);
}
.mhero__cta .primary { background: var(--ink); color: var(--paper); }

/* ---------- M Section frame ---------- */

/* M Hero big number */
.mhero__num {
  margin: 6px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hairline);
}
.mhero__num-l {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.mhero__num-l .tag {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.mhero__num-v {
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: -0.005em;
}
.mhero__num-v.up { color: var(--up); }
.mhero__num-v.down { color: var(--down); }
.mhero__num-v .arr { font-size: 32px; margin-right: 2px; }
.mhero__num-v .pct { font-size: 32px; color: var(--muted); margin-left: 2px; }
.mhero__num-meta {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* M Market sentiment bar */
.mmktbar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.mmktbar__bar {
  display: flex;
  height: 8px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.mmktbar__seg.up { background: var(--up); }
.mmktbar__seg.down { background: var(--down); }
.mmktbar__seg.flat { background: var(--paper-2); }
.mmktbar__legend {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.mmktbar__legend b { font-family: var(--f-display); font-size: 13px; font-weight: 400; color: var(--ink); margin: 0 2px; }
.mmktbar__legend .avg { margin-left: auto; }
.mmktbar__legend .avg b { font-family: var(--f-mono); font-weight: 700; }

/* M KPI 2x2 grid */
.mkpi {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.mkpi__cell {
  padding: 10px 11px 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.mkpi__cell .l {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mkpi__cell .l .lbl {
  font-size: 8px;
  padding: 1px 4px;
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.14em;
}
.mkpi__cell .v {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.2;
  margin: 6px 0 3px;
}
.mkpi__cell .v.up { color: var(--up); }
.mkpi__cell .v.down { color: var(--down); }
.mkpi__cell .d {
  font-size: 10px;
  color: var(--ink-2);
  font-family: var(--f-mono);
  letter-spacing: 0.03em;
}

/* M Sell window list */
.msellwin {
  list-style: none;
  margin: 0;
  padding: 0;
}
.msellwin li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
}
.msellwin li:first-child {
  background: linear-gradient(90deg, var(--up-soft) 0%, transparent 80%);
  margin: 0 -14px;
  padding: 14px 14px;
}
.msellwin__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.msellwin__head .rk {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 8px;
}
.msellwin li:first-child .rk { color: var(--up); }
.msellwin__head .name {
  font-weight: 600;
  font-size: 13px;
}
.msellwin__head .name .meta {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}
.msellwin__head .pct {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
}
.msellwin__bar {
  position: relative;
  height: 12px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}
.msellwin__fill {
  height: 100%;
  background: var(--ink);
}
.msellwin__peak {
  position: absolute;
  top: -3px; bottom: -3px;
  right: 0;
  width: 2px;
  background: var(--up);
}
.msellwin__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* M Spread list */
.mspread {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mspread li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
}
.mspread__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.mspread__head .name { font-weight: 600; font-size: 13px; }
.mspread__head .name .meta {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}
.mspread__head .diff {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.mspread__row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--f-mono);
  font-size: 12px;
}
.mspread__row .lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 2px 4px;
  text-align: center;
  font-weight: 700;
}
.mspread__row .lbl.up { background: var(--up); color: #fff; }
.mspread__row .lbl.down { background: var(--down); color: #fff; }
.mspread__row .v { font-weight: 700; }
.mspread__row .v.up { color: var(--up); }
.mspread__row .v.down { color: var(--down); }
.mspread__row .shop { color: var(--muted); font-size: 10px; letter-spacing: 0.05em; }

.mnote {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--up-soft);
  border-left: 3px solid var(--up);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mnote b { color: var(--up); }

.msec {
  padding: 0 14px;
  margin-top: 22px;
}
.msec__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.msec__head h2 {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msec__head h2 .idx {
  font-family: var(--f-mono);
  font-size: 9px;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  letter-spacing: 0.15em;
}
.msec__head .actions {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- M TOP10 cards ---------- */
.mranklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mranklist li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: center;
}
.mranklist li:first-child {
  background: linear-gradient(90deg, var(--up-soft) 0%, transparent 70%);
  margin: 0 -14px;
  padding: 14px 14px;
}

.mranklist .mrank {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}
.mranklist li:first-child .mrank { color: var(--up); }
.mranklist .mrank .delta {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  margin-top: 2px;
  color: var(--muted);
}

.mranklist .minfo .model {
  font-weight: 600;
  font-size: 13px;
}
.mranklist .minfo .meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: flex;
  gap: 6px;
}
.mranklist .minfo .meta .shop { color: var(--ink); font-weight: 600; }

.mranklist .mpx {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
  text-align: right;
}
.mranklist .mpx .yen { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-right: 1px; }
.mranklist .mpx .dx {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.mranklist .mpx .dx.up { color: var(--up); }
.mranklist .mpx .dx.down { color: var(--down); }

/* ---------- M Series grid ---------- */
.mseries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.mseries > li {
  list-style: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 12px 12px;
  background: var(--card);
  position: relative;
}

.mseries__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mseries__ph {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px;
}
.mseries__ph img { max-height: 100%; object-fit: contain; }

.mseries__name {
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}

.mseries__gb {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 3px 0 8px;
}

.mseries__best {
  border-top: 1px dashed var(--hairline);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mseries__best .l {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mseries__best .v {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
}

/* ---------- M about strip ---------- */
.maboutstrip {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 14px;
  margin-top: 28px;
}
.maboutstrip h3 {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 10px;
}
.maboutstrip p { font-size: 12px; color: rgba(255,255,255,0.78); margin: 0 0 18px; line-height: 1.65; }
.maboutstrip .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.maboutstrip .stat .n {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.2;
}
.maboutstrip .stat .n .s { font-size: 13px; color: rgba(255,255,255,0.55); margin-left: 3px; }
.maboutstrip .stat .l {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ---------- M footer ---------- */
.mfoot {
  background: var(--paper-2);
  padding: 22px 14px 18px;
  border-top: 2px solid var(--rule);
  margin-top: 0;
}
.mfoot__brand {
  font-family: var(--f-display);
  font-size: 22px;
}
.mfoot p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 14px;
  line-height: 1.6;
}
.mfoot__menu {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mfoot__menu li::before { content: "› "; color: var(--muted); }
.mfoot__legal {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  line-height: 1.7;
}

/* ---------- M PR strip ---------- */
.mpr {
  padding: 8px 14px;
  background: var(--paper-2);
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  gap: 6px;
}
.mpr .tag { border: 1px solid var(--muted); padding: 1px 4px; margin-right: 4px; font-size: 8px; }

/* ---------- M Prices: hero summary ---------- */
.mprices-hero {
  padding: 18px 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.mprices-hero h1 {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.55;
  margin: 6px 0 10px;
  text-transform: uppercase;
}
.mprices-hero p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

.mprices-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 0;
  border: 1px solid var(--rule);
  background: var(--card);
}
.mprices-stats .cell {
  padding: 10px 8px;
  border-right: 1px solid var(--hairline);
  text-align: left;
}
.mprices-stats .cell:last-child { border-right: 0; }
.mprices-stats .l {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mprices-stats .v {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.3;
  margin-top: 4px;
}
.mprices-stats .v .s { font-size: 10px; color: var(--muted); }
.mprices-stats .d {
  font-family: var(--f-mono);
  font-size: 9px;
  margin-top: 4px;
  color: var(--up);
  font-weight: 600;
}

/* M filter bar */
.mfilter {
  padding: 12px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mfilter__group { display: flex; flex-direction: column; gap: 3px; }
.mfilter__group.wide { grid-column: 1 / -1; }
.mfilter .input-label { font-size: 9px; }
.mfilter .input { padding: 9px 10px; font-size: 11px; }
.mfilter__row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.mfilter__row .btn { flex: 1; font-size: 12px; padding: 12px; }

/* M price card list (mobile pivot replacement) */
.mpricelist {
  padding: 0;
}
.mpricelist .pc {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.mpricelist .pc__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 8px;
}
.mpricelist .pc__model {
  font-weight: 600;
  font-size: 14px;
}
.mpricelist .pc__model .gb {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}
.mpricelist .pc__official {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mpricelist .pc__peak {
  font-family: var(--f-mono);
  font-size: 9px;
  background: var(--paper-2);
  padding: 2px 5px;
  border: 1px dashed var(--hairline);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.mpricelist .pc__shops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mpricelist .pc__shop {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
}
.mpricelist .pc__shop:last-child { border-bottom: 0; }

.mpricelist .pc__rank {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  width: 22px;
}
.mpricelist .pc__shop.is-best .pc__rank { color: var(--up); }
.mpricelist .pc__sname {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.mpricelist .pc__sname .code {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.mpricelist .pc__px {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.mpricelist .pc__shop.is-best .pc__px { color: var(--up); }
.mpricelist .pc__dx {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  min-width: 50px;
}
.mpricelist .pc__dx.up { color: var(--up); }
.mpricelist .pc__dx.down { color: var(--down); }

.mpricelist .pc__more {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px dashed var(--hairline);
  padding-top: 8px;
  text-align: center;
}

/* ---------- M Model page ---------- */
.mmodel-hero {
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
}

.mmodel-hero__bc {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.mmodel-hero__media {
  margin: 0 -14px;
  background: var(--paper-2);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mmodel-hero__media img { max-height: 220px; object-fit: contain; }
.mmodel-hero__media .label {
  position: absolute;
  top: 8px; left: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mmodel-hero__title {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.5;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.mmodel-hero__lede {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 14px;
  line-height: 1.65;
}

.mcaptabs {
  display: flex;
  border: 1px solid var(--rule);
  margin-bottom: 14px;
  background: var(--paper);
  overflow-x: auto;
  scrollbar-width: none;
}
.mcaptabs::-webkit-scrollbar { display: none; }
.mcaptabs button {
  flex: 1;
  appearance: none;
  border: 0;
  border-right: 1px solid var(--hairline);
  background: transparent;
  padding: 10px 4px;
  text-align: center;
  font-family: var(--f-display);
  cursor: pointer;
  min-width: 70px;
}
.mcaptabs button:last-child { border-right: 0; }
.mcaptabs button .l {
  display: block;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.mcaptabs button .gb { font-family: var(--f-display); font-size: 17px; line-height: 1.25; }
.mcaptabs button .px {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.mcaptabs button.active { background: var(--ink); }
.mcaptabs button.active .l { color: rgba(255,255,255,0.55); }
.mcaptabs button.active .gb { color: #fff; }
.mcaptabs button.active .px { color: rgba(255,255,255,0.7); }

.mmodel-hero__price {
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}

.mmodel-hero__price .yen {
  font-family: var(--f-display);
  font-size: 52px;
  line-height: 1.15;
  display: flex; align-items: baseline; gap: 4px;
}
.mmodel-hero__price .yen .y { font-size: 24px; color: var(--muted); }

.mmodel-hero__price .meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
}
.mmodel-hero__price .meta b { color: var(--ink); font-weight: 600; }
.mmodel-hero__price .meta .up { color: var(--up); }
.mmodel-hero__price .meta .down { color: var(--down); }

.mchart {
  background: var(--card);
  padding: 14px;
  border-bottom: 1px solid var(--rule);
}
.mchart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.mchart__head h3 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.02em;
}
.mchart__head .range {
  display: flex;
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 10px;
}
.mchart__head .range button {
  border: 0;
  border-right: 1px solid var(--rule);
  padding: 4px 8px;
  background: transparent;
  cursor: pointer;
}
.mchart__head .range button:last-child { border-right: 0; }
.mchart__head .range button.active { background: var(--ink); color: var(--paper); }
.mchart__legend {
  display: flex;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.mchart__legend i { width: 12px; height: 0; border-top: 2px solid var(--ink); display: inline-block; margin-right: 4px; }
.mchart__legend i.peak { border-top-style: dashed; border-color: var(--up); }

.mshoplist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mshoplist li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--hairline);
  background: var(--paper);
}
.mshoplist li:first-child {
  background: var(--up-soft);
}
.mshoplist .rank {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
}
.mshoplist li:first-child .rank { color: var(--up); }
.mshoplist .name { font-family: var(--f-display); font-size: 16px; letter-spacing: 0.03em; }
.mshoplist .name .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-top: 2px;
  text-transform: uppercase;
}
.mshoplist .px {
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.2;
  text-align: right;
}
.mshoplist .px .yen { font-family: var(--f-mono); font-size: 9px; color: var(--muted); }
.mshoplist .px .dx {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
}
.mshoplist .px .dx.up { color: var(--up); }
.mshoplist .px .dx.down { color: var(--down); }

/* ---------- M News ---------- */
.mnews-hero {
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--rule);
}
.mnews-hero h1 {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 1.55;
  margin: 6px 0 10px;
  text-transform: uppercase;
}
.mnews-hero p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.mnews-hero .count {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.2;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.mnews-hero .count .l {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.mnewsfeed {
  border-top: 1px solid var(--rule);
}
.mnewsfeed article {
  padding: 14px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.mnewsfeed .meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.mnewsfeed .cat {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 5px;
  background: var(--ink);
  color: var(--paper);
}
.mnewsfeed .cat.price { background: var(--up); }
.mnewsfeed .cat.shop { background: var(--down); }
.mnewsfeed .cat.notice { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 1px 4px; }
.mnewsfeed .title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.45;
}
.mnewsfeed .excerpt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* M floating CTA */
.mfab {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(180deg, transparent 0%, var(--paper) 30%);
  padding: 24px 14px 14px;
  margin-top: -12px;
}
.mfab a {
  display: block;
  background: var(--up);
  color: #fff;
  text-align: center;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 14px;
  text-transform: uppercase;
}

/* ============================================================
   4) RESPONSIVE OVERRIDES (M2.5 — mobile rework)
   ベースはデスクトップ 1280px。モバイル(≤768px)では .page を 100% に、
   .hero を非表示にして .mobile-hero に置き換え、テーブルはカード列に変換する。
   ============================================================ */

/* ---- R1 緊急: 横スクロール禁止 + .page を 100% 化 ---- */
html, body { overflow-x: hidden; }

@media (max-width: 1320px) {
  .page { width: 100%; }
}

/* ---- mobile-hero(R4): デスクトップでは非表示 ---- */
.mobile-hero { display: none; }

/* =================================================
   ≤ 768px ブレークポイント
   ================================================= */
@media (max-width: 768px) {

  /* ---- R2 共通: マストヘッド ---- */
  /* LIVE バー(.bar__top)はモバイルでは非表示。スマホ画面の貴重な縦領域を確保するため。 */
  .bar__top { display: none; }

  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    padding: 12px 14px 0;
    align-items: start;
  }
  .masthead > div:first-child { grid-column: 1; grid-row: 1; }
  .masthead__stamp { grid-column: 2; grid-row: 1; font-size: 9px; }
  .masthead__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 8px 0 0;
    border-top: 1px dashed var(--hairline);
    padding-top: 0;
  }
  .masthead__nav a {
    padding: 10px 4px;
    text-align: center;
    font-size: 12px;
    border-left: 0;
    border-right: 1px solid var(--hairline);
  }
  .masthead__nav a:last-child { border-right: 0; }
  .masthead__nav a:first-child { padding-left: 4px; }
  .masthead__nav a.is-active::after { left: 0; right: 0; bottom: -1px; }
  .masthead__logo { font-size: 28px; gap: 6px; margin-bottom: 4px; }
  .masthead__logo .dot { width: 8px; height: 8px; }
  .masthead__sub { font-size: 9px; }

  /* ---- R2: ティッカー ---- */
  .ticker { height: 28px; }
  .ticker__track {
    font-size: 10px;
    padding-left: 14px;
    gap: 24px;
  }

  /* ---- R2: PR strip はモバイル非表示(縦領域の節約) ---- */
  .pr-strip { display: none; }

  /* ---- R2: フレーム共通余白 + frame__head 縦組み ---- */
  .frame { padding: 0 14px; }
  .frame__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 0 12px;
  }
  .frame__head h2 { font-size: 20px; gap: 10px; }
  .frame__head h2 .idx { font-size: 10px; padding: 2px 6px; }
  .frame__head .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 9px;
  }
  .frame__note { font-size: 11px; }

  /* ---- R3: 通常 hero はモバイルでは非表示 → mobile-hero に置換 ---- */
  .hero { display: none; }

  /* ---- R4: mobile-hero を表示 + スタイル ---- */
  .mobile-hero {
    display: block;
    padding: 24px 16px 22px;
    border-bottom: 2px solid var(--rule);
  }
  .mobile-hero__kicker {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
  }
  .mobile-hero__title {
    font-family: var(--f-display);
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.005em;
  }
  .mobile-hero__title em {
    font-style: normal;
    color: var(--up);
    font-family: var(--f-display);
  }
  .mobile-hero__sub {
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-2);
    margin: 0 0 18px;
  }
  .mobile-hero__sub b {
    background: linear-gradient(transparent 60%, rgba(200, 35, 44, 0.18) 60%);
    padding: 0 2px;
    font-weight: 600;
  }
  .mobile-hero__pricebox {
    padding: 16px 14px 18px;
    border: 1px solid var(--rule);
    background: var(--card);
  }
  .mobile-hero__pricebox .label {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .mobile-hero__pricebox .label b {
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    display: block;
    margin-top: 2px;
    letter-spacing: 0.04em;
  }
  .mobile-hero__pricebox .px {
    font-family: var(--f-display);
    font-size: 56px;
    line-height: 1.05;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 4px;
    letter-spacing: -0.005em;
  }
  .mobile-hero__pricebox .px .yen {
    font-size: 26px;
    color: var(--muted);
  }
  .mobile-hero__pricebox .dx {
    margin-top: 10px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 600;
  }
  .mobile-hero__pricebox .dx.up { color: var(--up); }
  .mobile-hero__pricebox .dx.down { color: var(--down); }
  .mobile-hero__pricebox .peak {
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .mobile-hero__cta {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mobile-hero__cta a {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--ink);
    font-family: var(--f-display);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .mobile-hero__cta a.primary {
    background: var(--ink);
    color: var(--paper);
  }

  /* ---- R3-rev: SEC.01 / SEC.03 を「単純なリスト」に再構成 ----
     カード積みではなく、1 行に "rank / 機種・業者 / 価格・前日比" を
     2 行レイアウトでコンパクトに収める(Bloomberg 端末風のリスト)。 */
  .toptable { table-layout: auto; }
  .toptable thead { display: none; }
  .toptable, .toptable tbody { display: block; width: 100%; }

  /* tr を 3 列 × 2 行の grid に。各 td を grid-area に貼り付ける */
  .toptable tr {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: baseline;
    padding: 12px 4px;
    border-bottom: 1px dashed var(--hairline);
  }
  .toptable tbody tr:nth-child(1) {
    background: linear-gradient(90deg, var(--up-soft) 0%, transparent 70%);
  }
  .toptable tbody tr:nth-child(1) td { background: transparent; }
  .toptable tbody tr:hover td { background: transparent; }

  /* デフォルト td は折り返し可能・はみ出し無し(rank の縦潰れ防止)
     ※ 特異度を .toptable tbody td に合わせる(border-bottom を確実に消す) */
  .toptable tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
    font-size: 12px;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    background: transparent;
  }

  /* SEC.01 セル配置 */
  .toptable .rank {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    text-align: left;
    margin: 0;
    width: auto;
    overflow: visible;
    white-space: nowrap;
    line-height: 1;
  }
  .toptable .rank b {
    font-size: 24px;
    font-family: var(--f-display);
    letter-spacing: 0;
    line-height: 1;
    display: inline-block;
  }
  .toptable .model {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;        /* 機種名は折り返し可 */
    word-break: break-word;
  }
  .toptable .model .meta {
    display: inline;
    margin-left: 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
  }
  .toptable .shop {
    grid-column: 2;
    grid-row: 2;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .toptable .price {
    grid-column: 3;
    grid-row: 1;
    font-family: var(--f-display);
    font-size: 20px;
    text-align: right;
    line-height: 1.05;
    white-space: nowrap;
  }
  .toptable .price .yen { font-size: 11px; color: var(--muted); }

  /* 前日価格列は情報量の割に重複が多いので、≤768px では非表示 */
  .toptable td.num.mono-muted { display: none; }

  .toptable .dx {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .toptable .dx .pct {
    display: inline;
    margin-left: 4px;
    font-weight: 500;
    font-size: 10px;
    color: var(--muted);
  }

  /* SEC.03 価格差(.toptable--spread)は td 数が異なるので :nth-of-type で配置 */
  /* 順序: 1=rank, 2=model, 3=業者数, 4=ベスト, 5=ワースト, 6=差額, 7=差額% */
  .toptable--spread tr {
    grid-template-rows: auto auto auto;
    row-gap: 1px;
  }
  .toptable--spread td.rank { grid-row: 1 / 4; }
  .toptable--spread td.model { grid-column: 2; grid-row: 1; }
  .toptable--spread td:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--muted);
  }
  .toptable--spread td:nth-of-type(3) .streak {
    background: transparent;
    color: var(--muted);
    padding: 0;
  }
  .toptable--spread td:nth-of-type(4),
  .toptable--spread td:nth-of-type(5) {
    grid-column: 2 / 4;
    font-family: var(--f-mono);
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .toptable--spread td:nth-of-type(4) { grid-row: 2; }
  .toptable--spread td:nth-of-type(5) { grid-row: 3; }
  .toptable--spread td:nth-of-type(4)::before { content: "BEST "; color: var(--up); font-weight: 700; margin-right: 4px; }
  .toptable--spread td:nth-of-type(5)::before { content: "WORST "; color: var(--down); font-weight: 700; margin-right: 4px; }
  .toptable--spread td:nth-of-type(4) .price-sm,
  .toptable--spread td:nth-of-type(5) .price-sm { font-size: 12px; margin-right: 6px; }
  .toptable--spread td:nth-of-type(4) .pct,
  .toptable--spread td:nth-of-type(5) .pct {
    display: inline;
    color: var(--ink-2);
    margin-left: 0;
    font-size: 11px;
  }
  /* 差額(¥)列は SEC.01 と同じ右上に出す */
  .toptable--spread td:nth-of-type(6) {
    grid-column: 3;
    grid-row: 2 / 4;
    align-self: center;
    text-align: right;
    font-family: var(--f-display);
    font-size: 18px;
    line-height: 1.05;
  }
  .toptable--spread td:nth-of-type(6) .price-sm { font-size: 18px; }
  /* 差額 % は SEC.01 dx と同じ位置(消すと情報量過多になるので注釈として残す) */
  .toptable--spread td.dx { display: none; }

  /* ---- R3: SEC.02 sigrow を縦積み ---- */
  .sigrow {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }
  .sigrow__rank { font-size: 28px; }
  .sigrow__pct-v { font-size: 26px; text-align: left; }
  .sigrow__pct-l { text-align: left; }
  .sigrow__pct, .sigrow__action {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .sigrow__action { flex-direction: row; align-items: center; }

  /* ---- R3: SEC.04 機種カード 5列 → 2列 ---- */
  .series {
    grid-template-columns: repeat(2, 1fr);
    border-left: 0;
  }
  .series__card {
    border-left: 1px solid var(--rule);
    padding: 14px 12px 14px;
  }
  .series__card .ph { height: 130px; }
  .series__card .name { font-size: 16px; }
  .series__card .best .value { font-size: 18px; }

  /* ---- R3: About strip ---- */
  .aboutstrip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 16px;
  }
  .aboutstrip h3 { font-size: 20px; line-height: 1.45; }
  .aboutstrip p { font-size: 12px; }
  .aboutstrip .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .aboutstrip .stat .n { font-size: 38px; }
  .aboutstrip .stat .n .small { font-size: 14px; }
  .aboutstrip .stat .l { margin-top: 0; text-align: right; }

  /* Serial 隠す */
  .serial { display: none; }

  /* ---- R2: フッタ ---- */
  .foot {
    padding: 24px 16px 20px;
    margin-top: 32px;
  }
  .foot__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 18px;
  }
  .foot__brand { font-size: 22px; }
  .foot__brand p { max-width: 100%; }
  .foot__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    font-size: 9px;
  }

  /* ---- prices/model/news など旧マークアップへの保険(横スクロール防止) ---- */
  .site-main { padding: 14px; max-width: 100%; overflow-x: hidden; }
  .prices-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ============================================================
     M3 — Bloomberg 風 prices / model ページ用のモバイル overrides
     ============================================================ */

  /* prices-hero: 1.3fr 1fr → 縦積み */
  .prices-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 16px 20px;
  }
  .prices-hero h1 {
    font-size: 36px;
    line-height: 1.15;
    margin: 4px 0 10px;
  }
  .prices-hero p { font-size: 12px; max-width: 100%; }
  .prices-hero__stats {
    grid-template-columns: repeat(3, 1fr);
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .prices-hero__stats .cell { padding: 10px 8px; }
  .prices-hero__stats .v { font-size: 22px; }
  .prices-hero__stats .v .small { font-size: 11px; }
  .prices-hero__stats .l { font-size: 8px; letter-spacing: 0.12em; }
  .prices-hero__stats .d { font-size: 9px; }

  /* filterbar: 4列 + actions → 2列 grid に */
  .filterbar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .filterbar__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  /* filterbar--focus: モバイルでは 1 列 → series/sort を併記 */
  .filterbar--focus { grid-template-columns: 1fr 1fr; }
  .filterbar--focus .filterbar__group--wide { grid-column: 1 / -1; }

  /* prices-notes: 2 列 → 縦積み(モバイル幅で右カラムが縦伸びしないように) */
  .prices-notes {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px 0;
  }
  .prices-notes__list { padding-left: 16px; }

  /* model-hero: 2列 → 縦積み(画像 → 情報) */
  .model-hero { grid-template-columns: 1fr; }
  .model-hero__media {
    padding: 22px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .model-hero__media img { max-height: 260px; }
  .model-hero__media .label {
    top: 12px;
    left: 14px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .model-hero__info { padding: 22px 16px 20px; }
  .model-hero__title {
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 14px;
  }
  .model-hero__lede { font-size: 12px; margin-bottom: 16px; }
  .model-hero__price {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .model-hero__price .yen { font-size: 64px; }
  .model-hero__price .yen .y { font-size: 32px; }
  .model-hero__price .meta { font-size: 10px; gap: 4px 14px; }

  /* cap-tabs: 4 列 → 横スクロールで全容量見える */
  .cap-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cap-tabs button,
  .cap-tabs a {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 10px 8px;
  }
  .cap-tabs button .gb,
  .cap-tabs a .gb { font-size: 18px; }
  .cap-tabs button .px,
  .cap-tabs a .px { font-size: 10px; }

  /* chart 余白を詰める。Chart.js は responsive */
  .chart { padding: 18px 14px; }
  .chart__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  .chart__head h3 { font-size: 20px; }
  .chart__legend { font-size: 9px; gap: 12px; }

  /* shoplist: テーブルを縦リスト風に。横スクロールではなく 1 行 × 3 列 grid */
  .shoplist table,
  .shoplist tbody,
  .shoplist tr,
  .shoplist td { display: block; width: 100%; }
  .shoplist thead { display: none; }
  .shoplist tr {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: baseline;
    padding: 12px 14px;
    border-bottom: 1px dashed var(--hairline);
  }
  .shoplist td {
    padding: 0;
    border-bottom: 0;
  }
  .shoplist .rank-cell {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    font-size: 22px;
    line-height: 1;
    width: auto;
  }
  .shoplist .shop-cell {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    line-height: 1.2;
  }
  .shoplist .shop-cell .meta { font-size: 9px; margin-top: 2px; }
  .shoplist .px-cell {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    text-align: right;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .shoplist .px-cell .yen { font-size: 10px; }
  .shoplist .dx-cell {
    grid-column: 2 / 4;
    grid-row: 2;
    font-size: 11px;
    text-align: left;
  }
  .shoplist tr td:last-child {
    grid-column: 2 / 4;
    grid-row: 3;
    font-family: var(--f-mono);
    font-size: 10px;
    text-align: left;
    color: var(--muted);
  }

  /* cap-compare: 4 列 → 2 列 */
  .cap-compare { grid-template-columns: repeat(2, 1fr); }
  .cap-compare__cell { padding: 14px 12px; }
  .cap-compare__cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .cap-compare__cell:nth-child(even) { border-right: 0; }
  .cap-compare__v { font-size: 24px; }
  .cap-compare__m { margin-top: 10px; font-size: 9px; }

  /* ============================================================
     M4 — Bloomberg 風 news / single ページ用のモバイル overrides
     ============================================================ */

  /* news-hero: 1.3fr 1fr → 縦積み */
  .news-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 16px 20px;
  }
  .news-hero h1 {
    font-size: 36px;
    line-height: 1.15;
    margin: 4px 0 10px;
  }
  .news-hero p { font-size: 12px; max-width: 100%; }
  .news-hero__count {
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 14px;
    font-size: 38px;
  }
  .news-hero__count .l { margin-bottom: 4px; }

  /* news-layout: 1fr 320px → 縦積み(本文 → サイドバー) */
  .news-layout { grid-template-columns: 1fr; }
  .news-layout > aside {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 22px 16px;
  }

  /* newsfeed article: 4列 grid → 縦組み風 */
  .newsfeed article {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    padding: 16px;
  }
  .newsfeed .date {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }
  .newsfeed .date .ago {
    display: inline;
    margin-left: 6px;
    font-size: 9px;
  }
  .newsfeed .cat {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    font-size: 9px;
    padding: 2px 5px;
  }
  .newsfeed article > div:last-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .newsfeed .title { font-size: 14px; line-height: 1.45; }
  .newsfeed .excerpt { font-size: 11px; }
  .newsfeed .arrow {
    grid-column: 3;
    grid-row: 1;
    font-size: 14px;
  }

  /* news pagination */
  .news-pagination { padding: 24px 16px; }
  .news-pagination .page-numbers a,
  .news-pagination .page-numbers .page-numbers { padding: 6px 10px; font-size: 11px; }

  /* single-article */
  .single-article__article { padding: 24px 16px 36px; }
  .single-article__title { font-size: 28px; line-height: 1.25; }
  .single-article__body { font-size: 14px; line-height: 1.8; }
  .single-article__body h2 { font-size: 20px; }
  .single-article__body h3 { font-size: 16px; }
}

/* =================================================
   ≤ 480px(スマホ縦)で更にコンパクト化
   ================================================= */
@media (max-width: 480px) {
  .mobile-hero__title { font-size: 32px; }
  .mobile-hero__pricebox .px { font-size: 48px; }
  .mobile-hero__pricebox .px .yen { font-size: 22px; }
  /* リスト化したテーブルの価格と機種名のみ少し詰める */
  .toptable .price { font-size: 19px; }
  .toptable .model { font-size: 13px; }
  .toptable .shop { font-size: 10px; }
  .toptable--spread td:nth-of-type(6) { font-size: 16px; }
  .toptable--spread td:nth-of-type(6) .price-sm { font-size: 16px; }
  .series__card .ph { height: 110px; }
  .ticker__track { font-size: 9px; gap: 18px; }
}
