/*
 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;
}
.rakuten-box table{
  max-width:100% !important;
  width:100% !important;
}
.rakuten-box iframe{
  max-width:100% !important;
  width:100% !important;
}

@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;
  }
}

/* ===== カテゴリーラベルを画像の外に出す ===== */
.a-wrap .cat-label{
  position: static !important;
  display: inline-block;
  background:#f5f5f5;
  color:#555;
  font-size:12px;
  padding:4px 8px;
  border-radius:3px;
  margin-bottom:6px;
}

.entry-card .cat-label{
  position: static !important;
}

/* ===== アーカイブタイトル ===== */
.archive-title .fa-folder-open{
  display:none;
}
.archive-title{
  font-weight:600;
  font-size:26px;
  letter-spacing:0.04em;
}

/* ===== 補足メモ ===== */
.affiliate-note{
  font-size: 0.85em;
  color: #888;
  line-height: 1.6;
  margin-top: 10px;
}

.ai-note{
  font-size:0.85em;
  color:#8a8a8a;
  margin-top:6px;
}

/* ===== 記事ページのカテゴリラベルを画像外に出す ===== */
.single .eye-catch .cat-label{
  position:static;
  display:inline-block;
  margin-bottom:10px;
  font-size:12px;
  padding:3px 8px;
}

/* ===== カード共通 ===== */
.entry-card-wrap{
  margin-bottom:35px;
}

.entry-card-thumb{
  margin-bottom:8px;
}

.entry-card-thumb img{
  height:auto;
}

.entry-card-title{
  font-size:18px;
  line-height:1.5;
  letter-spacing:0.02em;
  font-weight:600;
}

.entry-card-snippet{
  font-size:14px;
  line-height:1.7;
  color:#666;
}

.entry-card-meta{
  font-size:12px;
  color:#999;
}
/* =========================================================
   冬色の実験室：整理版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;
}
.rakuten-box table{
  max-width:100% !important;
  width:100% !important;
}
.rakuten-box iframe{
  max-width:100% !important;
  width:100% !important;
}

@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;
  }
}

/* ===== カテゴリーラベルを画像の外に出す ===== */
.a-wrap .cat-label{
  position: static !important;
  display: inline-block;
  background:#f5f5f5;
  color:#555;
  font-size:12px;
  padding:4px 8px;
  border-radius:3px;
  margin-bottom:6px;
}

.entry-card .cat-label{
  position: static !important;
}

/* ===== アーカイブタイトル ===== */
.archive-title .fa-folder-open{
  display:none;
}
.archive-title{
  font-weight:600;
  font-size:26px;
  letter-spacing:0.04em;
}

/* ===== 補足メモ ===== */
.affiliate-note{
  font-size: 0.85em;
  color: #888;
  line-height: 1.6;
  margin-top: 10px;
}

.ai-note{
  font-size:0.85em;
  color:#8a8a8a;
  margin-top:6px;
}

/* ===== 記事ページのカテゴリラベルを画像外に出す ===== */
.single .eye-catch .cat-label{
  position:static;
  display:inline-block;
  margin-bottom:10px;
  font-size:12px;
  padding:3px 8px;
}
.page-id-109 .entry-content h2,
.page-id-109 .entry-content h3 {
  letter-spacing: 0.02em;
}

.page-id-109 .entry-content p {
  line-height: 1.8;
}

.page-id-109 .entry-content ul {
  margin-top: 0.4em;
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}

.page-id-109 .entry-content li {
  margin-bottom: 0.65em;
  line-height: 1.8;
}

.page-id-109 .entry-content a {
  color: #5f6775 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 103, 117, 0.35);
}

.page-id-109 .entry-content a:hover {
  color: #2f3440 !important;
  border-bottom-color: rgba(47, 52, 64, 0.55);
}
.entry-categories a,
.cat-label {
  background-color: rgba(0,0,0,0.04) !important;
  color: #888 !important;
  border: none;
}
.entry-categories a {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 2px;
}