@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ======================================
** エロックス: カラーパレット (noir)
   ====================================== */
:root {
  --erx-main:   #1a1a1a; /* 墨黒 (ヘッダー・h2 文字・リンク強調) */
  --erx-sub:    #c0392b; /* 深赤 (差し色・h2 バー・CTA) */
  --erx-accent: #ffd700; /* 金 (★マーク等の最小面積のみ) */
  --erx-base:   #f8f8f8; /* オフ白 (背景) */
  --erx-ink:    #2a2a2a; /* 本文色 */
  --erx-mute:   #777;    /* 補助グレー */
}

/* ======================================
** 見出し (h2 / h3) ミニマル下線スタイル
   ====================================== */
.article h2,
.entry-content h2 {
  position: relative;
  color: var(--erx-main);
  font-weight: 700;
  background: none !important;
  border: none !important;
  padding: 0.5em 0 0.7em 0 !important;
  margin: 2.5em 0 1em !important;
  letter-spacing: 0.02em;
}
.article h2::after,
.entry-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--erx-sub);
  border-radius: 2px;
}

.article h3,
.entry-content h3 {
  position: relative;
  color: var(--erx-main);
  font-weight: 600;
  background: none !important;
  border: none !important;
  padding: 0.5em 0 0.6em 0 !important;
  margin: 2.5em 0 1.2em !important;
}
.article h3::after,
.entry-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--erx-sub);
  opacity: 0.65;
  border-radius: 2px;
}

/* ======================================
** 本文 (段落・リスト) モバイル可読性
   ====================================== */
.article p,
.entry-content p {
  line-height: 1.9;
  margin-bottom: 1.5em;
}
.article h3 + p,
.entry-content h3 + p {
  margin-top: 1em;
}
@media screen and (max-width: 600px) {
  .article p,
  .entry-content p {
    line-height: 2;
    letter-spacing: 0.02em;
    margin-bottom: 1.8em;
  }
  .article h3 + p,
  .entry-content h3 + p {
    margin-top: 1.3em;
  }
  /* 文単位改行の間隔を広めに */
  .erx-sentence { margin-bottom: 1em !important; }
}

/* ======================================
** こんな人におすすめリスト
   ====================================== */
.erx-reco-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1em 0 2em !important;
}
.erx-reco-list li {
  position: relative;
  padding: 0.6em 0.8em 0.6em 2em !important;
  margin-bottom: 0.4em !important;
  background: var(--erx-base);
  border-radius: 4px;
  line-height: 1.7;
  list-style: none !important;
}
.erx-reco-list li::before {
  content: '✓';
  position: absolute;
  left: 0.7em;
  top: 0.6em;
  color: var(--erx-sub);
  font-weight: 700;
}

/* ======================================
** リード文
   ====================================== */
.article p.lead,
.entry-content p.lead {
  font-size: 1.05em;
  font-weight: 500;
  color: var(--erx-ink);
  line-height: 1.9;
  margin: 1em 0 1.5em;
}

.erx-sentence { display: inline; }
@media screen and (max-width: 600px) {
  .erx-sentence { display: block; margin-bottom: 0.6em; }
  .erx-sentence:last-child { margin-bottom: 0; }
}

/* ======================================
** リード直後のヒーロー画像
   ====================================== */
.erx-hero {
  margin: 1.5em 0 2.5em;
  text-align: center;
}
.erx-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

/* ======================================
** 魅力・特徴 セクション画像（各 h3 本文後）
   ====================================== */
.erx-feat-img {
  margin: 1.5em auto 1em;
  text-align: center;
  max-width: 480px;
}
.erx-feat-img img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* ======================================
** プロフィール (ハイブリッド: 表 + ピル)
** PC: 2 列、スマホ: 1 列の表形式
   ====================================== */
.erx-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5em;
  margin: 1.2em 0 2em;
  list-style: none;
  padding: 0;
}
.erx-prof-item,
.erx-prof-pills {
  background: var(--erx-base);
  padding: 0.75em 1em;
  border-radius: 4px;
  border: none;
}
.erx-prof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.erx-prof-item.erx-prof-wide,
.erx-prof-pills.erx-prof-wide {
  grid-column: span 2;
}
.erx-prof-label {
  font-size: 0.72em;
  color: var(--erx-mute);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.1em;
  display: block;
}
.erx-prof-value {
  color: var(--erx-main);
  font-weight: 500;
  font-size: 0.9em;
  line-height: 1.55;
}

/* ピル表示 */
.erx-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin-top: 0.4em;
}
.erx-pill {
  display: inline-block;
  padding: 0.3em 0.85em;
  background: #fff;
  border: 1px solid rgba(192,57,43,0.3);
  color: var(--erx-ink);
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* スマホ: 1 列の表形式に */
@media screen and (max-width: 600px) {
  .erx-profile-grid {
    display: block;
    background: var(--erx-base);
    border-radius: 4px;
    padding: 0;
  }
  .erx-prof-item,
  .erx-prof-item.erx-prof-wide,
  .erx-prof-pills,
  .erx-prof-pills.erx-prof-wide {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.8em 1em;
    border-radius: 0;
  }
  .erx-prof-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 0;
  }
  .erx-prof-label {
    margin: 0;
    font-size: 0.75em;
  }
  .erx-prof-pills {
    display: block;
  }
  .erx-prof-item:last-child,
  .erx-prof-pills:last-child {
    border-bottom: none;
  }
}

/* ======================================
** 旧 profile-list (ul) 用フォールバック
** 既存記事を再保存せずに見栄え改善
   ====================================== */
.article ul.profile-list,
.entry-content ul.profile-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1em 0 2em !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6em;
}
.article ul.profile-list li,
.entry-content ul.profile-list li {
  background: var(--erx-base);
  border-left: 3px solid var(--erx-sub);
  padding: 0.6em 0.9em;
  border-radius: 2px;
  margin: 0 !important;
  list-style: none !important;
  color: var(--erx-main);
  font-size: 0.95em;
}
.article ul.profile-list li::before,
.entry-content ul.profile-list li::before {
  content: none !important;
}
.article ul.profile-list li strong,
.entry-content ul.profile-list li strong {
  color: var(--erx-mute);
  font-size: 0.78em;
  font-weight: 500;
  display: inline-block;
  letter-spacing: 0.05em;
}

/* スマホ: 旧 ul も表形式に */
@media screen and (max-width: 600px) {
  .article ul.profile-list,
  .entry-content ul.profile-list {
    display: block;
    background: var(--erx-base);
    border-left: 3px solid var(--erx-sub);
    gap: 0;
  }
  .article ul.profile-list li,
  .entry-content ul.profile-list li {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    border-radius: 0;
    padding: 0.6em 0.9em;
  }
  .article ul.profile-list li:last-child,
  .entry-content ul.profile-list li:last-child {
    border-bottom: none;
  }
}

/* ======================================
** 筆者コメント (E-E-A-T)
   ====================================== */
.erx-author-note {
  border-left: 4px solid var(--erx-sub);
  background: var(--erx-base);
  padding: 1em 1.2em;
  margin: 2em 0 1em;
  font-size: 0.95em;
  color: var(--erx-ink);
  border-radius: 2px;
}
.erx-author-note p { margin: 0; }
.erx-author-note strong { color: var(--erx-sub); }

/* ======================================
** CTA ボタン類 (FANZA 誘導等)
   ====================================== */
.article a.cta-button,
.entry-content a.cta-button,
.fps-cta a {
  background: var(--erx-sub) !important;
  color: #fff !important;
  border-color: var(--erx-sub) !important;
}
.article a.cta-button:hover,
.entry-content a.cta-button:hover {
  background: #a7301f !important;
  border-color: #a7301f !important;
}

/* ======================================
** ★マーク (特集作品等) に金アクセント
   ====================================== */
.erx-featured-star {
  color: var(--erx-accent);
}

/* ======================================
** FPS 作品カード CTA 強化
** (fps_actress_featured / fps_actress_works のオーバーライド)
   ====================================== */
.erx-card {
  border: 1px solid rgba(192,57,43,0.15) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.erx-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px);
}
.erx-btn {
  background: var(--erx-sub) !important;
  color: #fff !important;
  padding: 11px 4px !important;
  font-size: 14px !important;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.erx-btn:hover {
  background: #a7301f !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.erx-btn::before {
  content: '▶ ';
  font-size: 0.75em;
  opacity: 0.85;
  margin-right: 2px;
}
.erx-review {
  border: 1px solid var(--erx-sub) !important;
  color: var(--erx-sub) !important;
  padding: 10px 4px !important;
  font-size: 13px !important;
}
.erx-review:hover {
  background: rgba(192,57,43,0.08) !important;
}
.erx-price b {
  color: var(--erx-sub) !important;
  font-size: 15px !important;
}

/* 「最初に見てほしい作品」の note を目を引く形に */
.article p.note,
.entry-content p.note {
  background: var(--erx-base);
  border-left: 3px solid var(--erx-sub);
  padding: 0.8em 1.1em;
  margin: 1em 0 1.5em;
  color: var(--erx-ink);
  font-size: 0.95em;
  line-height: 1.75;
  border-radius: 0 4px 4px 0;
}

/* ======================================
** 「最初に見てほしい作品」= イチオシ強調
** .erx-featured-wrap でくるんだカードだけ強調
   ====================================== */
.erx-featured-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(192,57,43,0.04) 0%, rgba(255,215,0,0.04) 100%);
  border: 2px solid var(--erx-sub);
  border-radius: 10px;
  padding: 2.2em 1em 1.5em;
  margin: 1.5em auto 2em;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(192,57,43,0.12);
}
.erx-featured-wrap::before {
  content: '👑 イチオシ';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--erx-sub);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  padding: 0.3em 1.2em;
  border-radius: 999px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 8px rgba(192,57,43,0.3);
  white-space: nowrap;
}
/* 中の .erx-works グリッドを 1 列中央寄せに */
.erx-featured-wrap .erx-works {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 320px;
  margin: 0 auto !important;
}
.erx-featured-wrap .erx-card {
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
}
/* ボタンを大きく、より目立たせる */
.erx-featured-wrap .erx-btn {
  padding: 14px 4px !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1), 0 4px 12px rgba(192,57,43,0.25);
  animation: erx-pulse 2.4s ease-in-out infinite;
}
/* JS が ▶ を含んだ全文を入れるので、CSS の ::before を無効化（二重矢印回避） */
.erx-featured-wrap .erx-btn::before {
  content: none !important;
}
@keyframes erx-pulse {
  0%, 100% { box-shadow: 0 3px 0 rgba(0,0,0,0.1), 0 4px 12px rgba(192,57,43,0.25); }
  50% { box-shadow: 0 3px 0 rgba(0,0,0,0.1), 0 4px 20px rgba(192,57,43,0.5); }
}

/* ======================================
** 目次 (Cocoon TOC)
   ====================================== */
.toc {
  background: var(--erx-base) !important;
  border: none !important;
  border-left: 3px solid var(--erx-sub) !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 1.2em 1.4em !important;
  margin: 2em 0 !important;
  box-shadow: none !important;
  position: relative;
}
.toc-title {
  color: var(--erx-mute) !important;
  font-size: 0.78em !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  margin-bottom: 0.8em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
}
.toc-title::before {
  content: 'CONTENTS / ';
  color: var(--erx-sub);
  font-weight: 700;
}
.toc-list,
.toc ol,
.toc ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  counter-reset: toc-counter;
}
.toc li {
  position: relative;
  padding: 0.35em 0 !important;
  margin: 0 !important;
  border: none !important;
  line-height: 1.6;
}
.toc > .toc-list > li,
.toc > ol > li,
.toc > ul > li {
  counter-increment: toc-counter;
  padding-left: 2.4em !important;
}
.toc > .toc-list > li::before,
.toc > ol > li::before,
.toc > ul > li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.4em;
  font-size: 0.72em;
  color: var(--erx-sub);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}
/* ネストされた項目（h3）*/
.toc li ol,
.toc li ul {
  margin-top: 0.3em !important;
  margin-left: 0 !important;
  padding-left: 1em !important;
  border-left: 1px solid rgba(192,57,43,0.2) !important;
}
.toc li li {
  padding: 0.25em 0 0.25em 0.8em !important;
  font-size: 0.92em;
  color: var(--erx-ink);
}
.toc li li::before {
  content: none !important;
}
.toc a {
  color: var(--erx-ink) !important;
  text-decoration: none !important;
  transition: color 0.15s;
  background: none !important;
}
.toc a:hover {
  color: var(--erx-sub) !important;
  text-decoration: underline !important;
}
