/* nanaketa-lab（FANZA 同人・静的生成）— 暗い地の見た目（2026-11-11 作り替え。らぶカル BL・TL と同じ作り。前の明るい版は
   work/backup-before-redesign-20261111/）。色はすべて :root の CSS 変数（このサイトのアクセントはピンク）。購入ボタンの赤は全サイト共通。
   data/config.json の colors を入れると、ビルド時にこのファイルの末尾へ :root として追記されて上書きする。
   コントラスト（WCAG AA）の計算は work/redesign/01_implement.md の表。メディアクエリ内では var() を使えないため幅は数値で直書き。 */

:root {
  /* 地と面 */
  --color-bg-page: #0f1115;
  --color-bg-surface: #181b22;
  --color-bg-raised: #20242d;
  --color-bg-sunken: #0b0d10;
  --color-border: #2c313c;
  --color-border-strong: #3a404d;
  /* 文字 */
  --color-text: #eceef2;
  --color-text-sub: #b8bdc8;
  --color-text-muted: #9aa1ad;
  /* アクセント（nanaketa-lab はピンク。config.colors で上書きもできる） */
  --color-accent: #f070cf;          /* 文字・リンク・見出しの印 */
  --color-accent-strong: #b8338f;   /* 白い文字を載せる面（帯の CTA・現在ページ） */
  --color-accent-soft: #35182f;     /* 淡い面（チップ・注記） */
  --color-accent-border: #6a2f5c;
  --color-hero-from: #3d1a35;       /* 大見出しの帯のグラデーション */
  --color-hero-to: #14111a;
  /* 全サイト共通 */
  --color-buy: #c8102e;             /* 購入ボタン（白文字 5.88:1） */
  --color-buy-hover: #a50d26;
  --color-sale: #d92d3a;            /* 割引の札（白文字 4.79:1） */
  --color-price: #ff7b8a;           /* 今の価格（面の上 6.94:1） */
  --color-star: #f5b301;
  --color-sample: #2f5fb3;          /* サンプル枚数の札（白文字） */
  --color-focus: #ffd166;           /* フォーカスの輪郭（地の上 12.6:1） */
  --color-notice-bg: #2a2415;
  --color-notice-border: #6b5a2a;
  --color-notice-text: #f1e2b8;
  --color-overlay: rgba(5, 6, 8, .72);

  --font-family-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.75;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-full: 999px;

  --shadow-card: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, .55);
  --shadow-panel: 0 8px 26px rgba(0, 0, 0, .45);

  --layout-wrap: 1280px;
  --gutter: 16px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background-color: var(--color-bg-page);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: var(--line-height-base);
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding-bottom: calc(56px + env(safe-area-inset-bottom)); /* 下部ナビの高さ */
}
.site { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; }
.site-content { flex: 1 0 auto; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-accent); }
a:hover { color: var(--color-text); }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; }
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100002;
  padding: 10px 14px; background: var(--color-bg-raised); color: var(--color-text); border-radius: var(--radius-s);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--color-bg-sunken); border-bottom: 1px solid var(--color-border); }
.site-header__band { color: var(--color-text); }
.site-header__inner {
  max-width: var(--layout-wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  min-height: 64px;
}
.site-header__logo { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; }
.site-header__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); text-decoration: none; }
.site-header__link:hover { color: var(--color-accent); }
.site-header__name { color: var(--color-text); }
.site-header__name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: var(--color-accent); vertical-align: 2px; }
/* 画像ロゴ（config.logo_image）。高さを決めて横幅は画像なり＝暗い地で浮かないよう背景は透過前提・崩れないよう上限幅 */
.site-header__logo-img { display: block; height: 44px; width: auto; max-width: min(70vw, 360px); object-fit: contain; }
.site-header__sisters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-header__sister {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong); background: var(--color-bg-raised); color: var(--color-text);
  font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; max-width: 100%;
}
.site-header__sister:hover { border-color: var(--color-accent); color: var(--color-text); }

/* ---------- R18 の常設表示 ---------- */
.r18-notice { background: var(--color-bg-surface); border-bottom: 1px solid var(--color-border); color: var(--color-text-sub); font-size: 12px; line-height: 1.6; text-align: center; padding: 4px 12px; }
.r18-notice__text { margin: 0; }
.r18-notice__sentence { display: inline-block; }

/* ---------- 本体 ---------- */
.site-content { margin-top: 16px; }
.site-content__inner { max-width: var(--layout-wrap); margin: 0 auto; padding: 0 var(--gutter); display: flow-root; }  /* 最後の子の下マージンを本体の高さに含める（本体を伸ばさない＝検体 D06） */
.site-main { width: 100%; min-width: 0; padding: 0 0 24px; }

/* ---------- 一覧見出し・パンくず ---------- */
.list-heading {
  display: flex; align-items: center; gap: .4em;
  font-size: 24px; font-weight: 800; line-height: 1.35; color: var(--color-text);
  margin: 8px 0 16px; padding-left: 12px; border-left: 5px solid var(--color-accent);
}
.list-heading__icon { display: inline-flex; color: var(--color-accent); }
/* 固定ページ（運営者情報・プライバシー・広告の表示）の h1: 本文の h2（左線 5px）と同じ形だと見出しが 2 つ並んで見えるため、
   左線をやめて大きさとピンクの下線で区別する（2026-11-11 検査役の指摘・05_fix） */
body.page--static .list-heading {
  font-size: 28px; padding: 0 0 10px; border-left: 0; border-bottom: 2px solid var(--color-accent); margin: 8px 0 24px;
}
.list-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--color-text-sub); }
.home-lead { margin: 0 0 20px; }
.sister-banner {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
  margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--color-accent-soft); border: 1px solid var(--color-accent-border); color: var(--color-text); text-decoration: none;
}
.sister-banner:hover { color: var(--color-text); border-color: var(--color-accent); }
.sister-banner__lead { font-size: 14px; line-height: 1.6; color: var(--color-text-sub); }
.sister-banner__label { font-size: 16px; font-weight: 800; color: var(--color-accent); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--color-text-muted); margin: 20px 0 8px; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: .3em; }
.breadcrumbs__item a { text-decoration: none; display: inline-flex; align-items: center; gap: .3em; min-height: 32px; color: var(--color-text-sub); }
.breadcrumbs__label { color: var(--color-text-sub); }
.breadcrumbs__item a:hover .breadcrumbs__label { color: var(--color-text); text-decoration: underline; }
.breadcrumbs__sep { display: inline-flex; margin: 0 8px; }

/* ---------- 大見出しの帯（トップ） ---------- */
.hero {
  margin: 0 0 20px; padding: 28px 28px 26px; border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--color-hero-from), var(--color-hero-to));
  border: 1px solid var(--color-accent-border);
}
.hero__heading { font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: .01em; color: var(--color-text); }
.hero__copy { margin: 8px 0 16px; font-size: 15px; color: var(--color-text-sub); }
.hero__stats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--radius-m); background: rgba(0, 0, 0, .28); border: 1px solid var(--color-border-strong); }
.hero__stat-num { font-size: 22px; font-weight: 800; color: var(--color-text); }
.hero__stat-label { font-size: 13px; color: var(--color-text-sub); }
.hero__actions { margin: 0; }
.hero__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-full); background: var(--color-buy); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none;
  transition: background .2s;
}
.hero__cta:hover { background: var(--color-buy-hover); color: #fff; }

/* 帯の背景の絵（config.hero_images があるときだけ section に hero--photo が付く・_lovecul と同じ考え方・2026-11-11）。
   PC は帯の右 68% に絵を置いて左へ溶かし、左の文字の下は暗く塗る。
   顔が切れないように object-position は 3 枚共通の 74% 28%（顔は画像の横 65〜85%・縦 20〜45% のあたり） */
.hero--photo { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: center; background: #0d0e12; }
.hero__slides { position: absolute; top: 0; right: 0; bottom: 0; width: 68%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 28%; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 14, 18, .95) 0%, rgba(13, 14, 18, .9) 38%, rgba(13, 14, 18, .66) 52%, rgba(13, 14, 18, .16) 72%, rgba(13, 14, 18, 0) 100%); }
.hero__body { position: relative; z-index: 2; max-width: 660px; }
.hero__dots { position: absolute; z-index: 3; left: 18px; bottom: 8px; display: flex; gap: 2px; }
.hero__dot { width: 44px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .38); }
.hero__dot.is-active::before { background: #fff; }
.hero__dot:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 4px; }
.hero--photo .hero__actions { margin-bottom: 22px; }
.hero--photo .hero__stat { background: rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---------- 棚（トップ） ---------- */
.shelf { margin: 0 0 36px; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0 0 6px; }
.shelf__heading { font-size: 21px; font-weight: 800; line-height: 1.4; color: var(--color-text); padding-left: 12px; border-left: 5px solid var(--color-accent); }
.shelf__lead { margin: 0 0 14px; font-size: 13px; color: var(--color-text-muted); }
.shelf__more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--color-accent); text-decoration: none; }
.shelf__more:hover { color: var(--color-text); text-decoration: underline; }
.shelf__clear {
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong);
  background: transparent; color: var(--color-text-sub); font-size: 13px; cursor: pointer;
}
.shelf__clear:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-full);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-strong); color: var(--color-text); font-size: 14px; text-decoration: none;
}
.genre-chip:hover { border-color: var(--color-accent); color: var(--color-text); background: var(--color-accent-soft); }
.genre-chip__count { font-size: 12px; color: var(--color-text-muted); }
.recent-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.recent-card { flex: 0 0 132px; min-width: 0; scroll-snap-align: start; color: var(--color-text); text-decoration: none; }
.recent-card:hover { color: var(--color-accent); }
.recent-card__thumb { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; background: var(--color-bg-raised); }
.recent-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.recent-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 12px; line-height: 1.45; font-weight: 700; }

/* ---------- カード（一覧・棚で共通） ---------- */
.card-list, .card-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; margin: 0 0 16px;
}
.work-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--color-border-strong); }
.work-card__thumb-link { display: block; }
.work-card__thumb { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; margin: 0; background: var(--color-bg-raised); }
.work-card__image { width: 100%; height: 100%; object-fit: contain; display: block; }
.work-card__image--contain { position: relative; }
.thumb-bg { position: absolute; inset: -12px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.05) brightness(.55); transform: scale(1.1); pointer-events: none; }
.work-card__badges { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; pointer-events: none; }
.work-card__rank {
  position: absolute; left: 0; top: 0; z-index: 2; min-width: 34px; height: 34px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 0 0 var(--radius-m) 0;
  background: var(--color-accent-strong); color: #fff; font-size: 17px; font-weight: 800; pointer-events: none;
}
.work-card--rank .work-card__badges { top: 40px; }
.work-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; padding: 10px 10px 12px; min-width: 0; }
.work-card__title { font-size: 14px; font-weight: 700; line-height: 1.45; min-height: 2.9em; margin: 0; }
.work-card__title-link {
  color: var(--color-text); text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.work-card__title-link:hover { color: var(--color-accent); text-decoration: underline; }
.work-card__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.3; }
.work-card__list-price { font-size: 12px; color: var(--color-text-muted); }
.work-card__now-price { font-size: 18px; font-weight: 800; color: var(--color-price); }
.work-card__review { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.4; color: var(--color-text-sub); }
.work-card__review-avg { font-weight: 700; color: var(--color-text); }
.stars { display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; }
.stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--color-star) calc(var(--rating) / 5 * 100%), var(--color-border-strong) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-card__tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: var(--radius-full);
  background: var(--color-bg-raised); border: 1px solid var(--color-border); color: var(--color-text-sub);
  font-size: 11px; line-height: 1.7; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag:hover { color: var(--color-text); border-color: var(--color-accent); }
/* カードの購入ボタン: .cta-button（後ろで定義）と同じ詳細度だと min-width 240px 等で負けてカードからはみ出す（05_fix）＝2 クラスで指定 */
.cta-button.card-buy {
  margin-top: auto; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 10px;
  border-radius: var(--radius-s); font-size: 14px; letter-spacing: 0; box-shadow: none;
}
.cta-button.card-buy .cta-button__pr { margin-right: 6px; font-size: 10px; }
.cta-button.card-buy:hover, .cta-button.card-buy:active { transform: none; }
.card-buy__label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .cta-button.card-buy { padding: 8px 6px; font-size: 13px; }
  .cta-button.card-buy .cta-button__pr { margin-right: 4px; padding: 0 3px; }
}
@media (max-width: 359px) { .card-buy__label { white-space: normal; } }  /* 320px 幅では 1 行に入らない＝省略せず折り返す */
.work-card__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 11px; line-height: 1.6; color: var(--color-text-muted); }
.work-card__circle { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-sub); text-decoration: none; }
a.work-card__circle:hover { color: var(--color-text); text-decoration: underline; }
.work-card__date { white-space: nowrap; }
.work-card__series { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* nanaketa-lab だけの部品: 手書き文の「こんな人に刺さる！」・紹介文・作品ページへの文字リンク（サムネイルはタップで次のサンプル） */
.work-card__match { margin: 0; padding: 6px 8px; border-radius: var(--radius-s); background: var(--color-accent-soft); font-size: 12px; line-height: 1.5; }
.work-card__match-heading { display: block; font-weight: 800; color: var(--color-accent); }
.work-card__match-list { margin: 2px 0 0; padding: 0; list-style: none; }
.work-card__match-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text); }
.work-card__match-item::before { content: "・"; }
.work-card__excerpt {
  margin: 0; font-size: 12px; line-height: 1.55; color: var(--color-text-sub);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.work-card__readmore { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--color-accent); text-decoration: none; padding: 5px 0; line-height: 1.4; }
.work-card__readmore:hover { color: var(--color-text); text-decoration: underline; }

/* ---------- ページ送り ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; width: 100%; margin: 24px 0; }
.pager__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 6px; font-size: 16px; color: var(--color-text); text-decoration: none;
  background: var(--color-bg-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-s);
}
a.pager__item:hover { border-color: var(--color-accent); color: var(--color-text); }
.pager__item--current { background: var(--color-accent-strong); border-color: var(--color-accent-strong); color: #fff; font-weight: 800; }
.pager__item--dots { background: transparent; border-color: transparent; color: var(--color-text-muted); }
.pager__item--sp-dots { display: none; }

/* ---------- ジャンル一覧ページ ---------- */
.genre-index__lead { color: var(--color-text-sub); font-size: 14px; margin: 0 0 16px; }
.genre-index { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.genre-index__link {
  display: flex; align-items: center; gap: .5em; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--color-border); background: var(--color-bg-surface);
  border-radius: var(--radius-s); color: var(--color-text); text-decoration: none; font-size: 14px;
}
.genre-index__link:hover { color: var(--color-text); border-color: var(--color-accent); }
.genre-index__icon { color: var(--color-accent); }
.genre-index__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-index__count, .drawer__count { font-size: 12px; color: var(--color-text-sub); background: var(--color-bg-raised); border-radius: var(--radius-full); padding: 0 8px; line-height: 1.8; }

/* ---------- 404 ---------- */
.notfound { margin: 0 0 32px; }
.notfound__text { margin: 0 0 12px; color: var(--color-text-sub); }
.notfound__link { font-weight: 700; }
.notfound__heading, .static-page h2, .work-grid__heading, .samples__heading, .spec__heading, .story__heading {
  font-size: 21px; line-height: 1.35; font-weight: 800; color: var(--color-text);
  margin: 0 0 14px; padding: 4px 0 4px 12px; border-left: 5px solid var(--color-accent); background: none;
}

/* ---------- 作品ページ ---------- */
.work { max-width: 980px; margin: 0 auto; }
.work__title { font-size: 28px; line-height: 1.4; font-weight: 800; color: var(--color-text); margin: 8px 0 16px; }
.work__eyecatch { display: flex; justify-content: center; margin-bottom: 12px; }
.work__eyecatch-figure { position: relative; width: 560px; max-width: 100%; border-radius: var(--radius-m); overflow: hidden; background: var(--color-bg-raised); }
.work__eyecatch-image { display: block; width: 100%; height: auto; }
.work__eyecatch-label {
  position: absolute; top: 8px; left: 8px; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 1.6; padding: 2px 10px; border-radius: var(--radius-full);
  background: var(--color-overlay); color: #fff;
}
.work__eyecatch-samples {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-full); background: var(--color-sample); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.work__eyecatch-samples:hover { color: #fff; filter: brightness(1.12); }
.work__date { display: flex; align-items: center; justify-content: flex-end; gap: .3em; color: var(--color-text-muted); margin: 0 0 12px; font-size: 13px; }
.work__date-label { font-size: 12px; }
.work__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--color-text-sub); }
.work-panel { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: 20px; }
.work-panel__content { min-width: 0; }
.work-panel__circle { font-size: 15px; color: var(--color-text-sub); margin-bottom: 10px; }
.work-panel__circle::before { content: "サークル："; font-weight: 700; }
.work-panel__summary { font-size: 16px; line-height: 1.8; color: var(--color-text); margin-top: 16px; }
.work-panel__summary.is-below { margin: 24px 0 8px; padding: 16px 18px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l); }
.work-panel__disclosure { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--color-notice-bg); border: 1px solid var(--color-notice-border); font-size: 13px; color: var(--color-notice-text); }
.work-panel__official { margin: 0 0 12px; font-size: 13px; }
.work-panel__excerpt { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--color-text-sub); }
.work-panel__genres:empty { display: none; }  /* ジャンル 0 件の作品で空の枠を出さない（検体 t_c9） */
.audience__heading { font-size: 1.05em; font-weight: 800; line-height: 1.5; color: var(--color-text); margin-bottom: 10px; }
.audience__list { margin: 0; padding-left: 1.35em; }
.audience__list li { margin-bottom: 8px; line-height: 1.8; }
.audience__keyword { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.free-notice { margin: 20px 0 8px; padding: 16px 18px; border-left: 4px solid var(--color-accent); background: var(--color-bg-surface); border-radius: var(--radius-m); }
.free-notice__question { font-weight: 800; line-height: 1.6; margin-bottom: 8px; }
.free-notice__answer { line-height: 1.8; margin: 0; color: var(--color-text-sub); }

/* ---------- 購入ボタン（全サイト共通の赤） ---------- */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 240px; max-width: 100%; min-height: 48px; padding: 14px 30px; border-radius: var(--radius-m);
  background: var(--color-buy); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em; text-decoration: none; text-align: center;
  box-shadow: 0 6px 18px rgba(200, 16, 46, .3); transition: background .2s, transform .2s;
}
.cta-button:hover { background: var(--color-buy-hover); color: #fff; transform: translateY(-2px); }
.cta-button:active { transform: translateY(0); }
.cta-button__pr { flex: 0 0 auto; display: inline-block; margin-right: 10px; padding: 0 5px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; white-space: nowrap; }
.cta-button__arrow { flex: 0 0 auto; margin-left: 8px; transition: transform .2s; }
.cta-button:hover .cta-button__arrow { transform: translateX(3px); }
.cta-button__price { margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-s); background: rgba(0, 0, 0, .22); font-size: .85em; white-space: nowrap; }

/* ---------- 価格・評価・札 ---------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.3; }
.price__now { font-weight: 800; color: var(--color-price); font-size: 1.1em; }
.price__list { color: var(--color-text-muted); font-size: .85em; text-decoration: line-through; }
.price__list-label { font-size: .85em; margin-right: 2px; }
.price__off { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--color-sale); color: #fff; font-size: .78em; font-weight: 800; line-height: 1.6; }
.price--offer .price__now { font-size: 34px; line-height: 1.1; }
.price--offer .price__list { font-size: 16px; }
.price--offer .price__off { font-size: 15px; padding: 3px 10px; }
.price--grid, .price--rail { font-size: 13px; }
.price--bar { flex-wrap: nowrap; white-space: nowrap; }
.price--bar .price__now { font-size: 18px; }
.review { display: inline-flex; align-items: baseline; gap: 2px; color: var(--color-text); font-weight: 700; font-size: .95em; }
.review__star { color: var(--color-star); }
.review__count { font-weight: 500; color: var(--color-text-sub); font-size: .85em; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; line-height: 1.5; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); white-space: nowrap; }
.badge--sale { background: var(--color-sale); }
.badge--sample { background: var(--color-sample); font-weight: 700; }
.price-note { margin: 0 0 14px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--color-notice-bg); border: 1px solid var(--color-notice-border); font-size: 12px; line-height: 1.6; color: var(--color-notice-text); }

/* ---------- 作品ページ上部の購入枠 ---------- */
.offer { margin: 0 0 4px; padding: 16px 18px; border-radius: var(--radius-l); background: var(--color-bg-raised); border: 1px solid var(--color-border-strong); }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 10px; }
.offer__noprice { font-size: 14px; color: var(--color-text-sub); }
.offer__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 14px; font-size: 13px; }
.offer__fact { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: var(--radius-full); background: var(--color-bg-surface); border: 1px solid var(--color-border); color: var(--color-text-sub); text-decoration: none; }
.offer__fact--end { border-color: var(--color-sale); color: var(--color-text); font-weight: 700; }
.offer__fact--samples { border-color: var(--color-accent-border); color: var(--color-accent); font-weight: 700; }
.offer__fact--samples:hover { color: var(--color-text); }
.offer__action { margin: 0; }
.offer__cta { position: relative; overflow: hidden; width: 100%; min-width: 0; font-size: 19px; padding: 16px 22px; }
.offer__asof { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--color-text-muted); }

/* ---------- 無料サンプル画像 ---------- */
.samples { margin: 32px 0 8px; }
.samples__lead { margin: 0 0 14px; font-size: 14px; color: var(--color-text-sub); }
.samples__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.samples__item { margin: 0; min-width: 0; }
.samples__link { display: block; border-radius: var(--radius-m); overflow: hidden; background: var(--color-bg-raised); transition: transform .2s; }
.samples__link:hover { transform: translateY(-3px); }
.samples__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.samples__teaser { margin-top: 16px; padding: 18px 16px 16px; text-align: center; background: var(--color-bg-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-l); }
.samples__teaser-text { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--color-text); }
.samples__teaser-action { margin: 0; }
.samples__more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 3 / 4; padding: 12px; border-radius: var(--radius-m); text-align: center; text-decoration: none;
  background: var(--color-bg-surface); border: 2px dashed var(--color-buy); color: var(--color-text); font-weight: 800;
}
.samples__more:hover { color: var(--color-text); border-style: solid; }
.samples__more-plus { font-size: 44px; line-height: 1; color: var(--color-price); }
.samples__more-text { font-size: 14px; line-height: 1.4; }
.samples__more-cta { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.samples__more-pr { padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; font-weight: 600; }
.cta-button--teaser { font-size: 18px; padding: 16px 34px; }

/* 作品紹介・作品情報・データ */
.story { margin: 32px 0 8px; }
.story__body p { margin: 0 0 1em; line-height: 1.9; }
.story__source { margin: 4px 0 0; font-size: 12px; color: var(--color-text-muted); }
.spec { margin: 28px 0 8px; }
.spec__table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden; }
.spec__table th, .spec__table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; line-height: 1.6; }
.spec__table th { width: 9em; white-space: nowrap; color: var(--color-text-sub); font-weight: 700; background: var(--color-bg-raised); }
.spec__note { margin-left: 6px; font-size: 12px; color: var(--color-text-sub); }
.spec__pr { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; line-height: 1.5; }
.insights { margin: 24px 0; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-bg-surface); }
.insights__heading { margin: 0 0 10px; font-size: 16px; }
.insights__list { margin: 0; padding: 0; list-style: none; }
.insights__item { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
.insights__label { display: inline-block; min-width: 4.5em; margin-right: .5em; padding: 0 .5em; border-radius: 4px; background: var(--color-bg-raised); font-size: 12px; text-align: center; color: var(--color-text-sub); }
.insights__note { margin: 6px 0 0; font-size: 12px; color: var(--color-text-muted); }

/* 作品ページの新着・関連 */
.work-grid { margin-top: 32px; }
.work-grid__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work-grid__card {
  display: flex; flex-direction: column; min-width: 0; color: var(--color-text); text-decoration: none;
  background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.work-grid__card:hover { color: var(--color-text); transform: translateY(-3px); border-color: var(--color-border-strong); }
.work-grid__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-raised); }
.work-grid__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.work-grid__thumb .work-card__badges { left: auto; right: 6px; }
.work-grid__body { padding: 0; }
.work-grid__title {
  margin: 10px 12px 6px; font-size: 14px; font-weight: 700; line-height: 1.45; min-height: 2.9em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.work-grid__circle { margin: 0 12px 6px; font-size: 12px; color: var(--color-text-muted); }
.work-grid__price { margin: 0 12px 12px; }

/* カテゴリ・タグのリンク */
.terms { display: flex; flex-direction: column; gap: 8px; margin: 32px 0 24px; }
.terms__group { display: flex; flex-wrap: wrap; gap: 6px; }
.terms__link {
  display: inline-flex; align-items: center; gap: .3em; min-height: 36px; padding: 2px 12px;
  font-size: 13px; line-height: 1.6; text-decoration: none; border-radius: var(--radius-full);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-strong); color: var(--color-text);
}
.terms__link:hover { border-color: var(--color-accent); color: var(--color-text); }
.terms__link--category { background: var(--color-accent-soft); border-color: var(--color-accent-border); }

/* 前後の作品 */
.post-nav { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.post-nav__link {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  color: var(--color-text); text-decoration: none;
}
.post-nav__link:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.post-nav__link--next { flex-direction: row-reverse; text-align: right; }
.post-nav__arrow { display: inline-flex; color: var(--color-text-muted); }
.post-nav__thumb { flex: 0 0 120px; width: 120px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); background: var(--color-bg-raised); }
.post-nav__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-nav__title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* ---------- 固定ページ ---------- */
.static-page { color: var(--color-text); max-width: 900px; }
.static-page h2 { margin-top: 36px; }
.static-page > h2:first-child { margin-top: 0; }
.static-page p, .static-page ul, .static-page ol { margin: 0 0 16px; }
.static-page ul, .static-page ol { padding-left: 1.5em; }
.static-page table { border-collapse: collapse; }
.static-page th, .static-page td { border: 1px solid var(--color-border); padding: 6px 10px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--color-bg-sunken); border-top: 1px solid var(--color-border); color: var(--color-text-sub); padding: 20px 0 16px; margin-top: 24px; }
.site-footer__inner { max-width: var(--layout-wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.site-footer__logo { font-size: 17px; font-weight: 800; }
.site-footer__logo-img { display: block; height: 32px; width: auto; max-width: min(60vw, 260px); object-fit: contain; }
.site-footer__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); text-decoration: none; }
.site-footer__link:hover { color: var(--color-accent); }
.site-footer__name { color: var(--color-text); }
.site-footer__body { text-align: right; font-size: 14px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; }
.site-footer__nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-sub); }
.site-footer__nav-link:hover { color: var(--color-text); }
.site-footer__copyright { margin-top: 6px; font-size: 13px; }
.site-footer__credit { margin-top: 4px; font-size: 12px; }
.site-footer__credit a { color: var(--color-text-sub); }
.site-footer__ad { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--color-text-muted); }

/* ---------- 下部ナビ・トップへ ---------- */
.mobile-bar {
  display: flex; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  min-height: 56px; margin: 0; padding: 0 0 env(safe-area-inset-bottom); list-style: none;
  background: var(--color-bg-sunken); box-shadow: inset 0 1px 0 var(--color-border);  /* 上の線は影で描く＝高さを 56px に保つ（本文の下余白 56px と同じ） */
}
.mobile-bar__item { width: 100%; }
.mobile-bar__button {
  width: 100%; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-text-sub); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.mobile-bar__button:hover { color: var(--color-text); }
.mobile-bar__icon { font-size: 20px; line-height: 1; display: inline-flex; }
.mobile-bar__label { font-size: 10px; line-height: 1.6; margin-top: 2px; }
.to-top { position: fixed; right: 10px; bottom: 10px; z-index: 99999; display: none; }
body.has-buy-bar .to-top.is-visible { display: block; }
.to-top__button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--color-bg-raised); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: var(--radius-s); font-size: 22px; cursor: pointer; }

/* ---------- 画面下の購入バー（作品ページ。本文の購入ボタンを通り過ぎた後だけ JS が出す・閉じられる） ---------- */
/* 作品ページの下余白は、購入バーの有無にかかわらず「購入バー（約 65px）＋上へ戻る（bottom 88px・高さ 44px）＋余白」。
   購入バーが出たときだけ余白を足すと、一番下まで一気に送った直後（End キー等）は余白が増えた分だけ最下部に届かず、
   上へ戻るボタンがフッターのクレジットと断り書きに重なった（2026-11-11 検査役の指摘・05_fix） */
body.page--work { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
body.has-buy-bar .mobile-bar { display: none; }
body.has-buy-bar .to-top { bottom: 88px; }
/* 購入バー（約 65px）＋上へ戻る（bottom 88px・高さ 44px）の分だけ下に余白を足し、最下部のフッターの文字を隠さない（05_fix） */
body.page--work.has-buy-bar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 13, 16, .97); border-top: 1px solid var(--color-border-strong); box-shadow: 0 -6px 18px rgba(0, 0, 0, .5);
  transform: translateY(100%); transition: transform .25s ease;
}
.buy-bar.is-visible { transform: none; }
.buy-bar__inner { max-width: var(--layout-wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter); }
.buy-bar__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.buy-bar__title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text); }
.cta-button--bar { flex: 0 0 auto; min-width: 0; min-height: 48px; padding: 10px 22px; font-size: 16px; }
.buy-bar__close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-s); background: transparent; color: var(--color-text-sub); font-size: 22px; line-height: 1; cursor: pointer; }
.buy-bar__close:hover { color: var(--color-text); }

/* ---------- 検索 ---------- */
.search-panel { position: fixed; inset: 0; z-index: 100000; background: var(--color-overlay); display: flex; justify-content: center; align-items: flex-start; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); }
.search-panel__inner { width: 100%; max-width: 720px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--color-bg-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-panel); overflow: hidden; }
.search-panel__bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--color-border); }
.search-panel__input { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 12px; color: var(--color-text); background: var(--color-bg-page); border: 1px solid var(--color-border-strong); border-radius: var(--radius-s); }
.search-panel__input::placeholder { color: var(--color-text-muted); }
.search-panel__close, .drawer__close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border-strong); background: var(--color-bg-raised); color: var(--color-text); border-radius: var(--radius-s); font-size: 20px; cursor: pointer; }
.search-panel__status { margin: 8px 16px 0; font-size: 13px; color: var(--color-text-sub); }
.search-panel__results { list-style: none; margin: 0; padding: 4px 8px 12px; overflow-y: auto; }
.search-panel__result { display: block; padding: 10px 8px; border-bottom: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); }
.search-panel__result:hover { background: var(--color-bg-raised); color: var(--color-text); }
.search-panel__result-title { display: block; font-weight: 700; color: var(--color-text); line-height: 1.5; }
.search-panel__result-meta { display: block; font-size: 12px; color: var(--color-text-sub); line-height: 1.6; }

/* ---------- ジャンル引き出し ---------- */
.drawer { position: fixed; inset: 0; z-index: 100000; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--color-overlay); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--color-bg-surface); border-left: 1px solid var(--color-border-strong); display: flex; flex-direction: column; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__title { font-weight: 800; color: var(--color-text); font-size: 18px; }
.drawer__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-size: 14px; }
.drawer__link:hover { background: var(--color-bg-raised); color: var(--color-text); }
.drawer__all { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; text-align: center; font-weight: 800; text-decoration: none; background: var(--color-accent-strong); color: #fff; border-radius: var(--radius-s); }
.drawer__all:hover { color: #fff; filter: brightness(1.1); }

/* ---------- 年齢確認 ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100001; background: rgba(5, 6, 8, .97); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-gate__box { width: 100%; max-width: 440px; background: var(--color-bg-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-l); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-panel); }
.age-gate__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--color-text); }
.age-gate__text { margin: 0 0 8px; font-size: 14px; color: var(--color-text-sub); }
.age-gate__question { margin: 0 0 20px; font-size: 18px; font-weight: 800; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; }
.age-gate__button { min-height: 48px; padding: 12px 16px; border-radius: var(--radius-m); border: 0; font-weight: 800; cursor: pointer; font-size: 16px; }
.age-gate__button--yes { background: var(--color-buy); color: #fff; }
.age-gate__button--yes:hover { background: var(--color-buy-hover); }
.age-gate__button--no { background: var(--color-bg-raised); color: var(--color-text); border: 1px solid var(--color-border-strong); }

/* ---------- 一覧カードの無料サンプル横スライド（2026-10-31） ---------- */
.slides { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: pointer; }
.slides__track { display: flex; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.slides__img { flex: 0 0 100%; width: 100%; height: 100%; display: block; object-fit: contain; }
.slides__counter, .slides__dots, .slides__hint, .slides__arrow { display: none; }
.slides.is-ready .slides__counter { display: block; position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: var(--radius-full); background: var(--color-overlay); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; }
.slides.is-ready .slides__dots { display: flex; position: absolute; left: 0; right: 0; bottom: 8px; justify-content: center; gap: 4px; pointer-events: none; }
.slides__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.slides__dot.is-active { background: #fff; }
.slides.is-ready .slides__hint { display: block; position: absolute; left: 6px; bottom: 28px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-sample); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; transition: opacity .3s; }
.slides.is-moved .slides__hint { opacity: 0; }
.slides__hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .slides__hint-touch { display: none; } .slides__hint-mouse { display: inline; } }
.slides.is-ready .slides__arrow { display: flex; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; font-size: 24px; line-height: 1; color: #fff; background: var(--color-overlay); opacity: 0; transition: opacity .2s; cursor: pointer; user-select: none; }
.slides__arrow--prev { left: 6px; }
.slides__arrow--next { right: 6px; }
.slides:hover .slides__arrow { opacity: 1; }
@media (hover: none) { .slides.is-ready .slides__arrow { display: none; } }

/* ---------- 拡大表示（lightbox） ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .94); }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__image { display: block; max-width: 100vw; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; }
.lightbox__caption { margin: 8px 0 0; color: #fff; font-size: 13px; opacity: .85; }
.lightbox__close, .lightbox__nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__nav[disabled] { opacity: .25; cursor: default; }
.lightbox__cta { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); min-width: 0; padding: 12px 22px; font-size: 16px; white-space: nowrap; }
.lightbox__teaser { display: none; max-width: 440px; padding: 24px; color: #fff; text-align: center; }
.lightbox__teaser-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.lightbox__teaser-text { margin: 0; font-size: 15px; line-height: 1.7; opacity: .85; }
.lightbox.is-teaser .lightbox__figure { display: none; }
.lightbox.is-teaser .lightbox__teaser { display: block; }

/* ---------- 編集部の一押し枠（featured・data/featured.json） ---------- */
.featured { margin: 0 0 28px; padding: 1px; border-radius: var(--radius-l); background: var(--color-accent-border); }
.featured__inner { display: flex; gap: 24px; padding: 20px 22px; background: var(--color-bg-surface); border-radius: var(--radius-l); }
.featured__visual { flex: 0 0 300px; position: relative; }
.featured__image-link { display: block; border-radius: var(--radius-m); overflow: hidden; }
.featured__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-bg-raised); }
.featured__ribbon { position: absolute; z-index: 2; top: 10px; left: 0; padding: 4px 12px; background: var(--color-accent-strong); color: #fff; font-weight: 800; font-size: 13px; border-radius: 0 4px 4px 0; }
.featured__body { flex: 1; min-width: 0; }
.featured__heading { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--color-accent); }
.featured__spark { margin-right: 6px; }
.featured__kicker, .featured__circle { margin: 0 0 8px; font-size: 13px; color: var(--color-text-sub); }
.featured__title { margin: 0 0 6px; font-size: 22px; line-height: 1.4; font-weight: 800; }
.featured__title a { color: var(--color-text); text-decoration: none; }
.featured__lead, .featured__points li { font-size: 14px; line-height: 1.8; }
.featured__points { margin: 0 0 12px; padding-left: 1.2em; }
.featured__meta { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.featured__chip { padding: 2px 10px; border-radius: var(--radius-full); background: var(--color-bg-raised); border: 1px solid var(--color-border); font-size: 12px; color: var(--color-text-sub); }
.featured__actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.featured__cta-arrow { margin-left: 8px; }
.featured__official { font-size: 13px; }
.featured__disclosure { font-size: 12px; color: var(--color-text-muted); }

/* 旧部品（トップの横並びセール帯。今は棚に置き換え。互換のため最小限） */
.rail { margin: 0 0 28px; }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; }
.rail__item { flex: 0 0 150px; min-width: 0; }
.rail__card { display: block; color: var(--color-text); text-decoration: none; }
.rail__thumb { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; background: var(--color-bg-raised); }
.rail__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.rail__title { display: block; margin: 6px 0 2px; font-size: 13px; font-weight: 700; line-height: 1.4; }

/* ---------- ブレークポイント ---------- */
@media (max-width: 1100px) {
  .card-list, .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .card-list, .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .genre-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__body { text-align: center; }
  .site-footer__nav { justify-content: center; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .hero { padding: 20px 16px; }
  .hero__heading { font-size: 22px; }
  .hero__stat-num { font-size: 18px; }
  .hero__cta { width: 100%; }
  /* 絵があるときは帯の上部に絵、下に文字（絵の下側を暗く塗って文字の地にする） */
  .hero--photo { min-height: 0; display: block; padding-top: 150px; padding-bottom: 40px; }
  .hero__slides { width: 100%; bottom: auto; height: 214px; -webkit-mask-image: none; mask-image: none; }
  .hero__slide { object-position: 74% 26%; }
  /* 暗さの境目は px（絵の高さが 214px で固定のため。文字の始まる 150px より上で十分に暗くする） */
  .hero--photo::after { background: linear-gradient(180deg, rgba(13, 14, 18, 0) 0, rgba(13, 14, 18, .12) 80px, rgba(13, 14, 18, .84) 140px, rgba(13, 14, 18, .95) 184px, rgba(13, 14, 18, .97) 100%); }
  /* 絵の分だけ帯が高くなるので、数字は 1 行に 3 つ並べて詰める（数字の上・説明の下） */
  .hero--photo .hero__stats { flex-wrap: nowrap; gap: 6px; }
  .hero--photo .hero__stat { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 0; padding: 6px 4px; text-align: center; }
  .hero--photo .hero__stat-num { font-size: 17px; line-height: 1.3; }
  .hero--photo .hero__stat-label { font-size: 12px; line-height: 1.3; }
  .hero--photo .hero__actions { margin-bottom: 0; }
  .hero__dots { left: 6px; bottom: 4px; }
  .shelf { margin-bottom: 28px; }
  .shelf__heading { font-size: 18px; }
  .work__title { font-size: 21px; line-height: 1.4; }
  .work-panel { padding: 14px; }
  .price--offer .price__now { font-size: 28px; }
  .offer { padding: 14px; }
  .offer__cta { font-size: 17px; padding: 14px 16px; }
  .cta-button { min-width: 0; width: 100%; padding: 14px 16px; }
  .cta-button--bar { width: auto; }
  .samples__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .genre-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__table th { width: 7em; white-space: normal; }
  .featured__inner { flex-direction: column; padding: 14px; }
  .featured__visual { flex-basis: auto; }
  .site-header__inner { justify-content: center; min-height: 56px; }
  .site-header__logo { font-size: 18px; }
  .site-header__logo-img { height: 36px; }
  .site-header__sisters { justify-content: center; width: 100%; }
}
@media (max-width: 639px) {
  .card-list, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .work-card__body { padding: 8px 8px 10px; gap: 5px; }
  .work-card__title { font-size: 13px; }
  .work-card__now-price { font-size: 16px; }
  .work-card__tags .tag:nth-child(n+3) { display: none; } /* 狭い幅はタグ 2 個まで */
  .card-buy { font-size: 13px; padding: 6px 6px; }
  .slides.is-ready .slides__hint { display: none; } /* 狭いカードでは案内を出さない（枚数と点で分かる） */
  .badge { font-size: 11px; padding: 1px 6px; }
  .pager__item { min-width: 40px; height: 44px; font-size: 15px; }
}
@media (max-width: 480px) {
  .buy-bar__title { display: none; }
  .buy-bar__inner { padding: 8px 10px; gap: 8px; }
  .buy-bar__text { flex: 0 0 auto; }
  .cta-button--bar { flex: 1 1 auto; padding: 10px 8px; font-size: 15px; }
  .price--bar .price__list { display: none; }
  .lightbox__cta { font-size: 14px; padding: 10px 14px; }
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .post-nav__thumb { flex-basis: 30%; width: 30%; }
  .pager { gap: 6px 2px; }
  .pager__item { min-width: 34px; padding: 0 4px; }
}
@media (max-width: 400px) {
  .pager__item--far { display: none; }
  .pager__item--sp-dots { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .work-card:hover, .cta-button:hover, .samples__link:hover, .work-grid__card:hover { transform: none; }
}

/* ====================================================================================================
   2 サイトの部品（DTI 版・FC2 版 共通。2026-11-11 作り替え＝relayout_20261111 仕様 §2）
   ここより上は手本 nanaketa-lab の style.css を 1 バイトも変えずに写したもの（A）。ここから下（B）は手本に無い部品だけ。
   余白・寸法・並びは作り替え前の DTI の値のまま、色・枠・地は手本の :root の変数に置き換えた。手本の部品は上書きしない。
   ==================================================================================================== */

/* トップへ戻る: 全ページで下部バーの上に出す（J13。購入バーが出ている間の位置は A の body.has-buy-bar .to-top が効く） */
.to-top { bottom: calc(56px + env(safe-area-inset-bottom) + 10px); }
.to-top.is-visible { display: block; }

/* 一覧の見出し・最終更新・空の一覧・カードの再生時間・動画の札 */
.list-subheading { margin: 8px 0 12px; font-size: 20px; font-weight: 800; color: var(--color-text); }
.list-updated { margin: -8px 0 16px; font-size: 12px; color: var(--color-text-sub); }
.card-list__empty { padding: 24px; text-align: center; color: var(--color-text-muted); }
.work-card__duration { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.work-card__duration::before { content: "▶ "; color: var(--color-sample); }
.badge--movie { background: var(--color-sample); }

/* 目次の付け足し・引き出しの 2 つ目のボタン・フッターの広告の断り */
.genre-index__item--off .genre-index__link { color: var(--color-text-muted); cursor: default; }
.genre-index__item--off .genre-index__link:hover { background: none; color: var(--color-text-muted); }
.genre-index__state { font-size: 12px; padding: 0 8px; border-radius: var(--radius-full); background: var(--color-bg-raised); color: var(--color-text-muted); white-space: nowrap; }
.drawer__all--sub { margin-top: 8px; background: transparent; border: 1px solid currentColor; color: var(--color-text-muted); }
.site-footer__ad-notice { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--color-text-muted); }

/* 作品ページ: 要約 1 文・同じ作品の別配信・よくある質問の見出し */
.work__summary { margin: 0 0 12px; font-size: 14px; line-height: 1.8; color: var(--color-text-sub); }
.work__dup-note { margin: -4px 0 12px; font-size: 13px; line-height: 1.7; color: var(--color-text-sub); }
.free-notice__heading { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--color-text); }
h3.free-notice__question { font-size: 15px; margin: 0 0 6px; }
.free-notice__answer + h3.free-notice__question { margin-top: 14px; }
.hero__heading { text-wrap: balance; word-break: auto-phrase; }

/* 作品ページ: サンプル動画（表紙に再生マークを重ねたリンク。押すと作品元の作品ページが別窓で開き、そこで再生） */
.movie { max-width: 960px; margin: 0 auto 16px; }
.movie__heading { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--color-accent); }
.movie__heading::before { content: "▶"; margin-right: 6px; }
.movie__frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-bg-sunken); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); }
.movie__lead { margin: 8px 0 0; font-size: 12px; color: var(--color-text-muted); }
.movie__teaser { margin-top: 12px; padding: 14px 16px; text-align: center; background: var(--color-accent-soft); border: 2px dashed var(--color-accent-border); border-radius: 12px; }
.movie__teaser-text { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: var(--color-text-sub); }
.movie__teaser-action { margin: 0; }
.cta-button--movie { font-size: 20px; padding: 16px 40px; }
.movie__link { display: block; text-decoration: none; color: #fff; cursor: pointer; }  /* 例外: 画像の上 */
.movie__poster { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--color-bg-sunken); transition: transform .25s ease, filter .25s ease; }
.movie__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--color-overlay); box-shadow: var(--shadow-card-hover); transition: transform .2s ease; }
.movie__play::before { content: ""; position: absolute; left: 33px; top: 24px; border-style: solid; border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #fff; }  /* 例外: 画像の上 */
.movie__badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 24px); padding: 8px 14px; border-radius: var(--radius-full); background: var(--color-overlay); font-size: 14px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie__link:hover .movie__poster, .movie__link:focus-visible .movie__poster { filter: brightness(1.08); transform: scale(1.02); }
.movie__link:hover .movie__play, .movie__link:focus-visible .movie__play { transform: scale(1.08); }
.movie__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* 作品ページ: 配信サイト・出演・配信日・再生時間・注意・動画の札 */
.work-meta { margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.work-meta__row { display: flex; gap: 8px; min-width: 0; font-size: 15px; line-height: 1.6; }
.work-meta__key { flex: 0 0 auto; margin: 0; padding: 0 8px; border-radius: 4px; background: var(--color-bg-raised); color: var(--color-text-muted); font-size: 12px; font-weight: 700; line-height: 25px; height: 25px; }
.work-meta__value { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 700; color: var(--color-text); }
.work-notice { margin: 0; padding: 14px 16px; border-radius: var(--radius-m); background: var(--color-notice-bg); border: 1px solid var(--color-notice-border); color: var(--color-notice-text); font-size: 15px; font-weight: 700; line-height: 1.6; }
.offer__fact--movie { background: var(--color-accent-soft); border-color: var(--color-accent-border); color: var(--color-accent); font-weight: 700; }
.offer__fact--movie:hover { color: var(--color-text); }

/* 作品ページ: 紹介文 */
.work-desc { margin: 28px 0 8px; padding: 16px 18px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); box-shadow: var(--shadow-panel); }
.work-desc__heading { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--color-text); }
.work-desc__text, .work-desc__excerpt { margin: 0 0 8px; font-size: 15px; line-height: 1.9; color: var(--color-text); }

/* 作品ページ: 関連作品の格子の付け足し（配信サイト名・もっと見る） */
.work-grid__site { margin: 4px 10px 10px; font-size: 12px; color: var(--color-text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-grid__more { margin: 10px 0 0; text-align: right; font-size: 14px; font-weight: 700; color: var(--color-accent); }
@media (max-width: 767px) {
  .work-meta { grid-template-columns: 100%; }
  .cta-button--movie { width: 100%; padding: 14px 16px; font-size: 18px; }
}
@media (max-width: 480px) { .movie__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; } .movie__play::before { left: 27px; top: 19px; border-width: 15px 0 15px 25px; } .movie__badge { font-size: 12px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .movie__poster, .movie__play { transition: none; } }

/* 出演者ページの事実欄・週ごとの新着の要約（データから作る欄） */
.facts { margin: 0 0 20px; padding: 14px 16px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.facts__heading { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--color-text); }
.facts__list { margin: 0; font-size: 14px; }
.facts__row { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--color-border); }
.facts__row:first-child { border-top: 0; }
.facts__term { flex: 0 0 7.5em; margin: 0; font-weight: 700; color: var(--color-text-sub); }
.facts__value { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--color-text); }
.weekly-summary { margin: 0 0 16px; padding: 14px 16px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.weekly-summary__text { margin: 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; color: var(--color-text); }
.week-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.week-nav__link--next { margin-left: auto; }
.week-link { margin: 24px 0 0; text-align: right; font-size: 14px; font-weight: 700; }
@media (max-width: 480px) {
  .facts__row { flex-direction: column; gap: 2px; }
  .facts__term { flex-basis: auto; }
}

/* 配信サイトの基本情報・比較表（data/site_guides.json の事実だけ） */
.site-guide { margin: 0 0 20px; padding: 14px 16px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.site-guide__heading { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--color-text); }
.site-guide__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-guide__table, .site-compare__table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; color: var(--color-text); }
.site-guide__table th, .site-guide__table td, .site-compare__table th, .site-compare__table td { padding: 6px 8px; border-top: 1px solid var(--color-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.site-guide__table tr:first-child th, .site-guide__table tr:first-child td { border-top: 0; }
.site-guide__label, .site-compare__label { width: 8em; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.site-compare__table { min-width: 720px; font-size: 13px; }
.site-compare__table thead th { font-weight: 800; color: var(--color-text); background: var(--color-bg-raised); border-top: 0; }
.site-compare__cell--none { color: var(--color-text-muted); text-align: center; }
.site-guide__src { margin-left: 4px; font-size: 11px; color: var(--color-text-muted); white-space: nowrap; }
.site-guide__note { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--color-text-muted); }
@media (max-width: 480px) {
  .site-guide__table th, .site-guide__table td { display: block; width: auto; }
  .site-guide__table td { border-top: 0; padding-top: 0; }
}

/* 配信サイトランキング（ranking/ とトップの棚）と DXLIVE の広告枠 */
.ranking { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.ranking__item { padding: 14px 16px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.ranking__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.ranking__rank { flex: 0 0 auto; min-width: 3em; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-bg-raised); border: 1px solid var(--color-border-strong); color: var(--color-accent); font-size: 14px; font-weight: 800; text-align: center; }
.ranking__item:nth-child(-n+3) .ranking__rank { background: var(--color-accent-strong); border-color: var(--color-accent-strong); color: var(--color-text); }
.ranking__name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; }
.ranking__name a { color: var(--color-text); text-decoration: none; }
.ranking__name a:hover { color: var(--color-accent); }
.ranking__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.ranking__fact { padding: 6px 8px; background: var(--color-bg-raised); border-radius: 6px; }
.ranking__fact dt { font-size: 11px; color: var(--color-text-muted); }
.ranking__fact dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--color-text); }
.ranking__form { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--color-text-sub); }
.ranking__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ranking__more { font-size: 14px; }
.ranking__actions .cta-button { min-width: 0; padding: 12px 22px; font-size: 15px; }
.ranking-more { margin: 0 0 24px; padding: 14px 16px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.ranking-more__heading, .promo-live__heading { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--color-text); }
.ranking-more__text, .promo-live__note { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--color-text-sub); }
.ranking-more__link { margin: 0; font-weight: 700; }
.ranking-more__pr, .promo-live__pr { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; vertical-align: 1px; white-space: nowrap; }
.promo-live { margin: 24px 0; }
.ranking__pr-note { margin: -4px 0 8px; font-size: 12px; color: var(--color-text-muted); }
.promo-live__frame { max-width: 960px; margin: 0 auto; overflow: hidden; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-bg-surface); }
.promo-live__iframe { display: block; width: 100%; height: 1200px; border: 0; }
@media (max-width: 767px) {
  .ranking__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking__actions { flex-direction: column; align-items: stretch; }
  .ranking__actions .cta-button { width: 100%; }
}

/* トップの見出しの上の「配信サイトランキング」への案内（サイト内リンク） */
.rank-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px;
  background-color: var(--color-bg-surface); background-image: linear-gradient(135deg, var(--color-hero-from), var(--color-hero-to));
  border: 1px solid var(--color-accent-border); color: var(--color-text); text-decoration: none;
  box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s, filter .2s; }
.rank-banner:hover, .rank-banner:focus-visible { color: var(--color-text); transform: translateY(-2px); filter: brightness(1.05); box-shadow: var(--shadow-card-hover); }
.rank-banner__icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); }
.rank-banner__icon .icon { width: 22px; height: 22px; fill: currentColor; }
.rank-banner__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-banner__title { font-size: 19px; font-weight: 800; line-height: 1.4; }
.rank-banner__sub { font-size: 12px; color: var(--color-text-sub); }
.rank-banner__top { font-size: 13px; font-weight: 700; }
.rank-banner__go { flex: 0 0 auto; padding: 10px 16px; border-radius: var(--radius-full); background: var(--color-accent-soft); border: 1px solid var(--color-accent-border); color: var(--color-accent); font-size: 14px; font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) {
  .rank-banner { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .rank-banner__icon { width: 36px; height: 36px; }
  .rank-banner__body { flex-basis: calc(100% - 50px); }
  .rank-banner__title { font-size: 17px; }
  .rank-banner__go { flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .rank-banner { transition: none; } .rank-banner:hover { transform: none; } }

/* 姉妹サイトの切り替え（ヘッダー直下）。ボタンは手本 .site-header__sister と同じ形 */
.site-switch { background: var(--color-bg-sunken); border-bottom: 1px solid var(--color-border-strong); }
.site-switch__inner { max-width: var(--layout-wrap); margin: 0 auto; display: flex; justify-content: center; gap: 8px; padding: 8px 12px; }
.site-switch__item {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong); background: var(--color-bg-raised); color: var(--color-text);
  font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; max-width: 100%;
}
.site-switch__item--current { background: var(--color-bg-raised); border-color: var(--color-border); color: var(--color-text-sub); }
.site-switch__item--link { background: var(--color-accent-soft); border-color: var(--color-accent-border); color: var(--color-accent); }
.site-switch__item--link:hover { border-color: var(--color-accent); color: var(--color-text); }
.site-switch__arrow { color: var(--color-accent); }
@media (max-width: 480px) { .site-switch__item { padding: 7px 12px; font-size: 13px; } }
