:root {
  --bg: #f6f6f8; --surface: #fff; --text: #1d1d22; --muted: #6b6b76; --line: #e3e3ea;
  --accent: #e0245e; --accent-ink: #fff; --sale: #d7263d; --rank: #1d1d22;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121216; --surface: #1c1c22; --text: #ececf1; --muted: #9a9aa6; --line: #2d2d36;
    --accent: #ff4d7e; --rank: #ececf1; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }

.pr { margin: 0; padding: 4px 16px; font-size: 12px; color: var(--muted); background: var(--surface);
  border-bottom: 1px solid var(--line); text-align: center; }
.site-header { max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 16px;
  align-items: center; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--accent); }
.site-header nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-header nav a { font-size: 13px; text-decoration: none; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); }

.hero { padding: 20px 0 8px; }
.hero h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 4px 0 8px; line-height: 1.3; }
.crumb, .updated { color: var(--muted); font-size: 13px; margin: 0; }
.stats { display: flex; gap: 16px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.stats b { color: var(--text); font-size: 18px; }
.tabs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 600; }
section { margin-top: 28px; }
h2 { font-size: 20px; border-left: 4px solid var(--accent); padding-left: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; }
.thumb { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(45deg, var(--line) 0 10px, transparent 10px 20px); }
.badge { position: absolute; top: 8px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.badge.off { right: 8px; background: var(--sale); color: #fff; }
.badge.rank { left: 8px; background: var(--rank); color: var(--bg); }
.body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.body h3 { font-size: 14px; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.body h3 a { text-decoration: none; }
.meta { margin: 0; font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--muted); }
.price { margin: auto 0 0; font-size: 14px; }
.price s { color: var(--muted); font-size: 12px; }
.price b { color: var(--sale); font-size: 17px; }
.rate { font-size: 12px; color: #d89b00; }
.btn { display: inline-block; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.more { text-align: center; margin-top: 16px; }
.empty { color: var(--muted); }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.work { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.work b { font-size: 16px; }
.work span { font-size: 12px; color: var(--muted); }
.work:hover, .card:hover { border-color: var(--accent); }
.prose { max-width: 760px; }

footer { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; font-size: 13px; color: var(--muted); }
footer p { margin: 4px 0; }

.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, .92); display: grid;
  place-items: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-box { background: var(--surface); color: var(--text); border-radius: 16px; padding: 28px 24px;
  max-width: 420px; text-align: center; }
.age-title { font-weight: 800; font-size: 18px; color: var(--accent); }
.age-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .body { padding: 8px; }
  .btn { font-size: 12px; padding: 8px; }
}
