@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){
  /*必要ならばここにコードを書く*/
}

/* ==========================================================
   ComfortLantern — Cocoon 追加CSS  v2 (2026-08-11)
   貼り付け先: 外観 › カスタマイズ › 追加CSS
   ※CSS変数を使わず色を直書きした版。
     一部が欠けても残りが動くようにしてあります。
   ========================================================== */

/* ── 全体 ───────────────────────────────── */
body{
  background:#FFFCF7;
  color:#333B4A;
  font-family:"Hiragino Sans","ヒラギノ角ゴシック","Yu Gothic","游ゴシック体",YuGothic,Meiryo,sans-serif;
}
#main,#sidebar,.entry-card,.related-entry-card{background:#FFFCF7}

/* 本文の読みやすさ（日本語は行間を広めに） */
.entry-content{font-size:16px;line-height:1.9;letter-spacing:.01em}
.entry-content p{margin:0 0 1.6em}

/* ── Cocoonの既定見出し装飾をリセット ──────────
   ※「Cocoon設定 › 見出し」タブが無いバージョン向け。
     装飾が二重になるのを防ぐため、こちらで使わない指定だけ消す。 */
.entry-content h2::before,.entry-content h2::after,
.entry-content h3::before,.entry-content h3::after,
.entry-content h4::before,.entry-content h4::after{content:none !important;display:none !important}
.entry-content h2,.entry-content h3,.entry-content h4{
  border-top:none; border-right:none;
  box-shadow:none; text-shadow:none;
  background-image:none;
}
.entry-content h2{border-bottom:none}   /* h2は左のラインだけ使う */
.entry-content h3{border-left:none}     /* h3は下線だけ使う */
.entry-content h4{border-bottom:none}   /* h4は左のラインだけ使う */

/* ── 記事タイトル・見出し ────────────────── */
/* 見出しだけ明朝にして、同ジャンルとの差を作る */
.entry-title,.article h1,
.entry-content h2,.entry-content h3{
  font-family:"Hiragino Mincho ProN","ヒラギノ明朝 ProN","Yu Mincho","YuMincho","游明朝",serif;
}
.entry-title,.article h1{
  font-weight:600; line-height:1.55; color:#333B4A !important;
}

/* H2: 夕暮れ色の帯 + 灯りの縦線（ベタ塗りの強い帯は使わない）
   ※Cocoon既定の見出しスタイル（濃い背景＋白文字）が優先されるため、
     色・背景・縦線は !important で確実に上書きする */
.entry-content h2,
.article .entry-content h2{
  background:#FBEADC !important;
  border-left:5px solid #E0982E !important;
  border-right:none !important;
  border-top:none !important;
  border-bottom:none !important;
  border-radius:0 2px 2px 0 !important;
  padding:.65em .9em !important;
  margin:2.6em 0 1.2em;
  font-size:1.25em; font-weight:600; line-height:1.6;
  color:#333B4A !important;
}
/* H3: 灯りの下線。インラインブロックで文字幅だけ引く */
.entry-content h3,
.article .entry-content h3{
  display:inline-block;
  background:none !important;
  border:none !important;
  border-bottom:2px solid #F3C46F !important;
  border-radius:0 !important;
  padding:0 0 .35em !important;
  margin:2em 0 .9em;
  font-size:1.05em; font-weight:700; line-height:1.6;
  color:#333B4A !important;
  font-family:"Hiragino Sans","Yu Gothic",sans-serif; /* H3はゴシックに戻す */
}
.entry-content h4,
.article .entry-content h4{
  background:none !important;
  border:none !important;
  border-left:3px solid #7E9470 !important;
  padding:0 0 0 .7em !important;
  margin:1.8em 0 .8em;
  font-size:1em; font-weight:700;
  color:#333B4A !important;
}

/* ── リンク ─────────────────────────────── */
.entry-content a{
  color:#B85C38;
  text-underline-offset:.18em;
  text-decoration-thickness:1px;
}
.entry-content a:hover{opacity:.75}

/* ── 表（比較表が主力コンテンツなので手厚く） ── */
.entry-content .scrollable-table,.entry-content figure.wp-block-table{overflow-x:auto}
.entry-content table{
  border-collapse:collapse; width:100%; font-size:.9em; line-height:1.7;
}
.entry-content th,.entry-content td{
  padding:.6em .7em; border-bottom:1px solid #EADFD2; text-align:left;
}
.entry-content th{
  background:#333B4A; color:#FFFCF7;
  font-weight:700; font-size:.9em; letter-spacing:.03em;
}
.entry-content tbody tr:nth-child(odd){background:#FBEADC}
/* 価格などの数字は桁を揃える */
.entry-content td{font-variant-numeric:tabular-nums}

/* ── ボックス類 ─────────────────────────── */
.entry-content .blank-box,.entry-content blockquote{
  background:#FBEADC;
  border:1px solid #F6D9BF;
  border-radius:2px;
  padding:1em 1.1em;
}
.entry-content blockquote{border-left:4px solid #7E9470}

/* 冒頭のAI開示・PR表記（記事上の共通テンプレートに置く要素） */
.entry-content .cl-disclose{
  background:#FBEADC;
  border-radius:2px;
  padding:.7em .9em;
  font-size:.85em; line-height:1.75; color:#5C6575;
  margin-bottom:2em;
}

/* ── 目次 ───────────────────────────────── */
.toc{
  background:#FFFCF7;
  border:1px solid #EADFD2;
  border-top:3px solid #E0982E;
  border-radius:0 0 2px 2px;
}
.toc-title{font-weight:700;letter-spacing:.04em}
.toc a{color:#333B4A}
.toc a:hover{color:#B85C38}

/* ── カテゴリラベル（3ピラーを色で見分ける） ──────
   ※ラベルは白文字を乗せるため、見出し用の明るい3色ではなく
     「濃いめ版」を使う（白文字のコントラスト比4.5以上を確保）。
     Cocoonのカテゴリー編集画面で同じ値を設定してもよい（そちらが優先される）。 */
.cat-label{
  background:#9A6A1C; color:#fff;
  border:none; border-radius:999px;
  font-size:.72em; font-weight:700; letter-spacing:.05em; padding:.2em .8em;
}
.cat-link[href*="gear"] .cat-label,.cat-label.gear{background:#5F7454}
.cat-link[href*="housework"] .cat-label,.cat-label.housework{background:#6B62A0}

/* ── 記事一覧カード ─────────────────────── */
.entry-card{
  border-bottom:1px solid #EADFD2;
  padding-bottom:1.2em;
}
.entry-card-title{
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-weight:600; line-height:1.6;
}
.entry-card:hover{background:#FBEADC}

/* ── ヘッダー・フッター ───────────────────
   ※Cocoonは「サイトキーカラー」をヘッダー背景とサイドバー見出しの
     ベタ塗りに使う。白文字が乗って読めなくなるため、ここで上書きする。
     (2026-08-11 実サイトのDOMを確認して修正) */
.header-container,
#header-container,
#header,
.header{
  background:linear-gradient(170deg,#FBEADC 0%,#FFFCF7 80%) !important;
  border-bottom:1px solid #EADFD2;
}
.site-name-text,
.site-name-text-link,
.logo-header a,
.logo-text a{
  color:#333B4A !important;
  text-shadow:none !important;
}
.site-name-text{
  font-family:"Hiragino Mincho ProN","ヒラギノ明朝 ProN","Yu Mincho",serif;
  font-weight:600; letter-spacing:.02em;
}
.tagline{color:#5C6575 !important}
.navi-in > ul > li > a{color:#333B4A}
.navi-in > ul > li > a:hover{background:#FBEADC}
.footer{background:#FBEADC;border-top:1px solid #F6D9BF;color:#333B4A}

/* ── サイドバーの見出し（キーカラーのベタ塗りをやめる） ──
   本文のH2と同じ「夕暮れ色の帯＋灯りの縦線」に揃える */
#sidebar h2,#sidebar h3,
.sidebar h2,.sidebar h3,
#sidebar .wp-block-heading,
.widget-sidebar-title,.sidebar-title{
  background:#FBEADC !important;
  color:#333B4A !important;
  border:none !important;
  border-left:4px solid #E0982E !important;
  border-radius:0 2px 2px 0 !important;
  padding:.5em .8em !important;
  margin:0 0 .8em !important;
  font-size:1em !important;
  font-weight:700 !important;
  font-family:"Hiragino Sans","Yu Gothic",sans-serif !important;
  text-align:left !important;
}

/* ── 検索フォーム ─────────────────────── */
.search-submit{
  background:#E0982E !important;
  color:#fff !important;
  border:none !important;
  border-radius:2px !important;
}
.search-edit,.search-box input[type="text"]{
  border:1px solid #EADFD2 !important;
  border-radius:2px !important;
  background:#fff !important;
}

/* ── ボタン（公式サイトへの導線） ────────── */
.entry-content .btn-wrap > a,.entry-content .btn{
  background:#E0982E;
  color:#fff !important;
  border-radius:3px;
  font-weight:700;
  box-shadow:0 2px 0 rgba(140,95,20,.35);
}
.entry-content .btn-wrap > a:hover{opacity:.9;transform:translateY(1px);box-shadow:0 1px 0 rgba(140,95,20,.35)}

/* ── モバイル ───────────────────────────── */
@media screen and (max-width:834px){
  .entry-content{font-size:15.5px;line-height:1.85}
  .entry-content h2{font-size:1.15em;padding:.6em .8em;margin:2.2em 0 1em}
  .entry-content table{font-size:.85em}
}

/* 検索ボタン（WordPressブロック） */
.wp-block-search__button,
.wp-element-button,
.wp-block-button__link{
  background-color:#E0982E !important;
  color:#fff !important;
  border:none !important;
  border-radius:2px !important;
  font-weight:700;
}
.wp-block-search__button:hover,
.wp-element-button:hover{opacity:.9}
.wp-block-search__input{
  border:1px solid #EADFD2 !important;
  border-radius:2px !important;
  background:#fff !important;
}


/* ComfortLantern 追記3 — style.css の末尾に足してください（2026-08-16） */
/* 貼り付け先: 外観 › テーマファイルエディター › Cocoon Child › style.css の末尾 */
/* ※カスタマイザーの「追加CSS」は長文が切断されるので使わない（公開手順_20260811.md STEP0） */

/* ── CTAブロック（申し込み口）─────────────────
   本文中にバナーを挟むと「広告記事」に見えて信頼が崩れるので、
   テキストリンクのまま枠で囲んで「ここが申し込み口」と分かるようにする。
   出典: 提携プログラム/A8_シェフの無添つくりおき/メモ.md §4-b（2026-08-16）
   .md 側は :::cta 〜 ::: で囲む。md2html.py が .cl-cta を出力する。 */
.entry-content .cl-cta{
  background:#FDF6EE;
  border:1px solid #EADFD2;
  border-left:4px solid #E0982E;
  border-radius:3px;
  padding:1.2em 1.3em .9em;
  margin:2em 0;
}
.entry-content .cl-cta > p{margin:0 0 .7em}
.entry-content .cl-cta > p:last-child{margin-bottom:0}

/* リンク行は行頭に「→」を出して、押せる場所だと分かるようにする */
.entry-content .cl-cta > p > a[href^="https://px.a8.net"]{
  display:inline-block;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding:.15em 0;
}
.entry-content .cl-cta > p > a[href^="https://px.a8.net"]::before{
  content:"→ ";
  font-weight:400;
  border:none;
}
.entry-content .cl-cta > p > a[href^="https://px.a8.net"]:hover{opacity:.75}

/* バナーは記事末のみ。中央寄せして本文と区別する */
.entry-content .cl-cta img[width="300"],
.entry-content .cl-cta img[width="336"]{
  display:block;
  margin:0 auto .9em;
  max-width:100%;
  height:auto;
}

@media screen and (max-width:834px){
  .entry-content .cl-cta{padding:1em 1em .8em;margin:1.6em 0}
}


/* ComfortLantern 追記4 — トップページ導入部（2026-08-16） */
/* 貼り付け先: 外観 › テーマファイルエディター › Cocoon Child › style.css の末尾 */
/* 対になるHTML: トップページ導入部_20260816.html（ウィジェット「インデックスリスト上部」） */

.cl-hero{
  background:#FDF9F4;  /* 地が純白なので、箱はごく薄い暖色で浮かせる */
  border:1px solid #EADFD2;
  border-radius:4px;
  padding:1.8em 1.6em 1.5em;
  margin:0 0 2em;
}
/* ── 上の帯（Xヘッダーと同じ絵）─────────────────
   枠の内側いっぱいに出すため、.cl-hero の padding を打ち消して上端に貼る。
   🔴 文字は重ねない。淡い色調に文字を乗せると暗幕が要り、絵の温かみが濁る。 */
.cl-hero__band{
  display:block;
  width:calc(100% + 3.2em);
  max-width:none;
  margin:-1.8em -1.6em 1.4em;
  border-radius:3px 3px 0 0;
  height:auto;
}

.cl-hero__lead{
  font-size:1.15em;
  font-weight:700;
  line-height:1.85;
  color:#333B4A;
  margin:0 0 1.3em;
}

/* ── 書いている人（イラスト＋文章の2カラム）───────── */
.cl-hero__who{
  display:flex;
  align-items:center;
  gap:1.1em;
  background:#FDF6EE;
  border-radius:4px;
  padding:1.1em 1.2em;
  margin:0 0 1.6em;
}
.cl-hero__avatar{
  width:92px;height:92px;
  flex:none;
  border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 1px 4px rgba(51,59,74,.12);
  object-fit:cover;
}
.cl-hero__who-text{
  font-size:.94em;
  line-height:1.9;
  color:#5C6575;
  margin:0;
}
.cl-hero__who-text strong{color:#333B4A}

/* ── 悩み別の入口 ───────────────────────── */
.cl-hero__nav-label{
  font-size:.85em;
  font-weight:700;
  color:#9A6A1C;
  letter-spacing:.04em;
  margin:0 0 .7em;
}
.cl-hero__nav{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.7em;
  margin:0 0 1.3em;
}
.cl-hero__btn{
  display:block;
  background:#fff;
  border:1px solid #EADFD2;
  border-left:3px solid #E0982E;
  border-radius:3px;
  padding:.9em 1em;
  text-decoration:none;
  transition:background .15s, box-shadow .15s;
}
.cl-hero__btn:hover{background:#FDF6EE;box-shadow:0 1px 5px rgba(51,59,74,.08)}
.cl-hero__ico{
  display:block;
  width:26px;height:26px;
  color:#E0982E;
  margin-bottom:.5em;
}
.cl-hero__ico svg{width:100%;height:100%;display:block}
.cl-hero__btn-q{
  display:block;
  font-weight:700;
  color:#333B4A;
  font-size:.98em;
  line-height:1.5;
  margin-bottom:.3em;
}
.cl-hero__btn-a{
  display:block;
  font-size:.82em;
  color:#5C6575;
  line-height:1.5;
}
.cl-hero__note{
  font-size:.85em;
  color:#5C6575;
  line-height:1.8;
  margin:0;
  padding-top:1em;
  border-top:1px solid #EADFD2;
}
.cl-hero__note strong{color:#B85C38}

/* ── スマホ ─────────────────────────────
   ボタンは1列に積む（3列のままだと1つが狭すぎて文字が潰れる）。
   縦積みではアイコンを左に置いたほうが行数が減って読みやすい。 */
@media screen and (max-width:834px){
  .cl-hero{padding:1.4em 1.1em 1.2em;margin-bottom:1.6em}
  .cl-hero__band{width:calc(100% + 2.2em);margin:-1.4em -1.1em 1.1em}
  .cl-hero__lead{font-size:1.05em}
  .cl-hero__who{gap:.9em;padding:.9em 1em}
  .cl-hero__avatar{width:72px;height:72px}
  .cl-hero__who-text{font-size:.88em;line-height:1.85}
  .cl-hero__nav{grid-template-columns:1fr;gap:.6em}
  .cl-hero__btn{
    display:grid;
    grid-template-columns:26px 1fr;
    grid-template-areas:"ico q" "ico a";
    column-gap:.8em;
    align-items:center;
  }
  .cl-hero__ico{grid-area:ico;margin-bottom:0}
  .cl-hero__btn-q{grid-area:q;margin-bottom:.15em}
  .cl-hero__btn-a{grid-area:a}
}



/* ComfortLantern 追記5 — 全体の背景を白に寄せる（2026-08-16 Tai指摘） */
/* 貼り付け先: 外観 › テーマファイルエディター › Cocoon Child › style.css の末尾 */
/*
   指摘: 「全体的な背景はもうワントーン白いほうがアクセントが目立つ。いま若干赤みが全体的」

   原因: 地の色に #FFFCF7（R255 G252 B247）を使っていた。青が8下がっているので
         画面全体がうっすら生成り色になり、アクセントのオレンジ #E0982E と
         CTA枠の #FDF6EE が地に沈んでいた。

   対処: 地は純白にして、色は「置いた場所」だけに出す。
         ヘッダー・ナビ・フッターの #FBEADC はブランドの顔なので残す。
         これで暖色が“全体の膜”ではなく“アクセント”として効く。

   ※ 正本 cocoon追加CSS_v2_20260811.css にも同じ変更を反映済み。
     全文を貼り直す運用に切り替えたときは、この追記5は不要になる。
*/

body{background:#FFFFFF}
#main,#sidebar,.entry-card,.related-entry-card{background:#FFFFFF}

/* 目次は地と同色だと枠だけが浮くので、ごく薄い暖色で面を作る */
.toc{background:#FDF9F4}

/* トップ導入部も地から少し浮かせる（白地に白箱だと枠線しか見えない） */
.cl-hero{background:#FDF9F4}
