:root {
  --bg: #0b0d12;
  --card: #151823;
  --card2: #1b1f2d;
  --line: #242938;
  --text: #eceef4;
  --muted: #8b90a0;
  --accent: #ff5c7a;
  --accent-dim: #d64562;
  --gold: #ffc24d;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 76px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

.hd {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.logo { font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.logo span, .gate-logo span { color: var(--accent); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 14px; }

.tagline { font-size: 26px; font-weight: 900; margin: 22px 2px 12px; letter-spacing: .02em; }
.tagline em { color: var(--accent); font-style: normal; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: all .15s;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 26px; }
.hero-inner { display: flex; flex-direction: column; gap: 12px; }
.hero-inner.rolling { animation: roll .35s ease; }
@keyframes roll { 0% { opacity: 1 } 40% { opacity: 0; transform: translateY(6px) scale(.98) } 100% { opacity: 1 } }
.hero-thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--card2); }
.hero-thumb img { width: 100%; height: auto; }
.hero-ttl { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.45; }
.hero-meta { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; }
.hero-btns { display: flex; gap: 10px; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { background: var(--card2); border: 1px solid var(--line); color: var(--text); }
.btn.big { width: 100%; padding: 14px; font-size: 15px; }

.sec { margin-bottom: 26px; }
.sec-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sec-hd h2 { font-size: 16px; font-weight: 700; margin: 0; }
.sec-hd a { color: var(--accent); font-size: 13px; font-weight: 500; }

.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--card2); aspect-ratio: 2 / 2.84; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ttl {
  font-size: 12.5px; font-weight: 500; margin: 8px 0 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.meta { display: flex; flex-direction: column; gap: 1px; }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 900;
  padding: 3px 7px; border-radius: 7px;
}
.badge.big { font-size: 14px; padding: 5px 10px; }
.rank {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; background: rgba(11,13,18,.75); color: var(--muted);
}
.rank.r1 { background: var(--gold); color: #1a1200; }
.rank.r2 { background: #cfd6e4; color: #10131a; }
.rank.r3 { background: #d9925f; color: #201005; }

.stars { color: var(--gold); font-size: 12px; font-weight: 700; }
.stars i { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 2px; }
.stars.muted { color: var(--muted); font-weight: 400; }
.price { margin: 0; font-size: 12px; color: var(--muted); }
.price s { opacity: .7; margin-right: 4px; }
.price .now { color: var(--accent); font-size: 15px; font-weight: 900; }
.price .now.plain { color: var(--text); }
.price .off { background: rgba(255,92,122,.14); color: var(--accent); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.mins { color: var(--muted); font-size: 12px; }

.fav {
  position: absolute; right: 6px; bottom: 44px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11,13,18,.72); color: #6a7080; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.fav.on { color: var(--accent); transform: scale(1.1); }
.fav.big { position: static; width: auto; height: auto; border-radius: 12px; padding: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.fav.big.on { color: var(--accent); border-color: var(--accent); transform: none; }

.detail { margin-top: 18px; }
.d-thumb { position: relative; border-radius: var(--r); overflow: hidden; background: var(--card2); margin-bottom: 14px; }
.d-thumb img { width: 100%; height: auto; }
.d-ttl { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.d-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--muted); }
.d-chips.dim .pill { opacity: .75; }
.d-price { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 14px 0; }
.d-price .price .now { font-size: 24px; }
.spark { width: 100%; height: 72px; margin-top: 10px; }
.hist-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.d-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }

.pg-ttl { font-size: 20px; font-weight: 900; margin: 22px 2px 14px; }
.pg-ttl small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
.pg-no { color: var(--muted); font-size: 13px; }
.upd { color: var(--muted); font-size: 12px; text-align: center; margin: 30px 0 10px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .btn { margin-top: 14px; }

.ft { max-width: 680px; margin: 30px auto 0; padding: 18px 16px; border-top: 1px solid var(--line); color: #565b6b; font-size: 11.5px; }
.ft a { color: var(--muted); text-decoration: underline; }
.ft p { margin: 4px 0; }

.bn {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: rgba(15,17,25,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bn a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #6a7080; font-size: 10.5px; min-width: 64px; }
.bn a svg { width: 22px; height: 22px; }
.bn a.on { color: var(--accent); }

#gate[hidden], [hidden] { display: none !important; }
#gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 8, 12, .96);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-box { max-width: 360px; text-align: center; }
.gate-logo { font-size: 30px; font-weight: 900; margin: 0 0 14px; }
.gate-box p { color: var(--muted); }
.gate-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
