/* ムフ棚：夜の看板風（ネオンピンクのヘッダー＋暗めの一覧）。画面構成は muse 案（棚・下部ナビ・固定CTA）のまま */
:root {
  /* 11/28 黒を強めた（前の値：night #0a0610 / bg #110d17 / surface #1a1522 / surface-2 #231c2e / line #352a42） */
  /* 11/29 マットなグレーに決定（紫みを抜いた濃いグレー）。
     戻すなら黒寄りの値：night #040206 / bg #09060c / surface #120e17 / surface-2 #1a1521 / line #2c2237 */
  --night: #151517;      /* ヘッダー、フッター */
  --bg: #1e1e21;         /* 全体背景 */
  --surface: #28282c;    /* カード */
  --surface-2: #323237;
  --line: #414148;
  --text: #f6f0fa;       /* 見出し・本文 */
  --muted: #b9b6bf;      /* 日時、補足 */
  --neon: #ff2fa0;       /* ネオンの線と光 */
  --neon-glow: rgba(255, 47, 160, 0.6);
  --red: #e0157d;        /* CTA、割引バッジ、現在地（白文字と 4.5:1 以上のピンク） */
  --pink: #ff8fd0;       /* メーカー名、リンク */
  --gold: #ffd36b;       /* セール期限 */
  --medal: #f2c230;      /* 1位 */
  --trust: #8fa3b8;      /* PR表記、価格の注記 */
  --silver: #b9c0cc;
  --bronze: #cd8a5a;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
}
a { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
/* 11/28 左右の余白を狭めた（前は max-width: 1120px）。広い画面ではカードの列を増やす（下の min-width） */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1200px) { .wrap { padding: 0 28px; } }
main.wrap { padding-top: 18px; padding-bottom: 48px; min-height: 60vh; }
.noscript { background: var(--gold); color: #000; padding: 8px 16px; margin: 0; visibility: visible; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(255, 47, 160, 0.22), transparent 55%),
    radial-gradient(90% 120% at 100% 0%, rgba(140, 60, 255, 0.18), transparent 60%),
    var(--night);
  border-bottom: 2px solid var(--neon);
  box-shadow: 0 2px 18px var(--neon-glow);
}
.header-main { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo {
  display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: #fff;
  font-size: 32px; font-weight: 900; letter-spacing: 0.04em; line-height: 1;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 18px var(--neon), 0 0 36px var(--neon-glow);
}
.logo-heart {
  width: 0.45em; height: 0.45em; margin: 0.05em 2px 0; align-self: flex-start; fill: var(--neon);
  filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 8px var(--neon-glow));
  animation: heart-glow 2.4s ease-in-out infinite;
}
@keyframes heart-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.9); }
}
@media (prefers-reduced-motion: reduce) { .logo-heart { animation: none; } }
/* ヘッダーのロゴ（確定版の透過PNG）。高さで指定し、幅は比率どおり */
.logo-img { line-height: 0; text-shadow: none; border-radius: 6px; }
.logo-img img { display: block; height: 40px; width: auto; filter: drop-shadow(0 0 8px var(--neon-glow)); }
.logo-img:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }
@media (max-width: 640px) { .logo-img img { height: 30px; } }

.cat-nav { order: 2; }
.cat-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.nav-item { display: block; padding: 6px 14px; border-radius: 999px; white-space: nowrap; text-decoration: none; color: #fff; font-weight: 800; font-size: 14px; border: 2px solid rgba(255, 143, 208, 0.55); }
.nav-item:hover { border-color: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }
.nav-item.is-current { background: var(--red); border-color: var(--neon); box-shadow: 0 0 12px var(--neon-glow); }
.nav-item.is-soon { color: var(--muted); border-color: var(--line); font-weight: 700; }
.nav-item small { margin-left: 5px; font-size: 10px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; font-weight: 700; }

.sale-chip { order: 3; margin-left: auto; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--gold); color: var(--gold); text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sale-chip b { font-size: 15px; }
.sale-chip:hover { background: rgba(255, 211, 107, 0.14); }

/* ===== 共通 ===== */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.page-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 16px; }
/* 見出しの帯：左にネオンの線、背景は濃いピンク紫 */
.section-head {
  display: flex; justify-content: space-between; align-items: center; margin: 30px 0 12px; gap: 12px;
  --tone: var(--neon); --tone-bg: #5a1040; --tone-link: var(--pink);
  padding: 8px 14px 8px 12px; border-left: 4px solid var(--tone); border-radius: 4px 10px 10px 4px;
  background: linear-gradient(90deg, var(--tone-bg), color-mix(in srgb, var(--tone-bg) 45%, var(--bg)));
}
/* 棚ごとの色：ランキング＝金、新着＝シアン、70%〜＝ピンク、50%〜＝紫、30%〜＝青 */
.section-head.tone-gold { --tone: #f2c230; --tone-bg: #4a3a10; --tone-link: #f7d977; }
.section-head.tone-cyan { --tone: #3fd8f0; --tone-bg: #0f3a44; --tone-link: #8fe8f7; }
.section-head.tone-purple { --tone: #b46bff; --tone-bg: #3a1458; --tone-link: #d3a8ff; }
/* 11/29 作品詳細の「他の作品」「関連する作品」は色を抑えた灰紫（ピンクだと詳細ページ全体がきつい） */
.section-head.tone-plain { --tone: #8a8a93; --tone-bg: #34343a; --tone-link: var(--muted); }
.section-head.tone-blue { --tone: #6f8cff; --tone-bg: #1c2360; --tone-link: #a9b9ff; }
.section-head h2 { font-size: 19px; font-weight: 900; margin: 0; color: #fff; }
.section-head a { font-size: 13px; font-weight: 700; color: var(--tone-link); white-space: nowrap; }
/* 11/29 見出しの帯は控えめに（主役は作品のサムネイル）。前は h2 19px・余白 8px 14px・上 30px 下 12px */
/* 11/29 棚と次の見出しの間を広げた（上の余白 PC 24→44px、スマホ 14→26px） */
.section-head { margin: 44px 0 10px; padding: 5px 12px 5px 10px; border-left-width: 3px; }
.section-head h2 { font-size: 16px; font-weight: 800; }
.section-head a { font-size: 12px; }

.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card { --hue: 210; display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 800; background: var(--surface); border: 2px solid hsl(var(--hue) 75% 62%); }
.cat-card:hover { background: var(--surface-2); }
.cat-card span { font-size: 13px; font-weight: 600; color: var(--muted); }
.cat-card.is-soon { color: var(--muted); border-color: hsl(var(--hue) 30% 38%); }
/* 11/29 ボタン画像つき（画像にカテゴリ名が入っている。枠も画像側にあるのでカードの枠は消す） */
.cat-cards { align-items: stretch; }
.cat-card { justify-content: center; }
.cat-card.has-img { position: relative; padding: 0; border: 0; border-radius: 0; overflow: hidden; aspect-ratio: 800 / 310; background: var(--surface-2); }
.cat-card.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.15s; }
.cat-card.has-img:hover img { filter: brightness(1.15); }
.cat-card.has-img span { position: absolute; left: 4%; bottom: 6%; font-size: 11px; line-height: 1.3; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 1px 7px; border-radius: 999px; }
.cat-card.has-img.is-soon img { filter: grayscale(0.55) brightness(0.6); }
.cat-card.has-img.is-soon span { color: var(--muted); }

/* ===== 作品カード ===== */
/* 11/29 縦長パッケージに合わせて列を1つずつ増やした（前は 4列／広い画面5列／900px以下3列） */
/* 11/29 カードはサムネ（パッケージ 147:200）の大きさに合わせる：幅 約170px を基準に入るだけ並べる。角は丸めない */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip > .card { scroll-snap-align: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--neon); box-shadow: 0 0 14px rgba(255, 47, 160, 0.3); }
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
/* 11/29 カードの画像は縦長のパッケージ（5:7）。タイトルは下の欄に出す（その前は 1/1、最初は 16/9） */
.thumb { position: relative; aspect-ratio: 147 / 200; background: var(--surface-2); }
/* 画像の元の比率がばらついても枠（147:200）は変えない。はみ出す分は切り抜き */
.thumb { overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .badge-off, .rank-thumb .badge-off { position: absolute; left: 0; top: 0; border-radius: 0 0 8px 0; }
/* 11/29 順位は画像に重ねず、画像の上の帯に出す（前は .thumb-rank で画像の右上に重ねていた） */
.card-rank { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 34px; padding: 0 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card-rank .rank { background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; font-size: 19px; font-weight: 900; color: var(--text); }
.card-rank .rank small { font-size: 12px; margin-left: 2px; }
.card-rank .move { font-size: 12px; background: rgba(0, 0, 0, 0.55); }
/* 11/29 光沢：上半分に白いハイライト、下に向かって濃くなる金属風のグラデーション＋斜めの照り */
.card-rank { position: relative; overflow: hidden; background: linear-gradient(180deg, #4a4a51 0%, #34343a 48%, #26262a 52%, #2e2e33 100%); /* 11/29 グレー背景に合わせて紫みを抜いた（前は #3a3048 / #241c2e / #17121e / #201929） */ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.card-rank::after { content: ""; position: absolute; top: 0; bottom: 0; left: 18%; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent); transform: skewX(-20deg); pointer-events: none; }
.card-rank > * { position: relative; z-index: 1; }
.card-rank.is-r1 { background: linear-gradient(180deg, #fff1a8 0%, #f7d045 46%, #d99a12 54%, #f2c230 100%); border-bottom-color: #b98209; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 10px rgba(242, 194, 48, 0.45); }
.card-rank.is-r2 { background: linear-gradient(180deg, #ffffff 0%, #d3dae3 46%, #99a3b0 54%, #c3cbd6 100%); border-bottom-color: #7f8996; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.card-rank.is-r3 { background: linear-gradient(180deg, #ffd0a0 0%, #dd9457 46%, #a9602b 54%, #cf8547 100%); border-bottom-color: #8a4d20; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.card-rank.is-r1::after, .card-rank.is-r2::after, .card-rank.is-r3::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); }
.card-rank.is-r1 .rank, .card-rank.is-r2 .rank, .card-rank.is-r3 .rank { color: #14100a; }
.card-rank.is-r1 .move, .card-rank.is-r2 .move, .card-rank.is-r3 .move { background: rgba(0, 0, 0, 0.78); }
.card-body { padding: 10px 12px 12px; display: grid; gap: 6px; align-content: start; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--muted); margin: 0; display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: baseline; }
.creator { color: var(--pink); font-weight: 700; }
/* 11/29 カードの下段は行の高さを固定して、隣のカードと横一列に揃える
   作品名＝2行分／制作者名＝1行／評価＝1行／価格＝1行／セール期限＝1行（セールなしでも空けておく） */
.card-body .card-title { min-height: 2.8em; }
.card-body .card-meta { display: grid; gap: 3px; }
.card-body .creator, .card-body .stars { display: block; min-height: 1.5em; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .price { min-height: 26px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.card-deadline { min-height: 24px; display: flex; align-items: center; min-width: 0; }
.card-deadline .deadline { max-width: 100%; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { color: var(--muted); white-space: nowrap; }
.stars small { color: var(--muted); }

.badge { display: inline-block; font-weight: 800; line-height: 1; }
.badge-off { background: var(--red); color: #fff; font-size: 13px; padding: 6px 8px; border-radius: 6px; letter-spacing: 0.02em; box-shadow: 0 0 8px rgba(255, 47, 160, 0.5); }

/* 価格：現在価格は白の太字、元価格は取り消し線 */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { color: #fff; font-weight: 900; font-size: 21px; line-height: 1.2; }
.price-list { color: var(--muted); font-size: 12px; }

/* セール期限チップ */
.deadline { justify-self: start; display: inline-block; font-size: 12px; font-weight: 800; color: var(--gold); border: 1px solid rgba(255, 211, 107, 0.6); border-radius: 6px; padding: 2px 7px; line-height: 1.5; }
.deadline.is-soon { background: var(--gold); border-color: var(--gold); color: #1c1400; }
.deadline.is-ended { color: var(--muted); border-color: var(--line); }

/* 順位：1〜3位はメダル色、それ以外は面色＋白文字。前回比は▲だけ赤 */
.rank { display: inline-flex; align-items: baseline; justify-content: center; min-width: 40px; padding: 3px 6px; border-radius: 6px; font-weight: 800; font-size: 15px; line-height: 1.2; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.rank small { font-size: 10px; margin-left: 1px; }
.rank-1 { background: var(--medal); color: #1c1400; border-color: var(--medal); box-shadow: 0 0 10px rgba(242, 194, 48, 0.6); }
.rank-2 { background: var(--silver); color: #16181c; border-color: var(--silver); }
.rank-3 { background: var(--bronze); color: #1d1108; border-color: var(--bronze); }
.move { font-size: 11px; font-weight: 800; padding: 2px 5px; border-radius: 4px; background: rgba(18, 16, 20, 0.88); color: var(--muted); line-height: 1.2; white-space: nowrap; }
.move-up { color: #ff7aa8; }
.move-new { color: var(--gold); }

/* ===== タブ・ページ送り ===== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs-row { display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.tab, .toggle { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.tab:hover, .toggle:hover { border-color: var(--neon); }
.tab.is-current { background: var(--red); color: #fff; border-color: var(--neon); }
.toggle { margin-bottom: 16px; }
.toggle::before { content: "○ "; color: var(--muted); }
.toggle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.toggle[aria-pressed="true"]::before { content: "● "; color: var(--gold); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.page { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--surface); font-weight: 700; }
.page:hover { border-color: var(--neon); }
.page.is-current { background: var(--red); color: #fff; border-color: var(--neon); }

/* ===== ランキング一覧 ===== */
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
/* 11/29 カードに合わせて角なし・縦長パッケージ（147:200）に（前は横長 150px／上位 240px、角丸あり） */
.rank-row { display: grid; grid-template-columns: 56px 92px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px; }
.rank-row.is-top { grid-template-columns: 64px 132px 1fr; padding: 14px; }
.rank-row.is-top .rank { font-size: 20px; min-width: 52px; padding: 5px 8px; }
.rank-row.is-top .rank-title { font-size: 18px; }
.rank-row.is-top .price-now { font-size: 24px; }
.rank-list.only-sale .rank-row[data-sale="0"] { display: none; }
.rank-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rank-thumb { position: relative; display: block; border-radius: 0; overflow: hidden; aspect-ratio: 147 / 200; background: var(--surface-2); }
.rank-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank-info { display: grid; gap: 5px; align-content: start; min-width: 0; }
/* 11/29 行の中もカードと同じく高さを固定：作品名1行／制作者名1行／評価1行／価格1行／期限1行（セールなしでも空ける） */
.rank-info .card-meta { display: grid; gap: 3px; }
.rank-info .creator, .rank-info .stars { display: block; min-height: 1.5em; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .price { min-height: 29px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.rank-info .card-deadline .deadline { font-size: 12px; }
.rank-title { font-weight: 700; color: var(--text); text-decoration: none; display: block; min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-title:hover { text-decoration: underline; }

/* ===== 作品詳細 ===== */
/* 11/29 メイン画像は縦長パッケージ（147:200）、角なし（前は横長 1.2fr / 1fr、角丸あり） */
.detail { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; /* 11/29 画像を小さく（前は 240〜380px） */ gap: 28px; align-items: start; }
.detail-jacket { position: relative; aspect-ratio: 147 / 200; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.detail-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.samples img { border-radius: 0; }
.detail-info h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; line-height: 1.35; }
.detail-info .card-meta { font-size: 14px; }
.buy-box { background: var(--surface); border: 1px solid var(--neon); box-shadow: 0 0 16px rgba(255, 47, 160, 0.25); border-radius: 0; padding: 16px; display: grid; gap: 10px; margin: 12px 0; }
.buy-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-box .price-now { font-size: 30px; }
.buy-box .price-list { font-size: 14px; }
.buy-box .badge-off { font-size: 16px; padding: 7px 9px; }
.buy-box .deadline { font-size: 14px; padding: 3px 9px; }
.buy-note { font-size: 12px; color: var(--trust); margin: 0; }
.btn { display: inline-block; text-align: center; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn:hover { border-color: var(--neon); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--neon); font-weight: 900; box-shadow: 0 0 14px var(--neon-glow); }
.btn-primary:hover { background: #ee2a8f; }
.rank-chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.rank-chips a { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.spec { display: grid; grid-template-columns: 7em 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tags li { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.desc { font-size: 14px; }

/* 固定CTAバー（タブレット幅以下で表示）と下部ナビ（スマホ幅で表示） */
.cta-bar, .bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--night); border-top: 2px solid var(--neon); box-shadow: 0 -2px 14px rgba(255, 47, 160, 0.35); padding-bottom: env(safe-area-inset-bottom); }
.cta-bar { align-items: center; justify-content: space-between; gap: 10px; padding-left: 14px; padding-right: 14px; padding-top: 8px; }
.cta-bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.cta-price { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cta-price .price { flex-direction: column; gap: 0; align-items: flex-start; }
.cta-price .price-now { font-size: 19px; }
.cta-bar .btn { padding: 11px 14px; font-size: 14px; white-space: nowrap; }
.bottom-nav { grid-template-columns: repeat(3, 1fr); }
.bottom-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; }
.bottom-item svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-item.is-current { color: var(--pink); }
/* ===== 年齢確認・中継・準備中・固定ページ ===== */
.age-gate, .go, .coming, .prose { max-width: 640px; margin: 32px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.age-gate { text-align: center; margin-top: 56px; border-color: var(--neon); box-shadow: 0 0 22px rgba(255, 47, 160, 0.25); }
.age-gate h1, .go h1, .coming h1, .prose h1 { font-weight: 800; font-size: 24px; }
.age-gate > p:not(.age-q):not(.age-small) { color: var(--trust); }
.age-q { font-size: 18px; font-weight: 800; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.age-small, .coming-small { font-size: 12px; color: var(--muted); }
.go-url { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); padding: 8px; border-radius: 6px; word-break: break-all; }

.site-footer { border-top: 1px solid var(--line); background: var(--night); padding: 20px 0; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--pink); }
/* フッターのロゴ（Muse 確定版の透過PNG 1255×319）。縦横比は width/height 属性＋height:auto で保つ */
.footer-logo { display: inline-block; margin: 0 0 12px; line-height: 0; border-radius: 6px; }
.footer-logo img { display: block; width: 130px; /* 11/29 小さく（前は 190px） */ max-width: 100%; height: auto; }
.footer-logo:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }
.footer-note { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.pr-line { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--trust); font-size: 13px; }
.copyright { margin: 6px 0 0; color: var(--text); font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-jacket { max-width: 210px; margin: 0 auto; }
  .cta-bar { display: flex; }
  body.has-cta { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .header-main { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 26px; }
  .cat-nav { order: 4; width: 100%; }
  .nav-item { padding: 5px 12px; font-size: 13px; }
  .sale-chip { font-size: 12px; padding: 4px 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .strip { grid-auto-columns: 44%; gap: 10px; }
  .card-body { padding: 8px 10px 10px; }
  .card-title { font-size: 14px; }
  .price-now { font-size: 18px; }
  .cat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rank-row, .rank-row.is-top { grid-template-columns: 46px 84px 1fr; gap: 8px; padding: 8px; }
  .rank-row.is-top .rank { font-size: 17px; min-width: 42px; }
  .rank-row.is-top .rank-title { font-size: 15px; }
  .rank-row.is-top .price-now { font-size: 20px; }
  .rank-thumb .badge-off { font-size: 11px; padding: 4px 5px; }
  .age-gate, .go, .coming, .prose { padding: 20px; }
  .bottom-nav { display: grid; }
  body.has-bottom-nav { padding-bottom: 58px; }
  /* 11/29 スマホはカードを小さく：一覧は3列、横スクロールの棚は3枚ちょっと見える幅（前は2列・44%） */
  .wrap { padding: 0 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .strip { grid-auto-columns: 30%; gap: 8px; }
  /* 11/29 スマホは指で送れるので、棚のスクロールバーを消す（PC 幅は表示のまま） */
  .strip { scrollbar-width: none; padding-bottom: 0; }
  .strip::-webkit-scrollbar { display: none; }
  .card-rank { height: 26px; padding: 0 7px; }
  .card-rank .rank { font-size: 15px; }
  .card-rank .rank small { font-size: 10px; }
  .card-rank .move { font-size: 10px; padding: 1px 4px; }
  .card-body { padding: 6px 7px 8px; gap: 3px; }
  .card-title { font-size: 12px; line-height: 1.35; }
  .card-body .card-title { min-height: 2.7em; }
  .card-meta { font-size: 11px; }
  .card-body .card-meta { gap: 0; }
  .card-body .price { min-height: 20px; gap: 5px; }
  .card-body .price-now { font-size: 15px; }
  .card-body .price-list { font-size: 10px; }
  .card-deadline { min-height: 20px; }
  .card-deadline .deadline { font-size: 10px; padding: 1px 4px; }
  .thumb .badge-off { font-size: 11px; padding: 4px 5px; }
  /* 11/29 スマホのヘッダーを小さく（前はロゴ 30px・ナビ 13px・チップ 12px、高さ約100px） */
  .header-main { gap: 6px 8px; padding-top: 6px; padding-bottom: 6px; }
  .logo-img img { height: 24px; }
  .cat-nav ul { gap: 6px; padding: 1px; }
  .nav-item { padding: 2px 10px; font-size: 12px; border-width: 1.5px; }
  .nav-item small { font-size: 9px; margin-left: 4px; padding: 0 3px; }
  .sale-chip { font-size: 11px; padding: 2px 9px; border-width: 1.5px; }
  .sale-chip b { font-size: 12px; }
  .site-header { border-bottom-width: 1px; }
  .section-head { margin: 26px 0 7px; padding: 3px 9px 3px 8px; gap: 8px; }
  .section-head h2 { font-size: 13px; }
  .section-head a { font-size: 11px; }
  /* 11/29 スマホ幅は全画面で文字と余白を一段小さく（主役はサムネイル） */
  .breadcrumbs ol { font-size: 11px; margin-bottom: 8px; }
  .page-title { font-size: 17px; }
  .lead { font-size: 12px; margin-bottom: 10px; }
  .tabs { gap: 6px; margin-bottom: 10px; }
  .tab, .toggle { padding: 4px 11px; font-size: 12px; }
  .toggle { margin-bottom: 10px; }
  .pagination { margin-top: 16px; }
  .page { padding: 5px 10px; font-size: 13px; }
  /* 作品詳細 */
  .detail { gap: 14px; }
  .detail-info h1 { font-size: 17px; margin-bottom: 4px; }
  .detail-info .card-meta { font-size: 12px; }
  .buy-box { padding: 10px 12px; gap: 7px; margin: 8px 0; }
  .buy-price { gap: 8px; }
  .buy-box .price-now { font-size: 22px; }
  .buy-box .price-list { font-size: 12px; }
  .buy-box .badge-off { font-size: 13px; padding: 5px 7px; }
  .buy-box .deadline { font-size: 12px; padding: 2px 7px; }
  .buy-note { font-size: 11px; }
  .btn { padding: 9px 14px; font-size: 14px; }
  .rank-chips { margin-bottom: 8px; }
  .rank-chips a { font-size: 11px; padding: 2px 8px; }
  .spec { font-size: 12px; gap: 3px 10px; margin-bottom: 8px; }
  .tags { margin-bottom: 8px; }
  .tags li { font-size: 11px; padding: 1px 7px; }
  .desc { font-size: 13px; }
  .samples { gap: 6px; }
  .cta-bar { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .cta-price .price-now { font-size: 16px; }
  .cta-price .price-list { font-size: 10px; }
  .cta-price .badge-off { font-size: 11px; padding: 4px 5px; }
  .cta-bar .btn { padding: 8px 12px; font-size: 13px; }
  body.has-cta { padding-bottom: 58px; }
  /* ランキング一覧 */
  .rank-list { gap: 6px; }
  .rank-row, .rank-row.is-top { grid-template-columns: 38px 62px 1fr; gap: 8px; padding: 6px; }
  .rank-row .rank { font-size: 13px; min-width: 34px; padding: 2px 4px; }
  .rank-row.is-top .rank { font-size: 15px; min-width: 36px; padding: 3px 4px; }
  .rank-row .move { font-size: 10px; padding: 1px 4px; }
  .rank-title, .rank-row.is-top .rank-title { font-size: 13px; }
  .rank-info { gap: 2px; }
  .rank-info .card-meta { gap: 0; }
  .rank-info .price { min-height: 22px; gap: 6px; }
  .rank-info .price-now, .rank-row.is-top .price-now { font-size: 16px; }
  .rank-info .price-list { font-size: 10px; }
  .rank-info .card-deadline { min-height: 20px; }
  .rank-info .card-deadline .deadline { font-size: 10px; padding: 1px 5px; }
  /* 下部ナビ・フッター */
  .bottom-item { font-size: 10px; padding: 5px 4px 4px; gap: 1px; }
  .bottom-item svg { width: 19px; height: 19px; }
  body.has-bottom-nav { padding-bottom: 48px; }
  .site-footer { font-size: 12px; padding: 14px 0; }
  .footer-logo img { width: 96px; }
  .footer-logo { margin-bottom: 8px; }
  .pr-line, .copyright { font-size: 12px; }
  .pr-line { margin-top: 10px; padding-top: 8px; }
  /* 年齢確認・中継・固定ページ */
  .age-gate, .go, .coming, .prose { margin: 16px auto; padding: 16px; font-size: 13px; }
  .age-gate { margin-top: 28px; }
  .age-gate h1, .go h1, .coming h1, .prose h1 { font-size: 18px; margin-top: 0; }
  .prose h2 { font-size: 15px; }
  .age-q { font-size: 15px; }
  .age-actions { gap: 8px; margin: 12px 0; }
  .age-small, .coming-small { font-size: 11px; }
  .go-url { font-size: 11px; }
}
