:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F2EEE6;
  --text: #1F2328;
  --muted: #5B6470;
  --line: #E3DDD2;
  --brand: #2B3A67;
  --save: #0F7B4F;
  --cta: #C2410C;
  --cta-text: #FFFFFF;
  --warn: #B45309;
  --store-1: #2563EB;
  --store-2: #9333EA;
  --store-3: #0D9488;
  --store-4: #DB2777;
  --radius: 12px;
  --space: 8px;
  --font: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171C;
    --surface: #1C2027;
    --surface-2: #232833;
    --text: #E8EAED;
    --muted: #A0A8B4;
    --line: #2E3440;
    --brand: #9DB2F0;
    --save: #4ADE80;
    --cta: #FB923C;
    --cta-text: #1A1A1A;
    --warn: #FBBF24;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 960px; margin: 0 auto; padding: calc(var(--space) * 2); padding-bottom: calc(var(--space) * 10); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  padding: var(--space) 0 calc(var(--space) * 2);
  border-bottom: 1px solid var(--line);
  margin-bottom: calc(var(--space) * 2);
}
.logo { font-weight: 700; font-size: 1.25rem; color: var(--brand); text-decoration: none; }
.logo span { font-weight: 400; font-size: 0.85rem; display: block; color: var(--muted); }
.header-actions a { color: var(--brand); text-decoration: none; font-size: 0.9rem; }
.pr-banner { font-size: 0.85rem; color: var(--muted); margin: 0 0 var(--space); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 2);
  margin: calc(var(--space) * 2) 0;
}
.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 2);
  margin: calc(var(--space) * 2) 0;
}
.hero-total { font-size: 2.5rem; font-weight: 700; margin: 0.25rem 0; }
@media (min-width: 768px) { .hero-total { font-size: 3.5rem; } }
.save { color: var(--save); font-weight: 600; }
.divider { border: none; border-top: 1px solid var(--line); margin: 1rem 0; }
.cta-btn {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-text);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cta-link { color: var(--cta); font-weight: 600; text-decoration: none; }
.cta-link:hover { text-decoration: underline; }
a { color: var(--brand); }
.buy-list { list-style: none; padding: 0; margin: 0; }
.buy-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 480px) {
  .buy-row { grid-template-columns: auto 1fr; }
  .buy-row .price, .buy-row .cond, .buy-row .link { grid-column: 2; }
}
.volume-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.volume-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) { .volume-grid { grid-template-columns: repeat(10, 1fr); } }
.volume-grid li { margin: 0; }
.vol-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 32px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.vol-tile.store-1 { background: var(--store-1); }
.vol-tile.store-2 { background: var(--store-2); }
.vol-tile.store-3 { background: var(--store-3); }
.vol-tile.store-4 { background: var(--store-4); }
.vol-tile.missing {
  background: var(--surface-2);
  color: var(--muted);
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 4px, var(--line) 4px, var(--line) 5px
  );
}
.vol-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.55rem;
  opacity: 0.85;
}
.notice-warn {
  background: color-mix(in srgb, var(--warn) 15%, var(--surface));
  border-left: 4px solid var(--warn);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 50;
}
.sticky-bar.visible { display: flex; }
.disclosure { font-size: 0.85rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.series-list { list-style: none; padding: 0; }
.series-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.tag { font-size: 0.75rem; background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: 0.35rem; }
.search-box { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; }
.search-results { list-style: none; padding: 0; }
.hidden { display: none !important; }
