:root {
  --fs: 20px;
  --nav-h: 76px;
  --serif: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  --focus: #1a5fd0;
  /* 昼：あたたかい生成り地 × 深紅の帯 × 紅の主ボタン × 山吹の値札（お祭りの高揚感） */
  --bg: #FFF8F0;
  --field: #FFFFFF;
  --text: #2B1D17;
  --sub: #5E4B42;
  --line: #E9D9CB;
  --soft: #FBEEE2;
  --brand: #A80E2E;      /* ヘッダーの帯・見出しの線：深紅 */
  --on-brand: #FFFFFF;
  --accent: #D3123B;     /* 主ボタン：紅（ここ以外に使わない） */
  --accent-dark: #A80E2E;
  --on-accent: #FFFFFF;
  --accent-soft: #FDE8EC;
  --sale: #C8102E;       /* 価格・期限の文字：紅 */
  --badge-bg: #F7B500;   /* 値札：山吹（いちばん目に入る色） */
  --badge-fg: #2B1D17;
  --on-sale: #2B1D17;
  --gold: #9A6400;
  --gold-soft: #FFF0C2;
  --safe: #1F6B4A;
  --safe-soft: #E7F2EA;
  --rose: #C2185B;
  --rose-soft: #FCE4EE;
  --img-bg: #F1E4D8;
  color-scheme: light;
}
html[data-theme="night"] {
  --bg: #1B1311;
  --field: #261B18;
  --text: #F6ECE4;
  --sub: #CDBDB2;
  --line: #43342D;
  --soft: #2C1F1B;
  --brand: #8C0F28;
  --on-brand: #FFFFFF;
  --accent: #D02A4F;
  --accent-dark: #A81F3E;
  --on-accent: #FFFFFF;
  --accent-soft: #3D1A22;
  --sale: #FF8095;
  --badge-bg: #F7B500;
  --badge-fg: #1B1311;
  --on-sale: #1B1311;
  --gold: #F0C060;
  --gold-soft: #3A2E17;
  --safe: #7FD3A2;
  --safe-soft: #1F2E26;
  --rose: #F48FB1;
  --rose-soft: #3D1E2B;
  --img-bg: #2E221E;
  color-scheme: dark;
}
html[data-size="large"]  { --fs: 24px; }
html[data-size="xlarge"] { --fs: 28px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans);
  font-weight: 400; line-height: 1.75; letter-spacing: .02em;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.pr { font-size: 15px; font-weight: 800; color: var(--text); text-align: center; padding: 6px 16px; background: var(--gold-soft); margin: 0; }
.testmode { background: var(--gold-soft); color: var(--text); font-size: 14px; text-align: center; padding: 6px 16px; margin: 0; }

/* ヘッダー */
header.site { background: var(--brand); color: var(--on-brand); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 var(--badge-bg); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--on-brand); letter-spacing: .06em; }
.size-btn {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  border: 2px solid var(--text); background: var(--bg);
  min-height: 48px; padding: 0 12px; border-radius: 4px;
  font-size: 16px; font-weight: 800; white-space: nowrap;
}
.size-btn .aa { font-size: 20px; line-height: 1; }
.crumb { font-size: .8rem; color: var(--sub); margin: 12px 0 0; }
.crumb a { color: var(--sub); }

h1 { font-family: var(--serif); font-size: 1.35rem; margin: 16px 0 8px; line-height: 1.45; font-weight: 700; }
h2 { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 40px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h2 small { font-size: .75rem; font-weight: 600; color: var(--sub); }
p { margin: 0 0 12px; }
.lead { color: var(--sub); }
.safe { border-top: 1px solid var(--line); padding: 14px 0 0; margin: 24px 0 0; font-size: .9rem; font-weight: 700; color: var(--text); }
.safe a { font-weight: 800; color: var(--safe); }

/* 検索 */
form.search { display: flex; gap: 8px; margin: 16px 0 6px; }
html[data-size="xlarge"] form.search { flex-direction: column; }
form.search input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 14px;
  font: inherit; font-size: 1rem; border: 2px solid var(--text); border-radius: 4px; background: var(--field); color: var(--text);
}
form.search input::placeholder { color: var(--sub); }
form.search button { min-width: 96px; min-height: 60px; border: none; border-radius: 4px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 1rem; cursor: pointer; }
.hint { font-size: .8rem; color: var(--sub); margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--text); border-radius: 4px; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--field); }

/* ジャンルのタイル */
.genres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html[data-size="xlarge"] .genres { grid-template-columns: 1fr; }
.genre { --tone: var(--text); border-left-width: 10px !important; border-left-color: var(--tone) !important; display: flex; flex-direction: column; justify-content: center; min-height: 100px; padding: 12px 16px; text-decoration: none; border: 2px solid var(--line); border-radius: 12px; background: var(--field); box-shadow: 0 1px 0 var(--line); }
.genre:active { background: var(--soft); }
.genre b { font-size: 1.15rem; line-height: 1.3; color: var(--tone); }
.genre.t1 { --tone: var(--tone1); } .genre.t2 { --tone: var(--tone2); } .genre.t3 { --tone: var(--tone3); } .genre.t4 { --tone: var(--tone4); } .genre.t5 { --tone: var(--tone5); } .genre.t6 { --tone: var(--tone6); }
.genre span { font-size: .78rem; color: var(--sub); margin-top: 2px; }
.genre.hot { background: var(--accent-soft); }

/* ボタン */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 64px; padding: 10px 16px; border-radius: 6px; font-size: 1.05rem; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.35; background: var(--accent); color: var(--on-accent); border: none; cursor: pointer; }
.btn:active { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn.ghost:active { background: var(--soft); }
.btn.saved { background: var(--rose-soft); color: var(--rose); border: 2px solid var(--rose); box-shadow: none; }
.btn.free { background: var(--field); color: var(--safe); border: 2px solid var(--safe); box-shadow: none; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn + .btn, .btn + .note + .btn { margin-top: 12px; }
.note { font-size: .8rem; color: var(--sub); margin: 8px 0 0; text-align: center; }
.more { margin-top: 16px; }

/* 作品画像：切り抜かず全体を表示（画像ルール：拡大・縮小のみ可） */
.thumb { width: 100%; aspect-ratio: 3 / 2; background: var(--img-bg); border-radius: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 作品カード：1行に1作品 */
.list { list-style: none; margin: 0; padding: 0; }
.card { border-bottom: 1px solid var(--line); padding: 20px 0; }
.card[hidden] { display: none; }
.card > a.body { display: block; text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.badge { display: inline-block; background: var(--sale); color: var(--on-sale); font-size: 15px; font-weight: 800; padding: 1px 8px; border-radius: 2px; line-height: 1.6; }
.badge.new { background: var(--text); color: var(--bg); }
.card h3 { font-size: 1.05rem; margin: 8px 0 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--sub); font-size: .85rem; margin: 0; }
.stars { color: var(--gold); font-weight: 800; }
.price { font-size: 1.15rem; font-weight: 800; margin: 6px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price .off { color: var(--sale); }
.price s { color: var(--sub); font-weight: 500; font-size: .85rem; }
.price .until { font-size: .8rem; color: var(--sale); font-weight: 700; flex-basis: 100%; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.card-actions .btn { min-height: 60px; }
.heart { min-width: 80px; min-height: 60px; border-radius: 6px; border: 1px solid var(--text); background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.heart svg { width: 26px; height: 26px; }
.heart.on { border-color: var(--rose); color: var(--rose); background: var(--rose-soft); }
.heart.on svg path { fill: currentColor; }

/* 小さい行 */
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: auto 112px 1fr; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; min-height: 96px; }
.row.norank a { grid-template-columns: 112px 1fr; }
.rank { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; width: 44px; text-align: center; }
.rank { color: var(--sub); } .rank.r1, .rank.r2, .rank.r3 { color: var(--gold); }

.row .mini { aspect-ratio: 3 / 2; background: var(--img-bg); border-radius: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.row .mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.row .t { font-size: .9rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .p { font-size: .85rem; font-weight: 800; margin-top: 2px; }
.row .p .off { color: var(--sale); }

/* 並び替え */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--text); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.seg button { display: flex; align-items: center; justify-content: center; min-height: 56px; border: none; background: var(--field); font-weight: 800; font-size: .9rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg-label { font-size: .8rem; color: var(--sub); margin: 12px 0 0; }

/* 作品詳細 */
.pricebox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 16px 0; }
.pricebox .big { font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
.pricebox .big.off { color: var(--sale); }
.pricebox .sub { font-size: .85rem; color: var(--sub); margin: 4px 0 0; }
.pricebox .until { font-size: .9rem; color: var(--sale); font-weight: 800; margin: 4px 0 0; }
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.samples button { padding: 0; border: none; background: var(--img-bg); border-radius: 0; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.samples button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.movie { margin-top: 12px; }
.movie iframe { width: 100%; aspect-ratio: 560 / 360; border: 0; border-radius: 8px; background: #000; display: block; }
dl.info { display: grid; grid-template-columns: 7.5em 1fr; column-gap: 8px; margin: 12px 0 0; border-top: 1px solid var(--line); }
dl.info dt, dl.info dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.info dt { color: var(--sub); font-size: .9rem; }
dl.info dd { font-weight: 700; }
dl.info dd a { font-weight: 800; display: inline-block; margin-right: 10px; min-height: 32px; }

/* 下の固定ナビ */
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--text); padding-bottom: env(safe-area-inset-bottom); }
nav.bottom .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
nav.bottom a, nav.bottom button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); border: none; background: none; text-decoration: none; cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--text); }
nav.bottom a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
nav.bottom svg { width: 28px; height: 28px; }
nav.bottom .count { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 24px; height: 24px; padding: 0 6px; background: var(--rose); color: var(--bg); border-radius: 12px; font-size: 14px; line-height: 24px; text-align: center; }

/* シート・画像ビューア */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 8px 8px 0 0; padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet .inner { max-width: 640px; margin: 0 auto; }
.sheet h2 { margin-top: 0; border: none; padding: 0; display: block; }
.sheet ul { padding-left: 1.2em; margin: 0 0 16px; }
.sheet li { margin-bottom: 6px; }
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.viewer .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.viewer .top b { font-size: 18px; }
.viewer .close { min-height: 56px; padding: 0 18px; border: 1px solid #fff; background: none; color: #fff; border-radius: 4px; font-size: 18px; font-weight: 800; cursor: pointer; }
.viewer .img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.viewer .img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.viewer .nav button { min-height: 64px; border-radius: 4px; border: 1px solid #fff; background: none; color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.viewer .nav button:disabled { opacity: .3; }

/* 設定 */
.sizes { display: grid; gap: 12px; margin: 12px 0; }
.sizes button { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 16px; border: 1px solid var(--text); border-radius: 4px; background: var(--field); font-weight: 800; cursor: pointer; text-align: left; }
.sizes button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* はじめての方へ */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 18px 64px; min-height: 64px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 48px; height: 48px; font-family: var(--serif); color: var(--brand); font-weight: 700; font-size: 34px; display: flex; align-items: center; justify-content: center; }
ol.steps b { display: block; font-size: 1.05rem; }
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 800; position: relative; min-height: 56px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "＋"; position: absolute; right: 4px; top: 14px; font-size: 1.2rem; }
details[open] summary::after { content: "－"; }
details p { padding: 0 0 12px; }
.doc h2 { font-size: 1.05rem; }
.doc p, .doc li { font-size: .95rem; }

.empty { text-align: center; padding: 32px 0 8px; }
.empty b { display: block; font-size: 1.1rem; margin-bottom: 8px; }

footer.site { margin-top: 48px; padding: 20px 0 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
footer.site .links a { display: inline-flex; min-height: 44px; align-items: center; }

/* 年齢確認 */
#agegate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; overflow-y: auto; }
#agegate .wrap { padding: 32px 16px; width: 100%; }
#agegate h1 { font-size: 1.5rem; text-align: center; }
#agegate .btn { margin-top: 16px; }
[hidden] { display: none !important; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); z-index: 40; max-width: 608px; margin: 0 auto; background: var(--text); color: var(--bg); border-radius: 4px; padding: 14px 16px; font-weight: 800; font-size: 18px; text-align: center; }

/* テーマ切り替えボタン */
.themes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 12px 0; }
.themes button { min-height: 72px; border-radius: 4px; border: 1px solid var(--line); font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .9rem; }
.themes button small { font-size: .7rem; font-weight: 600; }
.themes button[data-theme-set="day"] { background: #FBF7F2; color: #2A1F1A; }
.themes button[data-theme-set="night"] { background: #1A1411; color: #F3EBE4; }
.themes button[data-theme-set="auto"] { background: linear-gradient(90deg, #FBF7F2 50%, #1A1411 50%); color: #9B1B30; }
.themes button[aria-pressed="true"] { border: 4px solid var(--accent); }
.free-mark { color: var(--safe); font-weight: 800; }
.btn.saved svg path { fill: currentColor; }

/* ---- 一覧メニュー（ジャンル・女優）：罫線で区切った行 ---- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 76px; padding: 12px 4px; text-decoration: none; }
.menu b { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.menu span { grid-column: 1; font-size: .8rem; color: var(--sub); }
.menu i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 1.6rem; color: var(--sub); line-height: 1; }
.menu a:active { background: var(--soft); }
.menu .hot b { color: var(--sale); }
.menu.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
html[data-size="xlarge"] .menu.two { grid-template-columns: 1fr; }
.updated { font-size: .8rem; color: var(--sub); margin: 14px 0 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tagline { font-size: 1.2rem; margin-top: 6px; }
.card-actions .btn { font-size: 1rem; }
h1 small { display: block; font-family: inherit; font-size: .75rem; font-weight: 600; color: var(--sub); margin-top: 2px; }
b.off { color: var(--sale); }
.foot-links { margin: 12px 0 0; line-height: 2.2; }
.foot-links b { display: block; color: var(--text); }
.foot-links a { margin-right: 14px; white-space: nowrap; }

/* PR表記（ページ冒頭） */
.prline { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--text); margin: 4px 0 12px; }
.prline span { border: 1px solid var(--text); padding: 0 6px; font-size: 13px; line-height: 1.6; border-radius: 2px; }
/* FANZA TV の案内（罫線で区切るだけ） */
.tvbox { border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); padding: 14px 0 16px; margin: 28px 0 0; }
.tvbox-h { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.tvbox p { font-size: .95rem; }
/* 比較表 */
table.cmp { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: .9rem; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
table.cmp thead th { border-bottom: 1px solid var(--text); font-family: var(--serif); font-size: .95rem; }
table.cmp tbody th { color: var(--sub); font-weight: 600; width: 5.2em; }
table.cmp td { font-weight: 700; }
/* ホーム画面追加の案内 */
.a2hs { border-bottom: 1px solid var(--line); padding: 12px 0 14px; margin: 8px 0 0; font-size: .9rem; }
.a2hs p { margin: 0 0 10px; }
.a2hs-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a2hs-btns .btn { min-height: 56px; font-size: .9rem; }
.a2hs-btns .btn + .btn { margin-top: 0; }

/* ---- 画像つき一覧（ジャンル・女優） ---- */
.menu.pics a { grid-template-columns: 104px 1fr auto; gap: 2px 14px; min-height: 88px; padding: 10px 0; }
.menu.pics .mth { grid-row: 1 / span 2; grid-column: 1; width: 104px; aspect-ratio: 3 / 2; background: var(--img-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.menu.pics .mth img { width: 100%; height: 100%; object-fit: contain; display: block; }
.menu.pics .mth-text { font-family: var(--serif); font-size: 1rem; color: var(--brand); border: 1px solid var(--line); background: var(--field); }
.menu.pics b { grid-column: 2; align-self: end; }
.menu.pics .d { grid-column: 2; align-self: start; font-size: .8rem; color: var(--sub); }
.menu.pics i { grid-row: 1 / span 2; grid-column: 3; }
html[data-size="xlarge"] .menu.pics a { grid-template-columns: 88px 1fr auto; }
html[data-size="xlarge"] .menu.pics .mth { width: 88px; }

/* ---- きょうのいちおし ---- */
.feature { display: block; text-decoration: none; margin-top: 12px; }
.feature .ft { font-size: 1.15rem; font-weight: 800; line-height: 1.5; margin: 10px 0 4px; }
.feature + .btn { margin-top: 4px; }

/* ---- 公式バナー ---- */
.banner { margin: 36px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.banner-cap { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--sub); margin: 0 0 8px; }
.banner-cap span { border: 1px solid var(--sub); padding: 0 6px; font-size: 12px; line-height: 1.6; border-radius: 2px; }
.banner img, .banner-img img { display: block; width: 100%; height: auto; }
.banner-img { display: block; margin: 12px 0; }

/* ---- 配色の見直し（ワクワク感） ---- */
b, strong, h3, .btn, .price, .menu b, .feature .ft, dl.info dd, table.cmp td { font-weight: 700; }
.head-link { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; color: var(--on-brand); text-decoration: none; font-size: 16px; font-weight: 700; }
.head-link:active { background: rgba(255,255,255,.15); }
h2 { border-bottom: 2px solid var(--brand); }
html[data-theme="night"] h2 { border-bottom-color: var(--sale); }
.badge { background: var(--badge-bg); color: var(--badge-fg); }
.badge.new { background: var(--brand); color: var(--on-brand); }
.pr { background: var(--gold-soft); }
.rank.r1, .rank.r2, .rank.r3 { color: var(--accent); }
.rank.r1 { font-size: 1.6rem; }
.updated span:first-child { color: var(--brand); font-weight: 700; }
html[data-theme="night"] .updated span:first-child { color: var(--sale); }
.tvbox { border-top: 2px solid var(--badge-bg); background: var(--soft); padding: 14px 12px 16px; }
.feature .thumb { outline: 3px solid var(--badge-bg); outline-offset: 0; }
nav.bottom a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 4px 0 var(--accent); }
.menu .hot b { color: var(--accent); }

.heart { min-width: 92px; }
.tagline + .lead { margin-top: 4px; }

/* ---- 申し込みの流れ（図） ---- */
ol.flow { list-style: none; margin: 16px 0 20px; padding: 0; }
ol.flow > li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; border: 2px solid var(--line); background: var(--field); padding: 14px 14px 14px 12px; }
ol.flow > li + li { margin-top: 30px; }
ol.flow > li + li::before { content: "▼"; position: absolute; top: -27px; left: 26px; transform: translateX(-50%); color: var(--accent); font-size: 18px; line-height: 1; }
ol.flow .no { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); font-family: var(--serif); font-weight: 700; font-size: 24px; }
ol.flow b { display: block; font-size: 1.05rem; line-height: 1.45; }
ol.flow p { margin: 4px 0 0; font-size: .9rem; color: var(--sub); }
ol.flow li.hl { border-color: var(--badge-bg); border-width: 3px; }
ol.flow .tag { display: inline-block; background: var(--badge-bg); color: var(--badge-fg); padding: 0 8px; margin-right: 6px; font-size: .95rem; }
.fork-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fork-2 > div { border-top: 2px solid var(--line); padding-top: 6px; }
.fork-2 em { font-style: normal; font-weight: 700; color: var(--accent); }
.fork-2 p { font-size: .85rem; }
/* 案内の枠の中の小さな図 */
ol.miniflow { list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin: 4px 0 14px; padding: 0; counter-reset: m; }
ol.miniflow li { position: relative; counter-increment: m; border: 1px solid var(--line); background: var(--field); text-align: center; font-size: .78rem; font-weight: 700; line-height: 1.4; padding: 26px 4px 8px; }
ol.miniflow li::before { content: counter(m); position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-family: var(--serif); color: var(--brand); font-size: 1rem; }
ol.miniflow li + li::after { content: "▶"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 11px; }
ol.miniflow li.hl { border: 2px solid var(--badge-bg); background: var(--gold-soft); }

/* ---- レビュー反映 ---- */
.intro { margin: 4px 0 4px; }
.seg-label small { font-size: .7rem; display: block; }
.note-l { font-size: .8rem; color: var(--sub); margin: 6px 0 4px; }
.tvnote { font-size: .8rem; color: var(--sub); border-left: 3px solid var(--line); padding-left: 8px; }
.menu.pics li[hidden] { display: none; }
/* 比較：項目名を上に、2つを横に並べる（狭い幅でも1つの欄に長文が詰まらない） */
.cmp2 { margin: 16px 0 8px; border-top: 1px solid var(--text); }
.cmp2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.cmp2-h { grid-column: 1 / -1; margin: 0 0 6px; font-family: var(--serif); font-weight: 700; color: var(--brand); }
html[data-theme="night"] .cmp2-h { color: var(--sale); }
.cmp2-row > div { font-weight: 700; font-size: .95rem; line-height: 1.5; }
.cmp2-row > div span { display: block; font-size: .72rem; font-weight: 400; color: var(--sub); }
/* 続ける・やめるは縦に並べる */
.fork-2 { grid-template-columns: 1fr; gap: 6px; }
/* 狭い画面・拡大時 */
@media (max-width: 359px) {
  .cmp2-row { grid-template-columns: 1fr; gap: 8px; }
  .card-actions { grid-template-columns: 1fr; }
  .heart { flex-direction: row; gap: 6px; min-height: 52px; }
  ol.miniflow { grid-template-columns: 1fr; gap: 14px; }
  ol.miniflow li + li::after { content: "▼"; left: 50%; top: -14px; transform: translateX(-50%); }
  .menu.pics a { grid-template-columns: 76px 1fr auto; }
  .menu.pics .mth { width: 76px; }
  nav.bottom a, nav.bottom button { font-size: 13px; }
  header.site .logo { font-size: 20px; }
}
/* とても狭い表示（ブラウザで大きく拡大したとき） */
@media (max-width: 299px) {
  header.site .wrap { flex-wrap: wrap; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .head-link { min-height: 40px; padding: 0 10px; font-size: 14px; }
  dl.info { grid-template-columns: 1fr; }
  dl.info dt { border-bottom: none; padding-bottom: 0; }
  dl.info dd { padding-top: 2px; }
  .row a, .row.norank a { grid-template-columns: 64px 1fr; }
  .row .rank { grid-column: 1 / -1; width: auto; text-align: left; font-size: 1.1rem; }
  .menu.pics a { grid-template-columns: 1fr auto; }
  .menu.pics .mth { display: none; }
  .menu.pics b, .menu.pics .d { grid-column: 1; }
  .menu.pics i { grid-column: 2; }
  .seg button { font-size: .8rem; }
  .a2hs-btns, .fork-2 { grid-template-columns: 1fr; }
}

/* トップの「きょうの数字」 */
.todaynums { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: .85rem; color: var(--sub); }
.todaynums a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; }
.todaynums b { font-size: 1.05rem; margin: 0 2px 0 6px; color: var(--brand); }
html[data-theme="night"] .todaynums b { color: var(--sale); }
.todaynums span { display: inline-flex; align-items: center; min-height: 40px; }

/* 作品ページ：見かたごとの価格 */
.ways { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.ways dt, .ways dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ways dt { font-weight: 700; }
.ways dt small { display: block; font-weight: 400; font-size: .8rem; color: var(--sub); }
.ways dd { font-weight: 700; font-size: 1.1rem; text-align: right; align-self: center; }

/* データで見る特集 */
.answer { border-top: 3px solid var(--text); border-bottom: 1px solid var(--line); padding: 12px 0 4px; margin: 18px 0 8px; }
.answer-h { font-weight: 700; margin: 0 0 6px; }
.answer ul { margin: 0; padding-left: 1.2em; }
.answer li { margin: 0 0 8px; line-height: 1.7; }
.dtable { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .9rem; }
.dtable th, .dtable td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
.dtable th { border-bottom: 2px solid var(--text); font-weight: 700; white-space: nowrap; }
.dtable td:not(:first-child), .dtable th:not(:first-child) { text-align: right; white-space: nowrap; }
.kwlinks { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.kwlinks li { border-bottom: 1px solid var(--line); }
.kwlinks a { display: flex; align-items: center; min-height: 56px; padding: 8px 0; font-weight: 700; color: var(--text); }
.kwindex { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.kwindex li { border-bottom: 1px solid var(--line); }
.kwindex a { display: block; padding: 14px 0; color: var(--text); text-decoration: none; }
.kwindex b { display: block; text-decoration: underline; text-underline-offset: 3px; }
.kwindex span { display: block; font-size: .85rem; color: var(--sub); margin-top: 4px; line-height: 1.6; }
h3 { font-size: 1rem; margin: 18px 0 4px; }
