/*
Theme Name: Manga Base Theme
Theme URI: https://chikubin.com/
Description: ジャンル特化型 成人向け漫画・同人レビューサイト網の共通親テーマ。中立的な骨格のみを提供し、サイト固有のデザインは子テーマで上書きする。
Author: manga-hub project
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.2
Text Domain: manga-base
*/

/* ===========================================================================
   デザイントークン（CSS変数）
   子テーマで上書きすることで、サイトごとのブランディングを実現する
   =========================================================================== */
:root {
  /* 背景 */
  --bg-base:        #0e0e10;
  --bg-surface:     #16161a;
  --bg-card:        #1c1c20;
  --bg-elevated:    #232328;

  /* テキスト */
  --text-primary:   #ececec;
  --text-secondary: #b8b8b8;
  --text-muted:     #767676;

  /* アクセント（子テーマで必ず上書きする想定） */
  --accent:         #c44569;
  --accent-glow:    #d96485;
  --accent-deep:    #8b2745;

  /* 機能色 */
  --price:          #d4a017;
  --sale:           #d63031;
  --rating:         #e8b923;

  /* タイポグラフィ */
  --font-serif:     "Noto Serif JP", serif;
  --font-sans:      "Noto Sans JP", -apple-system, "Segoe UI", sans-serif;
  --font-display:   var(--font-sans);

  /* レイアウト */
  --max-width:      1280px;
  --gutter:         32px;
  --gutter-mobile:  20px;
  --gap:            20px;
  --radius:         4px;

  /* z-index */
  --z-header:       100;
  --z-sticky-cta:   90;
  --z-modal:        10000;

  /* 表紙画像アスペクト比（子テーマで上書き可） */
  --cover-aspect-portrait:  3 / 4;
  --cover-aspect-landscape: 4 / 3;
}

/* ===========================================================================
   リセット
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-glow); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===========================================================================
   レイアウト基盤
   =========================================================================== */
.mb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 768px) {
  .mb-container { padding: 0 var(--gutter-mobile); }
}

/* ===========================================================================
   ヘッダー
   =========================================================================== */
.mb-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-elevated);
}
.mb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.mb-brand { display: flex; align-items: baseline; gap: 12px; }
.mb-brand__logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.mb-brand__sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .mb-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .mb-brand__logo {
    white-space: nowrap;
    font-size: 20px;
  }
  .mb-brand__sub {
    font-size: 10px;
    letter-spacing: 0.05em;
    opacity: 0.75;
  }
}
.mb-nav { display: flex; gap: 24px; font-size: 13px; }
.mb-nav a { color: var(--text-secondary); }
.mb-nav a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .mb-nav { display: none; }
  .mb-header__inner { padding: 14px var(--gutter-mobile); }
}

/* ===========================================================================
   作品カード
   =========================================================================== */
.mb-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 968px) { .mb-work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mb-work-grid { grid-template-columns: repeat(2, 1fr); } }

.mb-card { display: block; color: inherit; }
.mb-card__thumb {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 10px;
}
.mb-card__thumb.portrait  { aspect-ratio: var(--cover-aspect-portrait); }
.mb-card__thumb.landscape { aspect-ratio: var(--cover-aspect-landscape); }
.mb-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.mb-card:hover .mb-card__thumb img { transform: scale(1.04); }
.mb-card__circle {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.mb-card__title {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mb-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.mb-card__price { color: var(--price); font-weight: 600; }
.mb-card__price--sale { color: var(--sale); }
.mb-card__price-strike {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 11px;
  margin-right: 4px;
  font-weight: 400;
}
.mb-card__rating { color: var(--rating); }
.mb-card__sale-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  z-index: 2;
}

/* キュレーション記事カード用の抜粋(card-list.php で使用) */
.mb-card__excerpt {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* アーカイブヘッダー(archive-list.php で使用) */
.mb-archive-header {
  margin-bottom: 32px;
}
.mb-archive-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.mb-archive-lead {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.mb-empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* ===========================================================================
   一覧グリッド: 表紙アスペクト比を縦長 3:4 に強制統一
   - DLsite/FANZA 同人(横長)と商業(縦長)の混在で行高が揃わない問題への対応
   - .mb-card__thumb.portrait/.landscape の動的クラスを上書き
   - 作品ページのヒーロー (.mb-work-hero__image) には影響しない
   - object-fit: cover は .mb-card__thumb img に既に効いているので追加不要
   =========================================================================== */
.mb-work-grid .mb-card__thumb,
.mb-front-work-grid .mb-card__thumb {
  aspect-ratio: var(--cover-aspect-portrait);
}

/* ===========================================================================
   作品ヒーロー
   =========================================================================== */
.mb-work-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
}
@media (max-width: 968px) { .mb-work-hero { grid-template-columns: 1fr; gap: 24px; } }

.mb-work-hero__image {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.mb-work-hero__image.portrait  { aspect-ratio: var(--cover-aspect-portrait); }
.mb-work-hero__image.landscape { aspect-ratio: var(--cover-aspect-landscape); }
.mb-work-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.mb-work-hero__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
}
.mb-work-hero__circle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* ヒーロー内の AI 訴求文（旧インライン style から移行） */
.mb-work-hero__appeal {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
}

.mb-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
  margin: 20px 0;
  border-top: 1px solid var(--bg-elevated);
}
.mb-meta__row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-elevated);
  font-size: 13px;
}
.mb-meta__label { width: 80px; color: var(--text-muted); flex-shrink: 0; }
.mb-meta__value { color: var(--text-secondary); }
@media (max-width: 640px) { .mb-meta { grid-template-columns: 1fr; gap: 0; } }

.mb-price-box {
  background: var(--bg-elevated);
  padding: 20px 24px;
  margin: 20px 0;
}
.mb-price-box__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--sale);
  line-height: 1;
}
.mb-price-box__original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 12px;
}

.mb-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: background .2s;
}
.mb-cta:hover { background: var(--accent-glow); color: #fff !important; }
.mb-cta--secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-elevated);
  margin-top: 8px;
}
.mb-cta--secondary:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ===========================================================================
   セクション
   =========================================================================== */
.mb-section {
  padding-top: 40px;
  padding-bottom: 40px;
}
.mb-section__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-elevated);
}

/* ===========================================================================
   サンプル画像ギャラリー
   =========================================================================== */
.mb-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) { .mb-gallery { grid-template-columns: 1fr; } }
.mb-gallery__item {
  background: var(--bg-card);
  cursor: pointer;
}
.mb-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ===========================================================================
   タグ
   =========================================================================== */
.mb-tag-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-elevated);
  align-items: center;
}
.mb-tag-group__label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.mb-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  margin: 0 6px 6px 0;
  border-radius: var(--radius);
}
.mb-tag-pill:hover { background: var(--bg-elevated); color: var(--accent); }
@media (max-width: 640px) {
  .mb-tag-group { grid-template-columns: 1fr; gap: 8px; }
}

/* ===========================================================================
   フッター
   =========================================================================== */
.mb-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-elevated);
  padding: 40px 0 20px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12px;
}
.mb-footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--bg-elevated);
  letter-spacing: 0.05em;
}

/* ===========================================================================
   年齢確認モーダル
   =========================================================================== */
.mb-age-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mb-age-modal[hidden] { display: none; }
.mb-age-modal__inner {
  max-width: 460px;
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
}
.mb-age-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.5;
}
.mb-age-modal__copy {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 0 0 28px;
}
.mb-age-modal__buttons {
  display: flex;
  gap: 12px;
}
.mb-age-btn {
  flex: 1;
  padding: 14px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .2s;
}
.mb-age-btn--yes { background: var(--accent); color: #fff; }
.mb-age-btn--yes:hover { background: var(--accent-glow); }
.mb-age-btn--no {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--bg-elevated);
}
.mb-age-btn--no:hover { color: var(--text-primary); }

/* ===========================================================================
   スティッキー下部CTA（モバイル）
   =========================================================================== */
.mb-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--bg-elevated);
  padding: 12px 16px;
  z-index: var(--z-sticky-cta);
  display: none;
  align-items: center;
  gap: 12px;
}
@media (max-width: 768px) { .mb-sticky-cta--mobile { display: flex; } }

/* ===========================================================================
   記事本文 (AI 生成 HTML / .dlfh-* クラス)
   - .mb-post-content をスコープ親に固定
   - 親テーマでは骨格と可読性のみ。装飾は子テーマで追加
   =========================================================================== */
.mb-post-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-primary);
  max-width: 760px;
  margin: 0 auto;
}

/* キャッチフレーズ（冒頭の煽り文・15字以内想定） */
.mb-post-content .dlfh-catchphrase {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 32px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* リード文（150-200字） */
.mb-post-content .dlfh-lead {
  font-size: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin: 0 0 56px;
}
.mb-post-content .dlfh-lead p {
  margin: 0;
}

/* H2 セクション見出し */
.mb-post-content .dlfh-h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 64px 0 28px;
  padding: 0 0 14px 16px;
  border-left: 5px solid var(--accent);
  border-bottom: 1px solid var(--bg-elevated);
}

/* H3 サブ見出し */
.mb-post-content .dlfh-h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--text-primary);
}

/* あらすじ */
.mb-post-content .dlfh-synopsis p {
  margin: 0 0 20px;
}

/* 魅力ポイント */
.mb-post-content .dlfh-highlights p {
  margin: 0 0 24px;
}

/* ストーリー展開（dl/dt/dd） */
.mb-post-content .dlfh-experience-flow {
  margin: 0;
}
.mb-post-content .dlfh-experience-flow dl {
  margin: 0;
}
.mb-post-content .dlfh-experience-flow dt.dlfh-phase {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 10px;
  letter-spacing: 0.05em;
}
.mb-post-content .dlfh-experience-flow dt.dlfh-phase:first-child {
  margin-top: 8px;
}
.mb-post-content .dlfh-experience-flow dd {
  margin: 0;
  padding: 0;
}

/* 刺さる人リスト */
.mb-post-content .dlfh-target-readers {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.mb-post-content .dlfh-target-readers li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--bg-elevated);
}
.mb-post-content .dlfh-target-readers li:last-child {
  border-bottom: none;
}
.mb-post-content .dlfh-target-readers li::before {
  content: '▶';
  position: absolute;
  left: 4px;
  top: 12px;
  color: var(--accent);
  font-size: 11px;
}

/* レビュー本文 */
.mb-post-content .dlfh-review-body p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 2.0;
}
.mb-post-content .dlfh-review-body p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.mb-post-content .dlfh-faq {
  margin: 0;
}
.mb-post-content .dlfh-faq .dlfh-faq-q {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 32px 0 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-bottom: none;
}
.mb-post-content .dlfh-faq .dlfh-faq-q:first-child {
  margin-top: 0;
}
.mb-post-content .dlfh-faq .dlfh-faq-a {
  margin: 0 0 8px;
  padding: 0 16px;
  color: var(--text-secondary);
}

/* モバイル */
@media (max-width: 640px) {
  .mb-post-content { font-size: 15px; line-height: 1.9; }
  .mb-post-content .dlfh-catchphrase { font-size: 20px; margin: 0 0 24px; }
  .mb-post-content .dlfh-lead { padding: 14px 16px; margin: 0 0 40px; }
  .mb-post-content .dlfh-h2 { font-size: 19px; margin: 48px 0 20px; padding-left: 12px; }
  .mb-post-content .dlfh-h3 { font-size: 16px; margin: 28px 0 10px; }
  .mb-post-content .dlfh-experience-flow dt.dlfh-phase { font-size: 16px; }
  .mb-post-content .dlfh-faq .dlfh-faq-q { font-size: 15px; padding: 12px 14px; }
  .mb-post-content .dlfh-faq .dlfh-faq-a { padding: 0 14px; }
}

/* ===========================================================================
   キュレーション記事 (.dlfh-list-* クラス) — 骨格・レイアウト
   - 色・フォント装飾は子テーマで追加
   =========================================================================== */

.dlfh-list {
  max-width: 760px;
  margin: 0 auto;
}

/* 冒頭キャッチ */
.dlfh-list-catchphrase {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 32px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* 導入文 */
.dlfh-list-lead {
  font-size: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin: 0 0 48px;
}
.dlfh-list-lead p {
  margin: 0;
}

/* セクション見出し */
.dlfh-list-h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 56px 0 24px;
  padding: 0 0 14px 16px;
  border-left: 5px solid var(--accent);
  border-bottom: 1px solid var(--bg-elevated);
}

/* 作品ブロック：PC は左210px+右1fr の2カラムグリッド */
.dlfh-list-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  column-gap: 24px;
  padding: 24px;
  margin-bottom: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* 表紙：左カラム固定・右カラム全行をスパン */
.dlfh-list-item__cover {
  grid-column: 1;
  grid-row: 1 / span 10;
  align-self: start;
}
.dlfh-list-item__cover img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

/* 右カラム要素：明示的に column 2 へ配置 */
.dlfh-list-item__spec    { grid-column: 2; margin-bottom: 14px; }
.dlfh-list-item__appeal  { grid-column: 2; margin-bottom: 10px; font-size: 15px; line-height: 1.85; }
.dlfh-list-item__synopsis  { grid-column: 2; margin-bottom: 10px; font-size: 14px; line-height: 1.85; color: var(--text-secondary); }
.dlfh-list-item__highlight { grid-column: 2; margin-bottom: 10px; font-size: 14px; line-height: 1.85; }
.dlfh-list-item__cta     { grid-column: 2; }
.dlfh-list-item__appeal p,
.dlfh-list-item__synopsis p,
.dlfh-list-item__highlight p { margin: 0; }

/* スペック表 */
.dlfh-list-item__spec {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.dlfh-list-item__spec th {
  width: 80px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 6px 8px 6px 0;
  vertical-align: top;
}
.dlfh-list-item__spec td {
  padding: 6px 0;
  word-break: break-all;
  vertical-align: top;
}
.dlfh-list-item__spec tr {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.dlfh-list-item__spec tr:last-child {
  border-bottom: none;
}

/* 詳細レビューCTA */
.dlfh-list-item__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

/* 推奨表 */
.dlfh-list-recommendation {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  font-size: 14px;
}
.dlfh-list-recommendation thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.dlfh-list-recommendation tbody td {
  padding: 10px 14px;
  vertical-align: top;
}
.dlfh-list-recommendation tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* まとめ文 */
.dlfh-list-conclusion {
  margin-top: 32px;
  font-size: 15px;
  line-height: 2;
}
.dlfh-list-conclusion p {
  margin: 0 0 20px;
}

/* 末尾CTA */
.dlfh-list-final-cta {
  text-align: center;
  margin-top: 60px;
}
.dlfh-list-final-cta a {
  display: inline-block;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

/* モバイル (767px 以下): 1カラム縦積み */
@media (max-width: 767px) {
  .dlfh-list-item {
    display: block;
  }
  .dlfh-list-item__cover {
    max-width: 280px;
    margin: 0 auto 16px;
  }
  .dlfh-list-item__cover img {
    max-width: 100%;
  }
  .dlfh-list-item__spec th {
    width: 68px;
  }
  .dlfh-list-final-cta a {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .dlfh-list-catchphrase { font-size: 20px; }
  .dlfh-list-h2 { font-size: 19px; }
}

/* ===========================================================================
   目次 (TOC) — 折りたたみ式
   - Alpine.js で開閉
   - 親テーマでは骨格のみ。装飾は子テーマで上乗せ
   =========================================================================== */
.mb-toc {
  margin: 0 auto 48px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  max-width: 760px;
}

.mb-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}
.mb-toc__toggle:hover {
  background: var(--bg-elevated);
}

.mb-toc__toggle-label {
  position: relative;
  padding-left: 22px;
}
.mb-toc__toggle-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.mb-toc__toggle-state {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.mb-toc__list {
  list-style: none;
  margin: 0;
  padding: 0 20px 16px;
  border-top: 1px solid var(--bg-elevated);
}

.mb-toc__item {
  margin: 0;
}

.mb-toc__item a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s;
}
.mb-toc__item a:hover {
  color: var(--accent);
}
.mb-toc__item:last-child a {
  border-bottom: none;
}

.mb-toc__item--lv2 a {
  padding-left: 0;
}
.mb-toc__item--lv3 a {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.mb-toc__item--lv3 a::before {
  content: '└';
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* スクロール時のオフセット（sticky ヘッダ分） */
.mb-post-content [id] {
  scroll-margin-top: 80px;
}

@media (max-width: 640px) {
  .mb-toc { margin: 0 0 32px; }
  .mb-toc__toggle { padding: 14px 16px; font-size: 14px; }
  .mb-toc__list { padding: 0 16px 14px; }
  .mb-toc__item--lv3 a { padding-left: 16px; }
}

/* ===========================================================================
   ヒーロー細部 (Step 4-4-3b)
   - 品番ピンク枠 / 評価デカ字 / 価格セール装飾 / CTA小文言
   =========================================================================== */

/* 品番（ピンク枠囲み） */
.mb-work-hero__product-id-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.mb-work-hero__product-id {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.25em;
  line-height: 1.3;
}
.mb-work-hero__source {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* 評価デカ字 */
.mb-work-rating {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 16px 0 24px;
}
.mb-work-rating__num {
  font-size: 38px;
  font-weight: 700;
  color: var(--rating);
  line-height: 1;
}
.mb-work-rating__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mb-work-rating__stars {
  font-size: 16px;
  color: var(--rating);
  letter-spacing: 0.05em;
}
.mb-work-rating__count {
  font-size: 12px;
  color: var(--text-muted);
}

/* 価格箱（セール時の装飾） */
.mb-price-box__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.mb-price-box__current {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.mb-price-box__discount {
  display: inline-block;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  line-height: 1.2;
}

/* セール終了日時 */
.mb-price-box__campaign-end {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary, #d1d5db);
}
.mb-price-box__campaign-end-icon {
  font-size: 1em;
  opacity: 0.8;
}
.mb-price-box__campaign-end-label {
  font-weight: 500;
}
.mb-price-box__campaign-end-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}


/* ===========================================================================
   本文の <strong> 装飾 (蛍光マーカー風)
   =========================================================================== */
.mb-post-content .dlfh-review-body strong,
.mb-post-content .dlfh-synopsis strong,
.mb-post-content .dlfh-highlights strong,
.mb-post-content .dlfh-experience-flow strong,
.mb-post-content .dlfh-lead strong {
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(255, 22, 84, 0.18) 60%);
  padding: 0 2px;
}

@media (max-width: 640px) {
  .mb-work-hero__product-id { font-size: 11px; padding: 3px 8px; }
  .mb-work-rating__num { font-size: 32px; }
  .mb-work-rating__stars { font-size: 14px; }
  .mb-price-box__discount { font-size: 11px; padding: 2px 6px; }
}

/* ===========================================================================
   パンくず (Step 4-4-4a)
   =========================================================================== */
.mb-breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0;
}
.mb-breadcrumb__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.mb-breadcrumb__link:hover {
  color: var(--accent);
}
.mb-breadcrumb__sep {
  margin: 0 12px;
  color: var(--text-muted);
}
.mb-breadcrumb__current {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .mb-breadcrumb { font-size: 11px; padding: 12px 0; }
  .mb-breadcrumb__sep { margin: 0 8px; }
}

/* ===========================================================================
   タグセクション (Step 4-4-4a)
   =========================================================================== */
.mb-tag-section {
  display: grid;
  gap: 24px;
}

.mb-tag-group {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-elevated);
}
.mb-tag-group:last-child {
  border-bottom: none;
}

.mb-tag-group__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mb-tag-group__label-en {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  line-height: 1.2;
}
.mb-tag-group__label-jp {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.mb-tag-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mb-tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.mb-tag-pill:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  border-left-color: var(--accent);
}

@media (max-width: 640px) {
  .mb-tag-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mb-tag-group__label {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
}

/* ===========================================================================
   関連作品セクションヘッダ (Step 4-4-4b)
   =========================================================================== */
.mb-related-head {
  margin: 0 0 24px;
}
.mb-related-head__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mb-related-head__title {
  margin: 0;
}

/* ===========================================================================
   末尾大型CTA (Step 4-4-4b)
   =========================================================================== */
.mb-final-cta {
  margin: 56px 0 32px;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mb-final-cta--sale {
  border-color: rgba(255, 22, 84, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 22, 84, 0.05));
}

.mb-final-cta__label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin: 0 0 16px;
}

.mb-final-cta__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--text-primary);
  border: none;
  padding: 0;
}

.mb-final-cta__copy {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}
.mb-final-cta__copy strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.mb-final-cta__btn {
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 640px) {
  .mb-final-cta { padding: 36px 20px; margin: 40px 0 24px; }
  .mb-final-cta__title { font-size: 22px; }
  .mb-final-cta__copy { font-size: 14px; }
}

/* ===========================================================================
   Archive Work — 骨格 (stage 4-4-5)
   =========================================================================== */

/* ヘッダ */
.mb-archive__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border, var(--border, #2a2a30));
}

.mb-archive__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-accent, var(--accent, #c44569));
  margin: 0 0 6px;
}

.mb-archive__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--color-text, var(--text-primary, #ececec));
  margin: 0 0 8px;
  line-height: 1.15;
}

.mb-archive__lead {
  font-size: 13px;
  color: var(--color-text-sub, var(--text-secondary, #b8b8b8));
  margin: 0;
}

.mb-archive__count {
  text-align: right;
  flex-shrink: 0;
  margin-left: 24px;
}

.mb-archive__count-num {
  display: block;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--color-accent, var(--accent, #c44569));
  line-height: 1;
}

.mb-archive__count-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub, var(--text-secondary, #b8b8b8));
  margin-top: 4px;
}

@media (max-width: 600px) {
  .mb-archive__count-num { font-size: 36px; }
}

/* ページネーション */
.mb-archive__pagination {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, var(--border, #2a2a30));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mb-archive__pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.mb-archive__pagination a.page-numbers,
.mb-archive__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--color-border, var(--border, #2a2a30));
  color: var(--color-text, var(--text-primary, #ececec));
  text-decoration: none;
  font-size: 14px;
  gap: 4px;
}

.mb-archive__pagination a.page-numbers:hover {
  border-color: var(--color-accent, var(--accent, #c44569));
}

.mb-archive__pagination span.page-numbers.current {
  background-color: var(--color-accent, var(--accent, #c44569));
  border-color: var(--color-accent, var(--accent, #c44569));
  color: #fff;
}

.mb-archive__pagination .page-numbers.dots {
  border: none;
  min-width: auto;
}

.mb-page-arrow {
  font-size: 18px;
  line-height: 1;
}

.mb-page-label {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.mb-archive__page-status {
  font-size: 13px;
  color: var(--color-text-sub, var(--text-secondary, #b8b8b8));
  margin: 0;
}

.mb-archive__page-current {
  color: #fff;
  font-weight: 700;
}

.mb-archive__page-divider {
  opacity: 0.5;
  margin: 0 6px;
}

/* 0件 */
.mb-archive__empty {
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed var(--color-border, var(--border, #2a2a30));
}

.mb-archive__empty-text {
  color: var(--color-text-sub, var(--text-secondary, #b8b8b8));
  margin: 0;
}
