/*
 Theme Name: Cocoon Child
 Template: cocoon-master
 Version: 1.0
*/
@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){
  /*必要ならばここにコードを書く*/
}
/* =========================================================
   冬色の実験室：CSS 最終版（ゴシック見出し＋薄い帯＋星評価）
   ========================================================= */

/* ===== 本文フォント ===== */
.entry-content{
  font-family: "Hiragino Kaku Gothic ProN","Yu Gothic Medium","游ゴシック体","Noto Sans JP",sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(16px, 15px + .4vw, 18px);
  line-height: 2;
  letter-spacing: .025em;
  color: #222;
}

/* ===== 見出しフォント：ゴシック固定（Gutenberg含む） ===== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading{
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
  "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Arial, sans-serif !important;
  font-weight: 600 !important;
}

/* ===== Cocoonの見出し装飾を無効化（擬似要素） ===== */
.article h2::before,
.article h2::after,
.article h3::before,
.article h3::after,
.entry-content h2::before,
.entry-content h2::after,
.entry-content h3::before,
.entry-content h3::after{
  content: none !important;
  display: none !important;
}

/* ===== Cocoon固有クラスの装飾を無効化 ===== */
[class*="h2-"],
[class*="h3-"]{
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===== H2：左ライン＋薄い帯 ===== */
.entry-content h2,
.entry-content h2.wp-block-heading{
  border-left: 4px solid #aeb6bf !important;
  padding: .6em .6em .5em 1em !important;
  margin: 2.4em 0 1.4em !important;
  background: linear-gradient(to right, rgba(174,182,191,.10), rgba(174,182,191,0)) !important;

  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.7;
  letter-spacing: .04em;
  color: #222;
}

/* ===== H3：左ライン＋薄い帯 ===== */
.entry-content h3,
.entry-content h3.wp-block-heading{
  border-left: 3px solid #c0c6cc !important;
  padding: .5em .5em .4em 1em !important;
  margin: 2em 0 1.2em !important;
  background: linear-gradient(to right, rgba(192,198,204,.08), rgba(192,198,204,0)) !important;

  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.6;
  letter-spacing: .04em;
  color: #333;
}

/* ===== 星評価：段落・改行の行間調整 ===== */
.entry-content p{
  margin-bottom: 0.6em;
}
.entry-content br{
  line-height: 1.4;
}
.star-rating p{
  margin-bottom: 0.5em;
  line-height: 1.5;
}
.entry-content h3 + p,
.entry-content h3 + p + p,
.entry-content h3 + p + p + p,
.entry-content h3 + p + p + p + p,
.entry-content h3 + p + p + p + p + p,
.entry-content h3 + p + p + p + p + p + p{
  margin-bottom: 0.35em;
}
/* ===== 楽天：スマホではみ出しを確実に止める（最終） ===== */
.rakuten-box{ max-width:100%; overflow:hidden; }
.rakuten-box img{ max-width:100% !important; height:auto !important; }

/* 楽天がtableでもiframeでも潰す */
.rakuten-box table{ max-width:100% !important; width:100% !important; }
.rakuten-box iframe{ max-width:100% !important; width:100% !important; }

/* 834px以下：table型を縦積みに分解 */
@media (max-width: 834px){
  .rakuten-box table,
  .rakuten-box tbody,
  .rakuten-box tr,
  .rakuten-box td{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .rakuten-box td{
    padding: 8px 0 !important;
  }
}