@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ================================
   MGS 専用 記事レイアウト
   ================================ */

/* 記事全体のベース */
.mgs-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  background: #fff;
}

body.dark-theme .mgs-article {
  background: #1f1f24;
  color: #f5f5f7;
}

/* タイトル */
.mgs-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.75rem;
}

.mgs-title {
  font-size: 1.7rem;
  line-height: 1.4;
  margin: 0;
}

/* ======================================
   ① 作品カード（アイキャッチ + メタ情報）
   ====================================== */

.mgs-work-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: #f7f7fb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

body.dark-theme .mgs-work-card {
  background: #262630;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.mgs-work-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ============================================
   作品スペック表（メタ情報） - 背景色あり版
   ============================================ */

/* リスト全体の枠組み */
.mgs-spec-list {
    margin: 0 0 20px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px; /* 行ごとの隙間 */
}

/* 各行のデザイン */
.spec-row {
    display: flex;
    align-items: center; /* 上下中央揃え */
    background: #fff;    /* 行全体の背景は白 */
    border-radius: 6px;  /* 角丸 */
    overflow: hidden;    /* はみ出し防止 */
    border: 1px solid #eef0f5; /* 薄い枠線 */
}

/* 項目名 (dt) - ここに背景色！ */
.spec-row dt {
    width: 6em;          /* ラベル幅 */
    flex-shrink: 0;
    background: #e9eff5; /* ★薄いブルーグレーの背景 */
    color: #556b86;      /* 文字色も合わせて調整 */
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 0 8px 10px; /* 上下左右の余白 */
    align-self: stretch; /* 高さを揃える */
    display: flex;
    align-items: center; /* 文字を上下中央に */
}

/* 値 (dd) */
.spec-row dd {
    margin: 0;
    padding: 8px 10px;   /* 値の方にも余白 */
    flex-grow: 1;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* ジャンルタグのリンク装飾 */
.genre-tags a {
    display: inline-block;
    margin-right: 6px;
    color: #333;
    background: #f4f4f4; /* タグっぽく背景をつける */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}
.genre-tags a:hover {
    background: #e0e0e0;
}

/* ▼▼ 価格と時間を横並びにするブロック ▼▼ */
.spec-row.spec-split {
    display: flex;
    border: none; /* 外枠はなし（中のitemにつけるため） */
    background: transparent;
    gap: 10px; /* 左右の間隔 */
}

.spec-split .spec-item {
    display: flex;
    align-items: center;
    flex: 1;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 6px;
    overflow: hidden;
}

.spec-split .spec-item dt {
    width: 3.5em; /* 短めのラベル幅 */
    padding-left: 0;
    justify-content: center; /* 中央寄せ */
}

/* スマホ調整 */
@media (max-width: 480px) {
    .mgs-spec-list {
        font-size: 0.9rem;
    }
    .spec-row dt {
        width: 5em;
        padding: 6px 0 6px 8px;
    }
    .spec-row dd {
        padding: 6px 8px;
    }
}

/* MGSボタン */
/* --- MGSボタン（大きく・押しやすく） --- */
.mgs-btn {
    display: flex; /* inline-flexから変更して幅調整しやすく */
    align-items: center;
    justify-content: center;
    width: 100%; /* 幅いっぱい */
    max-width: 300px; /* PCでの最大幅 */
    margin: 1rem 0 0; /* 上余白 */
    padding: 1rem 2rem; /* 大きく */
    border-radius: 50px;
    background: linear-gradient(135deg, #ff3366 0%, #ff5e62 100%); /* グラデーション */
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem; /* 文字サイズUP */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mgs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.6);
}

.mgs-btn::before {
    content: "\f04b"; /* FontAwesome Play Icon */
    font-family: FontAwesome;
    margin-right: 10px;
    font-size: 0.9em;
}

/* ======================================
   ② ギャラリー
   ====================================== */

.mgs-gallery-section {
  margin: 2rem 0 1.5rem;
}

.mgs-gallery-wrap {
  width: 100%;
}

.mgs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.mgs-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.mgs-gallery-item img {
  width: 100%;
  height: 100%;          /* auto から 100% に変更 */
  aspect-ratio: 1 / 1;   /* ★ここで「正方形」に強制します */
  object-fit: cover;     /* ★枠からはみ出た部分を自動でトリミング */
  object-position: top center; /* ★顔が切れないように「上寄り」でトリミング */
  
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mgs-gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.mgs-gallery-item:hover::after {
  opacity: 1;
}

/* ======================================
   ③ アフィリエイト埋め込みブロック
   ====================================== */

.mgs-affiliate-embed {
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 10px;
  background: #fff7f9;
  border: 1px solid #ffd6e0;
}

body.dark-theme .mgs-affiliate-embed {
  background: #33202c;
  border-color: #ff6a9b;
}

/* ======================================
   ④ 本文（LLM生成 content_html）
   ====================================== */

.mgs-content {
  margin: 2rem 0;
  line-height: 1.9;
  font-size: 0.98rem;
}

.mgs-content h2,
.mgs-content h3 {
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.mgs-content h2 {
  font-size: 1.3rem;
  border-left: 4px solid #ff3366;
  padding-left: 0.6rem;
}

.mgs-content h3 {
  font-size: 1.1rem;
}

/* 本文内の画像（LLMが入れたもの）は控えめに */
.mgs-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
  border-radius: 8px;
}

/* ======================================
   ⑤ 関連記事
   ====================================== */

.mgs-related {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

body.dark-theme .mgs-related {
  border-top-color: #444;
}

.mgs-related h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ======================================
   ⑥ レスポンシブ
   ====================================== */

@media (max-width: 880px) {
  .mgs-work-card {
    grid-template-columns: 1fr;
  }

  .mgs-card-col.mgs-card-meta {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .mgs-article {
    padding: 1rem 0.75rem 2.5rem;
  }

  .mgs-title {
    font-size: 1.4rem;
  }

  .mgs-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mgs-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgs-work-card {
    padding: 1rem;
  }
}

/* ===== MGS 作品カード ===== */
.mgs-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin: 24px 0;
  border-radius: 24px;
  background: #f7f8fc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.mgs-card__thumb img {
  border-radius: 18px;
  max-width: 260px;
  height: auto;
  display: block;
}

.mgs-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mgs-meta-list {
  margin: 0 0 16px;
}

.mgs-meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.mgs-meta-row dt {
  width: 80px;
  font-weight: 600;
  color: #4b5563;
}
.mgs-meta-row dd {
  margin: 0;
  color: #111827;
}


/* SP 縦並び */
@media (max-width: 768px) {
  .mgs-card {
    flex-direction: column;
  }
  .mgs-card__thumb img {
    max-width: 100%;
  }
}

/* ===== ギャラリー ===== */
.mgs-gallery-wrap {
  margin: 32px 0;
}
.mgs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.mgs-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.mgs-gallery-item img:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  opacity: 0.95;
}

/* ===== ライトボックス ===== */
.mgs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.mgs-lightbox.is-active {
  display: flex;
}
.mgs-lightbox__inner {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
}
.mgs-lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.mgs-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 28px;
  cursor: pointer;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}

.mybtn {
  text-align: center;
}
.mybtn-1 a {
  display: inline-block;
  margin: 1em 0;
  padding: 18px 40px 18px 30px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3em;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0px 4px 12px -2px #666;
  position: relative;
  transition: 0.4s;
}
.mybtn-1 a:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -5px #777;
  opacity: 1;
}
.mybtn-1 a::after {
  font-family: FontAwesome;
  content: "\f138";
  color: #fff;
  position: absolute;
  right: 10px;
  top: 50%;
  margin: auto;
  margin-top: -10px;
}
.mybtn-red a {
  background: #d43d39;
}
.video-container {
  max-width: none;
}

/* ============================
   MGS記事用：本文見出しデザイン
   （.mgs-content 内だけに限定）
   ============================ */

/* セクション見出し（作品概要／出演者の魅力 など） */
.mgs-article .mgs-content h2 {
  position: relative;
  margin: 2.5em 0 1.5em;
  padding: 0.8em 1.2em 0.8em 1.4em;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  background: #f7f8fc;
  border-left: 4px solid #ff7ea8; /* ピンク系のアクセント */
  border-radius: 6px;
}

/* TOC用に<span id="tocX">が入っていても綺麗に見えるように */
.mgs-article .mgs-content h2 span {
  position: relative;
  z-index: 1;
}

/* サブ見出し（注目ポイント1/2/3 など） */
.mgs-article .mgs-content h3 {
  position: relative;
  margin: 2em 0 1em;
  padding: 0.5em 0.4em 0.3em;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

/* 下線にグラデーションアクセント */
.mgs-article .mgs-content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  max-width: 220px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7ea8 0%, #ffcf72 100%);
}

/* 見出し直後の段落に少しゆとり */
.mgs-article .mgs-content h2 + p,
.mgs-article .mgs-content h3 + p {
  margin-top: 0.6em;
}

/* 下部の作品情報セクション */
.mgs-section-bottom-info {
  margin: 3rem 0 0;
}

.mgs-bottom-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* 下部カードのレイアウト */
.mgs-work-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* ここで上揃えにする */
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: 18px;
  background: #f7f7fb;
}

/* カラム */
.mgs-work-card-bottom .mgs-card-col {
  flex: 1 1 50%;
}

/* テキスト側の整え */
.mgs-work-card-bottom .mgs-card-meta p {
  margin: 0 0 0.4em;
  line-height: 1.7;
}

.mgs-btn-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.9em 2.8em;
  border-radius: 999px;
}

/* スマホ時 */
@media (max-width: 768px) {
  .mgs-work-card-bottom {
    flex-direction: column;
    padding: 1.6rem;
  }

  .mgs-work-card-bottom .mgs-card-col {
    flex: 1 1 100%;
  }
}

/* ── 下部の作品情報カードだけスタイル変更 ───────────── */

.mgs-work-card.mgs-work-card-bottom {
  max-width: 1080px;
  margin: 64px auto 40px;
  padding: 32px 40px 36px;
  background: #f9f9fc;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  grid-template-areas:
    "title  title"
    "meta   thumb";
  column-gap: 40px;
  row-gap: 24px;
  align-items: center;
}

/* タイトルをカードの上にフラットに置く */
.mgs-work-card-bottom .mgs-bottom-title {
  grid-area: title;
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 左：テキスト側 */
.mgs-work-card-bottom .mgs-card-col.mgs-card-meta {
  grid-area: meta;
  padding: 8px 0 0;
}

.mgs-work-card-bottom .mgs-card-meta p {
  margin: 4px 0;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ボタンは少しだけコンパクトに・左寄せ */
.mgs-work-card-bottom .mgs-btn-bottom {
  margin-top: 20px;
  padding: 14px 40px;
  font-size: 0.95rem;
  border-radius: 999px;
}

/* 右：サムネ側 */
.mgs-work-card-bottom .mgs-card-col:first-of-type {
  grid-area: thumb;
  justify-self: end;
}

.mgs-work-card-bottom .mgs-card-col img {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

/* スマホ用：縦1カラムで間延びしないように調整 */
@media (max-width: 768px) {
  .mgs-work-card.mgs-work-card-bottom {
    padding: 24px 20px 28px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "thumb"
      "meta";
    row-gap: 20px;
  }

  .mgs-work-card-bottom .mgs-card-col:first-of-type {
    justify-self: center;
  }

  .mgs-work-card-bottom .mgs-card-col img {
    max-width: 280px;
  }

  .mgs-work-card-bottom .mgs-btn-bottom {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
	
	/* 女優ページへの誘導リンク */
.actress-cta-box {
    margin: 30px 0;
    text-align: center;
}

.actress-cta-box a {
    display: inline-block;
    width: 90%; /* スマホで見やすい幅 */
    max-width: 500px;
    padding: 15px;
    border: 2px solid #eee; /* 薄い枠線 */
    border-radius: 8px;
    background-color: #f9f9f9; /* 薄い背景色 */
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.actress-cta-box a:hover {
    background-color: #fff;
    border-color: #ff99cc; /* ホバー時にピンク枠 */
    color: #e91e63; /* ホバー時に文字色変更 */
    transform: translateY(-2px);
}

.actress-cta-box .cta-icon {
    margin-right: 8px;
    color: #e91e63;
}
}

/* ============================================
   女優タグページ プロフィールデザイン
   ============================================ */
.actress-profile-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.actress-profile-inner {
    display: flex;
    gap: 30px;
}

/* 画像 */
.actress-img {
    flex: 0 0 300px; /* 画像幅固定 */
    margin: 0;
}
.actress-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 情報エリア */
.actress-info {
    flex: 1;
}

.actress-name {
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.actress-en {
    font-size: 14px;
    color: #888;
    font-weight: normal;
    margin-left: 10px;
}

/* テーブル */
.actress-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}
.actress-meta-table th, 
.actress-meta-table td {
    border-bottom: 1px dotted #ccc;
    padding: 8px;
    text-align: left;
}
.actress-meta-table th {
    width: 30%;
    background: #f9f9f9;
    color: #555;
    font-weight: bold;
}

/* 紹介文 */
.actress-bio {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* ボタンエリア */
.actress-buttons {
    display: flex;
    gap: 10px;
}
.actress-buttons a {
    display: block;
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s;
}
.actress-buttons a:hover {
    opacity: 0.8;
}
.btn-mgs {
    background: #d32f2f; /* MGSっぽい赤 */
}
.btn-fanza {
    background: #444; /* FANZAっぽい黒/グレー */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .actress-profile-inner {
        flex-direction: column;
        gap: 20px;
    }
    .actress-img {
        flex: auto;
        width: 60%;
        margin: 0 auto;
    }
}

/* ============================================
   シリーズ・ジャンルページ共通デザイン
   ============================================ */

/* ヒーローエリア（トップ） */
.series-hero, .genre-pillar-header {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.series-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.series-hero-img img {
    width: 100%;
    /* max-height: 300px; */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.series-title, .genre-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ff7ea8; /* アクセントカラー */
    padding-bottom: 10px;
    display: inline-block;
}

.series-desc, .genre-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

/* データリスト */
.series-data {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
    background: #f9f9f9;
    padding: 10px 20px;
    border-radius: 30px;
}
.data-row {
    display: flex;
    gap: 5px;
}
.data-row dt {
    font-weight: bold;
    color: #777;
}
.data-row dt::after {
    content: ":";
}

/* セクション */
.genre-section {
    margin-bottom: 50px;
}
.genre-section h2 {
    font-size: 22px;
    background: #f4f4f4;
    padding: 10px 15px;
    border-left: 5px solid #333;
    margin-bottom: 20px;
}

/* ランキングエリア */
.genre-ranking {
    background: #fffbfb;
    padding: 20px;
    border: 2px solid #ffecec;
    border-radius: 8px;
}
.ranking-item h3 {
    margin-top: 0;
    color: #d4af37; /* 金色っぽい色 */
}

/* 外部リンクボタン */
.btn-external {
    display: block;
    background: #444;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-external:hover {
    background: #666;
    opacity: 1;
}

/* PCレイアウト調整 */
@media (min-width: 768px) {
    .series-hero-inner {
        flex-direction: row;
        text-align: left;
    }
    .series-hero-img {
        flex: 0 0 300px;
    }
}

/* シリーズデータのリスト表示 */
.series-data-list {
    display: table; /* または flex */
    width: 100%;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 14px;
}

.series-data-list .data-row {
    display: flex;
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
}

.series-data-list .data-row:last-child {
    border-bottom: none;
}

.series-data-list dt {
    width: 80px; /* ラベル幅固定 */
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.series-data-list dd {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .series-data-list .data-row {
        flex-direction: column;
        gap: 4px;
    }
    .series-data-list dt {
        color: #ff7ea8; /* スマホではラベル色を変えて見やすく */
        font-size: 12px;
    }
}

/* サイドバーの見出しデザイン */
.sidebar h3 {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ff3366; /* MGSピンク */
    padding: 0 0 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    color: #333;
}
.sidebar h3::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background: #000; /* アクセントの黒 */
}
strong {
    color: #d32f2f;
    background: transparent;
    border-bottom: 2px dotted #d32f2f;
}

/* =========================================
   リッチリンクカード（シリーズ・女優共通）
   ========================================= */
.series-card-link, .actress-cta-box {
    margin: 40px 0;
}

.series-card-inner, .actress-card-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 0;
    text-decoration: none !important;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.series-card-inner:hover, .actress-card-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #ff3366;
}

/* 左側のアイコンエリア */
.series-card-icon, .actress-card-icon {
    background: #f7f7fb;
    width: 80px;
    align-self: stretch; /* 高さいっぱい */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #eee;
    color: #ff3366;
}

.series-card-icon .dashicons, .actress-card-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

.series-label, .actress-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #888;
}

/* 右側のテキストエリア */
.series-card-text, .actress-card-text {
    padding: 15px 20px;
    flex: 1;
}

.series-sub, .actress-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.series-name, .actress-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.series-cta, .actress-cta {
    font-size: 13px;
    color: #ff3366;
    font-weight: bold;
}

/* ホバー時の変化 */
.series-card-inner:hover .series-name, 
.actress-card-inner:hover .actress-name {
    color: #ff3366;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .series-name, .actress-name {
        font-size: 16px;
    }
    .series-card-icon, .actress-card-icon {
        width: 60px;
    }
    .series-label, .actress-label {
        font-size: 8px;
    }
}

/* スマホ対応（ギャラリー） */
@media (max-width: 520px) {
    .mgs-gallery-grid {
        grid-template-columns: repeat(5, 1fr) !important; /* 5列に強制 */
        gap: 6px; /* 隙間を狭く */
    }
}

/* ランキング装飾（固定ページ用） */
.ranking-list {
    counter-reset: ranking-counter;
}
.ranking-list .blogcard {
    position: relative;
    margin-top: 45px !important;
    border: 2px solid #ffd700; /* 金色の枠 */
    border-radius: 8px;
    counter-increment: ranking-counter;
}
.ranking-list .blogcard::before {
    content: "No." counter(ranking-counter);
    position: absolute;
    top: -30px;
    left: 10px;
    background: #ffd700;
    color: #fff;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
}
/* 順位ごとの色変え */
.ranking-list .blogcard:nth-of-type(1) { border-color: #ffd700; }
.ranking-list .blogcard:nth-of-type(1)::before { background: #ffd700; content: "👑 第1位"; }
.ranking-list .blogcard:nth-of-type(2) { border-color: #c0c0c0; }
.ranking-list .blogcard:nth-of-type(2)::before { background: #c0c0c0; content: "🥈 第2位"; }
.ranking-list .blogcard:nth-of-type(3) { border-color: #c47022; }
.ranking-list .blogcard:nth-of-type(3)::before { background: #c47022; content: "🥉 第3位"; }

/* ランキングエリア全体の調整 */
.ranking-list {
    counter-reset: ranking-counter;
    padding: 10px 0;
}

/* 各アイテム（ブログカード＋コメント） */
.ranking-item {
    position: relative;
    margin-bottom: 40px; /* 下の順位との間隔 */
}

/* ブログカード本体（Cocoon標準）への装飾 */
.ranking-item .blogcard {
    margin-top: 35px !important; /* 王冠スペース確保 */
    border: 2px solid #e5e5e5;   /* デフォルトの枠線 */
    border-radius: 8px;
    transition: transform 0.2s;
}
.ranking-item .blogcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 王冠ラベルの共通設定 */
.ranking-item::before {
    counter-increment: ranking-counter;
    content: "No." counter(ranking-counter);
    position: absolute;
    top: 0; /* blogcardの上に乗せる */
    left: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 16px;
    border-radius: 4px 4px 0 0;
    z-index: 2;
}

/* 🥇 1位のデザイン */
.ranking-item:nth-of-type(1)::before {
    content: "👑 第1位";
    background: #d4af37; /* ゴールド */
}
.ranking-item:nth-of-type(1) .blogcard {
    border-color: #d4af37;
}

/* 🥈 2位のデザイン */
.ranking-item:nth-of-type(2)::before {
    content: "🥈 第2位";
    background: #a0a0a0; /* シルバー */
}
.ranking-item:nth-of-type(2) .blogcard {
    border-color: #a0a0a0;
}

/* 🥉 3位のデザイン */
.ranking-item:nth-of-type(3)::before {
    content: "🥉 第3位";
    background: #c47022; /* ブロンズ */
}
.ranking-item:nth-of-type(3) .blogcard {
    border-color: #c47022;
}

/* 一言コメントの装飾 */
.ranking-comment {
    margin-top: 10px;
    font-size: 14px;
    background: #fff9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ff3366;
}
/* Q&Aリストのデザイン */
.faq-section {
  margin-top: 60px; /* リストとの間隔を空ける */
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 質問 (Q) */
.faq-item dt {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin: 0;
  position: relative;
  padding-left: 40px;
  line-height: 1.6;
}

.faq-item dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  background: #ff3366; /* アクセントカラー */
  color: #fff;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 回答 (A) */
.faq-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  position: relative;
  padding-left: 40px;
}

.faq-item dd::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  background: #eee;
  color: #555;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

/* スマホ対応 - 縦積み調整 */
@media (max-width: 480px) {
  .faq-item {
    padding: 16px;
  }
  
  .faq-item dt {
    font-size: 15px;
    padding-left: 36px;
  }
  
  .faq-item dt::before {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
  }
  
  .faq-item dd {
    font-size: 13px;
    padding-left: 36px;
  }
  
  .faq-item dd::before {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
  }
}
/* ============================================
   共通リッチグリッドリスト（ジャンル・女優・シリーズ）
   ============================================ */
.rich-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* カードの最小幅 */
    gap: 15px;
    margin: 20px 0;
}

.rich-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.rich-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

/* サムネイル部分 */
.rich-card-thumb {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 9; /* 統一比率 */
    background: #eee;
}

.rich-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.rich-card:hover .rich-card-thumb img {
    opacity: 0.9;
}

/* テキスト部分 */
.rich-card-body {
    padding: 10px 12px;
}

.rich-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rich-card-meta {
    font-size: 11px;
    color: #888;
    background: #f9f9f9;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .rich-grid-list {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列固定 */
        gap: 10px;
    }
    .rich-card-title {
        font-size: 13px;
    }
}
/* スマホフッターのロゴサイズ調整 */
@media (max-width: 480px) {
    .footer-bottom-logo .logo img {
        max-height: 30px; /* 高さを抑える */
        width: auto;
    }
}


/* ============================================
   文字の可読性・タイポグラフィ調整
   ============================================ */

/* 記事本文のベース設定 */
.mgs-content {
    /* フォント: 読みやすさ重視のモダンスタック */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    
    /* 文字色: 真っ黒(#000)ではなく、目に優しい濃いグレー */
    color: #333; 
    
    /* サイズ: 16pxがWeb標準の読みやすいサイズ */
    font-size: 16px; 
    
    /* 行間: 1.8〜1.9が最も読みやすい黄金比 */
    line-height: 1.9; 
    
    /* 文字間: ほんの少し広げると「詰まり感」が消えて高級感が出る */
    letter-spacing: 0.05em; 
    
    /* 【プロ技】句読点の不自然なアキを詰めて文章を引き締める */
    font-feature-settings: "palt"; 
}

/* 段落ごとの余白（リズムを作る） */
.mgs-content p {
    margin-bottom: 2em; /* 段落の間を広めにとって、息継ぎしやすく */
}

/* 見出しの文字調整 */
.mgs-content h2,
.mgs-content h3 {
    line-height: 1.5; /* 見出しは行間を少し狭くして塊感を出す */
    letter-spacing: 0.06em; /* 見出しは少しゆったりさせて強調 */
}

/* 作品情報の文字（データっぽく見せる） */
.mgs-card-meta {
    /* 数字が綺麗なシステムフォント優先 */
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    letter-spacing: 0.03em; /* データなので少し詰める */
}

/* --- スマホ最適化 --- */
@media (max-width: 768px) {
    .mgs-content {
        font-size: 15.5px; /* スマホでは少しだけ小さくして一行の文字数を確保 */
        line-height: 1.8;  /* 画面が狭いので行間もわずかに詰める */
        letter-spacing: 0.02em; /* スマホの狭い画面では文字間を広げすぎない */
    }
    
    .mgs-content p {
        margin-bottom: 1.8em; /* スマホでは余白も少しコンパクトに */
    }
}