/* Night Shelf — オリジナルのダークテーマ。色やフォントは :root の変数で一括調整できます */
:root {
  --bg: #0d0e13;
  --bg2: #12141b;
  --surface: #181a23;
  --surface2: #20232e;
  --line: #2a2e3b;
  --text: #eceef4;
  --muted: #9aa0b2;
  --faint: #6b7184;
  --accent: #ff5277;
  --accent2: #ff8a5b;
  --accent-soft: rgba(255, 82, 119, 0.14);
  --gold: #f4c152;
  --silver: #c9d1dc;
  --bronze: #d8955f;
  --green: #3ecf8e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1240px;
  --gut: 16px;
  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
}
@media (min-width: 720px) { :root { --gut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.muted { color: var(--muted); }

/* ---------- 年齢確認 ---------- */
.age-gate { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: var(--gut); background: rgba(8, 9, 12, 0.72); backdrop-filter: blur(6px); }
html.age-pending .age-gate { display: flex; }
html.age-pending body { overflow: hidden; }
html.age-pending .site { filter: blur(22px) brightness(0.6); pointer-events: none; user-select: none; }
.age-box { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 26px 26px; text-align: center; box-shadow: var(--shadow); }
.age-badge { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; border: 3px solid var(--accent); color: var(--accent); }
.age-box h2 { font-size: 22px; margin-bottom: 8px; }
.age-box p { color: var(--muted); margin: 0 0 6px; }
.age-box .q { color: var(--text); font-weight: 700; margin: 16px 0; }
.age-btns { display: grid; gap: 10px; }

/* ---------- ボタン・タグ ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn svg { font-size: 18px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.tag.hot { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- ヘッダー ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(13, 14, 19, 0.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.02em; font-size: 19px; flex: none; }
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 17px; }
.hsearch { flex: 1; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; min-width: 0; transition: border-color 0.15s; }
.hsearch:focus-within { border-color: var(--accent); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 40px; font-size: 14px; }
.hsearch button { border: 0; background: none; cursor: pointer; padding: 8px; color: var(--muted); font-size: 18px; display: flex; }
.hdr-tools { display: flex; gap: 2px; }
.tool { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 20px; }
.tool:hover { background: var(--surface); color: var(--text); }
.fav-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.menu-btn { display: none; }
.gnav { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.gnav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gnav-in::-webkit-scrollbar { display: none; }
.gnav a { flex: none; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--text); }
.gnav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.gnav .adv { margin-left: auto; color: var(--accent); }
@media (max-width: 640px) {
  .logo-txt { display: none; }
  .hdr-in { gap: 10px; }
  .hdr-tools .tool[aria-label='閲覧履歴'] { display: none; }
}

/* ---------- レイアウト ---------- */
.main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 60px; }
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 20px; position: relative; padding-left: 14px; }
.sec-head h2::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent2)); }
.sec-head p { margin: 2px 0 0 14px; font-size: 13px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.more:hover { color: var(--accent); }
.page-head { margin: 24px 0 18px; }
.page-head h1 { font-size: 26px; }
.page-head h1 small { font-size: 15px; color: var(--muted); font-weight: 500; }
.page-head .lead { margin: 6px 0 0; color: var(--muted); }
.page-head .count { margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.list-title { font-size: 18px; margin: 34px 0 14px; }
.list-title small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.inline-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
@media (min-width: 720px) { .page-head h1 { font-size: 30px; } .sec-head h2 { font-size: 22px; } }

/* ---------- パンくず ---------- */
.crumbs ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--faint); }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs li[aria-current] { color: var(--muted); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- カード ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; min-width: 0; }
.card-link { display: block; }
.thumb { position: relative; aspect-ratio: 147 / 200; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
/* パッケージ画像(横長)の右半分=表紙だけを見せる */
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transition: transform 0.35s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.badge { position: absolute; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; line-height: 1; }
.badge.rank { top: 0; left: 0; min-width: 30px; height: 30px; padding: 0 8px; font-size: 14px; background: rgba(10, 11, 15, 0.82); color: #fff; border-bottom-right-radius: 10px; }
.badge.rank.r1 { background: linear-gradient(135deg, #f7d774, #d9a22c); color: #2a1c00; }
.badge.rank.r2 { background: linear-gradient(135deg, #e7edf4, #aab4c2); color: #1a1f27; }
.badge.rank.r3 { background: linear-gradient(135deg, #f1b48a, #b8703f); color: #2a1406; }
.badge.sale { bottom: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; }
.badge.mv { bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(10, 11, 15, 0.75); color: #fff; font-size: 14px; }
.card-body { padding: 8px 2px 0; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.card:hover .card-title { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.card-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 12px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; }
.price b { font-size: 14px; color: var(--text); }
.price b small { font-size: 0.75em; font-weight: 500; color: var(--muted); }
.price s { color: var(--faint); font-size: 12px; }
.card .price b { color: var(--text); }
.card .price s + b { color: var(--accent); }
.fav { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 11, 15, 0.6); color: rgba(255, 255, 255, 0.85); font-size: 17px; cursor: pointer; backdrop-filter: blur(4px); transition: transform 0.15s, color 0.15s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed='true'] { color: var(--accent); background: rgba(255, 255, 255, 0.92); }
.fav.pop { animation: pop 0.35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* 星 */
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stars-bg { position: relative; color: #3a3f4f; letter-spacing: 1px; font-size: 12px; }
.stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--gold); white-space: nowrap; }
.stars b { color: var(--text); font-weight: 700; }
.card .stars-bg { display: none; }
.card .stars::before { content: '★'; color: var(--gold); }

/* ---------- 横スクロール ---------- */
.rail { position: relative; margin: 0 calc(var(--gut) * -1); }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 6px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 560px) { .rail-track { grid-auto-columns: 28%; } }
@media (min-width: 860px) { .rail-track { grid-auto-columns: calc((100% - 2 * var(--gut) - 4 * 16px) / 5.3); gap: 16px; } }
.rail-btn { display: none; position: absolute; top: 35%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(24, 26, 35, 0.92); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.rail-btn.prev { left: 6px; }
.rail-btn.next { right: 6px; }
@media (hover: hover) and (min-width: 860px) { .rail:hover .rail-btn { display: grid; place-items: center; } .rail-btn[disabled] { display: none !important; } }

/* ---------- トップ ---------- */
.intro { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.intro-title { margin: 0; font-size: 18px; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.stats b { color: var(--text); font-size: 13px; margin-right: 2px; }
@media (min-width: 860px) { .intro-title { font-size: 22px; } }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.quick a { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; }
.quick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick b { font-size: 16px; }
.quick span { font-size: 12px; color: var(--muted); }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(4, 1fr); } }
/* スマホでは1段にまとめ、ランキングを最初の画面に収める */
@media (max-width: 719px) {
  .quick { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
  .quick a { align-items: center; padding: 10px 4px; }
  .quick b { font-size: 13px; }
  .quick span { display: none; }
}
.search-cta { text-align: center; padding: 34px 20px; border-radius: 20px; background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--line); }
.search-cta h2 { font-size: 22px; }
.search-cta p { color: var(--muted); margin: 8px auto 18px; max-width: 520px; }

/* ---------- 出演者 ---------- */
.people { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.people::-webkit-scrollbar { display: none; }
.people.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.person b { font-size: 12.5px; font-weight: 600; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.person small { font-size: 11px; color: var(--faint); }
.person:hover b { color: var(--accent); }
.avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface2), var(--surface)); border: 2px solid var(--line); flex: none; transition: border-color 0.15s; }
.person:hover .avatar { border-color: var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatar i { font-style: normal; font-weight: 800; font-size: 28px; color: var(--muted); }
.avatar.xl { width: 112px; height: 112px; }
.profile { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.profile .ruby { margin: 0; color: var(--muted); font-size: 13px; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--text); font-size: 16px; }
.kana { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kana a, .kana span { min-width: 44px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.kana span { color: var(--faint); opacity: 0.5; }
.kana a:hover, .kana a[aria-current] { border-color: var(--accent); color: var(--accent); }

/* ---------- ジャンル ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip small { color: var(--faint); font-size: 11px; }
.chip:hover { border-color: var(--accent); }
.chip.muted { cursor: default; color: var(--muted); }
.chip.muted:hover { border-color: var(--line); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.related-tags { margin-top: 22px; }
.related-tags h2 { font-size: 15px; margin-bottom: 10px; color: var(--muted); }
.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .gcards { grid-template-columns: repeat(4, 1fr); } }
.gcard { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gcard img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; opacity: 0.55; transition: opacity 0.2s, transform 0.3s; }
.gcard:hover img { opacity: 0.75; transform: scale(1.04); }
.gcard span { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); display: flex; flex-direction: column; }
.gcard b { font-size: 15px; }
.gcard small { font-size: 11px; color: var(--muted); }
.elist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .elist { grid-template-columns: repeat(2, 1fr); } }
.elist a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.elist a:hover { border-color: var(--accent); }
.elist .n { width: 28px; color: var(--faint); font-weight: 800; text-align: right; }
.elist b { flex: 1; font-weight: 600; }
.elist small { color: var(--muted); }

/* ---------- ページ送り ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.pager a:hover { border-color: var(--accent); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .gap { border: 0; background: none; color: var(--faint); min-width: 20px; padding: 0; }

/* ---------- 作品詳細 ---------- */
.work-top { display: grid; gap: 22px; margin-top: 16px; }
@media (min-width: 900px) { .work-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; } .work-cover { position: sticky; top: 120px; } }
.work-cover { position: relative; margin: 0; }
.work-cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.badge.big { top: 0; left: 0; min-width: 52px; height: 52px; font-size: 22px; border-radius: var(--radius) 0 14px 0; }
.badge.big small { font-size: 11px; margin-left: 1px; }
.work-title { font-size: 21px; }
@media (min-width: 720px) { .work-title { font-size: 25px; } }
.work-cast { margin: 8px 0 0; font-weight: 700; }
.work-cast a { color: var(--accent); }
.work-cast a:hover { text-decoration: underline; }
.work-cast span { color: var(--faint); margin: 0 4px; }
.work-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.work-review { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.work-review .stars { font-size: 14px; }
.work-review .stars-bg { font-size: 16px; }
.work-review > span { font-size: 12px; color: var(--faint); }
.buybox { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.buy-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.buy-price .price b { font-size: 26px; }
.buy-price .price s { font-size: 14px; }
.save { font-size: 12px; font-weight: 800; color: var(--green); background: rgba(62, 207, 142, 0.12); padding: 4px 10px; border-radius: 999px; }
.campaign { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--accent); }
.campaign b { margin-left: auto; color: var(--text); font-size: 12px; }
.btn.cta { width: 100%; margin-top: 14px; min-height: 54px; font-size: 16px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 8px 24px rgba(255, 82, 119, 0.35); position: relative; }
.btn.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-off { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--accent); font-size: 11px; font-weight: 800; }
.buy-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.buy-sub .btn { min-height: 42px; font-size: 13px; }
.fav-lg[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.note { margin: 10px 0 0; font-size: 11px; color: var(--faint); }
.spec { margin: 18px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.spec a { color: var(--accent); }
.spec a:hover { text-decoration: underline; }
.work-info > .chips { margin-top: 16px; }
.movie { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; cursor: pointer; }
.movie img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: blur(2px); }
.movie .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 34px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 82, 119, 0.45); transition: transform 0.15s; }
.movie:hover .play { transform: scale(1.06); }
.movie p { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.movie iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(5, 1fr); gap: 10px; } }
.shot { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.2s; }
.shot:hover img { transform: scale(1.06); opacity: 0.9; }
.cta-band { margin-top: 32px; display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); background: radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface); border: 1px solid var(--line); }
.cta-band > div { display: flex; flex-direction: column; gap: 4px; }
.cta-band b { font-size: 15px; }
.cta-band .btn.cta { margin-top: 0; }
@media (min-width: 720px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } .cta-band .btn.cta { width: auto; padding: 0 32px; } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 20, 27, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s; }
.sticky-cta.show { transform: none; }
.sticky-cta .price b { font-size: 17px; }
.sticky-cta .btn.cta { margin: 0; min-height: 46px; flex: 1; font-size: 14px; box-shadow: none; }
.sticky-cta .cta-off { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.work-page .main { padding-bottom: 100px; }

/* ---------- 検索 ---------- */
.sform { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sform-row { display: flex; gap: 8px; }
.sform-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); outline: none; font-size: 15px; }
.sform-row input:focus { border-color: var(--accent); }
.sform-row .btn { border-radius: 12px; min-height: 48px; }
.sform-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.sform-opts label { display: inline-flex; align-items: center; gap: 8px; }
.sform-opts select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.sform-opts .check { cursor: pointer; }
.sform-opts input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--accent); }
.sform-genres { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sform-genres summary { cursor: pointer; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sform-genres summary small { font-weight: 400; color: var(--faint); font-size: 12px; }
.sform-active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sform-active:empty { display: none; }
.sform-active button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--text); font-size: 12px; cursor: pointer; }
.sform-active button::after { content: '×'; color: var(--accent); font-weight: 800; }
.sresult-head { margin: 22px 0 14px; color: var(--muted); font-size: 14px; }
.sresult-head b { color: var(--text); font-size: 18px; margin: 0 2px; }
.load-more { text-align: center; margin-top: 28px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty.big { padding: 80px 16px; }
.empty.big h1 { color: var(--text); font-size: 24px; margin-bottom: 10px; }

/* ---------- 読みもの ---------- */
.prose { max-width: 760px; margin: 28px auto 0; }
.prose h1 { font-size: 26px; margin-bottom: 16px; }
.prose h2 { font-size: 18px; margin: 28px 0 8px; }
.prose p { color: #cfd3de; }

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(5, 6, 8, 0.94); padding: 56px 8px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; }

/* ---------- トースト ---------- */
.toast { position: fixed; left: 50%; bottom: 80px; z-index: 950; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: #f4f5f8; color: #111; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- フッター ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.ftr-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 18px; font-size: 13px; color: var(--muted); }
.ftr-brand p { margin: 8px 0 0; max-width: 520px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ftr-nav a:hover { color: var(--text); }
.r18 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); }
.r18 span { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.disc { margin: 0; font-size: 12px; color: var(--faint); }
.credit.placeholder { padding: 10px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); font-size: 12px; }
.copy { margin: 0; font-size: 12px; color: var(--faint); }

/* ---------- アクセシビリティ ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
