:root {
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #f6f6f8;
  --line: #e4e4e9;
  --text: #1b1b20;
  --muted: #6c6c78;
  --acc: #e5383b;
  --acc-text: #c9252a;
  --acc-soft: #fdeced;
  --slot: #ececf0;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.demo { margin: 0; padding: 3px 12px; font-size: 12px; text-align: center; color: var(--muted); background: var(--soft); }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; color: var(--acc); white-space: nowrap; }
header nav { min-width: 0; flex: 1; line-height: 1.9; }
header nav a { display: inline-block; margin-right: 14px; font-size: 14px; color: var(--muted); }
header nav a:hover, header nav a[aria-current] { color: var(--text); }
.hsearch { display: flex; gap: 6px; flex: 0 0 280px; }
.hsearch input {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hsearch button { padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: var(--acc); border: 0; border-radius: 999px; cursor: pointer; }

main { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 24px; line-height: 1.4; }
h2 { font-size: 18px; margin: 28px 0 12px; }

/* 画像の差し込み枠 */
.ph { display: block; background: var(--slot); }

/* ヒーロー */
.hx { position: relative; height: 330px; margin-bottom: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.hs { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s; }
.hs.on { opacity: 1; visibility: visible; }
.hs-img { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; }
.mos { position: absolute; top: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; width: 58%; }
.mos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hs::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 45%, rgba(255, 255, 255, 0) 75%); }
.hc { position: relative; z-index: 2; max-width: 620px; padding: 44px 48px; }
.hc h1 { margin: 8px 0 14px; font-size: 42px; line-height: 1.25; letter-spacing: .02em; }
.hc p { margin: 0; }
.hc p:last-child { margin-top: 18px; }
.kick { display: inline-block; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--acc-text); border: 1px solid rgba(229, 56, 59, .45); border-radius: 999px; }
.sub { font-size: 16px; color: #44444e; }
.sub b { margin: 0 2px; font-size: 22px; color: var(--text); }
.btn { display: inline-block; padding: 12px 22px; font-weight: 700; text-align: center; color: #fff; background: var(--acc); border: 0; border-radius: 999px; cursor: pointer; }
.btn:hover { background: #cf2b2e; }
.btn.ghost { margin-left: 8px; color: var(--text); background: transparent; border: 1px solid #c9c9d2; }
.btn.ghost:hover { background: var(--soft); }
.hdots { position: absolute; left: 48px; bottom: 22px; z-index: 2; display: flex; gap: 8px; }
.hdots i { display: block; width: 26px; height: 4px; background: #d3d3da; border-radius: 2px; }
.hdots i.on { background: var(--acc); }

.upd { display: inline-block; margin: 0; padding: 6px 12px; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 8px; }

/* 見出し */
.sh { display: flex; align-items: center; gap: 14px; margin: 38px 0 14px; }
.sh-img { flex: none; width: 58px; height: 58px; object-fit: cover; border: 2px solid var(--acc); border-radius: 50%; }
.sh h2 { margin: 0; font-size: 20px; }
.say { display: inline-block; margin: 4px 0 0; padding: 5px 10px; font-size: 13px; color: #55555f; background: var(--soft); border-radius: 10px; }
.sh .more { margin-left: auto; font-size: 13px; color: var(--acc-text); white-space: nowrap; }

/* カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { display: block; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; transition: .2s; }
.card:hover { transform: translateY(-3px); border-color: #e9b4b6; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.im img, .im .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.b { padding: 10px; }
.off { display: inline-block; padding: 2px 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--acc); border-radius: 4px; }
.t { margin-top: 4px; max-height: 3em; overflow: hidden; font-size: 13px; line-height: 1.5; }
.ca { margin-top: 4px; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pr { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pr s { margin-right: 6px; }
.pr b { font-size: 15px; color: var(--text); }
.st { margin-top: 3px; font-size: 12px; }
.st .s { margin-right: 4px; color: #e0950f; letter-spacing: -1px; }
.st small { font-size: 11px; color: var(--muted); }
.was { margin-top: 3px; font-size: 11px; color: var(--muted); }
.was.low { font-weight: 700; color: var(--acc-text); }
.cid { margin-top: 3px; font-size: 10px; color: var(--muted); }
.ctg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ctg span { padding: 1px 6px; font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 999px; }

.grid.rk { counter-reset: rank; }
.grid.rk .card { position: relative; counter-increment: rank; }
.grid.rk .card::before {
  content: counter(rank);
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #6c6c78;
  border-radius: 50%;
}
.grid.rk .card:nth-child(1)::before { background: #c9962b; }
.grid.rk .card:nth-child(2)::before { background: #9a9aa6; }
.grid.rk .card:nth-child(3)::before { background: #a0602c; }

/* タグ・タイル・数字 */
.ttags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 14px; }
.ttags b { margin-right: 4px; font-size: 13px; color: var(--muted); }
.ttags a, .tags a, .chip { display: inline-block; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.ttags a { padding: 4px 11px; }
.ttags a.more { color: var(--acc-text); border-color: var(--acc); }
.ttags a:hover, .tags a:hover, .chip:hover { border-color: var(--acc); }
.tags a { margin: 4px; padding: 6px 12px; }
.chip { margin: 2px 4px 2px 0; padding: 3px 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 26px; }
.stats div { padding: 16px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.stats b { display: block; font-size: 28px; }
.stats span { font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.tile:hover { transform: translateY(-2px); border-color: var(--acc); }
.tile-img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.tile b { display: block; font-size: 15px; }
.tile span:not(.ph) { font-size: 12px; color: var(--muted); }
.gb { display: flex; align-items: center; gap: 22px; margin: 40px 0 10px; padding: 22px; background: var(--acc-soft); border: 1px solid #f6d3d4; border-radius: 18px; }
.gb-img { flex: none; width: 150px; height: 150px; object-fit: cover; border-radius: 14px; }
.gb b { font-size: 20px; }
.gb p { margin: 8px 0 0; color: #55555f; }

.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.rates a { padding: 16px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: .2s; }
.rates a:hover { transform: translateY(-2px); border-color: var(--acc); }
.rates b { display: block; font-size: 20px; color: var(--acc-text); }
.rates span { font-size: 13px; color: var(--muted); }

/* 詳細ページ */
.crumb { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.crumb a:hover, .link:hover { text-decoration: underline; }
.link { color: var(--acc-text); }
.cid2 { margin: 0; font-size: 12px; color: var(--muted); }
.lead { padding: 10px 14px; font-size: 15px; line-height: 1.9; color: #33333b; background: var(--soft); border-left: 3px solid var(--acc); border-radius: 6px; }
.muted { font-size: 13px; color: var(--muted); }
.empty { padding: 28px 0; }
.pbar { display: none; }
.mv { max-width: 560px; overflow: hidden; border-radius: 10px; }
.main { display: block; width: 100%; }
.mv .ph.main { aspect-ratio: 4 / 3; }
.buy-inline { margin: 14px 0; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.samples img { width: 100%; height: auto; background: var(--soft); border-radius: 6px; }
.info th { width: 130px; white-space: nowrap; font-weight: 500; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; font-weight: 500; color: var(--muted); }
.stt td, .stt th { font-size: 13px; }
.qk { margin: 16px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.qk summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.qk table { margin-top: 8px; }
.actbox { margin: 34px 0; padding: 4px 18px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.actbox h2 { margin-top: 16px; }
.actbox h3 { margin: 0 0 6px; font-size: 16px; }
.actmore { margin: 18px 0 0; text-align: center; }
.feedlink { margin-top: 24px; }
.guide p { line-height: 1.9; color: #33333b; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }

.stk {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
}
.stk span { font-weight: 700; }
.stk .btn { padding: 10px 18px; }
body:has(.stk) { padding-bottom: 64px; }

/* 価格グラフ */
.chart { position: relative; max-width: 560px; margin: 8px 0 16px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .step { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; }
.chart .low-dot { fill: #fff; stroke: var(--acc); stroke-width: 2; }
.chart .now-dot, .chart .cross-dot { fill: var(--acc); stroke: #fff; stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .cross[hidden], .chart .cross-dot[hidden] { display: none; }
.chart .label { font-size: 10px; fill: var(--muted); }
.chart .label-strong { font-size: 11px; font-weight: 700; fill: var(--text); }
.tip { position: absolute; top: -8px; left: 0; padding: 3px 9px; font-size: 12px; color: #fff; background: var(--text); border-radius: 3px; white-space: nowrap; pointer-events: none; }
.tip[hidden] { display: none; }

footer { padding: 20px; font-size: 12px; line-height: 1.8; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin: 0 0 8px; }
footer a:hover { color: var(--text); }

/* 年齢確認 */
.age { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: #fff; }
.adult .age { display: none; }
html:not(.adult) body { overflow: hidden; }
.age-box { width: 100%; max-width: 420px; text-align: center; }
.age-logo { margin: 0 0 22px; font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--acc); }
.age-img { width: 180px; height: 180px; margin: 0 auto 18px; object-fit: cover; border: 3px solid var(--acc); border-radius: 50%; }
.age-box p { line-height: 1.7; }
.age-box a { color: var(--muted); text-decoration: underline; }

@media (min-width: 900px) {
  .pbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .pbar .pp { font-size: 22px; font-weight: 800; }
  .pbar .pp em { margin-left: 6px; padding: 2px 6px; font-size: 14px; font-style: normal; color: #fff; background: var(--acc); border-radius: 4px; }
  .pbar .pe { font-size: 13px; color: var(--acc-text); }
  .pbar small { flex-basis: 100%; font-size: 11px; color: var(--muted); }
  .stk, .only-m { display: none; }
  body:has(.stk) { padding-bottom: 0; }
}

@media (max-width: 1100px) {
  header { flex-wrap: wrap; gap: 8px 20px; }
  header nav { flex: 1 0 100%; order: 3; }
  .hsearch { flex: 1 1 200px; }
}

@media (max-width: 640px) {
  header { padding: 10px 16px; }
  header nav { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  header nav::-webkit-scrollbar { display: none; }
  .hx { height: 300px; }
  .hs-img, .mos { width: 100%; }
  .hs::before { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 100%); }
  .hc { padding: 26px 24px; }
  .hc h1 { font-size: 24px; }
  .hc .btn { padding: 10px 16px; font-size: 14px; }
  .btn.ghost { margin: 8px 0 0 6px; }
  .hdots { left: 24px; bottom: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-img { width: 48px; height: 48px; }
  .tile b { font-size: 13px; }
  .gb { flex-direction: column; align-items: flex-start; }
  .gb-img { width: 100%; height: 120px; }
  .ttags { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .ttags a, .ttags b { flex: none; white-space: nowrap; }
  .sh-img { width: 46px; height: 46px; }
  .sh h2 { font-size: 17px; }
  .info th { width: 96px; }
}
