/*
Theme Name: 深夜のTL同人文庫
Template: manga-base-theme
Description: DLsite TL同人特化レビューサイト「深夜のTL同人文庫」の子テーマ。案B「TL文庫のジャケット路線」。
Version: 1.0.0
*/

/* ===========================================================================
   CSS変数の上書き
   親テーマの :root を上書きすることで、サイト全体のトーンを変える
   =========================================================================== */
:root {
  /* 背景：ダークプラム系（ダーク基調は維持） */
  --bg-base:        #1a1419;
  --bg-surface:     #241a20;
  --bg-card:        #241a20;
  --bg-elevated:    #2e2128;

  /* テキスト：やわらかいピンクホワイト */
  --text-primary:   #fbeef0;
  --text-secondary: #e0cdd4;
  --text-muted:     #9a7d87;

  /* アクセント：ピンク × ローズ */
  --accent:         #e8b4c4;
  --accent-glow:    #f0c8d4;
  --accent-deep:    #d8a0b4;

  /* 機能色 */
  --price:          #e8859e;
  --sale:           #e8859e;
  --rating:         #e8b4c4;

  /* タイポ：丸ゴシックで統一 */
  --font-serif:     "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-sans:      "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-display:   "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

/* ===========================================================================
   フォント読み込み
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* ===========================================================================
   グレイン（フィルムノイズ）
   =========================================================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ワイン色フィルター */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    radial-gradient(ellipse at top, rgba(232,180,196,0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(216,160,180,0.03), transparent 50%);
}

/* ===========================================================================
   ブランドロゴをグラデに
   =========================================================================== */
.mb-brand__logo {
  font-family: var(--font-serif);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
}

.mb-brand__sub {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
}

/* ===========================================================================
   ヘッダーをガラス感に
   =========================================================================== */
.mb-header {
  background: rgba(26, 20, 25, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(232, 180, 196, 0.15);
}

/* ===========================================================================
   セクションタイトル
   =========================================================================== */
.mb-section__title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 22px;
}

/* ===========================================================================
   作品ヒーロー
   =========================================================================== */
.mb-work-hero__title {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 24px;
}
.mb-work-hero__image {
  box-shadow: 0 12px 32px rgba(0,0,0,0.4),
              0 0 0 1px rgba(232,180,196,0.2);
  border-radius: 14px;
}

/* ===========================================================================
   作品カード
   =========================================================================== */
.mb-card__thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.mb-card__thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .4s ease;
  z-index: 3;
}
.mb-card:hover .mb-card__thumb::after { width: 100%; }

.mb-card__title {
  font-weight: 700;
  font-size: 14px;
}

/* ===========================================================================
   CTAボタン（ホバーで光が走る）
   =========================================================================== */
.mb-cta {
  position: relative;
  overflow: hidden;
  font-size: 16px;
  letter-spacing: 0.05em;
  border-radius: 14px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--price), var(--accent));
  color: #fff;
}
.mb-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .5s;
}
.mb-cta:hover::before { left: 100%; }

/* ===========================================================================
   価格ボックス（左にアクセントライン）
   =========================================================================== */
.mb-price-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.mb-price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.mb-price-box__price {
  font-size: 32px;
  font-weight: 700;
}

/* ===========================================================================
   タグピル
   =========================================================================== */
.mb-tag-pill {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid rgba(232,180,196,0.25);
  border-radius: 12px;
  padding: 5px 12px;
  transition: background .2s;
}
.mb-tag-pill:hover {
  background: var(--bg-surface);
}

@media (max-width: 768px) {
  .mb-work-hero__title { font-size: 20px; }
  .mb-price-box__price { font-size: 28px; }
  .mb-cta { font-size: 15px; }
}

/* ===========================================================================
   年齢確認モーダル（上部にゴールドのライン）
   =========================================================================== */
.mb-age-modal__inner {
  border: 1px solid rgba(232, 180, 196, 0.3);
  position: relative;
}
.mb-age-modal__inner::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.mb-age-modal__title {
  font-family: var(--font-serif);
  font-weight: 800;
}
.mb-age-modal__buttons {
  align-items: stretch;
}
.mb-age-btn {
  font-family: var(--font-display);
  letter-spacing: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  padding: 14px 12px;
}
.mb-age-btn__sub {
  display: block;
  font-size: 0.78em;
  opacity: 0.85;
  margin-top: 3px;
  letter-spacing: 0;
}

/* ===========================================================================
   フッター（ゴールドの細ライン）
   =========================================================================== */
.mb-footer {
  background: #100d0f;
  border-top: 1px solid rgba(232, 180, 196, 0.1);
}

/* ===========================================================================
   記事本文の装飾（子テーマ）
   - 親の骨格 (.dlfh-*) に明朝・ナンバリング・グロー等を上乗せ
   =========================================================================== */

/* キャッチフレーズ：明朝でデカく */
.mb-post-content .dlfh-catchphrase {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* リード文：明朝寄り */
.mb-post-content .dlfh-lead {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(232, 180, 196, 0.06), transparent 60%);
  border-left-width: 4px;
}

/* H2：明朝 + ナンバリング装飾（疑似要素で 01. / 02. ... を出す） */
.mb-post-content {
  counter-reset: dlfh-h2-counter;
}
.mb-post-content .dlfh-h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  position: relative;
  padding-left: 64px;
  border-left: none;
  border-bottom: 1px solid rgba(232, 180, 196, 0.2);
}
.mb-post-content .dlfh-h2::before {
  counter-increment: dlfh-h2-counter;
  content: counter(dlfh-h2-counter, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
}

/* H3：明朝 + 細ライン強化 */
.mb-post-content .dlfh-h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* フェーズ見出し（序盤 / 中盤 / 終盤）：明朝で締める */
.mb-post-content .dlfh-experience-flow dt.dlfh-phase {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 22px;
}
.mb-post-content .dlfh-experience-flow dt.dlfh-phase::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: var(--accent);
}

/* 刺さる人リストのマーカーを ◆ ゴールドに */
.mb-post-content .dlfh-target-readers li::before {
  content: '◆';
  font-size: 10px;
  top: 14px;
}
.mb-post-content .dlfh-target-readers li {
  border-bottom-color: rgba(232, 180, 196, 0.1);
}

/* FAQ Q：明朝 + ゴールドグラデ背景 */
.mb-post-content .dlfh-faq .dlfh-faq-q {
  font-family: var(--font-serif);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(232, 180, 196, 0.08), transparent 80%);
  border-left-width: 4px;
}

/* FAQ A：左に薄ゴールド縦線 */
.mb-post-content .dlfh-faq .dlfh-faq-a {
  border-left: 1px solid rgba(232, 180, 196, 0.15);
  margin-left: 8px;
  padding: 4px 0 4px 16px;
}

/* モバイル微調整 */
@media (max-width: 640px) {
  .mb-post-content .dlfh-catchphrase { font-size: 22px; }
  .mb-post-content .dlfh-h2 { font-size: 20px; padding-left: 52px; }
  .mb-post-content .dlfh-h2::before { font-size: 28px; }
  .mb-post-content .dlfh-lead { font-size: 16px; }
}

/* ===========================================================================
   キュレーション記事 (.dlfh-list-*) 装飾
   - 親の骨格に明朝・グロー・金縁等を上乗せ
   =========================================================================== */

/* 冒頭キャッチ：明朝でデカく・グラデテキスト */
.dlfh-list-catchphrase {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* 導入文：明朝・ゴールドグラデ背景 */
.dlfh-list-lead {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(232, 180, 196, 0.06), transparent 60%);
  border-left-width: 4px;
}

/* H2：明朝 + 重厚ライン（カウンターなし） */
.dlfh-list-h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  border-left-width: 4px;
  border-bottom-color: rgba(232, 180, 196, 0.2);
}

/* 作品ブロック：ゴールド縁取り + ホバー発光 */
.dlfh-list-item {
  border-color: rgba(232, 180, 196, 0.25);
  transition: box-shadow 0.3s;
}
.dlfh-list-item:hover {
  box-shadow: 0 0 20px rgba(232, 180, 196, 0.2);
}

/* 第1位：金縁取り + No.1 バッジ（右上） */
.dlfh-list-item[data-rank="1"] {
  border-color: var(--price);
}
.dlfh-list-item[data-rank="1"]:hover {
  box-shadow: 0 0 28px rgba(232, 180, 196, 0.35);
}
.dlfh-list-item[data-rank="1"]::before {
  content: 'No.1';
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--price);
  background: rgba(232, 180, 196, 0.12);
  padding: 2px 10px;
  border: 1px solid rgba(232, 180, 196, 0.4);
  line-height: 1.6;
  z-index: 1;
}

/* スペック表の装飾 */
.dlfh-list-item__spec th {
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.dlfh-list-item__spec tr {
  border-bottom-color: rgba(232, 180, 196, 0.08);
}

/* ============================================================
   work-price ショートコード(設計書カラートークン準拠)
   ============================================================ */
.dlfh-price {
  font-weight: bold;
  color: var(--price);
}
.dlfh-price-block-sale {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dlfh-price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9em;
}
.dlfh-price-current {
  font-weight: bold;
  color: var(--sale);
  font-size: 1.1em;
}
.dlfh-sale-badge {
  background: var(--sale);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  line-height: 1.4;
}
.dlfh-sale-deadline {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* アピール文：左ラインで控えめに区別 */
.dlfh-list-item__appeal {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-block: 16px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.7;
}

/* 詳細レビューCTA：ゴールドボタン + シマー */
.dlfh-list-item__cta a {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.2em;
}
.dlfh-list-item__cta a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.dlfh-list-item__cta a:hover {
  color: #fff;
  background: var(--accent-glow);
}
.dlfh-list-item__cta a:hover::before {
  left: 100%;
}

/* 推奨表の装飾 */
.dlfh-list-recommendation thead th {
  background: rgba(232, 180, 196, 0.12);
  font-family: var(--font-serif);
  font-weight: 700;
}
.dlfh-list-recommendation tbody tr {
  border-bottom-color: rgba(232, 180, 196, 0.08);
}

/* 末尾CTAボタン：大型グラデ + シマー */
.dlfh-list-final-cta a {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.25em;
  position: relative;
  overflow: hidden;
}
.dlfh-list-final-cta a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}
.dlfh-list-final-cta a:hover {
  color: #fff;
}
.dlfh-list-final-cta a:hover::before {
  left: 100%;
}

/* モバイル微調整 */
@media (max-width: 767px) {
  .dlfh-list-catchphrase { font-size: 22px; }
  .dlfh-list-h2 { font-size: 20px; }
}

/* ===========================================================================
   目次の装飾
   =========================================================================== */
.mb-toc {
  background: linear-gradient(90deg, rgba(232, 180, 196, 0.08), transparent 80%);
  border-left-width: 4px;
}

.mb-toc__toggle {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mb-toc__toggle-state {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
}

.mb-toc__item--lv2 a {
  font-family: var(--font-serif);
  font-weight: 600;
}

.mb-toc__item a:hover {
  background: linear-gradient(90deg, rgba(232, 180, 196, 0.05), transparent 50%);
  padding-left: 8px;
}
.mb-toc__item--lv3 a:hover {
  padding-left: 28px;
}

/* ===========================================================================
   ヒーロー細部の装飾
   =========================================================================== */

/* 品番に Cormorant Garamond */
.mb-work-hero__product-id {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  box-shadow: 0 0 12px rgba(232, 180, 196, 0.15);
}
.mb-work-hero__source {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
}

/* 評価のデカ字を Cormorant Garamond に */
.mb-work-rating__num {
  font-family: var(--font-display);
  font-size: 44px;
  text-shadow: 0 0 16px rgba(232, 180, 196, 0.25);
}

/* 価格セール時のラベル & 割引バッジ */
.mb-price-box__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.mb-price-box__discount {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(168, 23, 74, 0.4);
}

/* セール終了日時の装飾 */
.mb-price-box__campaign-end {
  color: rgba(255, 255, 255, 0.7);
}
.mb-price-box__campaign-end-icon {
  color: #c8a96a;
}
.mb-price-box__campaign-end-date {
  color: #f5f5f5;
  font-weight: 600;
}

@media (max-width: 640px) {
  .mb-work-rating__num { font-size: 36px; }
}

/* ===========================================================================
   パンくず・タグセクションの装飾
   =========================================================================== */

/* パンくず: HOME を Cormorant Garamond で */
.mb-breadcrumb__link[href$="/"] {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
}

/* タグラベル: jp を主役に（英語 span は子テーマ tags.php で削除済み） */
.mb-tag-group__label-jp {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-round, var(--font-body));
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 1;
}
/* jp 単独前提でラベルの flex 方向を明示 */
.mb-tag-group__label {
  flex-direction: row;
  align-items: center;
}

/* タグピル: ホバーで輝くエフェクト */
.mb-tag-pill {
  position: relative;
  overflow: hidden;
}
.mb-tag-pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 196, 0.1), transparent);
  transition: left 0.4s;
}
.mb-tag-pill:hover::before {
  left: 100%;
}

/* ===========================================================================
   関連作品 / 末尾CTA の装飾
   =========================================================================== */

/* 関連セクションヘッダ */
.mb-related-head__label {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  color: var(--accent);
}

/* 末尾大型 CTA */
.mb-final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.mb-final-cta__label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.mb-final-cta__title {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mb-final-cta--sale .mb-final-cta__title {
  color: transparent;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mb-final-cta__copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .mb-final-cta__copy strong { font-size: 18px; }
}

/* ===========================================================================
   Archive Work — 装飾
   =========================================================================== */

/* ヘッダ左ボーダーグラデ縦棒 */
.mb-archive__header {
  position: relative;
  padding-left: 20px;
}
.mb-archive__header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent, #c8a96a), transparent);
}

.mb-archive__eyebrow {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  letter-spacing: 0.3em;
  text-shadow: 0 0 10px rgba(232, 180, 196, 0.7), 0 0 20px rgba(232, 180, 196, 0.4);
}

.mb-archive__title {
  font-family: var(--font-serif, 'Shippori Mincho', serif);
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, #fff 0%, var(--accent, #c8a96a) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mb-archive__lead {
  font-family: var(--font-serif, 'Shippori Mincho', serif);
  font-style: italic;
}

.mb-archive__count-num {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  text-shadow: 0 0 12px rgba(232, 180, 196, 0.7), 0 0 24px rgba(232, 180, 196, 0.4);
}

.mb-archive__count-label {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
}

/* ページネーション */
.mb-archive__pagination {
  border-top-color: rgba(232, 180, 196, 0.15);
}

.mb-archive__pagination a.page-numbers,
.mb-archive__pagination span.page-numbers {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 16px;
  letter-spacing: 0.05em;
  border-color: rgba(232, 180, 196, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.mb-archive__pagination a.page-numbers:hover {
  box-shadow: 0 0 10px rgba(232, 180, 196, 0.5), 0 0 20px rgba(232, 180, 196, 0.25);
  border-color: var(--accent, #c8a96a);
}

.mb-archive__pagination span.page-numbers.current {
  background: linear-gradient(135deg, var(--accent, #c8a96a), #a08045);
  border-color: var(--accent, #c8a96a);
  box-shadow: 0 0 12px rgba(232, 180, 196, 0.6), 0 0 24px rgba(232, 180, 196, 0.3);
}

.mb-page-label {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  letter-spacing: 0.2em;
}

.mb-archive__page-current {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  color: var(--accent, #c8a96a);
  text-shadow: 0 0 8px rgba(232, 180, 196, 0.7);
}

.mb-archive__page-total {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
}

/* 0件 */
.mb-archive__empty {
  border-color: rgba(232, 180, 196, 0.2);
}

.mb-archive__empty-text {
  font-family: var(--font-serif, 'Shippori Mincho', serif);
  font-style: italic;
}

/* ===========================================================================
   スクリーンリーダー専用（視覚的に非表示）
   =========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================================
   Front Page — mb-front-* TL路線スタイル
   ピンク × クリーム × ダークプラム / Zen Maru Gothic
   =========================================================================== */

/* --- 共通コンテナ --------------------------------------------------------- */
.mb-front-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero ----------------------------------------------------------------- */
.mb-section--front-hero {
  position: relative;
  padding: 32px 0 28px;
}
.mb-section--front-hero::before,
.mb-section--front-hero::after {
  display: none;
  content: '';
}

.mb-front-hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.mb-front-hero__inner::before {
  display: none;
  content: '';
}

.mb-front-hero__brand {
  background: #241a20;
  border: 1px solid rgba(232, 180, 196, 0.25);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.mb-front-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--accent, #e8b4c4);
  margin-bottom: 14px;
  display: block;
  background: none;
  border: none;
  padding: 0;
}

.mb-front-hero__site-name {
  font-size: 27px;
  font-weight: 700;
  color: var(--text-primary, #fbeef0);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.mb-front-hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  color: #d8a0b4;
  letter-spacing: 0.2em;
}
.mb-front-hero__tagline::before,
.mb-front-hero__tagline::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent, #e8b4c4);
}

.mb-front-hero__catch {
  font-size: 13px;
  color: #e0cdd4;
  line-height: 1.95;
}

/* Stats: 非表示 */
.mb-front-hero__stats {
  display: none;
}

/* Stat数字のグラデーション除去（念のため） */
.mb-front-hero__stat-num {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* Pickup */
.mb-front-hero__pickup-card {
  background: #241a20;
  border: 1px solid rgba(232, 180, 196, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

/* --- セクションヘッド ----------------------------------------------------- */
.mb-front-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
}
.mb-front-section-head::before {
  display: none;
  content: '';
}

.mb-front-section-head__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-front-section-head__icon {
  font-size: 18px;
}

.mb-front-section-head__ja {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #fbeef0);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
.mb-front-section-head__ja::after {
  display: none;
  content: '';
}

.mb-front-section-head__en {
  display: none;
}

.mb-front-view-all {
  font-size: 11px;
  color: #d8a0b4;
  text-decoration: none;
}
.mb-front-view-all:hover {
  color: var(--accent, #e8b4c4);
}

.mb-front-view-all-wrap {
  text-align: right;
}
.mb-front-view-all-wrap::before,
.mb-front-view-all-wrap::after {
  display: none;
  content: '';
}

/* --- 作品グリッド --------------------------------------------------------- */
.mb-front-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mb-front-work-card {
  background: #241a20;
  border: 1px solid rgba(232, 180, 196, 0.2);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.mb-front-work-card__cover {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.mb-front-work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.mb-front-work-card:hover .mb-front-work-card__cover img {
  transform: scale(1.04);
}
/* VIEW DETAIL を非表示 */
.mb-front-work-card__cover::after {
  display: none;
  content: '';
}

.mb-front-work-card__body {
  padding: 11px;
}

.mb-front-work-card__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary, #fbeef0);
  margin-bottom: 6px;
  min-height: 34px;
}

.mb-front-work-card__author {
  font-size: 10px;
  color: #c89aaa;
  margin-bottom: 8px;
}

.mb-front-work-card__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mb-front-work-card__tag {
  font-size: 9px;
  background: #3a2730;
  color: var(--accent, #e8b4c4);
  padding: 2px 7px;
  border-radius: 8px;
}

.mb-front-work-card__price {
  font-size: 13px;
  font-weight: 700;
  color: #e8859e;
}

/* ランクバッジ */
.mb-front-rank-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e8859e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background-image: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* SALEバッジ */
.mb-front-sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e8859e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

/* 推薦・おすすめ */
.mb-section--front-recommended {
  position: relative;
}
.mb-section--front-recommended::before {
  display: none;
  content: '';
}

/* --- タグセクション ------------------------------------------------------- */
.mb-front-tag-section {
  background: #241a20;
  border: 1px solid rgba(232, 180, 196, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.mb-front-tag-section__head {
  text-align: center;
  margin-bottom: 16px;
}

.mb-front-tag-section__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #fbeef0);
  margin-bottom: 4px;
}

.mb-front-tag-section__sub {
  font-size: 11px;
  color: #c89aaa;
}

/* --- タググリッド --------------------------------------------------------- */
.mb-front-tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mb-front-tag-card {
  background: #2e2128;
  border-radius: 12px;
  padding: 13px 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
}
.mb-front-tag-card:hover {
  background: #3a2530;
}
.mb-front-tag-card::after {
  display: none;
  content: '';
}

.mb-front-tag-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #fbeef0);
  margin-bottom: 3px;
}

.mb-front-tag-card__en {
  display: none;
}

.mb-front-tag-card__count {
  font-size: 10px;
  color: #c89aaa;
}

/* --- 特集記事 ------------------------------------------------------------- */
.mb-front-featured {
  background: #241a20;
  border: 1px solid rgba(232, 180, 196, 0.2);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  gap: 14px;
  text-decoration: none;
}

.mb-front-featured__thumb {
  width: 78px;
  height: 104px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(160deg, #4a2f3c 0%, #2a1d24 100%);
}

.mb-front-featured__body {
  flex: 1;
}

.mb-front-featured__no {
  font-size: 10px;
  color: #e8859e;
  font-weight: 700;
  margin-bottom: 6px;
}

.mb-front-featured__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #fbeef0);
  line-height: 1.5;
  margin-bottom: 8px;
}

.mb-front-featured__excerpt {
  font-size: 11px;
  color: #c89aaa;
  line-height: 1.7;
}

/* --- mb-section 汎用 ------------------------------------------------------ */
.mb-section--front {
  padding: 30px 0 0;
}

/* --- レスポンシブ --------------------------------------------------------- */
@media (max-width: 768px) {
  .mb-front-container        { padding: 0 14px; }
  .mb-front-hero__inner      { padding: 0 14px; }
  .mb-front-work-grid        { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mb-front-tag-grid         { grid-template-columns: repeat(2, 1fr); }
  .mb-front-section-head     { margin-bottom: 12px; }
  .mb-front-section-head__ja { font-size: 15px; }
}

@media (max-width: 480px) {
  .mb-front-hero__brand      { padding: 1.5rem 1rem; }
  .mb-front-hero__site-name  { font-size: 22px; }
  .mb-front-work-card__title { font-size: 11px; }
  .mb-front-tag-grid         { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .mb-front-tag-card         { padding: 10px 4px; }
  .mb-front-tag-card__label  { font-size: 11px; }
}


/* ===========================================================================
   Taxonomy List ( /{taxonomy_slug}/ )
   =========================================================================== */

.mb-tax-list {
  position: relative;
}

.mb-section--tax-list {
  padding: 0;
  position: relative;
}

.mb-tax-list__head {
  text-align: center;
  margin-bottom: 64px;
  padding: 96px 24px 56px;
  position: relative;
  border-bottom: 1px solid rgba(232, 180, 196, 0.18);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ヘッダー背景の薄い大型英字 */
.mb-tax-list__head::before {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(140px, 20vw, 260px);
  letter-spacing: -0.02em;
  color: rgba(232, 180, 196, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.mb-tax-list__head > * { position: relative; z-index: 1; }

.mb-tax-list__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.45em;
  color: var(--accent);
  margin: 0 0 18px;
}

.mb-tax-list__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.06em;
  color: transparent;
  background: linear-gradient(135deg, #fff 0%, #e8d5a8 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 12px;
  line-height: 1.2;
}

.mb-tax-list__en {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.55em;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.mb-tax-list__count {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(232, 180, 196, 0.85);
  letter-spacing: 0.25em;
  margin: 0;
}

/* グリッド */
.mb-tax-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* カード */
.mb-tax-list__card {
  position: relative;
  display: block;
  padding: 32px 28px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  min-height: 220px;
  isolation: isolate;
}
.mb-tax-list__card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 196, 0.4);
  border-left-color: var(--accent);
  background: var(--bg-elevated);
}

/* 代表サムネを背景レイヤーに */
.mb-tax-list__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(40%) blur(2px);
  transition: opacity .3s ease, filter .3s ease, transform .5s ease;
  z-index: 0;
}
.mb-tax-list__card:hover .mb-tax-list__card-bg {
  opacity: 0.35;
  filter: grayscale(0%) blur(0);
  transform: scale(1.04);
}

/* 暗色グラデーションオーバーレイで本文の可読性を確保 */
.mb-tax-list__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 8, 16, 0.88) 0%,
    rgba(26, 8, 16, 0.72) 60%,
    rgba(26, 8, 16, 0.96) 100%);
  z-index: 1;
}

/* ホバー時のアクセントライン (上端) */
.mb-tax-list__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .4s ease;
  z-index: 2;
}
.mb-tax-list__card:hover::after { width: 100%; }

.mb-tax-list__card-body {
  position: relative;
  z-index: 2;
}

.mb-tax-list__card-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.mb-tax-list__card-count {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin: 0 0 16px;
}

.mb-tax-list__card-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mb-tax-list__empty {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .mb-tax-list__grid       { grid-template-columns: repeat(2, 1fr); }
  .mb-tax-list__title      { font-size: 40px; }
}

@media (max-width: 768px) {
  .mb-tax-list__head       { padding: 72px 24px 44px; margin-bottom: 48px; }
  .mb-tax-list__title      { font-size: 32px; }
  .mb-tax-list__en         { font-size: 12px; letter-spacing: 0.45em; }
  .mb-tax-list__grid       { gap: 16px; padding: 0 24px 80px; }
  .mb-tax-list__card       { padding: 26px 22px; min-height: 180px; }
  .mb-tax-list__card-name  { font-size: 21px; }
}

@media (max-width: 480px) {
  .mb-tax-list__head       { padding: 60px 20px 36px; }
  .mb-tax-list__title      { font-size: 26px; }
  .mb-tax-list__grid       { grid-template-columns: 1fr; padding: 0 20px 60px; }
  .mb-tax-list__card       { min-height: 160px; }
}

/* ===========================================================================
   Page (固定ページ) — /about/ /privacy/ /contact/ /operator/ 等
   =========================================================================== */

.mb-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  position: relative;
}

.mb-page__head {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(232, 180, 196, 0.15);
  position: relative;
}

.mb-page__head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--accent);
}

.mb-page__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.mb-page__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

.mb-page__content h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 56px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

.mb-page__content h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: 0.04em;
}

.mb-page__content p {
  margin: 0 0 20px;
}

.mb-page__content ul,
.mb-page__content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.mb-page__content li {
  margin-bottom: 8px;
}

.mb-page__content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 196, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.mb-page__content a:hover {
  text-decoration-color: var(--accent);
}

.mb-page__content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.mb-page__content blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid rgba(232, 180, 196, 0.3);
  background: rgba(232, 180, 196, 0.04);
  color: var(--text-secondary);
  font-style: italic;
}

.mb-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
}
.mb-page__content table th,
.mb-page__content table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.mb-page__content table th {
  width: 30%;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mb-page__content code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  padding: 2px 6px;
  background: rgba(232, 180, 196, 0.08);
  color: var(--text-primary);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .mb-page                  { padding: 56px 24px 80px; }
  .mb-page__head            { margin-bottom: 40px; padding-bottom: 24px; }
  .mb-page__title           { font-size: 28px; }
  .mb-page__content h2      { font-size: 18px; margin: 44px 0 16px; }
  .mb-page__content h3      { font-size: 16px; margin: 32px 0 12px; }
  .mb-page__content table th { width: 35%; }
}

@media (max-width: 480px) {
  .mb-page                  { padding: 48px 20px 64px; }
  .mb-page__title           { font-size: 24px; }
  .mb-page__content         { font-size: 14px; line-height: 1.9; }
  .mb-page__content table th,
  .mb-page__content table td { padding: 10px 12px; font-size: 13px; }
}

/* ===========================================================================
   404 Not Found
   =========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.mb-section--404-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background: var(--bg-base);
  text-align: center;
  border-top: 1px solid rgba(232, 180, 196, 0.10);
  border-bottom: 1px solid rgba(232, 180, 196, 0.10);
}

/* 大型背景文字 "404" */
.mb-section--404-hero::before {
  content: '404';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(280px, 40vw, 480px);
  line-height: 1;
  color: rgba(232, 180, 196, 0.05);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mb-404__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.mb-404__num {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 16px;
}

.mb-404__en {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin: 0 0 28px;
  padding-left: 0.5em;
}

.mb-404__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.mb-404__desc {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

.mb-404__home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}
.mb-404__home-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.mb-404__home-link::after {
  content: '→';
  font-family: var(--font-sans);
  transition: transform 0.3s ease;
}
.mb-404__home-link:hover {
  color: var(--bg-base);
}
.mb-404__home-link:hover::before {
  transform: scaleX(1);
}
.mb-404__home-link:hover::after {
  transform: translateX(4px);
}

/* --- 新着作品 / 人気ジャンルセクション --------------------------------- */
.mb-section--404-latest,
.mb-section--404-tags {
  padding: 80px 0;
  background: var(--bg-base);
}

/* --- タグピル一覧 ------------------------------------------------------- */
.mb-404__tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mb-404__tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 180, 196, 0.15);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.mb-404__tag-pill:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.mb-404__tag-count {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.mb-404__tag-all {
  margin: 40px 0 0;
  text-align: center;
}
.mb-404__tag-all a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: padding-right 0.2s ease;
}
.mb-404__tag-all a:hover {
  padding-right: 8px;
}

/* --- レスポンシブ ------------------------------------------------------- */
@media (max-width: 768px) {
  .mb-section--404-hero       { padding: 100px 0 80px; }
  .mb-404__num                { font-size: 80px; }
  .mb-404__title              { font-size: 22px; }
  .mb-section--404-latest,
  .mb-section--404-tags       { padding: 56px 0; }
}

@media (max-width: 480px) {
  .mb-section--404-hero       { padding: 80px 0 60px; }
  .mb-404__num                { font-size: 64px; }
  .mb-404__title              { font-size: 18px; }
  .mb-404__desc               { font-size: 13px; }
  .mb-404__home-link          { padding: 12px 28px; font-size: 11px; letter-spacing: 0.25em; }
  .mb-404__tag-pill           { padding: 8px 14px; font-size: 13px; }
}

/* ===========================================================================
   Footer — 3カラム装飾 (BRAND / EXPLORE / ABOUT)
   =========================================================================== */

.mb-footer {
  background: #100d0f;
  position: relative;
  margin-top: 80px;
  padding: 88px 0 28px;
  border-top: 1px solid rgba(232, 180, 196, 0.18);
  overflow: hidden;
}

/* グラデーションのトップ罫線 */
.mb-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
  z-index: 1;
}

/* 大型背景文字 */
.mb-footer::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -20px;
  font-family: var(--font-display);
  font-size: clamp(180px, 26vw, 320px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(232, 180, 196, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mb-footer .mb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* メイン: 3カラム */
.mb-footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* about カラムが無い場合は 2 カラムに */
.mb-footer__main:not(:has(.mb-footer__col--about)) {
  grid-template-columns: 2fr 1fr;
}

/* --- カラム共通 --- */
.mb-footer__col {
  position: relative;
}

/* --- BRAND --- */
.mb-footer__col--brand {
  max-width: 460px;
}

.mb-footer__logo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.05em;
  margin: 0 0 22px;
  color: transparent;
  background: linear-gradient(135deg, #fff 0%, #e8d5a8 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mb-footer__brand-desc {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding-left: 16px;
  border-left: 1px solid rgba(232, 180, 196, 0.22);
}

/* --- さがす / サイト案内 見出し --- */
.mb-footer__heading {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 4px 0 22px;
  font-weight: 400;
  position: relative;
  padding-bottom: 14px;
}

.mb-footer__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* --- リスト --- */
.mb-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mb-footer__list li {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.mb-footer__list a {
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, padding 0.2s ease;
  position: relative;
}

.mb-footer__list a::before {
  content: '';
  width: 6px;
  height: 1px;
  background: rgba(232, 180, 196, 0.4);
  transition: width 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.mb-footer__list a:hover {
  color: var(--accent);
}

.mb-footer__list a:hover::before {
  width: 14px;
  background: var(--accent);
}

/* --- ボトム (コピーライト + 注意書き) --- */
.mb-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding-top: 4px;
}

.mb-footer__copy {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
}

.mb-footer__age {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(232, 180, 196, 0.55);
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .mb-footer__main {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mb-footer {
    padding: 64px 0 24px;
    margin-top: 56px;
  }
  .mb-footer .mb-container {
    padding: 0 20px;
  }
  .mb-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    margin-bottom: 40px;
    padding-bottom: 32px;
  }
  .mb-footer__col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .mb-footer__main:not(:has(.mb-footer__col--about)) {
    grid-template-columns: 1fr;
  }

  .mb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mb-footer::after {
    font-size: clamp(140px, 32vw, 220px);
    bottom: -30px;
  }
}

@media (max-width: 480px) {
  .mb-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mb-footer__logo { font-size: 24px; }
  .mb-footer::after { font-size: 120px; }
}

/* ===========================================================================
   作品本文 (.dlfh-article) 装飾 — 大人可愛い路線 (Step 11-5-2)
   AI生成HTMLのクラスをスタイリング。スマホファースト。
   =========================================================================== */

/* --- カウンターリセット --- */
.dlfh-article {
  counter-reset: dlfh-h2-counter;
}

/* --- キャッチコピー --- */
.dlfh-article .dlfh-catchphrase {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin: 1.2rem 0 1rem;
  line-height: 1.6;
}

/* --- リード文 --- */
.dlfh-article .dlfh-lead {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin: 0.8rem 0 1.2rem;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* --- 大見出し (H2) --- */
.mb-post-content .dlfh-article .dlfh-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.8rem 0 0.9rem;
  border: none;
  padding: 0;
  padding-left: 0;
  position: static;
}
.mb-post-content .dlfh-article .dlfh-h2::before {
  counter-increment: dlfh-h2-counter;
  content: counter(dlfh-h2-counter, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #2e2128;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  position: static;
  margin: 0;
  padding: 0;
}

/* --- 小見出し (H3) — ピル型ラベル --- */
.dlfh-article .dlfh-h3 {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 1.2rem 0 0.4rem;
  border: none;
}

/* --- カード共通 --- */
.dlfh-article .dlfh-synopsis,
.dlfh-article .dlfh-highlights,
.dlfh-article .dlfh-experience-flow,
.dlfh-article .dlfh-target-readers,
.dlfh-article .dlfh-review-body,
.dlfh-article .dlfh-faq {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 0.8rem;
}

/* カード内テキスト */
.dlfh-article .dlfh-synopsis p,
.dlfh-article .dlfh-highlights p,
.dlfh-article .dlfh-review-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 0 1.5em;
}
.dlfh-article .dlfh-synopsis p:last-child,
.dlfh-article .dlfh-highlights p:last-child,
.dlfh-article .dlfh-review-body p:last-child {
  margin-bottom: 0;
}

/* --- 体験フロー (dl/dt/dd) --- */
.dlfh-article .dlfh-experience-flow {
  display: block;
}
.mb-post-content .dlfh-article .dlfh-experience-flow dt.dlfh-phase {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  padding-left: 10px;
  border-radius: 20px;
  margin: 0.6rem 0 0.3rem;
  border: none;
  border-bottom: none;
  text-decoration: none;
  background-image: none;
  position: static;
}
.mb-post-content .dlfh-article .dlfh-experience-flow dt.dlfh-phase::before {
  display: none;
  content: none;
}
.dlfh-article .dlfh-experience-flow dd {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 0 1.2rem 0;
  padding: 0;
}

/* --- 刺さる人リスト --- */
.mb-post-content .dlfh-article .dlfh-target-readers ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mb-post-content .dlfh-article .dlfh-target-readers li {
  position: relative;
  padding: 0.9em 0 0.9em 2em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  list-style: none;
  margin: 0;
  border-bottom: 1px solid rgba(232, 180, 196, 0.12);
}
.mb-post-content .dlfh-article .dlfh-target-readers li:last-child {
  border-bottom: none;
}
.mb-post-content .dlfh-article .dlfh-target-readers li::before {
  content: '♡';
  position: absolute;
  left: 0;
  top: 0.9em;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.9;
}

/* --- FAQ --- */
.mb-post-content .dlfh-article .dlfh-faq .dlfh-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.2rem 0 0.9rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  display: block;
}
.mb-post-content .dlfh-article .dlfh-faq .dlfh-faq-q:first-child {
  margin-top: 0;
}
.mb-post-content .dlfh-article .dlfh-faq .dlfh-faq-a {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  border-left: 2px solid var(--bg-elevated);
  padding-left: 14px;
  margin: 0 0 0 4px;
}

@media (max-width: 768px) {
  .dlfh-article .dlfh-synopsis,
  .dlfh-article .dlfh-highlights,
  .dlfh-article .dlfh-experience-flow,
  .dlfh-article .dlfh-target-readers,
  .dlfh-article .dlfh-review-body,
  .dlfh-article .dlfh-faq { padding: 16px 18px; }
  .dlfh-article .dlfh-catchphrase { font-size: 17px; }
  .dlfh-article .dlfh-lead { font-size: 14px; }
  .mb-post-content .dlfh-article .dlfh-h2 { font-size: 16px; }
  .dlfh-article .dlfh-h3 { font-size: 12px; }
  .dlfh-article .dlfh-synopsis p,
  .dlfh-article .dlfh-highlights p,
  .dlfh-article .dlfh-review-body p { font-size: 13px; }
  .dlfh-article .dlfh-experience-flow dd { font-size: 13px; }
  .mb-post-content .dlfh-article .dlfh-target-readers li {
    font-size: 13px;
    padding: 0.8em 0 0.8em 1.8em;
  }
  .mb-post-content .dlfh-article .dlfh-target-readers li::before { top: 0.8em; }
  .mb-post-content .dlfh-article .dlfh-faq .dlfh-faq-q { font-size: 13px; }
  .mb-post-content .dlfh-article .dlfh-faq .dlfh-faq-a { font-size: 13px; }
}
