/* エロクリ — 辞典のように引きやすく、情報の密度が高いUI */
:root {
  --bg: #ffffff;
  --bg2: #f5f4f1;
  --ink: #1c1c1c;
  --sub: #666461;
  --line: #e4e1db;
  --acc: #d6224f;
  --acc-ink: #ffffff;
  --link: #b8173f;
  --z-header: 10;
  --z-suggest: 20;
  --z-gate: 50;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515; --bg2: #1f1f1f; --ink: #ebebeb; --sub: #a09d98; --line: #2f2e2c;
    --acc: #e8335f; --link: #ff7396;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(14px, 2.5vw, 40px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: var(--z-gate); background: var(--bg); padding: 8px; }
.muted { color: var(--sub); }
.center { text-align: center; }
.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }

/* ヘッダー */
.hd { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-header); }
.hd-in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; flex: none; }
.logo:hover { text-decoration: none; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo small { font-size: 11px; font-weight: 400; color: var(--sub); }
.hd .qform { flex: 1; max-width: 620px; margin-left: auto; }
.gnav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); padding: 6px 0 8px; white-space: nowrap; border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--ink); text-decoration: none; }
.gnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--acc); font-weight: 600; }

/* 検索フォーム */
.qform { position: relative; display: flex; }
.qform input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-right: 0;
  border-radius: 4px 0 0 4px; background: var(--bg); font-size: 16px;
}
.qform input:focus { outline: none; border-color: var(--ink); }
.qform button { height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 600; }
.qform-big input, .qform-big button { height: 52px; }
.qform-big button { padding: 0 22px; }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-suggest); margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  max-height: 70vh; overflow-y: auto;
}
.suggest a { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; color: var(--ink); }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--bg2); text-decoration: none; }
.suggest small { color: var(--sub); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .all a { color: var(--link); font-size: 14px; }

main { padding-bottom: 48px; min-height: 60vh; }

/* パンくず・見出し */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 12px 0 0; font-size: 12px; color: var(--sub); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--sub); }
.ph { padding: 16px 0 12px; }
.ph h1 { font-size: 24px; }
.ph p { margin: 6px 0 0; color: var(--sub); }
.ph .btn { margin-top: 8px; }

/* ホーム */
.home-search { padding: 36px 0 12px; }
.home-search h1 { font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -.03em; }
.home-search .lead { color: var(--sub); margin: 8px 0 16px; }
.home-search .qform { max-width: 840px; }
.block { padding: 36px 0 0; }
.bh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.bh h2 { font-size: clamp(18px, 1.5vw, 23px); }
.block .bh:not(:first-child) { margin-top: 20px; }
.more { font-size: 13px; white-space: nowrap; }
.more::after { content: " ›"; }
.cols { display: grid; gap: 0 40px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.region { margin: 0 0 10px; }
.region h3 { font-size: 12px; color: var(--sub); font-weight: 600; margin: 0 0 4px; }
.about-box { margin-top: 32px; padding: 20px; background: var(--bg2); border-radius: 4px; }
.about-box h2 { font-size: 16px; }
.facts-list { margin: 8px 0; padding-left: 1.2em; }
.about-box p { margin: 0; font-size: 13px; color: var(--sub); }
.empty { color: var(--sub); padding: 12px 0; margin: 0; }

/* チップ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); font-size: 14px; background: var(--bg);
}
.chips a:hover { border-color: var(--ink); text-decoration: none; }
.chips span { color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.chips-sm a { min-height: 40px; padding: 6px 10px; font-size: 13px; }
.chips-kana a { min-width: 64px; justify-content: center; }
.chips-year a { min-width: 92px; }

/* 写真から探せる人物一覧 */
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 18px; list-style: none; margin: 0; padding: 0; }
.rows li { min-width: 0; }
.row { display: flex; flex-direction: column; align-items: stretch; color: var(--ink); border-radius: 10px; min-width: 0; }
.row:hover { text-decoration: none; }
.thumb { width: 100%; aspect-ratio: 4 / 5; background: var(--bg2); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--sub); font-weight: 700; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .2s ease; }
@media (hover: hover) { .row:hover .thumb img { transform: scale(1.035); } .row:hover strong { color: var(--link); } }
.row-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-top: 10px; }
.row-name strong { font-size: 16px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.row-name small { color: var(--sub); font-size: 11px; line-height: 1.5; }
.row-meta { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 12px; line-height: 1.8; color: var(--sub); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 3px; }
.row-meta b { font-weight: 400; margin: 0 5px; color: var(--line); }

/* ページ送り */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 24px 0 0; font-variant-numeric: tabular-nums; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.pager span { border: 0; color: var(--sub); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.daynav { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 0; font-size: 14px; }

/* 50音 */
.kana-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
@media (min-width: 720px) { .kana-nav { grid-template-columns: repeat(10, 1fr); } }
.kana-nav a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.kana-nav a:hover { border-color: var(--ink); text-decoration: none; }
.kana-nav strong { font-size: 20px; }
.kana-nav span { font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* 誕生日カレンダー */
.months { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.month h2 { font-size: 15px; margin: 0 0 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.days a, .days .off { display: flex; flex-direction: column; align-items: center; padding: 3px 0; border-radius: 3px; font-size: 13px; line-height: 1.3; }
.days a { background: var(--bg2); color: var(--ink); }
.days a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.days a span { font-size: 10px; color: var(--sub); }
.days a:hover span { color: inherit; }
.days .off { color: var(--line); }
.days a.is-today { outline: 2px solid var(--acc); outline-offset: -2px; }

/* 人物ページ */
.pf { display: grid; gap: 24px; padding: 24px 0 8px; align-items: start; }
@media (min-width: 720px) { .pf-has-photo { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 40px; } }
.pf-photo { margin: 0; width: 100%; max-width: 420px; }
.pf-photo img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; background: var(--bg2); }
.pf-photo figcaption { font-size: 11px; color: var(--sub); margin-top: 6px; line-height: 1.5; }
.pf h1 { font-size: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pf h1 small { font-size: 14px; font-weight: 400; color: var(--sub); }
.pf-lead { margin: 10px 0 16px; }
.pf-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pf-table th, .pf-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-table th { width: 6.5em; color: var(--sub); font-weight: 400; font-size: 14px; }
.pf-table td a + a { margin-left: 4px; }
.pf-h { font-size: 15px; margin: 24px 0 8px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.lk { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); line-height: 1.4; position: relative; }
.lk:hover { border-color: var(--ink); text-decoration: none; }
.lk b { font-size: 14px; }
.lk span { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10px; border: 1px solid var(--sub); color: var(--sub); padding: 0 4px; border-radius: 2px; }
.pr-note { font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.pf-src { font-size: 12px; color: var(--sub); margin: 20px 0 0; }

/* 条件検索 */
.filters { padding: 16px; background: var(--bg2); border-radius: 4px; margin: 0 0 16px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > label, .f legend { font-size: 12px; color: var(--sub); padding: 0; }
.f input[type="search"], .f select { height: 48px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font-size: 16px; width: 100%; }
.f-more { margin-top: 12px; }
.f-more summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 10px 0; min-height: 44px; }
.f-more summary span:not(:empty) { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--acc-ink); background: var(--acc); padding: 1px 7px; border-radius: 10px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 10px; }
@media (min-width: 720px) { .f-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.f-has { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.f-has legend { width: 100%; margin-bottom: 4px; }
.f-has label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; }
.f-has input { width: 18px; height: 18px; accent-color: var(--acc); }
.f-act { justify-content: flex-end; }
@media (min-width: 720px) { .f-has { grid-column: span 2; } }
.count { font-size: 14px; color: var(--sub); margin: 0 0 8px; font-variant-numeric: tabular-nums; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn-main { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-main:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* 文章ページ */
.prose { max-width: 720px; padding: 16px 0; }
.prose h1 { font-size: 24px; margin-bottom: 12px; }
.prose h2 { font-size: 17px; margin: 28px 0 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.prose tbody th { color: var(--sub); font-weight: 400; width: 8em; }
.table-wrap { overflow-x: auto; }

/* 出演作品（FANZA） */
.bh h2 small { font-size: 12px; font-weight: 400; color: var(--sub); margin-left: 4px; font-variant-numeric: tabular-nums; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; list-style: none; margin: 0; padding: 0; }
.wk { display: flex; flex-direction: column; gap: 10px; padding: 10px; min-width: 0; background: var(--bg2); border-radius: 12px; }
.wk[hidden] { display: none; }
.wk-img { display: block; aspect-ratio: 3 / 4; border-radius: 7px; overflow: hidden; }
.wk-img img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.wk-body { min-width: 0; font-size: 14px; }
.wk-body p { margin: 0; }
.wk-code { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-code time { font-weight: 400; font-size: 11px; color: var(--sub); }
.wk-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); margin: 5px 0 7px; line-height: 1.6; overflow-wrap: anywhere; }
.wk-cast, .wk-maker { color: var(--sub); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.works-hit { margin: 12px 0 4px; }
.works-hit .wk-cast { white-space: normal; font-size: 13px; color: var(--ink); }
.work-summary { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.work-cover { display: block; background: var(--bg2); border-radius: 12px; overflow: hidden; }
.work-cover img { width: 100%; height: auto; object-fit: contain; }
.work-summary table { width: 100%; border-collapse: collapse; }
.work-summary th, .work-summary td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.work-summary th { width: 7em; color: var(--sub); font-weight: 400; }
.works-more { width: 100%; margin-top: 20px; }
.btn .pr { position: static; display: inline-block; }
.pr-note .pr { position: static; display: inline-block; margin-right: 6px; }
.pf-photo-fz img { aspect-ratio: 1; width: 100%; height: auto; }
.codes th[scope="row"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.codes td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sub); }
.codes td:nth-child(3) { min-width: 8em; }
.credit { font-size: 12px; }
.suggest .wk-opt span { font-weight: 700; font-variant-numeric: tabular-nums; }
.note { margin-top: 32px; padding: 16px; background: var(--bg2); border-radius: 4px; font-size: 14px; }
.note h2 { font-size: 15px; }
.note p { margin: 6px 0 0; }

/* フッター */
.ft {  background: var(--bg2); padding: 24px 0 32px; font-size: 13px; color: var(--sub); }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.ft nav a { color: var(--ink); }
.ft p { margin: 12px 0 0; }

/* スマホを基準に、写真とタップ領域を確保する */
@media (max-width: 719px) {
  .hd { position: sticky; }
  .hd-in { flex-wrap: nowrap; gap: 10px; min-height: 56px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo img { width: 24px; height: 24px; }
  .logo small { display: none; }
  .hd .qform { flex: 1; width: 0; max-width: none; }
  .hd .qform input { padding: 0 8px; }
  .hd .qform button { padding: 0 10px; font-size: 13px; }
  .gnav { gap: 22px; font-size: 13px; }
  .home-search { padding-top: 24px; }
  .home-search h1 { font-size: 25px; }
  .home-search .lead { font-size: 13px; line-height: 1.8; }
  .block { padding-top: 28px; }
  .bh { align-items: center; gap: 8px; margin-bottom: 12px; }
  .bh h2 { font-size: 18px; }
  .bh h2 small { display: block; margin: 4px 0 0; }
  .more { font-size: 12px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .row-name strong { font-size: 15px; }
  .row-meta { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 11px; }
  .row-meta b { margin: 0 3px; }
  .pf { gap: 16px; padding-top: 20px; }
  .pf-main { display: contents; }
  .pf h1 { grid-row: 1; font-size: 26px; }
  .pf-photo { grid-row: 2; justify-self: center; max-width: 420px; }
  .pf-photo-fz { max-width: 340px; }
  .pf-main > p, .pf-main > table, .pf-main > h2, .pf-main > ul { margin-top: 0; margin-bottom: 0; }
  .pf-main > .pf-src { margin-top: 8px; }
  .pf-table th, .pf-table td { padding: 10px 0; }
  .pf-table th { width: 6em; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk { min-height: 64px; }
  .filters { padding: 14px; border-radius: 10px; }
  .f-grid { gap: 14px 12px; }
  .f > label, .f legend { font-size: 13px; }
  .f-has { gap: 4px 14px; }
  .f-act { grid-column: 1 / -1; }
  .f-act .btn { width: 100%; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .wk { padding: 8px; gap: 8px; border-radius: 10px; }
  .wk-title { font-size: 12px; -webkit-line-clamp: 3; }
  .wk-code { font-size: 12px; }
  .wk-code time { display: block; width: 100%; }
  .work-summary { grid-template-columns: 1fr; gap: 20px; }
  .work-cover { width: min(100%, 380px); justify-self: center; }
  .pager { gap: 6px; }
  .pager a { min-width: 44px; height: 44px; }
  .ft nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .codes { min-width: 620px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* よくある質問 */
.faq dl { margin: 0;  }
.faq dt { font-weight: 700; padding: 12px 2px 4px; text-wrap: balance; }
.faq dd { margin: 0; padding: 0 2px 12px; border-bottom: 1px solid var(--line); color: var(--sub); text-wrap: pretty; }

.qform:focus-within { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 4px; }
.qform input:focus, .qform button:focus-visible { outline: none; }
.f select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23808080' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

.row-meta > span { white-space: nowrap; }
@media (max-width: 719px) {
  .home-people .rows { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; gap: 12px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .home-people .rows > li { scroll-snap-align: start; }
}

/* ===== 2026-11 リニューアル：一覧の密度・人物ページの数字・回遊のための部品 ===== */
:root { --card: #ffffff; --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px -6px rgb(0 0 0 / .12); --acc-soft: #fdebf0; --ok: #1f8a4c; --warn: #b26a00; }
@media (prefers-color-scheme: dark) { :root { --card: #1d1d1d; --shadow: 0 1px 2px rgb(0 0 0 / .4); --acc-soft: #3a1720; --ok: #4cc27f; --warn: #e0a440; } }

/* ヘッダー：お気に入り */
.hd-fav { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--ink); border-radius: 50%; }
.hd-fav:hover { background: var(--bg2); }
.hd-fav span { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.hd-in > .logo + .hd-fav { margin-left: auto; }

/* ホームのヒーロー */
.hero { padding: clamp(24px, 4vw, 48px) 0 8px; }
.hero h1 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.03em; max-width: 22em; }
.hero .lead { color: var(--sub); margin: 10px 0 18px; max-width: 46em; }
.hero .qform { max-width: 840px; box-shadow: var(--shadow); border-radius: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.quick a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--acc-soft); color: var(--link); font-size: 13px; font-weight: 600; }
.quick a:hover { background: var(--acc); color: var(--acc-ink); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 22px 0 0; max-width: 840px; }
.stats div { padding: 12px 14px; border-radius: 10px; background: var(--bg2); }
.stats dt { font-size: 12px; color: var(--sub); }
.stats dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats small { font-size: 12px; font-weight: 400; margin-left: 2px; color: var(--sub); }

/* カード：順位・NEW・補足 */
.thumb { position: relative; box-shadow: var(--shadow); }
.thumb .rank, .thumb .new { position: absolute; top: 8px; font-style: normal; font-size: 12px; font-weight: 800; line-height: 1; padding: 6px 8px; border-radius: 6px; }
.thumb .rank { left: 8px; background: rgb(0 0 0 / .72); color: #fff; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.thumb .rank-top { background: var(--acc); }
.thumb .new { right: 8px; background: #ffd400; color: #1c1c1c; letter-spacing: .04em; }
.row-note { font-size: 11px; color: var(--sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rows-scroll > li { scroll-snap-align: start; }

/* 一覧の要約・見出し */
.sum { margin: 10px 0 0; padding: 10px 14px; background: var(--bg2); border-radius: 8px; color: var(--ink) !important; font-size: 14px; }
.ph-sub { color: var(--sub); margin: -4px 0 14px; }
.sub-h { font-size: 16px; margin: 24px 0 10px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 0; font-size: 14px; }
.ph + .chips, .ph + .chips-sm { margin-bottom: 16px; }
.chips-tag a { border-color: transparent; background: var(--bg2); font-weight: 600; }
.chips-tag a:hover { background: var(--acc-soft); }

/* 体型・特徴の目次 */
.tag-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.tag-hub a { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.tag-hub a:hover { text-decoration: none; outline: 2px solid var(--acc); }
.tag-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.tag-faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; border-radius: 6px; background: var(--bg2); }
.tag-hub strong { font-size: 16px; }
.tag-hub small { color: var(--sub); font-size: 12px; }

/* 人物ページ */
.pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pf-head h1 { margin-right: auto; }
.pf-badges { display: flex; gap: 6px; margin: 0; }
.pf-badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--sub); }
.badge-new { background: #ffd400; color: #1c1c1c; }
.badge.act-on, .act-on { color: var(--ok); }
.badge.act-mid, .act-mid { color: var(--warn); }
.badge.act-off, .act-off { color: var(--sub); }
.pf-actions { display: flex; gap: 8px; margin: 0; width: 100%; }
.pf-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-fav[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-fav[aria-pressed="true"] svg { fill: currentColor; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 16px 0 0; }
.pf-stats div { padding: 10px 12px; border-radius: 10px; background: var(--bg2); min-width: 0; }
.pf-stats dt { font-size: 11px; color: var(--sub); }
.pf-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-stats .u { font-size: 12px; font-weight: 600; margin-left: 1px; }
.pf-stats small { display: block; font-size: 11px; font-weight: 400; color: var(--sub); letter-spacing: 0; }
.pf-lead { margin: 16px 0 12px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pf-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.pf-tags a:hover { border-color: var(--acc); color: var(--link); text-decoration: none; }
.pf-tags a.hot { background: #ffd400; border-color: #ffd400; color: #1c1c1c; font-weight: 700; }
.toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 8px; padding: 2px 0; }
.toc a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; background: var(--bg2); color: var(--ink); font-size: 13px; font-weight: 600; }
.toc a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.pf-table td small { margin-left: 4px; font-size: 11px; }
section[id], article[id] { scroll-margin-top: 120px; }

/* デビュー作・最新作 */
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.hl > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 12px; background: var(--bg2); }
.hl-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--bg); border-radius: 6px; }
.hl-k { margin: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--link); }
.hl p { margin: 0; }
.wfilter { margin: 0 0 14px; }
.wfilter input { width: 100%; max-width: 460px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 16px; }
.codes-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.codes-box summary::-webkit-details-marker { display: none; }
.codes-box summary::after { content: "開く ▾"; margin-left: auto; font-size: 13px; color: var(--link); white-space: nowrap; }
.codes-box[open] summary::after { content: "閉じる ▴"; }
.codes-box summary h2 { font-size: clamp(18px, 1.5vw, 23px); }
.codes-box table { margin-top: 8px; width: 100%; border-collapse: collapse; font-size: 14px; }
.codes-box th, .codes-box td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }

/* スマホ下部のタブ */
.tabbar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; font-size: 10px; color: var(--sub); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar a[aria-current="page"] { color: var(--acc); font-weight: 700; }
  .hd-fav { display: none; }
  .rows-scroll { grid-auto-columns: 42%; gap: 12px; }
  .hero h1 { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats dd { font-size: 19px; }
  .pf-head { grid-row: 1; }
  .pf-head h1 { grid-row: auto; }
  .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pf-stats div { padding: 8px 10px; }
  .pf-stats dd { font-size: 17px; }
  .hl > li { grid-template-columns: 96px minmax(0, 1fr); }
  .codes-box .codes { min-width: 0; }
  .tag-hub { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tag-hub a { padding: 8px; }
  .tag-hub strong { font-size: 14px; }
}
@media (max-width: 719px) {
  main > .chips-sm { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 16px; padding: 0 14px 4px; }
  main > .chips-sm::-webkit-scrollbar { display: none; }
  main > .chips-sm li { flex: none; }
}
