/* めくり名鑑：深夜のレンタルビデオ店。白地に黄と赤、太い黒枠、角のない四角
   見出しは M PLUS 1 の900。Dela Gothic One は画数の多い漢字（鑑・演）が潰れるのでやめた */
:root {
  --y: #ffd60a;
  --r: #e5172f;
  --k: #141414;
  --w: #ffffff;
  --g1: #ecebe8;
  --g2: #d9d8d4;
  --memo: #fff6b8;
  --i2: #2c2c2c;
  --i3: #4a4a4a;
  --f-head: 'M PLUS 1', 'Hiragino Sans', sans-serif;
  --f-pop: 'Yusei Magic', sans-serif;
  --f-body: 'BIZ UDGothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --bn: 56px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--w); color: var(--k); font-family: var(--f-body); line-height: 1.7; letter-spacing: 0.03em; padding-bottom: calc(var(--bn) + env(safe-area-inset-bottom)); }
a { color: var(--k); }
a:hover { color: var(--r); }
button { font-family: inherit; cursor: pointer; color: var(--k); }
input, select { font-family: inherit; }
input::placeholder { color: var(--i3); }
:focus-visible { outline: 3px solid var(--r); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-weight: 600; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ヘッダー */
.hd { background: var(--y); border-bottom: 3px solid var(--k); }
.hd-in { max-width: 1200px; margin: 0 auto; min-height: 60px; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--f-head); font-weight: 900; font-size: 22px; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--k); }
.pr { font-family: var(--f-mono); font-size: 11px; font-weight: 600; background: var(--k); color: var(--y); padding: 2px 6px; line-height: 1.4; }
.hd-tool { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 2px solid var(--k); background: var(--w); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hd-nav, .hd-q { display: none; }

/* 下のナビ（スマホ） */
.bn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--k); padding-bottom: env(safe-area-inset-bottom); }
.bn a { height: var(--bn); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--w); text-decoration: none; }
.bn a[aria-current] { background: var(--y); color: var(--k); font-weight: 700; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bn, .hd-tool { display: none; }
  .hd-in { padding: 14px 24px; gap: 24px; min-height: 76px; }
  .logo { font-size: 30px; }
  .hd-nav { display: flex; border: 3px solid var(--k); background: var(--w); }
  .hd-nav a { padding: 9px 14px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .hd-nav a + a { border-left: 3px solid var(--k); }
  .hd-nav a[aria-current] { background: var(--k); color: var(--y); }
  .hd-q { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; background: var(--w); border: 3px solid var(--k); flex: 0 1 280px; min-width: 180px; }
  .hd-q input { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; outline: none; }
}

/* パンくず */
.crumb { font-family: var(--f-mono); font-size: 11px; font-weight: 500; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb a { text-decoration: none; }
.crumb span[aria-hidden] { color: var(--i3); }

/* フッター */
.ft { background: var(--k); color: var(--w); margin-top: 48px; }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; line-height: 1.8; }
.ft-in p { margin: 0; flex: 1 1 360px; }
.ft-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.ft a { color: var(--y); }
.ft a:hover { color: var(--w); }

/* 見出し・ボタン */
.h1 { font-family: var(--f-head); font-weight: 900; font-size: 28px; line-height: 1.3; letter-spacing: 0.03em; margin: 0; }
.h2 { font-family: var(--f-head); font-weight: 900; font-size: 22px; line-height: 1.35; letter-spacing: 0.03em; margin: 0; }
.sec { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.sec-hd a { font-size: 14px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border: 0; background: var(--k); color: var(--y); font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 4px 4px 0 var(--r); text-align: center; line-height: 1.3; }
.btn:hover { color: var(--w); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--r); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px; border: 3px solid var(--k); background: var(--w); font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; line-height: 1.3; }
.btn-line[aria-pressed="true"] { background: var(--k); color: var(--y); }
.src { display: inline-block; font-size: 11px; font-weight: 700; color: var(--r); border: 2px solid var(--r); padding: 1px 6px; line-height: 1.5; white-space: nowrap; text-decoration: none; }
a.src:hover { background: var(--r); color: var(--w); }
.note { font-size: 12px; line-height: 1.7; color: var(--i2); margin: 0; }
.dummy { background: var(--k); color: var(--y); font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; }

/* 値引きシール */
.stk { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: var(--y); border: 3px solid var(--r); color: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); pointer-events: none; z-index: 2; }
.stk b { font-family: var(--f-head); font-weight: 900; font-size: 22px; line-height: 1; }
.stk small { font-size: 10px; font-weight: 700; }
.stk-s { width: 50px; height: 50px; border-width: 2px; top: -10px; right: -8px; }
.stk-s b { font-size: 13px; }
.stk-new { background: var(--w); }

/* 名鑑メモ（手書きPOP） */
.memo { position: relative; background: var(--memo); border: 2px solid var(--k); padding: 10px 14px 12px; transform: rotate(-1.2deg); }
.memo::before { content: ''; position: absolute; top: -9px; left: 22px; width: 56px; height: 16px; background: rgba(229, 23, 47, 0.75); }
.memo h2, .memo .memo-t { margin: 0; font-family: var(--f-pop); font-weight: 400; font-size: 14px; color: var(--r); }
.memo p { margin: 2px 0 0; font-family: var(--f-pop); font-size: 15px; line-height: 1.7; }

/* 作品カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.wc { position: relative; display: flex; flex-direction: column; background: var(--w); border: 2px solid var(--k); text-decoration: none; }
.wc:hover { color: var(--k); box-shadow: 4px 4px 0 var(--k); }
.wc-img { aspect-ratio: 16 / 10; background: var(--g2); border-bottom: 2px solid var(--k); display: flex; align-items: flex-end; padding: 4px 6px; }
.wc-img span { font-family: var(--f-mono); font-size: 10px; font-weight: 600; background: var(--k); color: var(--y); padding: 1px 4px; }
.wc-t { padding: 8px 8px 0; font-size: 13px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-m { padding: 2px 8px 8px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.wc-m b { font-size: 14px; }
.wc-m s { color: var(--i3); }
.wc-c { color: var(--i2); }
.empty { border: 2px dashed var(--k); padding: 20px; text-align: center; font-size: 14px; }

/* 背表紙の棚 */
.spines { display: flex; gap: 4px; align-items: flex-end; border-bottom: 8px solid var(--k); overflow: hidden; }
.spine { flex: 1 1 0; min-width: 0; border: 2px solid var(--k); border-bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; text-decoration: none; overflow: hidden; background: var(--w); }
.spine:hover { color: inherit; filter: brightness(0.94); }
.spine b { font-family: var(--f-head); font-weight: 900; font-size: 18px; line-height: 1; }
.spine span { writing-mode: vertical-rl; font-size: 12px; font-weight: 700; line-height: 1.25; }
.spine.y { background: var(--y); }
.spine.r { background: var(--r); color: var(--w); }
.spine.k { background: var(--k); color: var(--w); }
.spine.r:hover, .spine.k:hover { color: var(--y); }

/* 棚の札（ジャンル）と＋ */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plate-w { display: flex; min-width: 0; }
.plate { flex-grow: 1; min-width: 0; min-height: 52px; border: 3px solid var(--k); background: var(--w); font-size: 14px; font-weight: 700; text-align: left; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-decoration: none; overflow: hidden; white-space: nowrap; }
.plate small { font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.plate[aria-pressed="true"], a.plate.dark { background: var(--k); color: var(--y); }
a.plate.dark:hover { color: var(--w); }
.add { width: 48px; flex-shrink: 0; min-height: 52px; margin-left: -3px; border: 3px solid var(--k); background: var(--y); font-size: 18px; font-weight: 700; padding: 0; }
.add[aria-pressed="true"] { background: var(--r); color: var(--w); }

/* ＋マイ棚つきのタグ */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: flex; }
.tag a { font-size: 12px; font-weight: 700; border: 2px solid var(--k); padding: 6px 8px; text-decoration: none; }
.tag button { font-size: 13px; font-weight: 700; border: 2px solid var(--k); border-left: 0; background: var(--y); padding: 0 9px; }
.tag button[aria-pressed="true"] { background: var(--r); color: var(--w); }

/* 分割ボタン */
.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; border: 2px solid var(--k); background: var(--w); }
.seg button { min-height: 44px; border: 0; background: var(--w); font-size: 13px; padding: 0 2px; }
.seg button + button { border-left: 2px solid var(--k); }
.seg button[aria-pressed="true"] { background: var(--y); font-weight: 700; }
.seg.dark button[aria-pressed="true"] { background: var(--k); color: var(--y); }

/* 50音 */
.kana { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border: 2px solid var(--k); }
.kana a, .kana button { height: 44px; border: 0; padding: 0; background: var(--w); font-family: var(--f-head); font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.kana > * + * { border-left: 1px solid var(--k) !important; }
.kana [aria-pressed="true"], .kana [aria-current] { background: var(--r); color: var(--w); }
.names { display: flex; flex-direction: column; border: 2px solid var(--k); border-top: 0; }
.names a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.names a + a { border-top: 1px solid var(--k); }
.names .mono { font-size: 12px; font-weight: 500; }

/* 名鑑カード（女優） */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; background: var(--w); border: 3px solid var(--k); text-decoration: none; }
.mcard:hover { color: var(--k); box-shadow: 4px 4px 0 var(--k); }
.mcard::before { content: ''; height: 6px; background: var(--r); }
.mcard .mono { padding: 5px 10px; font-size: 11px; border-bottom: 2px solid var(--k); }
.mcard-b { display: flex; gap: 10px; padding: 10px; align-items: center; }
.ph { background: var(--g2); border: 2px solid var(--k); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.3; }
.mcard .ph { width: 48px; height: 60px; }
.mcard-b b { font-size: 15px; display: block; }
.mcard-b small { font-size: 12px; }

/* 年齢確認（のれん） */
.gate { display: none; }
html.needs-gate body { overflow: hidden; }
html.needs-gate .gate { position: fixed; inset: 0; z-index: 100; background: var(--w); display: flex; flex-direction: column; overflow-y: auto; }
.gate-hd { background: var(--y); border-bottom: 3px solid var(--k); }
.gate-hd div { max-width: 460px; margin: 0 auto; padding: 18px 20px 14px; display: flex; align-items: flex-end; justify-content: space-between; }
.gate-hd b { font-family: var(--f-head); font-weight: 900; font-size: 34px; line-height: 1; }
.gate-hd span { font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.gate-in { width: 100%; max-width: 460px; margin: 0 auto; padding: 0 20px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.noren { position: relative; margin-top: 24px; height: min(330px, 38vh); min-height: 260px; display: flex; flex-direction: column; }
.noren::before { content: ''; height: 14px; background: var(--k); }
.noren-cloth { flex-grow: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.noren-cloth span { background: var(--k); color: var(--w); display: flex; justify-content: center; align-items: flex-start; padding-top: 52px; font-family: var(--f-head); font-weight: 900; font-size: 36px; line-height: 1; transform-origin: top center; animation: sway 4s ease-in-out infinite alternate; }
.noren-cloth span:nth-child(2) { animation-delay: -1s; }
.noren-cloth span:nth-child(3) { animation-delay: -2s; }
.noren-cloth span:nth-child(4) { animation-delay: -3s; }
@keyframes sway { from { transform: skewX(-1deg); } to { transform: skewX(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .noren-cloth span { animation: none; } }
.noren-18 { position: absolute; left: 50%; bottom: 16px; margin-left: -50px; width: 100px; height: 100px; border-radius: 50%; background: var(--r); border: 4px solid var(--w); display: flex; align-items: baseline; justify-content: center; padding-top: 30px; transform: rotate(-8deg); font-family: var(--f-head); font-weight: 900; font-size: 38px; color: var(--w); line-height: 1; letter-spacing: -0.02em; }
.noren-18 small { font-size: 24px; margin-left: 1px; }
.gate-act { padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.gate-act p { margin: 0; font-size: 15px; line-height: 1.75; font-weight: 700; }
.gate-act .btn { width: 100%; font-size: 17px; }
.gate-act .btn-line { border-width: 2px; min-height: 50px; font-size: 15px; font-weight: 400; }
.gate-ft { margin-top: auto; padding-top: 24px; font-size: 12px; line-height: 1.7; color: var(--i3); display: flex; flex-direction: column; gap: 8px; }
.gate-ft p { margin: 0; }
.gate-ft div { display: flex; gap: 16px; flex-wrap: wrap; }

/* めくる */
body.mk { background: var(--g1); }
/* めくる画面はページごと固定する。iPhoneはスクロールの惰性が残っていると最初のタップを止めるのに使うため、ボタンが1回目で効かなくなる */
html:has(body.mk) { overscroll-behavior: none; }
body.mk { overflow: hidden; overscroll-behavior: none; }
.mk-app { position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--bn) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.mk-stage { touch-action: none; -webkit-user-select: none; user-select: none; }
.chips { touch-action: pan-x; }
.mk-app .hd { flex-shrink: 0; }
.shelf { flex-shrink: 0; display: flex; align-items: stretch; border-bottom: 2px solid var(--k); background: var(--w); }
.shelf-t { flex-shrink: 0; display: flex; align-items: center; padding: 0 10px 0 12px; font-weight: 700; font-size: 13px; background: var(--k); color: var(--y); }
.chips { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; align-items: center; flex-grow: 1; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; border: 2px solid var(--k); background: var(--w); }
.chip.act { border-color: var(--r); }
.chip.act::before { content: ''; width: 14px; height: 14px; background: var(--g2); border: 1px solid var(--k); }
.chip[aria-pressed="true"] { background: var(--k); color: var(--y); font-weight: 700; border-color: var(--k); }
.chip i { font-style: normal; font-weight: 700; color: var(--r); }
.chip-add { border-style: dashed; font-weight: 700; }
.chip-edit { font-size: 12px; font-weight: 700; background: var(--g1); }
.chip-edit[aria-pressed="true"] { background: var(--r); border-color: var(--r); color: var(--w); }
.mk-stage { flex-grow: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; padding: 16px 16px 8px; gap: 12px; }
.deck { position: relative; flex-shrink: 1; min-height: 0; touch-action: pan-x; }
.card { position: relative; background: var(--w); border: 3px solid var(--k); box-shadow: 5px 5px 0 var(--k); display: flex; flex-direction: column; transition: transform 0.28s cubic-bezier(.3,.7,.2,1), opacity 0.28s; will-change: transform; }
.card.drag { transition: none; }
.card.out-up { transform: translateY(-115%) rotate(-4deg); opacity: 0; }
.card.out-down { transform: translateY(115%) rotate(3deg); opacity: 0; }
.card.in { animation: cardin 0.3s cubic-bezier(.3,.7,.2,1); }
@keyframes cardin { from { transform: translateY(40px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.card-v { display: flex; border-bottom: 3px solid var(--k); }
.card-code { width: 34px; flex-shrink: 0; background: var(--k); display: flex; align-items: center; justify-content: center; }
.card-code span { writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--y); letter-spacing: 0.1em; }
.peak { position: absolute; top: -12px; left: 48px; z-index: 2; background: var(--r); color: var(--w); font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 3px 8px 5px; border: 2px solid var(--k); }
.card .stk { top: auto; bottom: 76px; right: -10px; }
.card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.card-b h2 { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 700; padding-right: 60px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13px; }
.cast a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price { flex-wrap: wrap; }
.price b { font-family: var(--f-head); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: 0.02em; }
.price b small { font-size: 0.6em; margin-left: 2px; }
.price s { font-size: 13px; color: var(--i3); }
.mk-stage .memo { align-self: flex-start; max-width: 92%; }
.mk-stage .memo p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-act { margin-top: auto; display: flex; align-items: stretch; gap: 10px; flex-shrink: 0; }
.mk-act > button { width: 62px; height: 60px; border: 3px solid var(--k); background: var(--w); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-act .like { color: var(--r); }
.mk-act .like[aria-pressed="true"] { background: var(--r); color: var(--w); }
.mk-act .btn { flex-grow: 1; min-height: 60px; }
.mk-hint { margin: 0; text-align: center; font-size: 12px; color: var(--i2); flex-shrink: 0; }
.mk-end { background: var(--w); border: 3px solid var(--k); padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
@media (max-height: 700px) {
  .mk-stage { padding-top: 12px; gap: 8px; }
  .mk-stage .memo { display: none; }
  .price b { font-size: 22px; }
}

/* サンプル */
.player { position: relative; flex-grow: 1; aspect-ratio: 16 / 9; background: var(--i2); overflow: hidden; color: var(--g2); }
.player video, .player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--k); }
.player-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; text-align: center; padding: 0 12px; }
.player-ph .mono { font-size: 11px; color: var(--y); }
.player-live { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: var(--r); color: var(--w); font-size: 11px; font-weight: 700; padding: 2px 7px; }
.player-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--w); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, 0.25); }
.player-bar i { display: block; height: 5px; width: 0; background: var(--y); }
.player.playing .player-bar i { animation: bar 12s linear infinite; }
@keyframes bar { to { width: 100%; } }
.player-snd { position: absolute; right: 8px; bottom: 14px; width: 44px; height: 44px; border: 2px solid var(--w); background: rgba(20, 20, 20, 0.7); color: var(--w); display: flex; align-items: center; justify-content: center; }

/* 作品ページ */
.w-top { position: relative; border: 3px solid var(--k); }
.w-top .player { display: block; width: 100%; }
.w-top .stk { right: 10px; bottom: -40px; }
.w-head { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.w-head h1 { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 700; padding-right: 76px; }
.w-head .price b { font-size: 30px; }
.box { border: 3px solid var(--k); background: var(--w); display: flex; flex-direction: column; }
.box-t { margin: 0; background: var(--k); color: var(--w); font-size: 13px; font-weight: 700; padding: 6px 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; }
.person + .person { border-top: 1px solid var(--k); }
.person .ph { width: 52px; height: 52px; }
.person-n { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.person-n a:first-child { font-weight: 700; font-size: 17px; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.person .add-s { margin-left: auto; flex-shrink: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--k); background: var(--w); font-size: 12px; font-weight: 700; }
.person .add-s[aria-pressed="true"] { background: var(--r); border-color: var(--r); color: var(--w); }
.box .note { padding: 0 12px 12px; }
.peaks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.peaks li { display: flex; align-items: stretch; border: 2px solid var(--k); }
.peaks .mono { background: var(--r); color: var(--w); font-size: 14px; padding: 10px; min-width: 56px; text-align: center; }
.peaks span:last-child { padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.data { border: 2px solid var(--k); padding: 10px 12px; margin: 0; }
.data .mono { margin: 0 0 4px; font-size: 12px; }
.data div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--k); font-size: 13px; }
.data dt { color: var(--i2); }
.data dd { margin: 0; font-weight: 700; text-align: right; }
.buy { position: sticky; bottom: calc(var(--bn) + env(safe-area-inset-bottom)); z-index: 20; margin-top: 28px; padding: 12px 16px 14px; background: var(--w); border-top: 3px solid var(--k); display: flex; flex-direction: column; gap: 6px; }
.buy .btn { width: 100%; max-width: 728px; margin: 0 auto; }
.buy small { font-size: 11px; color: var(--i2); text-align: center; }
@media (min-width: 900px) {
  .buy { bottom: 0; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 26px; }
  .w-head h1 { font-size: 22px; }
}

/* 女優ページ */
.meikan { background: var(--w); border: 3px solid var(--k); box-shadow: 5px 5px 0 var(--k); }
.meikan::before { content: ''; display: block; height: 8px; background: var(--r); }
.meikan-no { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 2px solid var(--k); font-size: 12px; }
.meikan-b { display: flex; gap: 12px; padding: 14px 12px; }
.meikan-b .ph { width: 84px; height: 104px; font-size: 11px; }
.meikan-n { display: flex; flex-direction: column; gap: 4px; justify-content: center; align-items: flex-start; min-width: 0; }
.meikan-n small { font-size: 12px; color: var(--i2); }
.meikan-n h1 { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 30px; line-height: 1.15; word-break: break-all; }
.meikan dl { margin: 0; }
.meikan dl div { display: flex; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--k); font-size: 14px; }
.meikan dd { margin: 0; font-weight: 700; }
.row2 { display: flex; gap: 10px; }
.row2 .btn { flex-grow: 1; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--k); font-size: 13px; }
.list li a:first-child { font-weight: 700; }

/* さがす */
.sg-q { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: var(--w); border: 3px solid var(--k); }
.sg-q input { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.sg-band { background: var(--y); border-bottom: 3px solid var(--k); padding: 12px 0 14px; }
.sg-band .h1 { margin-bottom: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0 12px; border: 2px solid var(--k); background: var(--w); font-size: 14px; font-weight: 700; }
.toggle i { width: 32px; height: 32px; border: 3px solid var(--k); display: flex; align-items: center; justify-content: center; font-style: normal; color: var(--w); }
.toggle[aria-pressed="true"] i { background: var(--r); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 700; }
.sg-bar { position: sticky; bottom: calc(var(--bn) + env(safe-area-inset-bottom)); z-index: 20; margin-top: 24px; background: var(--w); border-top: 3px solid var(--k); }
.sg-bar div { max-width: 760px; margin: 0 auto; padding: 12px 16px 14px; display: flex; gap: 12px; align-items: center; }
.sg-bar output { font-family: var(--f-head); font-weight: 900; font-size: 22px; white-space: nowrap; }
.sg-bar output small { font-family: var(--f-body); font-size: 13px; }
.sg-bar .btn { flex-grow: 1; }
@media (min-width: 900px) { .sg-bar { bottom: 0; } }

/* マイ棚の追加シート */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, 0.55); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; max-width: 560px; margin: 0 auto; background: var(--w); border: 4px solid var(--k); border-bottom: 0; height: min(600px, 86dvh); display: flex; flex-direction: column; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 2px solid var(--k); background: var(--y); }
.sheet-hd .x { width: 44px; height: 44px; border: 2px solid var(--k); background: var(--w); font-size: 18px; font-weight: 700; }
.sheet .seg { border-width: 0 0 2px; }
.sheet .seg button { min-height: 48px; font-size: 14px; font-weight: 700; }
.sheet-q { padding: 12px 16px 8px; }
.sheet-q label { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 3px solid var(--k); }
.sheet-q input { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.sheet-list { flex-grow: 1; overflow-y: auto; padding: 0 16px; }
.cand { display: flex; align-items: center; gap: 10px; min-height: 56px; border-bottom: 1px solid var(--k); }
.cand span { flex-grow: 1; font-size: 15px; font-weight: 700; }
.cand .mono { flex-grow: 0; font-size: 12px; font-weight: 500; }
.cand button { min-width: 84px; height: 40px; border: 2px solid var(--k); background: var(--w); font-size: 13px; font-weight: 700; }
.cand button[aria-pressed="true"] { background: var(--k); color: var(--y); }
.sheet-ft { margin: 0; padding: 10px 16px 16px; font-size: 12px; line-height: 1.6; border-top: 2px solid var(--k); }

/* 小さな知らせ */
.toast { position: fixed; left: 50%; bottom: calc(var(--bn) + 20px + env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); background: var(--k); color: var(--y); font-size: 13px; font-weight: 700; padding: 10px 16px; border: 2px solid var(--y); box-shadow: 4px 4px 0 var(--r); white-space: nowrap; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* トップ（PC幅で広がる） */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 36px 0 40px; }
.hero-t { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-t h1 { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.22; }
.hero-t h1 em { font-style: normal; background: var(--k); color: var(--y); padding: 0 8px; }
.hero-t p { margin: 0; font-size: 16px; line-height: 1.9; max-width: 32em; }
.hero-b { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-v { flex: 1 1 300px; display: flex; justify-content: center; }
.stack { position: relative; width: 300px; height: 330px; max-width: 100%; }
.stack div { position: absolute; width: 210px; height: 280px; background: var(--w); border: 3px solid var(--k); }
.stack div:nth-child(1) { left: 0; top: 30px; background: var(--g2); transform: rotate(-8deg); }
.stack div:nth-child(2) { left: 36px; top: 16px; transform: rotate(-2deg); }
.stack div:nth-child(3) { left: 74px; top: 0; height: 290px; box-shadow: 6px 6px 0 var(--k); transform: rotate(4deg); display: flex; flex-direction: column; }
.stack-v { flex-grow: 1; background: var(--g2); border-bottom: 3px solid var(--k); display: flex; align-items: center; justify-content: center; }
.stack-c { padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; }
.stack .stk { right: -4px; bottom: 30px; width: 92px; height: 92px; }
.band { background: var(--g1); border-top: 4px solid var(--k); border-bottom: 4px solid var(--k); padding: 32px 0 36px; }
.band .sec { margin-top: 0; }
.band .wc { border-width: 3px; box-shadow: 4px 4px 0 var(--k); }
.cols { display: flex; flex-wrap: wrap; gap: 0 48px; }
.cols > * { flex: 1 1 420px; min-width: 0; }
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shelves a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; border: 3px solid var(--k); background: var(--k); color: var(--w); text-decoration: none; font-size: 15px; font-weight: 700; }
.shelves a::after { content: '→'; font-family: var(--f-mono); color: var(--y); }
.shelves a:hover { color: var(--y); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
  .wc-t { font-size: 14px; }
  .kana a, .kana button { height: 52px; font-size: 20px; }
}

/* マイ棚ページ */
.code { width: 100%; min-height: 96px; border: 3px solid var(--k); padding: 10px; font-family: var(--f-mono); font-size: 12px; word-break: break-all; resize: vertical; }
.prose { font-size: 15px; line-height: 1.9; }
.prose h2 { font-family: var(--f-head); font-weight: 900; font-size: 20px; margin: 32px 0 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 2px solid var(--k); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--g1); width: 32%; }
.box.sec { gap: 0; }
.memo.sec { gap: 2px; }
.toast[hidden] { display: none; }
[aria-disabled] { pointer-events: none; opacity: 0.45; }
.card .player-live { top: 24px; }
.spine { padding-bottom: 8px; }
.spine span { flex: 0 1 auto; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row2.sec { flex-direction: row; }
p.sec { display: block; }

/* 2026-11-03 追加：最安値・レビュー・名鑑メモ・めくるに戻る */
.rv { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; }
.rv small { font-size: 12px; font-weight: 400; color: var(--i2); }
.card .rv { margin-left: auto; font-size: 13px; }
.opts { border: 2px solid var(--k); font-size: 13px; }
.opts summary { padding: 8px 10px; font-weight: 700; cursor: pointer; }
.opts ul { margin: 0; padding: 0 10px 4px; list-style: none; }
.opts li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--k); }
.opts li span { flex-grow: 1; }
.opts li i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--r); color: var(--w); padding: 1px 5px; margin-left: 6px; }
.opts li s { color: var(--i3); font-size: 12px; }
.memo-l { padding: 14px 14px 16px; }
.memo-l h2 { font-size: 16px; }
.memo-l p { font-size: 16px; line-height: 1.85; }
.memo-l p + p { margin-top: 10px; }
.buy-r { display: flex; gap: 10px; width: 100%; max-width: 728px; margin: 0 auto; }
.buy-r .btn { flex-grow: 1; padding: 0 12px; }
.back { flex-shrink: 0; gap: 4px; padding: 0 12px 0 8px; font-size: 13px; }
.pt { font-size: 11px; font-weight: 700; border: 2px solid var(--k); padding: 0 5px; align-self: center; }
.mk-act > .undo { width: 48px; flex-direction: column; gap: 1px; font-size: 10px; font-weight: 700; border-width: 2px; }
.mk-act > .undo:disabled { opacity: 0.3; cursor: default; }
/* 値引きシール：黄地に赤字は読みにくかったので、赤地に白の太字にした */
.stk { background: var(--r); border: 3px solid var(--k); color: var(--w); transform: rotate(-8deg); box-shadow: 0 0 0 3px var(--y); gap: 2px; }
.stk b { font-size: 22px; letter-spacing: 0.02em; }
.stk small { font-size: 11px; font-weight: 700; color: var(--y); line-height: 1.2; }
.stk-s { width: 58px; height: 58px; top: -12px; right: -10px; border-width: 2px; box-shadow: 0 0 0 2px var(--y); }
.stk-s b { font-size: 15px; letter-spacing: 0.02em; }
.stk-new { background: var(--k); color: var(--y); border-color: var(--y); box-shadow: 0 0 0 3px var(--k); }
.stk-new small { color: var(--w); }
/* 配信開始の6択（3列×2段） */
.seg-3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); border-width: 2px 0 0 2px; }
.seg-3 button { border-right: 2px solid var(--k); border-bottom: 2px solid var(--k); }
.seg-3 button + button { border-left: 0; }
.stk b.l4 { font-size: 15px; letter-spacing: 0; }
.stk-s b.l4 { font-size: 11px; }
/* 配信開始日別：日めくり */
.hm { position: relative; margin: 16px auto 0; max-width: 360px; background: var(--w); border: 3px solid var(--k); box-shadow: 5px 5px 0 var(--k); text-align: center; padding: 26px 16px 16px; touch-action: pan-y; user-select: none; }
.hm::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--k); }
.hm-ring { position: absolute; top: 3px; left: 12px; right: 12px; height: 8px; background: radial-gradient(circle, var(--w) 3px, transparent 3.5px) center / 28px 8px repeat-x; }
.hm-ym { font-size: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.hm-rel:empty { display: none; }
.hm-rel { font-family: var(--f-body); font-size: 12px; font-weight: 700; background: var(--r); color: var(--w); padding: 0 7px; }
.hm-d { font-family: var(--f-head); font-weight: 900; font-size: 108px; line-height: 1; margin: 4px 0 0; }
.hm-wd { font-size: 18px; font-weight: 700; }
.hm.sun .hm-d, .hm.sun .hm-wd { color: var(--r); }
.hm-nav { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 8px; margin-top: 18px; }
.hm-nav > * { min-height: 52px; padding: 0 6px; gap: 6px; font-size: 14px; white-space: nowrap; }
.hm-plan { color: var(--r); font-weight: 700; margin-top: 10px; text-align: center; }
.hm-count { margin: 0; }
.hm-count b { font-family: var(--f-head); font-weight: 900; font-size: 30px; margin-right: 2px; }
@media (max-width: 360px) { .hm-nav > * { font-size: 12px; } }
.sec-hd.sec { flex-direction: row; align-items: center; }

/* 見放題（FANZA TV）への案内 */
.tv-band { display: flex; flex-direction: column; gap: 2px; margin: 0 0 28px; padding: 14px 16px; background: var(--k); color: var(--w); text-decoration: none; border: 3px solid var(--k); box-shadow: 5px 5px 0 var(--y); }
.tv-band:hover { color: var(--y); }
.tv-band .mono { font-size: 11px; color: var(--y); }
.tv-band b { font-family: var(--f-head); font-weight: 900; font-size: 20px; line-height: 1.35; }
.tv-band span:last-child { font-size: 13px; }
.calc { border: 3px solid var(--k); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.calc label { font-weight: 700; }
.calc output { font-family: var(--f-head); font-weight: 900; font-size: 26px; margin: 0 2px; }
.calc input[type="range"] { width: 100%; accent-color: var(--r); }
.calc-r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-r > div { border: 2px solid var(--k); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.calc-r b { font-family: var(--f-head); font-weight: 900; font-size: 28px; line-height: 1.1; }
.calc-r small { font-size: 11px; }
.calc-tv { background: var(--y); }
.faq { margin: 0; border: 2px solid var(--k); }
.faq div { padding: 10px 12px; }
.faq div + div { border-top: 1px dashed var(--k); }
.faq dt { font-weight: 700; }
.faq dd { margin: 4px 0 0; font-size: 14px; }
.data dt { white-space: nowrap; }

/* めくる画面：カードを画面の高さに収める。iPhoneのSafariは上下のバーで使える高さが短く、
   はみ出したカードが × や作品を見るの上に重なってタップを吸っていた。
   高さが足りないときはサンプルの枠だけを縮める（16:9は保ち、左右に黒帯） */
.deck { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; touch-action: none; }
.deck .card { flex: 0 1 auto; min-height: 0; max-height: 100%; }
.deck .card-v { flex: 1 1 auto; min-height: 72px; background: var(--k); }
.deck .card-code { align-self: stretch; }
.deck .player { flex: 1 1 auto; min-width: 0; aspect-ratio: auto; height: auto; max-height: calc((min(100vw, 480px) - 32px - 6px - 34px) * 9 / 16); }
.deck .player::before { content: ''; display: block; padding-top: 56.25%; }
.deck .card-b { flex: none; }
.mk-act, .mk-hint { position: relative; z-index: 5; }
.trends { margin: 0; padding: 12px 12px 4px 30px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.75; }
.box .trends + .note { padding: 8px 12px 12px; }
.memo .memo-src { font-family: var(--f-body); font-size: 11px; color: var(--i2); margin-top: 8px; }

/* 人気ランキング：サムネとタイトルの横並び（スマホは横にスクロール） */
.rank-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 14px; overflow-x: auto; padding: 12px 4px 10px 12px; margin: 0 -4px 0 -12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rank-row .wc { scroll-snap-align: start; }
.rk { position: absolute; top: -10px; left: -10px; z-index: 2; min-width: 34px; height: 34px; padding: 0 6px; display: flex; align-items: center; justify-content: center; background: var(--w); color: var(--k); border: 2px solid var(--k); font-family: var(--f-head); font-weight: 900; font-size: 18px; line-height: 1; }
.rk.top { background: var(--y); }
@media (min-width: 900px) {
  .rank-row { grid-auto-columns: minmax(190px, calc((100% - 4 * 14px) / 5)); }
}
/* 順位の札はカードの角の内側に置く（横スクロールの端で欠けないように） */
.rk { top: -2px; left: -2px; }
.rank-row { padding: 4px 2px 10px 0; margin: 0; }

/* パッケージ画像：切り抜かず、縮小だけ（FANZAの画像は加工しない決まり） */
.wc-img { position: relative; overflow: hidden; }
.wc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--g2); }
.wc-img img + span, .wc-img span { position: relative; z-index: 1; }
