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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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


/* ===== 関連記事ブロックの幅を記事本文に揃える ===== */
.under-entry-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== affiliate-factory 記事装飾CSS（全記事共通） ===== */
/* ==========================================================================
   Cocoon エックスサーバーブログ風 個別記事ページ特化CSS (affiliate-factory)
   貼り付け先: WordPress管理画面 ➔ 「外観」 ➔ 「カスタマイズ」 ➔ 「追加CSS」
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 記事コンテンツエリア全体の余白と文字スタイリング
   -------------------------------------------------------------------------- */
.entry-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif !important;
    color: #333333 !important; /* 読みやすい柔らかい黒 */
    line-height: 1.9 !important; /* ゆったりとした行間（エックスサーバーブログの特徴） */
    letter-spacing: 0.03em !important;
    font-size: 16px !important;
}

/* 記事本文内の段落の余白 */
.entry-content p {
    margin-bottom: 28px !important;
}

/* 太字とマーカー（SWELL/エックスサーバー風の細めのアンダーラインマーカー） */
.entry-content strong {
    background: linear-gradient(transparent 70%, #b3e5fc 30%); /* 薄水色の極細マーカー */
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 2px;
}

/* --------------------------------------------------------------------------
   2. H2 / H3 / H4 見出しデザイン（エックスサーバーブログの個別記事デザインを完全再現）
   -------------------------------------------------------------------------- */
/* H2見出し: 背景色を廃止し、左の太青線 ＋ 下部全体のグレー線（エックスサーバーブログ標準） */
.entry-content h2 {
    position: relative !important;
    padding: 10px 0 10px 18px !important;
    background: transparent !important; /* 背景のグレーを廃止してスッキリ化 */
    color: #1a1a1a !important;
    border-left: 6px solid #0086d9 !important; /* エックスサーバーブルーの縦線 */
    border-bottom: 2px solid #e5e7eb !important; /* 下部全体に通る薄グレーの横線 */
    border-top: none !important;
    border-right: none !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    margin: 55px 0 28px 0 !important;
    border-radius: 0 !important; /* 角丸を廃止し、よりシャープなフラットデザインに */
}

/* H3見出し: 左側のやや細い青縦線のみのフラットデザイン */
.entry-content h3 {
    position: relative !important;
    padding: 6px 0 6px 14px !important;
    color: #1a1a1a !important;
    border-left: 3.5px solid #0086d9 !important; /* 左の青縦線のみ */
    background: transparent !important;
    border-bottom: none !important;
    border-top: none !important;
    border-right: none !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 40px 0 20px 0 !important;
}

/* H4見出し: ドット付き、またはシンプルな太字スタイル */
.entry-content h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 32px 0 16px 0 !important;
    padding-left: 0 !important;
    border: none !important;
    background: none !important;
}

/* --------------------------------------------------------------------------
   3. 目次（TOC）の劇的リニューアル（エックスサーバー風の極薄角丸カード）
   -------------------------------------------------------------------------- */
.toc {
    background-color: #f8fafc !important; /* スッキリした極薄グレー背景 */
    border: 1px solid #e2e8f0 !important; /* 目立ちすぎない薄いボーダー */
    border-radius: 12px !important; /* 上品な丸み */
    padding: 24px !important;
    margin: 35px 0 !important;
    box-shadow: none !important;
}

/* 目次のタイトル（「目次」の文字） */
.toc-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #cbd5e1 !important; /* タイトルの下の境界線 */
}

/* 目次のリンク文字 */
.toc-content a {
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    transition: color 0.15s ease !important;
}

.toc-content a:hover {
    color: #0086d9 !important;
    text-decoration: underline !important;
}

/* 目次の箇条書きインデントと余白 */
.toc-list, .toc-list ul {
    list-style-type: none !important;
    padding-left: 15px !important;
}

.toc-list li {
    margin-bottom: 8px !important;
}

/* --------------------------------------------------------------------------
   4. リスト（箇条書き）と引用（Blockquote）のクリーンアップ
   -------------------------------------------------------------------------- */
/* 本文内の通常の箇条書き (UL/OL) の余白を広げて見やすく */
.entry-content ul, .entry-content ol {
    margin-bottom: 28px !important;
    padding-left: 20px !important;
}

.entry-content li {
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}

/* 引用ブロック (エックスサーバーブログ風のシンプルな飾り枠) */
blockquote {
    background: #f8fafc !important;
    border-left: 4px solid #94a3b8 !important; /* グレーの左線 */
    color: #475569 !important;
    padding: 20px !important;
    margin: 30px 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: normal !important;
}

/* --------------------------------------------------------------------------
   5. 吹き出し (Speech Balloon) と案内ボックスの洗練化
   -------------------------------------------------------------------------- */
/* 吹き出しのテキストエリアの背景や角丸をきれいに */
.speech-balloon {
    margin-bottom: 30px !important;
}

.speech-balloon-text {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
}

/* 案内ボックス（Cocoonの枠付き案内）をモダンなフラットデザインへ */
.blank-box {
    border-radius: 10px !important;
    border-width: 1px !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 30px 0 !important;
}

/* --------------------------------------------------------------------------
   6. アフィリエイト広告カード（エックスサーバー風・最上級の導線ボタン）
   -------------------------------------------------------------------------- */
.affiliate-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 35px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}

.affiliate-badge {
    background: #0086d9 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 4px 0 8px 0 !important;
}

/* CTAボタン（エックスサーバーブログ風の角丸・ホバーエフェクト） */
.affiliate-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #0086d9 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 14px 24px !important;
    border-radius: 8px !important; /* 角丸ボタン */
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 134, 217, 0.2) !important;
}

.affiliate-btn:hover {
    background: #0271b8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 134, 217, 0.3) !important;
    transform: translateY(-1px) !important;
}

.pr-notice {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important; /* 目立たない極薄のグレー */
    margin: 10px 0 20px 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: right !important; /* 右寄せにして悪目立ちを防ぐ */
    font-weight: normal !important;
}

/* --------------------------------------------------------------------------
   7. 関連記事エリア・ブログカード・CTAの配色最適化 (白背景にマッチする上品なデザイン)
   -------------------------------------------------------------------------- */
/* 関連記事自動挿入エリア (related-pillar-link) */
.related-pillar-link {
    background-color: #f8fafc !important; /* スッキリした極薄グレー背景 */
    border: 1px solid #e2e8f0 !important; /* 目立ちすぎない薄い境界線 */
    border-left: 4px solid #0086d9 !important; /* 左側のエックスサーバーブルー縦線 */
    border-radius: 8px !important; /* 上品な角丸 */
    padding: 20px !important;
    margin: 35px 0 !important;
}
.related-pillar-link p {
    color: #0f172a !important; /* 視認性の良いダークグレー */
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* Cocoonブログカード (.blogcard) の白背景への最適化 */
.blogcard {
    background-color: #ffffff !important; /* 白背景に固定 */
    border: 1px solid #e2e8f0 !important; /* 目立ちすぎない境界線 */
    border-radius: 12px !important; /* 丸みを持たせる */
    padding: 16px !important;
    margin: 30px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important; /* わずかな浮き上がり */
}
.blogcard-title a {
    color: #0f172a !important; /* 暗い色で読みやすく */
    font-weight: 700 !important;
    text-decoration: none !important;
}
.blogcard-title a:hover {
    color: #0086d9 !important; /* ホバーでエックスサーバーブルー */
    text-decoration: underline !important;
}
.blogcard-excerpt {
    color: #475569 !important; /* 柔らかい説明文テキスト */
    font-size: 0.85rem !important;
}

/* アフィリエイトCTA (affiliate-cta) の洗練 (バナーやテキストが中央寄せで馴染むデザイン) */
.affiliate-cta {
    background: #ffffff !important; /* 白背景でスッキリ見せる */
    border: 1.5px dashed #0086d9 !important; /* 上品な青破線枠 */
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 35px 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.affiliate-cta p {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}
.affiliate-cta a {
    display: inline-block !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important; /* 鮮やかなオレンジボタン */
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25) !important;
    transition: all 0.2s ease !important;
    margin: 10px 0 !important;
}
.affiliate-cta a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35) !important;
}
.affiliate-cta img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}