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


/************************************
** 2026-09-06 追加：図解のキャプション重複を消す
** 図解は画像の中にタイトルを持っている。その真下に同じ文言の
** figcaption が出て、同じ文が縦に2回並んでいた（84本すべて）。
** 文言は alt に残るので、SEO・アクセシビリティは落ちない。
** 戻すときはこの1ブロックを消すだけ。
************************************/
.zukai-figure > figcaption { display: none; }


/************************************
** 2026-09-06 追加：カテゴリラベルをサムネイルの下へ逃がす
** Cocoon は .cat-label を .card-thumb の左上（top:3px）に重ねて描く。
** アイキャッチv2は主役を中央に置いているので、上に重なると文字が読めない。
** 実測：ラベルは画像内の y=27〜177 を覆い、幅はカテゴリ名で変わる
**       （「IT資格」x=28〜380 ／「資格の勉強法・キャリア」x=28〜988）。
**       84本のうち 33本 の文字がこの帯に食い込んでいた。
** 下（y=495〜）へ移すと、文字の下端は最大でも y=472 なので衝突ゼロになる。
** ⚠️ 画像側を作り直して上に余白を空ける手もあるが、それをやると
**    本命であるSERPの正方形クロップで主役が下に寄って構図が崩れる。
**    一覧ページの都合は、一覧ページ側で直す。
************************************/
.card-thumb .cat-label { top: auto; bottom: 3px; }


/************************************
** 2026-09-06 追加：緑を「地」に下げ、色に意味を1つずつ割り当てる
**
** 実測（84記事）で分かったこと
**   ・h2 は平均6.5本、すべて濃緑ベタ塗り＋白文字＝ページが濃緑の帯で刻まれる
**   ・strong は平均30.7個（最大80）。ここに色を足すと「全部目立って何も目立たない」
**     → strong は触らない
**   ・A8の広告23本はすべて「本文中の素のテキストリンク」で、内部リンクと同じ青
**     ＝読者が広告と内部リンクを見分けられない（ASP成果ゼロの一因の疑い）
**   ・もしも22本はカード内に #F79256(橙)/#F76956(朱) のボタンを自前で持っている
**
** 色の割り当て
**   #0B4F44 構造    … h2の罫。塗りをやめて地に下げる
**   #146A5B サイト内 … 内部リンク（歩く）
**   #0C447C 外へ出る … 広告リンク（行動）＝広告ボタンと同じ紺（2026-10-15 #B4531Aから変更）
**     ↑ （旧#B4531Aの理由）もしものボタン #F79256 と色相が同じ22°＝「同じ信号の濃い版」。
**       白地でのコントラストは 5.01:1 で本文リンクに使える
**       （#F79256 のままだと 2.28:1 で本文には不足）
************************************/

/* 1. h2：濃緑ベタ塗り → 白地＋左の太罫。帯を消して地を白くする */
.entry-content h2 {
  background: transparent;
  color: #0B4F44;
  border-left: 6px solid #0B4F44;
  border-radius: 0;
  padding: 2px 0 2px 16px;
  margin: 56px 0 24px;
  font-size: 22px;
  line-height: 1.5;
}
/* h3：Cocoonの既定は「上下右に1px罫の箱」。左罫だけ消すと3辺の箱が残って
   h2（罫だけ）より目立ってしまう＝階層が逆転する。箱ごと外して細い下罫にする。
   これで h2＝左6px罫/22px ＞ h3＝下2px罫/19px の順になる。 */
.entry-content h3 {
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(11, 79, 68, .3);
  color: #0B4F44;
  padding: 0 0 8px;
  margin: 40px 0 16px;
  font-size: 19px;
  line-height: 1.5;
}

/* 2. 内部リンク＝サイト内を歩く色 */
.entry-content a { color: #146A5B; }

/* 3. 広告リンク＝外へ出る色。もしもの「かんたんリンク」カード内には当てない
      （カードは自前のボタン色を持っているので、二重に塗ると濁る） */
.entry-content a[href*="px.a8.net"],
.entry-content a[href*="af.moshimo.com"],
.entry-content a[href*="i.moshimo.com"] {
  color: #0C447C;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.entry-content [class*="easyLink"] a {
  color: inherit;
  font-weight: inherit;
}

/* 4. 本文の1行を45字→40字に（日本語の適正は25〜40字）。デスクトップのみ。
      ⚠️ 段落だけに掛けると目次や引用が全幅で残って右端が揃わない。.entry-content ごと絞る */
@media screen and (min-width: 835px) {
  .entry-content { max-width: 720px; }
}

/************************************
** 2026-09-08 追加：スマホの現在地と、クラスタ横断の導線
**
** なぜ要るか（実測）
**   ・グローバルナビ(#navi)はスマホで display が消える＝カテゴリが画面に1つも出ない
**   ・GSC 直近3か月：トップページ 表示4・クリック0／カテゴリページ 表示0
**     ＝読者は全員「記事1本」に着地する。サイトの地図ではなく「現在地」が要る
**   ・86記事／5クラスタ。全記事がカテゴリを1つだけ持つ（複数持ち0）
**
** 置き方
**   ・CSSはここに1回だけ。記事側はHTMLだけを入れる（本文を膨らませない）
**   ・色は1色も足していない。#0B4F44=構造／#146A5B=サイト内／グレー階調のみ。
**     #0C447C(外へ出る=広告) はナビには使わない。信号を壊さないため
**   ・JSゼロ。本文に <script> を入れるとWAFに弾かれるため
************************************/

/* ============ ① 現在地バー（記事の頭・h1直下） ============ */
.csk-here{
  display:flex; align-items:center; gap:10px;
  margin:0 0 28px; padding:10px 14px;
  background:#f2f7f5; border-left:3px solid #0B4F44;
  font-size:14px; line-height:1.6; color:#4a4a4a;
}
.csk-here .csk-ico{flex:0 0 auto; width:28px; height:28px; padding:4px;
  background:#0B4F44; color:#fff; border-radius:2px}
.csk-here .csk-ico svg{display:block; width:20px; height:20px}
.csk-here .csk-here-body{min-width:0}
.csk-here .csk-here-cat{display:block; font-weight:700; color:#0B4F44; font-size:15px}
.csk-here .csk-here-sub{display:block; color:#767676; font-size:13px}
.csk-here a{color:#146A5B; text-decoration:underline; text-underline-offset:2px}

/* ============ ② クラスタ横断（記事の尻・関連記事のあと） ============ */
.csk-clusters{
  margin:36px 0 0; padding:20px 18px 14px;
  border:1px solid #dde4e2; border-top:3px solid #0B4F44; background:#fff;
}
.csk-clusters .csk-clusters-h{
  margin:0 0 4px; font-size:16px; font-weight:700; color:#0B4F44; line-height:1.5;
}
.csk-clusters .csk-clusters-lead{
  margin:0 0 14px; font-size:13px; color:#767676; line-height:1.7;
}
.csk-clusters ul{
  list-style:none; margin:0; padding:0; display:grid; gap:0;
  /* ⚠️ ビューポートのメディアクエリでは「記事カラムの幅」を判定できない。
     auto-fit なら親の幅だけで決まる＝343pxで1列・720pxで2列に自然に割れる */
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
}
.csk-clusters li{margin:0; background:#fff; border-top:1px solid #e8edeb}
/* 表示順は本数の多い順で固定なので、最後の1つは常に列をまたいで幅を埋める
   （2列に割れたとき、右半分が空いて罫線がちぎれて見えるのを防ぐ） */
.csk-clusters li:last-child{grid-column:1 / -1}
.csk-clusters a{
  display:flex; align-items:center; gap:10px;
  padding:12px 6px; text-decoration:none; color:#1a1a1a;
  transition:background .15s ease;
}
.csk-clusters a:hover,.csk-clusters a:focus-visible{background:#f2f7f5}
.csk-clusters .csk-ico{
  flex:0 0 auto; width:30px; height:30px; padding:5px;
  border:1px solid #cfd8d5; color:#8a938f; border-radius:2px;
}
.csk-clusters .csk-ico svg{display:block; width:20px; height:20px}
.csk-clusters .csk-label{
  flex:1 1 auto; min-width:0;
  display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px;
}
.csk-clusters .csk-name{font-size:15px; font-weight:700; line-height:1.45}
.csk-clusters .csk-n{flex:0 0 auto; margin-left:auto; font-size:12px; color:#767676; font-variant-numeric:tabular-nums}
.csk-clusters .csk-arrow{flex:0 0 auto; width:16px; color:#a8b2ae; transition:transform .15s ease}
.csk-clusters a:hover .csk-arrow{transform:translateX(3px)}

/* いま読んでいるクラスタだけ、アイコンを塗る（他は線画で沈む）
   ＝WOWはこれ1つ。THE idea「現在地」以外のことは語らせない */
.csk-clusters .is-here .csk-ico{background:#0B4F44; border-color:#0B4F44; color:#fff}
.csk-clusters .is-here .csk-name{color:#0B4F44}
.csk-clusters .is-here .csk-badge{
  font-size:11px; font-weight:700; letter-spacing:.04em;
  color:#fff; background:#0B4F44; padding:2px 7px; border-radius:2px;
}
.csk-clusters .csk-note{margin:12px 0 0; font-size:12px; color:#8a938f; line-height:1.7}

/************************************
** 2026-11-03 資格ごとのまとめ（道のり）＝子テーマに足すCSS v1（試作v2から本番用に）
**
** THE idea＝「いま、道のりのどこにいるか」。9/8の「現在地」を、資格の中の4段まで細かくした
**   段＝取る前／取る／持ち続ける／仕事にする（全資格で同じ見出し。記事のない段は出さない）
**
** 置き方
**   ・CSSはここに1回だけ。記事側はHTMLだけ（nav_genで生成）
**   ・色は1色も足していない。#0B4F44=構造／#146A5B=サイト内／グレー階調のみ。
**     #B4531A(外へ出る=広告) はナビに使わない
**   ・JSゼロ。たたむのは <details>（本文の <script> はWAFに弾かれる）
**   ・4つの資格に入らない記事は、今の .csk-here / .csk-clusters のまま
************************************/

/* ============ ① ホームのタイル ============ */
.csk-home{margin:0 0 40px}
.csk-home-h{margin:0 0 4px; font-size:20px; font-weight:700; color:#0B4F44; line-height:1.5}
.csk-home-lead{margin:0 0 16px; font-size:14px; color:#767676; line-height:1.7}
.csk-home>ul{
  list-style:none; margin:0; padding:0; display:grid; gap:16px;
  /* 記事カラムの幅で割れる（メディアクエリは使わない）＝343pxで1列・720pxで2列 */
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
}
.csk-home>ul>li{margin:0}
.csk-tile{
  display:flex; flex-direction:column; height:100%; box-sizing:border-box;
  padding:16px; background:#fff; color:#1a1a1a; text-decoration:none;
  border:1px solid #dde4e2; border-top:3px solid #0B4F44;
  transition:border-color .15s ease, background .15s ease;
}
.csk-tile:hover,.csk-tile:focus-visible{border-color:#0B4F44; background:#f2f7f5}
.csk-tile-head{display:flex; align-items:center; gap:8px}
.csk-tile .csk-ico{flex:0 0 auto; width:32px; height:32px; padding:6px; box-sizing:border-box;
  background:#0B4F44; color:#fff; border-radius:2px}
.csk-tile .csk-ico svg{display:block; width:20px; height:20px}
.csk-tile-name{flex:1 1 auto; min-width:0; font-size:18px; font-weight:700; line-height:1.4; color:#0B4F44}
.csk-tile-n{flex:0 0 auto; font-size:13px; color:#767676; font-variant-numeric:tabular-nums}
.csk-tile-lead{margin:8px 0 16px; font-size:14px; line-height:1.75; color:#4a4a4a}
/* 4段の本数＝その資格で「どこが厚いか」。記事のない段は線だけ残して沈める */
.csk-tile-stages{list-style:none; margin:auto 0 0; padding:0; display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid #e8edeb}
.csk-tile-stages li{margin:0; padding:8px 0 0; text-align:center; border-left:1px solid #e8edeb}
.csk-tile-stages li:first-child{border-left:0}
.csk-tile-stages b{display:block; font-size:16px; line-height:1.3; color:#1a1a1a; font-variant-numeric:tabular-nums}
.csk-tile-stages small{display:block; font-size:11px; line-height:1.5; color:#767676; white-space:nowrap}
.csk-tile-stages .is-empty b{color:#cfd8d5; font-weight:400}
.csk-tile-stages .is-empty small{color:#a8b2ae}
.csk-tile-go{display:flex; align-items:center; justify-content:flex-end; gap:4px; margin:12px 0 0;
  font-size:13px; font-weight:700; color:#146A5B}
.csk-tile-go svg{width:16px; height:16px; transition:transform .15s ease}
.csk-tile:hover .csk-tile-go svg{transform:translateX(3px)}
.csk-home-more{margin:16px 0 0; padding:12px 0 0; border-top:1px solid #e8edeb;
  font-size:14px; line-height:1.9; color:#4a4a4a}
.csk-home-more b{margin-right:8px; color:#1a1a1a}
.csk-home-more a{color:#146A5B; text-underline-offset:2px; white-space:nowrap}
.csk-home-more span{color:#767676; font-size:12px; font-variant-numeric:tabular-nums}

/* ============ ② 記事の頭（h1直下）＝ .csk-here の置き換え ============ */
.csk-path{
  display:flex; align-items:flex-start; gap:10px;
  margin:0 0 28px; padding:10px 14px;
  background:#f2f7f5; border-left:3px solid #0B4F44;
  font-size:14px; line-height:1.6; color:#4a4a4a;
}
.csk-path .csk-ico{flex:0 0 auto; width:28px; height:28px; padding:4px; box-sizing:border-box;
  background:#0B4F44; color:#fff; border-radius:2px}
.csk-path .csk-ico svg{display:block; width:20px; height:20px}
.csk-path-body{flex:1 1 auto; min-width:0}
.csk-path-top{display:flex; align-items:baseline; gap:8px}
.csk-path-cat{font-weight:700; color:#0B4F44; font-size:15px}
.csk-path-all{margin-left:auto; flex:0 0 auto; font-size:13px; color:#146A5B; text-decoration:underline; text-underline-offset:2px}
.csk-path-steps{list-style:none; margin:4px 0 0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 0;
  font-size:13px; color:#767676}
.csk-path-steps li{margin:0; display:flex; align-items:center; white-space:nowrap}
.csk-path-steps li+li::before{content:""; width:5px; height:5px; margin:0 8px;
  border-top:1.5px solid #a8b2ae; border-right:1.5px solid #a8b2ae; transform:rotate(45deg)}
.csk-path-steps .is-here span{padding:1px 8px; background:#0B4F44; color:#fff; font-weight:700; border-radius:2px}
.csk-path-pos{margin-left:4px; font-weight:400; font-variant-numeric:tabular-nums; opacity:.85}

/* ============ ③ 道のり（記事の尻＝まとめの後・関連記事の前／まとめページの本体） ============ */
.csk-flow{
  margin:40px 0 0; padding:20px 16px 16px;
  border:1px solid #dde4e2; border-top:3px solid #0B4F44; background:#fff;
}
.csk-flow-h{margin:0 0 4px; font-size:16px; font-weight:700; color:#0B4F44; line-height:1.5}
.csk-flow-lead{margin:0 0 12px; font-size:13px; color:#767676; line-height:1.7}

/* 段（たたむ単位）。記事の尻では「いま読んでいる段」だけ open で出す */
.csk-stage{border-top:1px solid #e8edeb}
.csk-stage>summary{
  list-style:none; display:flex; align-items:center; gap:8px;
  padding:12px 4px; cursor:pointer; transition:background .15s ease;
}
.csk-stage>summary::-webkit-details-marker{display:none}
.csk-stage>summary:hover,.csk-stage>summary:focus-visible{background:#f2f7f5}
/* 段の印＝縦の短い棒（四角だとチェックボックスに見える）。いま読んでいる段だけ塗る */
.csk-stage-mark{flex:0 0 auto; width:4px; height:16px; background:#cfd8d5; border-radius:1px}
.csk-stage.is-here .csk-stage-mark{background:#0B4F44}
.csk-stage-name{font-size:15px; font-weight:700; color:#1a1a1a; line-height:1.45}
.csk-stage.is-here .csk-stage-name{color:#0B4F44}
.csk-stage-sub{font-size:12px; color:#767676}
.csk-stage-n{margin-left:auto; flex:0 0 auto; font-size:12px; color:#767676; font-variant-numeric:tabular-nums}
.csk-chev{flex:0 0 auto; width:16px; height:16px; color:#a8b2ae; transition:transform .15s ease}
.csk-stage[open]>summary .csk-chev{transform:rotate(90deg)}
.csk-stage-desc{margin:0 0 8px; padding:0 4px 0 22px; font-size:13px; color:#4a4a4a; line-height:1.75}

/* 手順の縦線。WOWはこれ1つ＝いま読んでいる点まで実線、その先は点線
   線は「この点の中心→次の点の中心」を各liが受け持つ（点の中心＝上から20px） */
.csk-steps{list-style:none; margin:0 0 12px; padding:0 0 0 4px}
.csk-step{position:relative; display:flex; gap:12px; margin:0}
.csk-step::before{content:""; position:absolute; left:11px; top:20px; bottom:-20px;
  border-left:2px solid #0B4F44}
.csk-step:last-child::before{display:none}
.csk-step.is-here::before,.csk-step.is-todo::before{border-left:2px dashed #cfd8d5}
.csk-step-no{
  position:relative; z-index:1; flex:0 0 auto; box-sizing:border-box;
  width:24px; height:24px; margin-top:8px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid #0B4F44; border-radius:50%; background:#fff;
  font-size:12px; font-weight:700; line-height:1; color:#0B4F44; font-variant-numeric:tabular-nums;
}
.csk-step.is-todo .csk-step-no{border-color:#cfd8d5; color:#8a938f}
.csk-step.is-here .csk-step-no{background:#0B4F44; color:#fff}
/* 順番に意味がない段は、番号のかわりに点。線は全部うすい実線 */
.csk-steps.is-free .csk-step::before{border-left:2px solid #e8edeb}
.csk-steps.is-free .csk-step-no{width:24px; height:24px; border:0; background:transparent}
.csk-steps.is-free .csk-step-no::after{content:""; width:8px; height:8px; border-radius:50%; background:#cfd8d5}
.csk-steps.is-free .csk-step.is-here .csk-step-no::after{width:12px; height:12px; background:#0B4F44}
.csk-step-links{flex:1 1 auto; min-width:0; padding:4px 0}
.csk-step-links a,.csk-step-links .csk-cur{
  display:flex; align-items:center; gap:8px; padding:6px 8px;
  font-size:15px; line-height:1.55; color:#1a1a1a; text-decoration:none;
}
.csk-step-links a{transition:background .15s ease}
.csk-step-links a:hover,.csk-step-links a:focus-visible{background:#f2f7f5; color:#0B4F44}
.csk-step-links a::after{content:""; flex:0 0 auto; margin-left:auto; width:6px; height:6px;
  border-top:1.5px solid #a8b2ae; border-right:1.5px solid #a8b2ae; transform:rotate(45deg);
  transition:transform .15s ease}
.csk-step-links a:hover::after{transform:translateX(3px) rotate(45deg)}
.csk-cur{font-weight:700; color:#0B4F44 !important; background:#f2f7f5; flex-wrap:wrap}
.csk-badge{flex:0 0 auto; font-size:11px; font-weight:700; letter-spacing:.04em;
  color:#fff; background:#0B4F44; padding:2px 7px; border-radius:2px}
.csk-group{position:relative; margin:0; padding:12px 0 2px 36px; font-size:12px; font-weight:700; color:#767676}
.csk-group::before{content:""; position:absolute; left:11px; top:0; bottom:0; border-left:2px solid #e8edeb}
.csk-steps>.csk-group:first-child::before{display:none}

/* 次へ＝この部品の主役。広告色は使わない */
.csk-next{
  display:flex; align-items:center; gap:12px; margin:16px 0 0; padding:14px 16px;
  background:#0B4F44; color:#fff !important; text-decoration:none;
  transition:background .15s ease;
}
.csk-next:hover,.csk-next:focus-visible{background:#146A5B}
.csk-next-body{flex:1 1 auto; min-width:0}
.csk-next-k{display:block; font-size:12px; line-height:1.5; opacity:.85}
.csk-next-t{display:block; font-size:16px; font-weight:700; line-height:1.5}
.csk-next svg{flex:0 0 auto; width:20px; height:20px; transition:transform .15s ease}
.csk-next:hover svg{transform:translateX(3px)}
.csk-flow-all{display:block; margin:12px 0 0; text-align:right; font-size:13px; color:#146A5B; text-underline-offset:2px}

/* まとめページの頭 */
.csk-matome-lead{margin:0 0 8px; font-size:15px; line-height:1.85; color:#4a4a4a}
.csk-matome .csk-flow{margin-top:24px}
.csk-matome-others{margin:24px 0 0; font-size:14px; line-height:1.9; color:#4a4a4a}
.csk-matome-others a{color:#146A5B; text-underline-offset:2px}

/* ============ Cocoonの本文スタイルを打ち消す（2026-11-03 実測） ============
   .article ol{padding-left:26px; margin-bottom:…}・.article li{margin:.2em}・.article p{margin-bottom:1.3em}
   が単一クラスの指定に勝つので、2クラスで指定し直す */
.csk-path .csk-path-steps{margin:4px 0 0; padding:0}
.csk-path .csk-path-steps li{margin:0}
.csk-flow .csk-steps{margin:0 0 12px; padding:0 0 0 4px}
.csk-flow .csk-step,.csk-flow .csk-group{margin:0}
.csk-flow .csk-flow-h{margin:0 0 4px}
.csk-flow .csk-flow-lead{margin:0 0 12px}
.csk-flow .csk-stage-desc{margin:0 0 8px}
.csk-home .csk-home-h{margin:0 0 4px}
.csk-home .csk-home-lead{margin:0 0 16px}
.csk-home .csk-home-more{margin:16px 0 0}
.csk-home>ul{margin:0; padding:0}
.csk-home>ul>li{margin:0}
.csk-home .csk-tile-stages{margin:auto 0 0; padding:0}
.csk-home .csk-tile-stages li{margin:0}
.csk-matome .csk-matome-lead{margin:0 0 8px}
.csk-matome .csk-matome-others{margin:24px 0 0}

/************************************
** 2026-11-04 PCのサイドバー：記事ページでは「同じカテゴリの新着記事」だけ出す
**   ・ユーザー指摘＝PMPの記事にフォークリフトの新着が並ぶのは違和感（スマホはサイドバー自体が出ない）
**   ・ウィジェットはカテゴリごとに5つ（.csk-side-cat-<カテゴリID>）＋全体の新着（.csk-side-all）
**   ・どれを出すかは body の categoryid-<ID>（Cocoonが記事ページに付ける）で決める。JSなし
**   ・記事ページ以外（ホーム・まとめ・カテゴリ一覧）は今までどおり全体の新着
************************************/
.csk-side-cat,
.widget:has(> .csk-side-cat){display:none}
.single .csk-side-all,
.single .widget:has(> .csk-side-all){display:none}
.single.categoryid-4 .csk-side-cat-4,.single.categoryid-4 .widget:has(> .csk-side-cat-4),
.single.categoryid-5 .csk-side-cat-5,.single.categoryid-5 .widget:has(> .csk-side-cat-5),
.single.categoryid-6 .csk-side-cat-6,.single.categoryid-6 .widget:has(> .csk-side-cat-6),
.single.categoryid-7 .csk-side-cat-7,.single.categoryid-7 .widget:has(> .csk-side-cat-7),
.single.categoryid-9 .csk-side-cat-9,.single.categoryid-9 .widget:has(> .csk-side-cat-9){display:block}
/* 道のりのページ（まとめの固定ページ4枚）も、その資格のカテゴリの新着だけ出す
   2527 PMP→4／2528 生成AI・G検定→6（IT資格）／2529 フォークリフト→9／2530 危険物→7（勉強法・キャリア） */
.page-id-2527 .widget:has(> .csk-side-all),.page-id-2528 .widget:has(> .csk-side-all),
.page-id-2529 .widget:has(> .csk-side-all),.page-id-2530 .widget:has(> .csk-side-all),
.page-id-2527 .csk-side-all,.page-id-2528 .csk-side-all,.page-id-2529 .csk-side-all,.page-id-2530 .csk-side-all{display:none}
.page-id-2527 .csk-side-cat-4,.page-id-2527 .widget:has(> .csk-side-cat-4),
.page-id-2528 .csk-side-cat-6,.page-id-2528 .widget:has(> .csk-side-cat-6),
.page-id-2529 .csk-side-cat-9,.page-id-2529 .widget:has(> .csk-side-cat-9),
.page-id-2530 .csk-side-cat-7,.page-id-2530 .widget:has(> .csk-side-cat-7){display:block}
