/*
Theme Name: Yawapai Lux
Theme URI: https://example.com/yawapai-lux
Author: Yawapai
Description: 乳白(#FDF6F0)ベースのライト＆ウォームテーマ（ミルキーピーチ × ゴールド）。柔らかい巨乳（水パイ・柔乳・軟乳）作品紹介サイト向けクラシックテーマ。左固定サイドバー（ダッシュボード型）レイアウト。デザインは「Sidebar Navigation」をベースに、明るい暖色配色へ調整。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yawapai-lux
Tags: light, custom-colors, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ============================================================
   Design Tokens — ライト配色（乳白ベース / ミルキーピーチ × ゴールド）
   ============================================================ */
:root{
  --bg-main:#FDF6F0; --bg-card:#FFFFFF; --bg-footer:#FAEDE4;
  --primary:#B45A3E;                 /* Deep Peach */
  --cta:#E07856; --cta-hover:#D46A47;
  --accent:#B8860B;                  /* Gold（明背景でも可読） */
  --text-main:#33261F; --text-sub:#7A6459; --border:#EFDCD0;
  --radius-card:16px; --radius-btn:12px;
  --shadow-cta:0 4px 16px rgba(224,120,86,.30);
  --sidebar-w:248px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg-main); color:var(--text-main);
  font-family:"Archivo","Noto Sans JP",sans-serif; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-weight:700; color:var(--text-main); }

/* ---------- Buttons ---------- */
.btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  background:var(--cta); color:#fff; font-weight:600; letter-spacing:.02em;
  border:none; border-radius:var(--radius-btn); padding:12px 24px;
  box-shadow:var(--shadow-cta); cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.btn-primary:hover{ background:var(--cta-hover); color:#fff; }
.btn-secondary{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  background:transparent; color:var(--text-main); font-weight:600; letter-spacing:.02em;
  border:1px solid var(--primary); border-radius:var(--radius-btn); padding:11px 23px;
  cursor:pointer; transition:background .2s ease, border-color .2s ease;
}
.btn-secondary:hover{ background:rgba(180,90,62,.12); border-color:var(--cta); }
.ghost{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); color:var(--text-main); border-radius:var(--radius-btn);
  padding:8px 16px; font-size:13px; transition:border-color .2s;
}
.ghost:hover{ border-color:var(--primary); }

/* ---------- Feature kicker label ---------- */
.feature .kicker{
  font-family:"Archivo","Noto Sans JP",sans-serif; letter-spacing:.28em; text-transform:uppercase;
  font-size:12px; color:var(--accent); margin:0 0 12px;
}

/* ============================================================
   Layout — sidebar + main (design-08)
   ============================================================ */
.layout{ display:grid; grid-template-columns:var(--sidebar-w) 1fr; min-height:100vh; }

/* Sidebar */
aside.side{
  position:sticky; top:0; height:100vh; background:var(--bg-footer);
  border-right:1px solid var(--border); padding:24px 18px;
  display:flex; flex-direction:column; gap:8px; overflow:auto;
}
.side .brand{ font-size:22px; font-weight:800; padding:6px 10px 18px; }
.side .brand b{ color:var(--accent); }
.side .brand img{ max-height:36px; width:auto; }
.side .brand a{ color:inherit; text-decoration:none; transition:opacity .2s ease; }
.side .brand a:hover{ opacity:.85; }
.side .grp{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--text-sub); padding:14px 10px 6px; }
.side a.nav, .side .menu li a{
  display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px;
  color:var(--text-sub); font-size:14px; font-weight:500; transition:background .2s,color .2s;
}
.side a.nav:hover, .side .menu li a:hover{ background:rgba(180,90,62,.08); color:var(--text-main); }
.side a.nav.active, .side .menu li.current-menu-item a{ background:rgba(180,90,62,.16); color:var(--primary); }
.side a.nav svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; flex:0 0 auto; }
.side .menu{ list-style:none; margin:0; padding:0; }
.side .spacer{ flex:1; }

/* Topbar */
.main{ display:flex; flex-direction:column; min-width:0; }
.topbar{
  position:sticky; top:0; z-index:20; height:64px; display:flex; align-items:center; gap:16px;
  padding:0 28px; background:rgba(253,248,243,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar .menu-toggle{ display:none; background:none; border:none; color:var(--text-main); cursor:pointer; }
.topbar .search{ flex:1; max-width:460px; position:relative; }
.topbar .search input{
  width:100%; height:40px; border-radius:10px; background:var(--bg-card);
  border:1px solid var(--border); color:var(--text-main); padding:0 14px 0 38px; font-size:14px; font-family:inherit;
}
.topbar .search input::placeholder{ color:var(--text-sub); }
.topbar .search svg{ position:absolute; left:12px; top:11px; width:18px; height:18px; stroke:var(--text-sub); fill:none; stroke-width:2; }
.topbar .crumb{ font-size:13px; color:var(--text-sub); }
.topbar .crumb a:hover{ color:var(--accent); }

.content{ padding:28px; max-width:1600px; margin-inline:auto; width:100%; }

/* ============================================================
   Feature hero
   ============================================================ */
.feature{
  position:relative; border-radius:20px; overflow:hidden;
  display:flex; flex-direction:column; border:1px solid var(--border);
  background:radial-gradient(80% 120% at 80% 0%, rgba(180,90,62,.32), transparent 55%), linear-gradient(120deg,#FBEADF,#FEFAF6);
}
.feature-media{
  width:100%; aspect-ratio:16/7;
  background-color:#FBEADF; background-size:cover; background-position:center; background-image:var(--feat-img);
}
.feature-body{ padding:36px 48px 40px; }
.feature h1{ font-size:clamp(30px,4vw,48px); font-weight:800; margin:0 0 12px; line-height:1.05;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.feature p{ color:var(--text-sub); max-width:46ch; margin:0 0 22px; }
.feature .actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ============================================================
   Section + card grid
   ============================================================ */
.sec-head{ display:flex; align-items:center; justify-content:space-between; margin:34px 0 18px; scroll-margin-top:80px; }
.sec-head h1, .sec-head h2{ font-size:20px; font-weight:700; margin:0; }
.sec-head a{ font-size:13px; color:var(--accent); }
/* ランキングページの複数スロット（企画単体/素人 等）を跨ぐジャンプナビ。
   スクロールしてもトップバー(64px)の下に付いてくるよう sticky。 */
.pop-jump-nav{
  position:sticky; top:64px; z-index:15;
  display:flex; flex-wrap:wrap; gap:10px; margin:0 0 8px; padding:14px 0;
  background:var(--bg-main);
}
.pop-jump-nav a{
  display:inline-flex; align-items:center; gap:6px; background:var(--primary); border:1px solid var(--primary);
  color:#fff; border-radius:var(--radius-btn); padding:10px 20px; font-size:14px; font-weight:700;
  text-decoration:none; box-shadow:0 2px 10px rgba(0,0,0,.15);
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.pop-jump-nav a::after{ content:'\203A'; font-weight:700; }
.pop-jump-nav a:hover{ background:var(--cta); border-color:var(--cta); transform:translateY(-2px); }

.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; }

.card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:14px; overflow:hidden;
  box-shadow:0 2px 10px rgba(51,38,31,.05);
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover{ transform:translateY(-4px); border-color:rgba(196,144,42,.55); box-shadow:0 8px 24px rgba(51,38,31,.10); }
.card .thumb{ display:block; position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--bg-main); }
.card .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.card .thumb .ph{ position:absolute; inset:0; }
.card .thumb .dur{ position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,.7); color:#fff; font-size:11px; padding:2px 7px; border-radius:5px; }
.card .thumb-cat{ position:absolute; left:8px; top:8px; font-size:11px; font-weight:700; letter-spacing:.04em; color:#fff; background:rgba(180,90,62,.92); border:1px solid rgba(196,144,42,.4); padding:3px 10px; border-radius:6px; backdrop-filter:blur(4px); max-width:80%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card .thumb-cat a{ color:#fff; }
.card .card-body{ padding:12px 14px 14px; }
.card .card-body h3{
  font-size:14px; font-weight:600; margin:0 0 6px; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card .meta{ font-size:13px; color:var(--text-sub); display:flex; gap:10px; }

/* abstract placeholder gradients (when no featured image) */
.ph-grad{ background:linear-gradient(135deg,#FBE9DD,#F5CDB8); }
.ph-0{background:linear-gradient(135deg,#FBE9DD,#F5CDB8);} .ph-1{background:linear-gradient(135deg,#FDF3E0,#F1DCA9);}
.ph-2{background:linear-gradient(135deg,#FBE3E3,#F0C6C6);} .ph-3{background:linear-gradient(135deg,#F5EDE8,#DFCDC2);}
.ph-4{background:linear-gradient(135deg,#FBF3DC,#EFD9A5);} .ph-5{background:linear-gradient(135deg,#FAE8E0,#E8BFA8);}

/* ============================================================
   人気作品 TOP10（FANZAランキング）— front-page
   ============================================================ */
.popular-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; }
.pop-card{
  position:relative; display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border);
  border-radius:14px; overflow:hidden;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pop-card:hover{ transform:translateY(-4px); border-color:rgba(196,144,42,.55); box-shadow:0 8px 22px rgba(180,90,62,.14); }
.pop-link{ display:block; color:var(--text-main); text-decoration:none; }
.pop-card .thumb{ display:block; position:relative; aspect-ratio:3/2; overflow:hidden; background:var(--bg-main); }
.pop-card .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.pop-card .thumb .ph{ position:absolute; inset:0; }
.pop-rank{
  position:absolute; left:8px; top:8px; z-index:2; min-width:26px; height:26px; padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center;
  font-family:Archivo,system-ui,sans-serif; font-size:15px; font-weight:800; line-height:1;
  color:#fff; background:rgba(180,90,62,.92); border:1px solid rgba(196,144,42,.4);
  border-radius:8px; backdrop-filter:blur(4px);
}
.pop-rank--top{ color:#fff; background:var(--accent); border-color:#f3e0a8; box-shadow:0 2px 10px rgba(184,134,11,.35); }
.pop-title{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  padding:10px 12px 12px; font-size:13px; font-weight:600; line-height:1.45;
}
/* 公開記事ありのときだけ出る「続きはこちら ›」ボタン */
.pop-card.has-article .pop-title{ padding-bottom:8px; }
.pop-more{
  margin:auto 10px 10px; padding:7px 10px; border-radius:9px; text-align:center;
  font-size:12px; font-weight:700; letter-spacing:.02em; text-decoration:none;
  color:var(--primary); background:rgba(180,90,62,.12); border:1px solid rgba(196,144,42,.45);
  transition:background .2s ease, color .2s ease;
}
.pop-more:hover{ background:var(--primary); color:#fff; }
/* 人気作品 TOP50（/ranking/）— カードを約2倍サイズで表示（core style.css の同名定義に追随） */
.popular-grid--large{ grid-template-columns:repeat(auto-fill,minmax(380px,1fr)); gap:20px; }
.popular-grid--large .pop-rank{ min-width:34px; height:34px; font-size:19px; border-radius:10px; }
.popular-grid--large .pop-title{ font-size:15px; padding:12px 14px 14px; }
.popular-grid--large .pop-card.has-article .pop-title{ padding-bottom:10px; }
.popular-grid--large .pop-more{ margin:auto 12px 12px; padding:10px 12px; font-size:14px; }
/* TOP50 カードの作品メタ行（女優名 / レーベル）。core style.css の同名定義に追随（リンク色のみ yawapai 配色） */
.pop-meta{ list-style:none; margin:auto 0 0; padding:0; }
.pop-more ~ .pop-meta{ margin-top:6px; }
.pop-meta li{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:9px 14px; border-top:1px solid var(--border); font-size:13px; line-height:1.5; }
.pop-meta .ico{ flex:none; width:15px; height:15px; color:var(--text-sub); }
.pop-meta .lbl{ flex:none; color:var(--text-sub); }
.pop-meta .sep{ color:var(--text-sub); }
.pop-meta a{ color:var(--primary); font-weight:600; text-decoration:none; }
.pop-meta a:hover{ text-decoration:underline; }
/* TOP50（--large）では「続きはこちら」をタイトル直下に固定し、行内の高さ余りはメタ行の上へ寄せる
   （隣のカードの女優名欄が複数行のとき、タイトルとボタンの間が空くのを防ぐ） */
.popular-grid--large .pop-more{ margin-top:0; }
.popular-grid--large .pop-meta{ margin-top:auto; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  margin:34px 0 10px; border:1px solid var(--border); border-radius:18px; padding:40px; text-align:center;
  background:linear-gradient(135deg,rgba(180,90,62,.14),rgba(253,246,240,.6));
}
.cta-band h1, .cta-band h2{ font-size:26px; font-weight:700; margin:0 0 10px; }
.cta-band p{ color:var(--text-sub); margin:0 0 22px; }
.cta-band .btn-primary{ display:inline-flex; }

/* ============================================================
   Single video (detail)
   ============================================================ */
.player{
  position:relative; aspect-ratio:16/9; border-radius:18px; overflow:hidden; border:1px solid var(--border);
  background:radial-gradient(circle,#FBEADF,#FDF6F0); display:flex; align-items:center; justify-content:center;
}
.player img.poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.player .embed{ position:absolute; inset:0; }
.player .embed iframe, .player .embed video{ width:100%; height:100%; border:0; display:block; }
.player .play-btn{
  position:relative; z-index:2; width:84px; height:84px; border-radius:50%; background:var(--cta);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-cta);
  cursor:pointer; transition:transform .25s,background .2s; border:none;
}
.player .play-btn:hover{ transform:scale(1.08); background:var(--cta-hover); }
.player .play-btn svg{ width:30px; height:30px; fill:#fff; margin-left:4px; }
.player .lock{ position:absolute; bottom:16px; left:16px; z-index:2; font-size:13px; color:var(--text-sub); }

.below-player{ display:flex; gap:14px; margin:18px 0 0; }

.video-head{ margin:26px 0 0; }
.video-head h1{ font-size:clamp(26px,3.5vw,40px); font-weight:800; line-height:1.15; margin:0 0 12px; }
.video-meta{ display:flex; flex-wrap:wrap; gap:16px; font-size:13px; color:var(--text-sub); }

.tags{ display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.tags a{ font-size:12px; border:1px solid var(--primary); background:rgba(180,90,62,.10); border-radius:20px; padding:4px 14px; transition:background .2s; }
.tags a:hover{ background:rgba(180,90,62,.20); }

.desc{ background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:26px; margin:6px 0 24px; }
.desc h2{ font-size:18px; font-weight:700; margin:0 0 12px; }
/* ============================================================
   Article body — .entry-content（投稿本文 / GAS自動生成記事）
   GAS(Article.gs) はインラインstyle付きHTML（情報テーブル・iframe・
   「今すぐ全部を見る」ボタン・サンプル画像）を出力する。WP管理画面の
   青ボタン等を、このライトテーマの配色に合わせて上書きする。
   ============================================================ */
.entry-content{ color:var(--text-main); font-size:16px; line-height:1.9; }
.entry-content p{ margin:0 0 18px; }
.entry-content a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.entry-content a:hover{ color:var(--cta-hover); }
.entry-content > *:first-child{ margin-top:0; }

/* 見出し */
.entry-content h2{ font-size:24px; font-weight:800; line-height:1.35; margin:36px 0 14px; padding-left:14px; border-left:4px solid var(--primary); }
.entry-content h3{ font-size:19px; font-weight:700; margin:28px 0 12px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.entry-content h4{ font-size:16px; font-weight:700; margin:22px 0 10px; color:var(--accent); }

/* リスト */
.entry-content ul, .entry-content ol{ margin:0 0 18px; padding-left:1.4em; }
.entry-content li{ margin:6px 0; }
.entry-content ul li::marker{ color:var(--primary); }
.entry-content ol li::marker{ color:var(--accent); }

/* 引用 */
.entry-content blockquote{ margin:24px 0; padding:14px 20px; border-left:3px solid var(--primary); background:rgba(180,90,62,.08); font-style:italic; border-radius:0 10px 10px 0; }

/* 画像 / figure */
.entry-content img{ height:auto; border-radius:12px; border:1px solid var(--border); margin-left:auto; margin-right:auto; }
.entry-content figure{ margin:20px auto; }
.entry-content figcaption{ color:var(--text-sub); font-size:13px; text-align:center; margin-top:8px; }

/* 動画埋め込み（iframe） */
.entry-content iframe{ max-width:100%; border:0; border-radius:12px; }

/* 区切り / コード */
.entry-content hr{ border:0; border-top:1px solid var(--border); margin:28px 0; }
.entry-content code{ background:var(--bg-footer); border:1px solid var(--border); border-radius:6px; padding:2px 6px; font-size:.9em; }
.entry-content pre{ background:var(--bg-footer); border:1px solid var(--border); border-radius:10px; padding:16px; overflow:auto; }

/* ---- GASインラインstyleの上書き（既存記事も含めライト化） ---- */
/* 情報テーブル（発売日 / 長さ / 出演 / 品番 / レーベル） */
.entry-content table{ border-collapse:collapse; margin:24px auto; background:var(--bg-card); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.entry-content table th, .entry-content table td{ border:1px solid var(--border) !important; padding:12px 14px !important; text-align:left; }
.entry-content table th{ background:rgba(180,90,62,.14) !important; color:var(--text-main) !important; font-weight:700; white-space:nowrap; }
.entry-content table td{ background:transparent !important; color:var(--text-sub); }

/* 「今すぐ全部を見る」ボタン（GASは #2271b1 のインライン色）→ テーマCTAピーチに統一 */
.entry-content a[style*="background-color"]{
  display:inline-block !important; background:var(--cta) !important; color:#fff !important;
  padding:14px 30px !important; border-radius:var(--radius-btn) !important; font-weight:700 !important;
  text-decoration:none !important; box-shadow:var(--shadow-cta); letter-spacing:.02em;
  transition:background .2s ease, transform .2s ease;
}
.entry-content a[style*="background-color"]:hover{ background:var(--cta-hover) !important; transform:translateY(-2px); }

/* 中央寄せの太字リード文（旧GASのインラインstyle）をアクセント色に */
.entry-content p[style*="font-weight: bold"]{ color:var(--accent); font-size:17px; }

/* ---- 新GAS出力（クラスのみ・インラインstyleなし）向けの装飾 ---- */
.entry-content .article-info{ max-width:520px; }
.entry-content .article-lead{ text-align:center; font-weight:700; color:var(--accent); font-size:17px; margin:22px 0; }
/* DMM litevideo の埋め込み。
   内部ラッパーが高さ720px等で固定描画され（親が不定高で max-height:100% が効かない）、
   iframe を width:100%/height:100% で16:9枠に詰めると枠高＜実コンテンツ高となり下部が見切れる。
   そこで theme.js が iframe をネイティブ実寸(size= の値, 例:1280×720)で描画させ、
   コンテナ幅に合わせて transform:scale で等倍縮小する（歪み・見切れ・余白なし）。
   下の枠/中央寄せCSSと、JS適用後(.lv-fit)・JS無効時(フォールバック)を両方定義。 */
.entry-content .article-video{ position:relative; width:100%; max-width:720px; margin:24px auto; aspect-ratio:16 / 9; overflow:hidden; border-radius:12px; }
.entry-content .article-video iframe{ width:100%; height:100%; border:0; }   /* JS無効時のフォールバック */

/* JS適用後の共通枠（新figure / 旧p どちらの親要素にも付与）。中央寄せ。 */
.entry-content .lv-fit{ position:relative; display:block; width:100%; max-width:720px; margin:24px auto; overflow:hidden; border-radius:12px; }
/* iframe はネイティブ実寸(JSが1280px等を設定)で描画させ scale で縮小するため、
   .entry-content iframe{ max-width:100% } のキャップを必ず解除する（これが無いと
   実寸が枠幅に詰められ、さらに scale が掛かって二重縮小→右側に余白＝左寄りになる）。 */
.entry-content .lv-fit iframe{ position:absolute; top:0; left:0; border:0; max-width:none; max-height:none; transform-origin:top left; }

/* PCでは本文幅(860px)を超えて約1.5倍(最大1084px)に拡大し中央表示。
   ただし幅は「コンテンツ領域 = 画面幅 − サイドバー幅 − 余白」までに制限し、
   左サイドバーに被らないようにする。margin-left:50% + translateX(-50%) で
   本文カラム（=コンテンツ領域）の中央に配置。 */
@media (min-width:768px){
  .entry-content .article-video,
  .entry-content .lv-fit{
    width: min(1084px, calc(100vw - var(--sidebar-w) - 88px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.entry-content .article-shot{ text-align:center; margin:0 0 16px; }
.entry-content .article-cta{ text-align:center; margin:26px 0; }
.entry-content a.btn-affiliate{
  display:inline-block; background:var(--cta); color:#fff; padding:14px 30px;
  border-radius:var(--radius-btn); font-weight:700; letter-spacing:.02em; text-decoration:none;
  box-shadow:var(--shadow-cta); transition:background .2s ease, transform .2s ease;
}
.entry-content a.btn-affiliate:hover{ background:var(--cta-hover); color:#fff; transform:translateY(-2px); }
@media (max-width:767px){ .entry-content a.btn-affiliate{ display:block; } }

.related h2{ font-size:20px; font-weight:700; margin:26px 0 16px; }

/* ============================================================
   Article (standard post) layout — single.php（GAS記事の表示）
   ============================================================ */
.post-article{ max-width:860px; margin:0 auto; }
.post-article .page-title{ font-size:clamp(24px,3.4vw,36px); line-height:1.25; margin:6px 0 12px; }
.article-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; font-size:13px; color:var(--text-sub); margin-bottom:20px; }
.article-meta a{ color:var(--accent); }
/* PR（広告）開示ラベル — 控えめだが視認可能 */
.article-meta .pr-label{ font-size:11px; line-height:1; color:var(--text-sub); border:1px solid var(--border); border-radius:4px; padding:3px 7px; letter-spacing:.04em; cursor:default; }
.article-hero{ border-radius:16px; overflow:hidden; border:1px solid var(--border); margin-bottom:26px; }
.article-hero img{ width:100%; height:auto; display:block; }

/* 関連記事（記事末尾の回遊導線）— 同じレーベル / 同じ出演の別作品 */
.related{ max-width:860px; margin:48px auto 0; padding-top:32px; border-top:1px solid var(--border); }
.related .sec-head{ margin:28px 0 16px; }
.related .sec-head:first-child{ margin-top:0; }
/* 件数が少ないと auto-fill だと右に空き列ができて左寄りに見えるため auto-fit で均等配置・中央寄せ。 */
.related .grid{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.related-more{ text-align:center; margin:18px 0 8px; }
/* 一覧ボタン：背景に埋もれないよう塗り（ピーチ）＋ゴールド枠でボタンと分かる配色に。 */
.related-more .btn-secondary{ background:var(--primary); color:#fff; border-color:var(--accent); font-weight:700; }
.related-more .btn-secondary:hover{ background:var(--cta-hover); border-color:var(--cta-hover); color:#fff; }

/* ============================================================
   一覧導線ボタン（トップバー / サイドバー）＋ レーベル・出演チップ
   ============================================================ */
/* 配色は左メニュー「ホーム」の選択中（current）状態と同じ＝ピーチ淡＋ピーチ文字で常時表示。 */
/* トップバー：検索窓のすぐ右隣に配置（margin-left:auto を付けない）。 */
.topbar-actions{ display:flex; align-items:center; gap:8px; }
.topbar-btn{
  display:inline-flex; align-items:center; white-space:nowrap;
  background:rgba(180,90,62,.14); color:var(--primary); border:0;
  border-radius:10px; padding:8px 12px; font-size:13px; font-weight:600;
  transition:background .2s ease, color .2s ease;
}
.topbar-btn:hover{ background:rgba(180,90,62,.24); color:var(--primary); }

/* サイドバー「おすすめ◯◯はこちら」：ホームの選択中状態と同じ見た目で常時表示。 */
.side .menu-cta{ list-style:none; }
.side .sidebar-cta,
.side .menu li .sidebar-cta{
  display:flex; align-items:center; margin:0;
  background:rgba(180,90,62,.14); color:var(--primary); border:0;
  border-radius:10px; padding:10px 12px; font-size:14px; font-weight:600;
  transition:background .2s ease, color .2s ease;
}
.side .sidebar-cta:hover,
.side .menu li .sidebar-cta:hover{ background:rgba(180,90,62,.24); color:var(--primary); }

/* レーベル/出演 一覧ページのチップ：3列グリッドで行頭を揃えて整列。 */
.term-chips{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.term-chips li{ min-width:0; }
.term-chip{
  display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  background:var(--bg-card); border:1px solid var(--border); color:var(--text-main);
  border-radius:12px; padding:11px 16px; font-weight:600; font-size:14px;
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}
.term-chip:hover{ border-color:var(--accent); color:var(--primary); background:rgba(180,90,62,.08); }
.term-chip .name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.term-chip .count{ flex:0 0 auto; font-size:12px; color:var(--text-sub); background:var(--bg-main); border-radius:999px; padding:1px 8px; }

/* ============================================================
   In-content footer
   ============================================================ */
footer.site-footer{ border-top:1px solid var(--border); margin-top:24px; padding:28px; color:var(--text-sub); font-size:13px; }
footer.site-footer .footer-inner{ max-width:1600px; margin-inline:auto; }
footer.site-footer .links{ list-style:none; padding:0; margin:0 0 14px; display:flex; flex-wrap:wrap; gap:18px; }
footer.site-footer .links a:hover{ color:var(--accent); }

/* ============================================================
   Generic content / page styles
   ============================================================ */
.page-title{ font-size:28px; font-weight:800; margin:8px 0 20px; }
.page-content{ color:var(--text-sub); max-width:70ch; }
.page-content a{ color:var(--accent); text-decoration:underline; }
.pagination{ display:flex; gap:8px; flex-wrap:wrap; margin:28px 0; }
.pagination .page-numbers{ padding:8px 14px; border:1px solid var(--border); border-radius:10px; color:var(--text-sub); }
.pagination .page-numbers.current{ background:var(--primary); color:#fff; border-color:var(--primary); }
.pagination .page-numbers:hover{ border-color:var(--accent); }

/* ============================================================
   Form styling（plugin harmony）
   ============================================================ */
input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=tel],input[type=number],textarea,select{
  background:var(--bg-card); border:1px solid var(--border); color:var(--text-main);
  border-radius:10px; padding:10px 12px; font-family:inherit; font-size:14px;
}
input:focus,textarea:focus,select:focus{ outline:none; border-color:var(--primary); }
input[type=submit],button[type=submit],.wp-block-button__link{
  background:var(--cta); color:#fff; border:none; border-radius:var(--radius-btn);
  padding:12px 24px; font-weight:600; letter-spacing:.02em; box-shadow:var(--shadow-cta); cursor:pointer;
}
input[type=submit]:hover,button[type=submit]:hover,.wp-block-button__link:hover{ background:var(--cta-hover); }
.message-error{ color:#C0392B; } .message-success{ color:#2E7D32; }

/* ============================================================
   Skip link / a11y
   ============================================================ */
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:8px; top:8px; z-index:100; background:var(--cta); color:#fff; padding:8px 14px; border-radius:8px; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ============================================================
   Responsive (767px / SP 2 columns / tap 48px)
   ============================================================ */
@media (max-width:980px){
  .layout{ grid-template-columns:1fr; }
  aside.side{ position:fixed; left:0; top:0; width:var(--sidebar-w); transform:translateX(-100%); transition:transform .3s; z-index:60; }
  aside.side.open{ transform:none; box-shadow:0 0 0 100vmax rgba(0,0,0,.5); }
  .topbar .menu-toggle{ display:block; }
  /* 狭幅ではトップバーが詰まるため一覧ボタンは非表示（サイドバーから到達可）。 */
  .topbar-actions{ display:none; }
}
@media (max-width:767px){
  .topbar{ height:60px; padding:0 16px; }
  .pop-jump-nav{ top:60px; }
  .content{ padding:16px; }
  .feature-media{ aspect-ratio:16/9; }
  .feature-body{ padding:24px 20px 28px; }
  .feature .actions .btn-primary, .feature .actions .ghost, .feature .actions .btn-secondary{ width:100%; min-height:48px; }
  .grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .popular-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .popular-grid--large{ grid-template-columns:1fr; gap:16px; }
  .related .grid{ grid-template-columns:repeat(2,1fr); }
  .term-chips{ grid-template-columns:repeat(2,1fr); }
  .below-player{ flex-direction:column; }
  .below-player .btn-primary, .below-player .ghost, .below-player .btn-secondary{ width:100%; min-height:48px; }
  .desc{ padding:20px; }
  .cta-band{ padding:28px 18px; }
  .btn-primary, .btn-secondary{ min-height:48px; }
}

/* ============================================================
   女優プロフィール（タグアーカイブ /tag/{女優名}/ の冒頭）
   FANZA女優APIのスペック＋公開情報の紹介文を表示する。
   ============================================================ */
.actress-profile{ margin:0 0 10px; }
.actress-profile .ap-card{
  display:grid; grid-template-columns:200px 1fr; gap:24px; align-items:start;
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:24px;
}
/* 画像が無い女優は本文を全幅に（200px列を作らない）。 */
.actress-profile .ap-card--noimg{ grid-template-columns:1fr; }
/* ただしFANZAボタンの横位置は画像ありの場合と揃える（写真列200px＋gap24px ぶん字下げ）。 */
.actress-profile .ap-card--noimg .ap-cta{ margin-left:224px; }
.actress-profile .ap-photo{
  border-radius:12px; overflow:hidden; border:1px solid var(--border); background:var(--bg-main);
}
.actress-profile .ap-photo img{ width:100%; height:auto; object-fit:cover; }
.actress-profile .ap-name{
  font-size:clamp(24px,3vw,32px); font-weight:800; line-height:1.2; margin:2px 0 16px;
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
}
.actress-profile .ap-ruby{ font-size:14px; font-weight:500; color:var(--text-sub); letter-spacing:.04em; }
.actress-profile .ap-spec{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:10px; overflow:hidden;
  margin:0 0 18px;
}
.actress-profile .ap-spec-row{ display:flex; background:var(--bg-card); min-width:0; }
.actress-profile .ap-spec dt{
  flex:0 0 96px; margin:0; padding:9px 12px;
  background:rgba(180,90,62,.18); color:var(--text-main); font-weight:700; font-size:13px;
}
.actress-profile .ap-spec dd{
  flex:1; min-width:0; margin:0; padding:9px 12px;
  color:var(--text-sub); font-size:14px; word-break:break-word;
}
.actress-profile .ap-cta{ display:inline-flex; }
.actress-profile .ap-intro{ color:var(--text-sub); line-height:1.9; margin:16px 2px 0; }
.actress-profile .ap-bio{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:24px; margin:18px 0 0;
}
.actress-profile .ap-bio-title{
  font-size:18px; font-weight:700; margin:0 0 12px; padding-left:12px; border-left:4px solid var(--primary);
}
.actress-profile .ap-bio p{ color:var(--text-main); line-height:1.9; margin:0 0 14px; }
.actress-profile .ap-bio p:last-child{ margin-bottom:0; }
.actress-profile .ap-disclosure{ font-size:12px; color:var(--text-sub); margin:12px 2px 0; }
/* .actress-profile の外（プロフィール未収録の女優タグ）でも使うためスコープしない */
.ap-sister{ font-size:14px; color:var(--text-sub); line-height:1.9; margin:14px 2px 12px; }
.ap-sister a{ color:var(--primary); text-decoration:underline; }

@media (max-width:767px){
  .actress-profile .ap-card{ grid-template-columns:1fr; gap:16px; padding:18px; }
  .actress-profile .ap-photo{ max-width:220px; margin-inline:auto; }
  .actress-profile .ap-spec{ grid-template-columns:1fr; }
  .actress-profile .ap-cta{ display:flex; }
  /* スマホでは写真が上に積まれ本文は全幅のため、ボタンの字下げは解除。 */
  .actress-profile .ap-card--noimg .ap-cta{ margin-left:0; }
}

/* ============================================================
   出演女優プロフィール（個別記事の本文末尾）
   タグアーカイブ版（.actress-profile）のコンパクト版。bio は抜粋のみ。
   ============================================================ */
.actress-bio{ margin:28px 0 10px; }
.actress-bio .ab-card{
  display:grid; grid-template-columns:120px 1fr; gap:18px; align-items:start;
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:18px; margin:0 0 14px;
}
.actress-bio .ab-card--noimg{ grid-template-columns:1fr; }
.actress-bio .ab-photo{ border-radius:10px; overflow:hidden; border:1px solid var(--border); background:var(--bg-main); }
.actress-bio .ab-photo img{ width:100%; height:auto; object-fit:cover; }
.actress-bio .ab-name{ font-size:17px; font-weight:700; margin:0 0 8px; }
.actress-bio .ab-name .ab-ruby{ font-size:12px; font-weight:500; color:var(--text-sub); margin-left:8px; letter-spacing:.04em; }
.actress-bio .ab-excerpt{ color:var(--text-main); line-height:1.9; margin:0 0 12px; }
/* 女優ページへの導線ボタン：related の「一覧」ボタンと同じ塗り＋枠に揃える。 */
.actress-bio .ab-more{
  font-size:14px; padding:9px 18px;
  background:var(--primary); color:#fff; border-color:var(--accent); font-weight:700;
}
.actress-bio .ab-more:hover{ background:var(--cta-hover); border-color:var(--cta-hover); color:#fff; }
@media (max-width:767px){
  .actress-bio .ab-card{ grid-template-columns:88px 1fr; gap:14px; padding:14px; }
}
