:root {
  --bg: #14121a;
  --panel: #1e1b27;
  --text: #e9e6f0;
  --muted: #9a93ad;
  --accent: #e0467c;
  --line: #322c40;
  --star: #f5c518;  /* 気になる（★）用。カードの★オン色と揃える */
  /* スマホ特化: コンテンツはこの幅のカラムに中央固定。PCでは左右が --stage の余白になる */
  --appw: 480px;
  --stage: #0b0910;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--stage);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site {
  max-width: var(--appw); margin: 0 auto;
  background: var(--panel);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 10;
}
header.site .inner { margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header.site h1 { font-size: 18px; margin: 0; }
header.site nav a { color: var(--muted); margin-right: 14px; font-size: 14px; }
/* ハンバーガーボタン（スマホのみ表示。既定は非表示） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px;
  margin-left: auto; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* 主要導線タブ（ヘッダー下段に常時表示。ハンバーガーを開かずに新着/女優/素人へ行ける） */
header.site .hero-nav {
  display: flex; width: 100%; flex-basis: 100%; gap: 8px; margin-top: 10px;
}
header.site .hero-nav a {
  flex: 1; margin-right: 0; text-align: center; font-size: 14px; font-weight: 600;
  color: var(--text); padding: 9px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); white-space: nowrap;
}
header.site .hero-nav a:hover { text-decoration: none; border-color: var(--accent); }
header.site .hero-nav a.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
/* 気になる（★のみ）。他タブと区別するため黄色系。件数バッジがあれば横に小さく出る */
header.site .hero-nav a.hero-fav {
  flex: 0 0 auto; min-width: 48px; color: var(--star); font-size: 15px;
}
header.site .hero-nav a.hero-fav:hover { border-color: var(--star); }
header.site .hero-nav a.hero-fav.active {
  color: #14121a; background: var(--star); border-color: var(--star);
}
header.site .hero-nav a.hero-fav #fav-count { font-size: 12px; font-weight: 600; }
main {
  max-width: var(--appw); margin: 0 auto; padding: 24px 20px 60px;
  background: var(--bg); min-height: 60vh;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
h2.section { border-left: 4px solid var(--accent); padding-left: 10px; margin: 28px 0 16px; }
.muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card .thumb { position: relative; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #2a2533; display: block; }
.badge-pre {
  position: absolute; top: 8px; left: 8px;
  background: #f0a000; color: #1a1206; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .02em;
}
.pre-label { color: #f0a000; }
/* ランキング順位バッジ（素人ランキング）。1〜3位だけ金色で強調 */
.badge-rank {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  min-width: 26px; text-align: center;
  background: rgba(20,16,28,0.85); color: #fff; font-size: 13px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.badge-rank.top { background: var(--star, #f0c000); color: #1a1206; border-color: transparent; }
/* 順位バッジがある場合は「予約」バッジを右へ逃がす（重なり防止） */
.badge-rank + .badge-pre { left: auto; right: 8px; }
.rank-note { margin: -6px 0 12px; font-size: 12px; }
/* サンプルは大きめ画像を小さく表示（ダウンスケール）してジャギを防ぐ */
.preview-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.preview-strip a { flex: 0 0 auto; line-height: 0; }
.preview-strip img { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; background: #2a2533; }
.card .body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .title { font-size: 13px; line-height: 1.4; min-height: 2.8em; }
.card .meta { font-size: 11px; color: var(--muted); }
.card .cast { font-size: 12px; color: var(--muted); line-height: 1.5; }
.card .cast-link {
  display: inline-block; background: rgba(224,70,124,0.12); border: 1px solid rgba(224,70,124,0.35);
  border-radius: 4px; padding: 1px 7px; margin: 1px 0; color: var(--accent); font-weight: 600;
}
.card .cast-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.card .btn {
  margin-top: auto; text-align: center; background: var(--accent); color: #fff;
  padding: 7px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
/* 女優ページ等の縦1列リスト（サムネ｜情報 の2カラム） */
.row-list { display: flex; flex-direction: column; gap: 12px; }
.item-row {
  display: flex; gap: 14px; align-items: stretch; min-height: 215px;
  background: #221e2c; border: 1px solid #4a4360; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.item-row:hover { border-color: var(--accent); }
.row-thumb { flex: 0 0 340px; position: relative; display: block; }
.row-thumb img {
  /* 作品ジャケットは横長。全体が見えるよう contain で収める（左右切れ防止）。
     行の高さいっぱいに伸ばして下の余白を埋める。 */
  width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
  background: #000; display: block;
}
.row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* 省略せず全文を折り返して表示 */
.row-title { font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.row-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.row-cast { font-size: 12px; line-height: 2.1; overflow-wrap: anywhere; }
/* アウトライン（ゴースト）ピル型ボタン */
.row-cast .cast-link {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 5px 16px; margin: 2px 6px 2px 0;
  font-size: 13px; font-weight: 600;
}
.row-cast .cast-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.cast-more { color: var(--muted); font-size: 12px; }
.btn-sm {
  align-self: flex-start; margin-top: 2px; background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.btn-sm:hover { text-decoration: none; opacity: .9; }
.chips a {
  display: inline-block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin: 0 6px 8px 0; font-size: 13px; color: var(--text);
}
.chips a[hidden] { display: none; }
/* メーカー一覧：ラベル+ジャンルタグのフィルター（クリックで該当メーカーのみ表示） */
.maker-filter { margin: 8px 0 20px; }
.maker-filter > p { margin: 0 0 10px; }
.mf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.mf-label {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted, #8a8398);
  min-width: 6.5em; padding-right: 6px;
}
.mf-tag {
  display: inline-block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text);
  cursor: pointer; font-family: inherit; line-height: 1.4;
}
.mf-tag:hover { border-color: var(--accent); }
.mf-tag.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.mf-tag.active .muted { color: #fff; opacity: .85; }
.mf-all { margin-bottom: 6px; }
.mf-count { margin: 10px 0 0; min-height: 1em; font-size: 13px; }
.profile { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #2a2533; }
/* 女優一覧（かなバケット）: 2文字目の行ごとの小見出し＋サムネ付きグリッド */
.subhead { font-size: 15px; margin: 24px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.actress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 8px; }
.actress-grid .a-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; color: var(--text); }
.actress-grid .a-item:hover { border-color: var(--accent); text-decoration: none; }
.actress-grid img, .actress-grid .a-noimg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #2a2533; flex: 0 0 72px; }
.actress-grid .a-noimg { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #8a8398; }
.actress-grid .a-name { font-size: 13px; line-height: 1.35; }
footer.site {
  max-width: var(--appw); margin: 0 auto;
  border-top: 1px solid var(--line); background: var(--panel);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 24px 20px; font-size: 13px; color: var(--muted);
}
footer.site .inner { margin: 0 auto; }
footer.site a { color: var(--muted); margin-right: 14px; }
.credit-box {
  margin-top: 18px; padding: 12px; background: #16141d; border: 1px dashed var(--line);
  border-radius: 8px; font-size: 12px; color: var(--muted);
}
.credit-min { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.credit-min a { margin-right: 8px; }

/* ===== 統一作品カード：リスト / サムネ 切替 ===== */
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 24px 0 12px;
}
.feed-head .section { margin: 0; }
.feed-toolbar { display: flex; justify-content: flex-end; margin: 8px 0 12px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-toggle button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); color: var(--muted); border: 0; padding: 7px 16px;
  font-size: 13px; cursor: pointer;
}
.view-toggle button svg { display: block; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.active { background: var(--accent); color: #fff; }

/* --- リスト表示（標準）：横並び大カード --- */
.feed.view-list .cards { display: flex; flex-direction: column; gap: 12px; }
.feed.view-list .u-item {
  display: flex; gap: 14px; align-items: stretch; min-height: 215px;
  background: #221e2c; border: 1px solid #4a4360; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.feed.view-list .u-item:hover { border-color: var(--accent); }
.feed.view-list .u-thumb { flex: 0 0 340px; position: relative; display: block; }
.feed.view-list .u-thumb img {
  width: 100%; height: 100%; object-fit: contain; background: #000;
  border-radius: 6px; display: block;
}
.feed.view-list .u-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feed.view-list .u-title { font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.feed.view-list .u-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.feed.view-list .u-cast { font-size: 12px; line-height: 2.1; overflow-wrap: anywhere; }
.feed.view-list .u-cast .cast-link {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 999px; padding: 5px 16px;
  margin: 2px 6px 2px 0; font-size: 13px; font-weight: 600;
}
.feed.view-list .u-cast .cast-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.feed.view-list .u-samples { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.feed.view-list .u-samples a { line-height: 0; }
.feed.view-list .u-samples img {
  width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; background: #2a2533;
}
.feed.view-list .u-btn {
  align-self: flex-start; margin-top: 2px; background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.feed.view-list .u-btn:hover { opacity: .9; text-decoration: none; }

/* --- サムネ表示：縦型グリッドカード --- */
.feed.view-grid .cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.feed.view-grid .u-item {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.feed.view-grid .u-thumb { position: relative; display: block; }
.feed.view-grid .u-thumb img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #2a2533; display: block;
}
.feed.view-grid .u-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feed.view-grid .u-title { font-size: 13px; line-height: 1.4; }
.feed.view-grid .u-meta { font-size: 11px; color: var(--muted); }
.feed.view-grid .u-cast { font-size: 12px; color: var(--muted); line-height: 1.6; }
.feed.view-grid .u-cast .cast-link {
  display: inline-block; background: rgba(224,70,124,0.12); border: 1px solid rgba(224,70,124,0.35);
  border-radius: 4px; padding: 1px 7px; margin: 1px 0; color: var(--accent); font-weight: 600; font-size: 11px;
}
.feed.view-grid .u-cast .cast-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.feed.view-grid .u-samples { display: none; }   /* サムネモードはサンプル非表示 */
.feed.view-grid .u-btn {
  margin-top: auto; text-align: center; background: var(--accent); color: #fff;
  padding: 7px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
.feed.view-grid .u-btn:hover { opacity: .9; text-decoration: none; }

/* 年齢確認ゲート */
.age-gate {
  position: fixed; inset: 0; background: rgba(8,6,12,0.97); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  max-width: 440px; padding: 32px 28px; text-align: center;
}
.age-gate h2 { margin-top: 0; }
.age-gate .actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.age-gate button, .age-gate a.enter {
  border: 0; border-radius: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.age-gate .enter { background: var(--accent); color: #fff; }
.age-gate .leave { background: #3a3447; color: var(--text); text-decoration: none; }
/* ===== サジェスト検索（女優一覧＝女優名 / 素人一覧＝作品名）。static/js/suggest.js 共通 ===== */
.suggest { position: relative; margin: 4px 0 16px; }
.suggest-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px;
}
.suggest-field:focus-within { border-color: var(--accent); }
.suggest-icon { font-size: 14px; opacity: .7; }
.suggest input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 16px; padding: 11px 0;  /* 16px未満だとiOSで拡大される */
}
.suggest input::placeholder { color: #6f6883; }
.suggest input::-webkit-search-cancel-button { filter: grayscale(1) brightness(2); }
.suggest-status { margin: 6px 0 0; font-size: 12px; min-height: 1em; }
.suggest-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px;
  list-style: none; max-height: 60vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.suggest-list a {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px;
  color: var(--text);
}
.suggest-list a:hover, .suggest-list a.active { background: #2a2533; text-decoration: none; }
.suggest-list .sg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suggest-list .sg-name {
  font-size: 14px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-list .sg-sub {
  font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 女優候補は顔の丸サムネ、素人作品候補はパッケージ画像（正方形）の角丸サムネ */
.suggest-list .as-face {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: #2a2533; flex: 0 0 44px;
}
.suggest-list .as-noimg {
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: #8a8398;
}
.suggest-list .ws-thumb {
  width: 48px; height: 48px; border-radius: 6px; object-fit: cover;
  background: #2a2533; flex: 0 0 48px;
}
.kana-nav { margin: 4px 0 18px; }
.kana-nav .kana-rows, .kana-nav .kana-chars { display: flex; flex-wrap: wrap; gap: 6px; }
.kana-nav .kana-chars {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.kana-nav a, .kana-nav .disabled {
  display: inline-block; min-width: 38px; text-align: center;
  padding: 5px 10px; border-radius: 6px; font-size: 14px; border: 1px solid var(--line);
}
.kana-nav a { background: var(--panel); color: var(--text); }
.kana-nav a:hover { border-color: var(--accent); text-decoration: none; }
.kana-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.kana-nav .disabled { color: #5a5468; background: transparent; }
.date-index {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 22px; padding: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
}
.date-index a {
  font-size: 13px; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); background: #221e2c;
}
.date-index a:hover { border-color: var(--accent); text-decoration: none; }
.date-head {
  margin: 26px 0 12px; font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
  scroll-margin-top: 70px;
}
.pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 32px 0 8px; font-size: 14px;
}
.pager a {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 16px; color: var(--text);
}
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager .disabled { color: #5a5468; padding: 8px 16px; }
.pager .cur { color: var(--muted); }
.pager-hint { text-align: center; margin: 6px 0 0; font-size: 11px; color: #5a5468; }
/* 物理キーボードの無い端末では左右キーのヒントを隠す */
@media (hover: none) and (pointer: coarse) { .pager-hint { display: none; } }
.legal { max-width: 760px; }
.legal h3 { margin-top: 26px; }

/* 関連作レコメンド（作品特徴ベース） */
.reco{margin-top:28px;border-top:1px solid #e5e5e5;padding-top:16px}
.reco-note{font-size:12px;margin:-4px 0 12px}

/* 「気になる」: 本文下のアクション行に置く（画像・テキストに重ねない）＋ナビのバッジ */
.u-actions { display: flex; align-items: center; gap: 10px; }
.feed.view-grid .u-actions { margin-top: auto; }       /* カード下端に揃える */
.feed.view-grid .u-btn { margin-top: 0; flex: 1 1 auto; }  /* 行内で「作品を見る」を伸ばす */
.feed.view-list .u-actions { margin-top: 2px; }
.fav-btn {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 0; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  color: var(--muted); font-size: 18px; transition: color .1s ease, border-color .1s ease;
}
.fav-btn:hover { border-color: var(--accent); }
.fav-btn.on { color: var(--star); border-color: var(--star); }   /* オン=金色の星 */

/* ===== ジャンル絞り込みフィルター（女優一覧ページ） ===== */
.genre-filter { margin: 4px 0 18px; }
.gf-bar { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gchip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none;
  border: 1.5px solid #4a4360; background: #221e2c; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.gchip .lbl { color: #fff; }
.gchip .tick {
  width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid #6a6380; font-size: 10px; color: #fff;
}
.gchip[data-state="include"] { background: var(--accent); border-color: var(--accent); }
.gchip[data-state="include"] .tick { border-color: #fff; background: #fff; color: var(--accent); }
.gchip[data-state="exclude"] { background: transparent; border-color: var(--accent); }
.gchip[data-state="exclude"] .lbl { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.gchip[data-state="exclude"] .tick { border-color: var(--accent); color: var(--accent); }
.gf-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.gf-clear { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.gf-empty { color: var(--muted); font-size: 13px; padding: 14px 2px 0; }

/* ===== 作品が少ない女優（折りたたみ枠） ===== */
.few-actresses { margin: 20px 0 8px; border-top: 1px solid var(--line); }
.few-actresses > summary {
  cursor: pointer; list-style: none; padding: 12px 2px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.few-actresses > summary::-webkit-details-marker { display: none; }
.few-actresses > summary::before { content: "▸"; color: var(--muted); font-size: 12px; }
.few-actresses[open] > summary::before { content: "▾"; }
.few-actresses > summary:hover { color: var(--accent); }

/* ===== 女優ページ 出演作品/オススメ タブ ===== */
.a-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.a-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font-weight: 600; font-size: 15px; padding: 10px 16px; cursor: pointer; margin-bottom: -1px; }
.a-tab .a-tab-n { color: var(--muted); font-weight: 400; }
.a-tab-on { color: var(--text); border-bottom-color: var(--accent); }
.a-tab-on .a-tab-n { color: var(--accent); }
.a-panel[hidden] { display: none; }

/* ===== 作品タグ絞り込み（女優詳細ページ上部）。.gchip/.gf-* を流用 ===== */
.work-filter { margin: 4px 0 18px; }
.work-filter .gchip { max-width: 100%; }
.work-filter .gchip .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* チップ内の作品数。ラベルが省略されても数値は必ず残す（flex で縮ませない）。 */
.gchip .gchip-n { flex: 0 0 auto; margin-left: -2px; color: #b7b0c8; font-weight: 400; font-size: 12px; }
.gchip[data-state="include"] .gchip-n { color: #fff; }
/* 絞り込みがページ内限定であることの注釈（ページ送りありの女優ページのみ）。 */
.wf-note { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.wf-more { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; margin-top: 10px; }
.gchip[hidden] { display: none; }

/* ===== スマートフォン最適化（SP UIを全幅で常時適用。横並びカードの崩れ対策） =====
   スマホ特化サイトのため、PC幅でも常にこの単一カラムレイアウトを適用する
   （コンテンツは --appw のカラムに中央固定されるので、画面幅に関係なくSP表示になる）。 */
@media (min-width: 0px) {
  main { padding: 16px 14px 48px; }
  header.site { padding: 12px 14px; }
  header.site .inner { gap: 8px 12px; flex-wrap: wrap; }
  /* ハンバーガー: nav を折りたたみ、開いたら縦並びのリスト */
  .nav-toggle { display: inline-flex; }
  header.site #site-nav { display: none; width: 100%; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: 6px; }
  header.site #site-nav.open { display: flex; }
  header.site #site-nav a { margin-right: 0; font-size: 15px; padding: 12px 6px; border-top: 1px solid var(--line); white-space: nowrap; }

  /* リスト表示の作品カード：横並び(サムネ340px固定)だと本文が潰れるため縦積みに切替 */
  .feed.view-list .u-item, .row-list .item-row {
    flex-direction: column; min-height: 0; gap: 10px;
  }
  .feed.view-list .u-thumb, .row-list .row-thumb { flex: 0 0 auto; width: 100%; }
  /* 大サムネはやや縦長(4:3)に。ジャケット全体を見せるため contain 維持 */
  .feed.view-list .u-thumb img, .row-list .row-thumb img {
    height: auto; aspect-ratio: 4 / 3; object-fit: contain;
  }
  /* 小サムネ(サンプル)は 2×2 の大きめグリッドに（5枚目以降は隠して2×2を保つ） */
  .feed.view-list .u-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .feed.view-list .u-samples a { line-height: 0; }
  .feed.view-list .u-samples a:nth-child(n+5) { display: none; }
  .feed.view-list .u-samples img { width: 100%; aspect-ratio: 16 / 10; }
  /* サムネ表示・共通グリッドは端末幅で2列を確保 */
  .feed.view-grid .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}
