@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（ブルー系・テキストロゴ完全対応版）
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** 0. レスポンシブデザイン（スマホ・タブレット設定）
************************************/
/* 834px以下：スマホ&タブレットのh1余白調整 */
@media screen and (max-width: 834px){
  .article h1{
    padding: 10px 5px;
  }
}

/* 480px以下：内部ブログカードの文字サイズ調整 */
@media screen and (max-width: 480px){
  .blogcard-title{
    font-size: 1.05em;
  }
}

/************************************
** 1. 記事・インデックス上部の余白リセット
************************************/
#main, .content { margin-top: 0; }
.article h1 {
  margin-top: 0 !important;
  padding-top: 0;
  margin-bottom: 4px;
}
.home main, .archive main { padding-top: 1px; }
.entry-content { margin-bottom: 0em; }

/************************************
** 2. パーツ非表示・微調整設定
************************************/
.entry-card-title { margin-top: 0px; font-size: 16px; }
.cat-label, .entry-card .cat-label, .tag-caption .fa-tag, .archive-title :before, .grecaptcha-badge { display: none; }
.internal-blogcard-footer, .internal-blogcard-snippet { display: none; }
.a-wrap .blogcard { border-color: #ddd; border-width: 2px; }
.widget_categories ul li a { border-bottom: 1px dashed #CCCCCC; }
#navi-footer li { border: none; }

/************************************
** 3. サイト固有のカラーカスタマイズ 【ブルー系】
************************************/
/* PC：サイトタイトルの★サイズ・色・太さ */
.site-name-text, .site-name-text a {
    font-size: 34px;
    font-weight: bold;
    color: #ffffff !important; /* PCロゴの色 */
    text-decoration: none;
}

/* スマホ：ヘッダー内の★サイズ・文字色・ロゴサイズ（魔法のコード） */
.mobile-header-menu-buttons :is(.navi-menu-button, .logo-menu-button > a, .search-menu-button) {
    color: #ffffff !important; /* スマホロゴを白に強制 */
    font-size: 20px !important;
    font-weight: bold;
}

/* H2見出し：★下線の色を変更 */
.article h2 {
    border-bottom: solid 3px #e263a7; 
    background: none; padding: 0.4em; color: #2d2d2d; margin-top: 0;
}

/* 記事内のh3（★背景＋文字色） */
.article h3{ 
  background: #e263a7;
  color: #FFFFFF;
  margin-top: 0;
}

/* サイドバーの文字色を白くする */
.sidebar h3 {
  color: #FFFFFF;
}

/* Cocoon赤ボックス(bb-red)を★変更 */
.blank-box.bb-red { border-color: #e263a7; }
.blank-box.bb-tab.bb-red .bb-label { background-color: #e263a7; }

/* モバイルメニュー背景★変更 ナビは薄くする */
.mobile-menu-buttons { background: #e263a7; color: #ffffff; }
.navi-menu-content { background: #fcedf5; color: #ffffff; }

/*黄色枠線ボックス→黄色塗り・左右の余白変更・箇条書きの記事に使用しそれ以外ではpadding2行を削除*/
.blank-box.bb-yellow { background-color: #fffaf4; border: none; color: #000000;
  padding-left: 15px;  /* 左側の余白を狭く */
  padding-right: 10px; /* 右側の余白を狭く */
}

/************************************
** 4. テーブル・ボタン・5. その他（共通）
************************************/
.wp-block-table table { width: 100% !important; border-width: 2px 0px; border-color: rgba(0,0,0,.5); }
.wp-block-table td, .wp-block-table th { border-color: #e0e0e0 !important; border-width: 1px 0px; background-color: white; }
.wp-block-table th { background-color: #f7f9f9; width: 90px; }
.btn[class*=btn-], .ranking-item-link-buttons a[class*=btn-] { box-shadow: 0 5px 5px rgba(0, 0, 0, .25); }
.breadcrumb-home, .breadcrumb-item, .breadcrumb-caption { color: #666; font-size: 14px; }
.breadcrumb-caption { font-weight: bold; }
.go-to-top-button { width: 40px; height: 40px; border-radius: 50%; opacity: 0.8; }
blockquote { background: #f7f7f7; border-radius: 5px; border-color: #f7f7f7; }

/* ======================================================
 * [intro]の文字サイズと行間・スマホ表示時のみ変更される
 * ====================================================== */
@media screen and (max-width: 768px) {
  p.fanza-intro {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;   /* 段落同士のすき間（狭いままキープ） */
  }

  /* ▼ fanza-intro ではない「直後の要素（画像など）」の頭だけを広げる */
  p.fanza-intro + :not(.fanza-intro) {
    margin-top: 24px !important;  /* 画像との間のすき間（お好みで調整してください） */
  }
}

/* ===========================================
 * アフィリエイトボタンの調整（文字サイズ・幅）
 * =========================================== */

/* ① 全体・スマホ表示時の基本設定 */
.btn-l, .ranking-item-link-buttons a {
  font-size: 20px; /* ←★スマホ（基本・全体）の文字サイズ */
}

/* ② PC表示時のみの設定（上書き） */
@media screen and (min-width: 835px) {
  .entry-content .btn.btn-l {
    width: 90%;       /* ←PCでの横幅 */
    font-size: 22px;  /* ←★PCでの文字サイズ（PCのみ上書きできる） */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -------------------------------------------
 * インデックスページをPCだけ4列表示
 * ------------------------------------------- */
/* PC表示（画面幅1024px以上）のときだけ綺麗に均一4列にする */
@media screen and (min-width: 1024px) {
  
  /* 親枠を4列のグリッド配置にする */
  .list,
  .list-card {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  /* マージンと幅のリセット */
  .list .entry-card-wrap,
  .list-card .entry-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* ★【追加】カードのタイトル文字を少し小さく調整 */
  .entry-card-title {
    font-size: 13px !important; /* デフォルト(15~16px程度)から13px前後に小さく調整 */
    line-height: 1.4 !important; /* 行間を少し詰めて高さのバらつきを抑える */
  }
}

/* -------------------------------------------
 * 人気記事ウィジェット（デフォルト）の画像・文字調整
 * ------------------------------------------- */

/* ① サムネイル画像エリアを少し大きくする */
.popular-entry-card-thumb {
  width: 130px !important;    /* デフォルト(約120px)から150pxに拡大（お好みで調整） */
  max-width: 130px !important;
}

/* サムネイル画像自体の表示調整 */
.popular-entry-card-thumb img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

/* ② 右側のタイトル文字サイズと行間の調整 */
.popular-entry-card-title {
  font-size: 14px !important;  /* タイトルの文字サイズ（13px?15px前後でお好み調整） */
  line-height: 1.4 !important; /* 行間（文字の詰まり具合） */
}

/*---------------------------------
サンプル動画の表示サイズを制御
--------------------------------*/
@media (min-width: 1024px) { .sample-movie video { max-width: 650px; width: 100%; height: auto; display: block; margin: 0 auto; } }

/*---------------------------------
検索結果ページの微調整（検索窓非表示・アイコン消去・余白調整）
---------------------------------*/
.search-results .search-box {
    display: none !important; /* 検索窓を消す */
}

.search-results .archive-title {
    margin-top: -15px; !important;      /* タイトルの上の余白を詰める */
    padding-top: 0 !important;    /* タイトルの上の内側余白を詰める */
}

.search-results .archive-title span.fa-search {
    display: none !important;     /* 虫眼鏡アイコンを消す */
}

/* -------------------------------------------
 * FANZAクレジットロゴの表示位置コントロール
 * ------------------------------------------- */
/* 記事本文エリアに出力されたFANZAクレジットロゴを非表示にする */
.entry-content p a[href="https://affiliate.dmm.com/api/"] {
    display: none !important;
}