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


/* ============================================================
   中小企業の処方箋 ｜ Cocoon子テーマ用CSS
   貼り付け先: 外観 → テーマファイルエディター
              → 編集するテーマ「Cocoon Child」→ style.css の末尾
   最終更新: 2026-07-29
   ------------------------------------------------------------
   命名規則: 独自クラスはすべて cs- で始める
            （Cocoonの .wrap .content .main と衝突させないため）
   ============================================================ */


/* ------------------------------------------------------------
   1. カラー変数
   ------------------------------------------------------------ */
:root{
  --cs-green:      #0E5A4C;  /* プライマリ */
  --cs-green-dark: #093F35;  /* ホバー・押下 */
  --cs-green-mid:  #107060;  /* 図版・小要素 */
  --cs-green-pale: #E7F1EE;  /* 帯・表ヘッダー */
  --cs-sec-bg:     #F1F7F4;  /* セクション背景 */
  --cs-accent:     #C05621;  /* CTAのみ。1画面1箇所 */
  --cs-ink:        #1C1C1C;
  --cs-sub:        #5A6B63;
  --cs-meta:       #8A9691;
  --cs-line:       #DDE2DE;
  --cs-line-g:     #C3D8D0;
}

/* ------------------------------------------------------------
   2. 全体 — フォントと「テンプレっぽさ」の除去
   ------------------------------------------------------------ */
body,
body[class],
.entry-content,
.article p,
input,textarea,select,button{
  font-family:'Noto Sans JP',-apple-system,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif !important;
}
body,
.entry-content,
.article p{
  color:var(--cs-ink);
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}

/* 影・グラデーション・角丸を全廃する。
   これがCocoonを「既製テーマに見せない」ための最大の処理 */
.entry-card,.related-entry-card,.carousel-entry-card,
.widget,.sidebar,.card,.box,.button,.btn,
.entry-card-wrap,.list .entry-card-wrap,
.article,.main,.content,.appeal{
  box-shadow:none !important;
  border-radius:0 !important;
  background-image:none !important;
  text-shadow:none !important;
}

/* ------------------------------------------------------------
   3. ヘッダー — 白地＋下辺3pxの深緑罫。ベタ塗りにしない
   ------------------------------------------------------------ */
.header,.header-container,#header,#header-container{
  background:#fff !important;
  background-image:none !important;
  box-shadow:none !important;
}
#header-container,.header-container{
  border-bottom:3px solid var(--cs-green);
}
.logo-header img,.header-site-logo-image{
  height:58px !important;
  width:auto !important;
}
.site-name-text,.site-name-text-link{
  font-size:23px !important;
  font-weight:700 !important;
  color:var(--cs-green) !important;
  letter-spacing:.04em;
  line-height:1.35;
  text-decoration:none;
}
.tagline{
  font-size:12.5px !important;
  color:var(--cs-sub) !important;
  letter-spacing:.02em;
  margin-top:2px;
}

/* グローバルナビ */
.navi-in > ul > li > a{
  font-size:14px;
  font-weight:500;
  color:var(--cs-green) !important;
  border-bottom:2px solid transparent;
}
.navi-in > ul > li > a:hover{
  background:transparent !important;
  border-bottom-color:var(--cs-green);
}
#navi,.navi{
  background:#fff !important;
  border-bottom:none;
}

/* ------------------------------------------------------------
   4. PR表記バー（本文上部の追加コンテンツに入れる）
   ------------------------------------------------------------ */
.cs-prbar{
  background:var(--cs-sec-bg);
  border-bottom:1px solid var(--cs-line-g);
  font-size:12px;
  color:var(--cs-sub);
  padding:6px 0;
  text-align:center;
}

/* ------------------------------------------------------------
   5. トップページ（固定ページ・カスタムHTMLブロック）
   ------------------------------------------------------------ */
.cs-inner{max-width:1040px;margin:0 auto;padding:0 28px}

/* ヒーロー */
.cs-hero{padding:56px 0 48px}
.cs-hero h1{
  font-size:44px;font-weight:700;line-height:1.5;letter-spacing:.01em;
  color:var(--cs-green);margin:0 0 26px;
}
.cs-lead{font-size:16px;color:var(--cs-sub);max-width:780px;margin:0 0 28px}
.cs-subc{
  font-size:16px;color:var(--cs-ink);max-width:780px;
  padding-left:22px;border-left:4px solid var(--cs-green);margin:0;
}

/* セクション */
.cs-sec{padding:56px 0}
.cs-sec.is-tint{
  background:var(--cs-sec-bg);
  border-top:1px solid var(--cs-line-g);
  margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding-left:calc(50vw - 50%);padding-right:calc(50vw - 50%);
}
.cs-h2{font-size:26px;font-weight:700;letter-spacing:.03em;margin:0 0 8px;color:var(--cs-ink)}
.cs-rule{width:52px;height:3px;background:var(--cs-green);margin-bottom:34px}

/* お悩みカード */
.cs-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.cs-card{
  display:block;text-decoration:none !important;color:inherit;background:#fff;
  border:1px solid var(--cs-line-g);border-left:5px solid var(--cs-green);
  border-radius:0 !important;transition:border-left-color .15s,background .15s;
}
.cs-card:hover{border-left-color:var(--cs-green-dark);background:#FBFDFC}
.cs-ch{
  background:var(--cs-green-pale);padding:15px 22px;
  border-bottom:1px solid var(--cs-line-g);
  display:flex;align-items:center;gap:14px;
}
.cs-ic{width:56px;height:56px;flex:none;display:flex;align-items:center;justify-content:center}
.cs-ic img{width:100%;height:100%;object-fit:contain;display:block;margin:0}
.cs-card h3{
  font-size:19px;font-weight:700;color:var(--cs-green);
  line-height:1.5;letter-spacing:.02em;flex:1;margin:0;padding:0;border:none;background:none;
}
.cs-chev{flex:none;color:var(--cs-green);font-size:20px;line-height:1;font-weight:500}
.cs-cb{padding:18px 22px 20px}
.cs-lbl{
  display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:700;
  color:var(--cs-green);letter-spacing:.08em;margin-bottom:10px;
}
.cs-lbl::before{content:"";width:13px;height:2px;background:var(--cs-green);flex:none}
.cs-cb ul{list-style:none;margin:0 0 11px;padding:0}
.cs-cb li{
  font-size:13.5px;color:var(--cs-ink);line-height:1.8;
  padding-left:17px;position:relative;margin-bottom:6px;
}
.cs-cb li::before{
  content:"";position:absolute;left:0;top:.7em;
  width:6px;height:6px;background:var(--cs-green-mid);
}
.cs-etc{font-size:12.5px;color:var(--cs-meta);line-height:1.8;margin:0 0 16px}
.cs-more{
  margin:4px 0 0;padding-top:15px;border-top:1px solid var(--cs-line);
  text-align:right;font-size:14px;font-weight:500;color:var(--cs-green);letter-spacing:.02em;
}
.cs-more span{border-bottom:1px solid transparent;padding-bottom:2px}
.cs-card:hover .cs-more span{border-bottom-color:var(--cs-green)}

/* このメディアについて */
.cs-about p{font-size:15px;color:var(--cs-sub);max-width:820px;margin:0 0 26px}
.cs-btn{
  display:inline-block;font-size:14px;color:var(--cs-green);
  border:1.5px solid var(--cs-green);padding:11px 30px;
  text-decoration:none !important;font-weight:500;letter-spacing:.04em;
}
.cs-btn:hover{background:var(--cs-green);color:#fff}

/* ------------------------------------------------------------
   6. 新着記事（WordPress標準「最新の投稿」ブロック）
      アイキャッチ（1200×630）1枚だけを大きく見せる。
      タイトル・日付はアイキャッチの中に入っているので画面には出さない。
      ※ブロック設定で「画像サイズ = 大（またはフル）」にすること。
        サムネイルのままだと150px幅の画像が引き伸ばされてぼやける
   ------------------------------------------------------------ */
/* このブロックは .entry-content 直下の <ul> なので、本文リスト用の
   .entry-content > ul ルール（!important付き）に負ける。
   同等以上の詳細度で上書きすること */
.entry-content > ul.wp-block-latest-posts,
.wp-block-latest-posts.is-grid,
.wp-block-latest-posts{
  list-style:none !important;box-sizing:border-box;
  max-width:1040px;margin:0 auto !important;padding:0 28px !important;
  border-top:none;
  display:grid;
  /* 1本なら全幅、2本以上なら2列。auto-fitなので空き列は潰れる */
  grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));
  gap:32px 28px;
}
.entry-content > ul.wp-block-latest-posts > li,
.wp-block-latest-posts li{
  display:block;position:relative;
  padding:0 !important;border-bottom:none;margin:0 !important;
}
/* 本文リストの深緑ビュレットがカードの左に出てしまうので消す */
.entry-content > ul.wp-block-latest-posts > li::before{content:none !important}
.wp-block-latest-posts .wp-block-latest-posts__featured-image{
  width:100%;margin:0;display:block;
}
.wp-block-latest-posts .wp-block-latest-posts__featured-image a{display:block}
.wp-block-latest-posts .wp-block-latest-posts__featured-image img{
  width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;
  box-sizing:border-box;
  border:1px solid var(--cs-line-g);border-radius:0;display:block;
  transition:opacity .2s ease;
}
.wp-block-latest-posts .wp-block-latest-posts__featured-image a:hover img{
  opacity:.85;
}
/* タイトルは画面から消すが、リンクテキストとしては残す（SEO・読み上げ用） */
.wp-block-latest-posts__post-title{
  position:absolute;width:1px;height:1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);
  white-space:nowrap;margin:-1px;padding:0;border:0;
}
.wp-block-latest-posts__post-date{display:none}

/* ------------------------------------------------------------
   7. 記事一覧カード（カテゴリページ・アーカイブ）
   ------------------------------------------------------------ */
.entry-card-wrap{
  border:none;border-bottom:1px solid var(--cs-line);
  border-radius:0;padding:22px 0;margin:0;
}
.entry-card-wrap:hover{background:#FBFDFC}
.entry-card-title{font-size:18px;font-weight:500;line-height:1.7;color:var(--cs-ink)}
.entry-card-thumb img{border-radius:0;border:1px solid var(--cs-line-g)}
.cat-label{
  background:var(--cs-green) !important;color:#fff !important;
  border:none !important;border-radius:0 !important;
  font-size:11.5px;letter-spacing:.04em;
}
.entry-card-info .post-date{font-size:12px;color:var(--cs-meta)}

/* ------------------------------------------------------------
   8. 記事ページ
   ------------------------------------------------------------ */

/* 本文幅720px。トップページ（.home）だけは全幅のまま使うので除外する */
body:not(.home) .main,
body:not(.home) .article{
  max-width:720px;margin-left:auto;margin-right:auto;
}

/* パンくず */
.breadcrumb{
  font-size:12px;color:var(--cs-meta);
  border-bottom:1px solid var(--cs-line);padding:12px 0;margin-bottom:0;
}
.breadcrumb a{color:var(--cs-meta);text-decoration:none}

/* 記事タイトルとリード */
.entry-title,.article h1.entry-title{
  font-size:34px;font-weight:700;line-height:1.55;
  letter-spacing:.01em;margin:14px 0 24px;color:var(--cs-ink);
}
.cs-lead-in{
  font-size:16px;color:var(--cs-ink);
  padding-left:20px;border-left:4px solid var(--cs-green);margin-bottom:12px;
}

/* 目次（Cocoon自動生成） */
.toc{
  background:var(--cs-sec-bg) !important;border:1px solid var(--cs-line-g) !important;
  border-radius:0 !important;padding:20px 24px !important;margin:36px 0 !important;
  width:100% !important;
}
.toc-title{
  font-size:13px;font-weight:700;color:var(--cs-green);
  letter-spacing:.08em;text-align:left;margin-bottom:12px;
}
.toc-content ol,.toc-content ul{list-style:none;padding-left:0}
.toc-list a{font-size:14px;line-height:1.9;color:var(--cs-ink);text-decoration:none}
.toc-list a:hover{color:var(--cs-green);text-decoration:underline}

/* 判断軸ボックス — この記事の核心を置く場所 */
.cs-axis{
  background:var(--cs-green-pale);border-left:5px solid var(--cs-green);
  padding:22px 26px;margin:30px 0;
}
.cs-axis .cs-al{
  font-size:12.5px;font-weight:700;color:var(--cs-green);
  letter-spacing:.08em;margin-bottom:12px;
}
.cs-axis ol{list-style:none;counter-reset:cs-a;padding:0;margin:0}
.cs-axis li{
  counter-increment:cs-a;font-size:15px;line-height:1.85;
  padding-left:30px;position:relative;margin-bottom:9px;
}
.cs-axis li:last-child{margin-bottom:0}
.cs-axis li::before{
  content:counter(cs-a);position:absolute;left:0;top:.28em;
  width:19px;height:19px;background:var(--cs-green);color:#fff;
  font-size:11.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

/* 注意ボックス（副作用セクション用）— 唯一の赤系。乱用しない */
.cs-warn{
  border:1px solid #E0BDB5;border-left:5px solid #B4472F;
  padding:20px 24px;margin:30px 0;background:#FCF6F4;
}
.cs-warn .cs-wl{font-size:12.5px;font-weight:700;color:#B4472F;letter-spacing:.08em;margin-bottom:10px}
.cs-warn p{font-size:15px;margin-bottom:0}
.cs-warn ul{list-style:none;margin-top:10px;padding:0}
.cs-warn li{font-size:15px;line-height:1.85;padding-left:17px;position:relative;margin-bottom:5px}
.cs-warn li::before{content:"";position:absolute;left:0;top:.72em;width:6px;height:6px;background:#B4472F}

/* まとめボックス */
.cs-sum{border:1px solid var(--cs-line-g);border-top:3px solid var(--cs-green);padding:24px 26px;margin:34px 0}
.cs-sum .cs-sl{font-size:13px;font-weight:700;color:var(--cs-green);letter-spacing:.08em;margin-bottom:14px}
.cs-sum ul{list-style:none;padding:0;margin:0}
.cs-sum li{font-size:15px;line-height:1.85;padding-left:17px;position:relative;margin-bottom:8px}
.cs-sum li::before{content:"";position:absolute;left:0;top:.72em;width:6px;height:6px;background:var(--cs-green-mid)}

/* 表が横に溢れる場合の受け皿 */
.cs-scroller{overflow-x:auto}
.cs-tnote{font-size:12.5px;color:var(--cs-meta);margin-bottom:2em;line-height:1.8}

/* ------------------------------------------------------------
   8b. 記事本文の基本 — 強調は「深緑の左罫」1種類のみ
   ------------------------------------------------------------ */
.entry-content h2{
  font-size:24px;font-weight:700;color:var(--cs-ink);
  background:none !important;border:none;border-left:5px solid var(--cs-green);
  border-radius:0;padding:2px 0 2px 18px;margin:56px 0 24px;line-height:1.6;
}
.entry-content h3{
  font-size:20px;font-weight:700;color:var(--cs-green);
  background:none !important;border:none;border-bottom:1px solid var(--cs-line-g);
  padding:0 0 8px;margin:40px 0 20px;line-height:1.6;
}
.entry-content h4{
  font-size:17px;font-weight:700;color:var(--cs-ink);
  border:none;padding:0;margin:32px 0 14px;
}
.entry-content p{margin-bottom:1.8em}
.entry-content a{color:var(--cs-green);text-decoration:underline}
.entry-content a:hover{color:var(--cs-green-dark)}

/* 表 — 罫線を主役にしない */
.entry-content table,
figure.wp-block-table table{
  border-collapse:collapse;width:100%;font-size:14.5px;
}
figure.wp-block-table th{
  background:var(--cs-green-pale) !important;color:var(--cs-green) !important;
  font-weight:700;border:1px solid var(--cs-line) !important;padding:11px 14px !important;
}
figure.wp-block-table td{
  border:1px solid var(--cs-line) !important;padding:11px 14px !important;
}

/* 引用・注記 */
.entry-content blockquote{
  background:var(--cs-sec-bg);border:none;border-left:4px solid var(--cs-green);
  border-radius:0;padding:18px 22px;margin:28px 0;color:var(--cs-sub);
}

/* ------------------------------------------------------------
   9. フッター — ここだけ深緑ベタ。上部に緑の面を置かない代わり
   ------------------------------------------------------------ */
.footer,#footer,.footer-bottom{
  background:var(--cs-green) !important;
  background-image:none !important;
  color:#fff !important;
  border:none !important;
}
.footer a,#footer a,.footer-bottom a{color:#fff !important;opacity:.92;text-decoration:none}
.footer a:hover{opacity:1;text-decoration:underline}
.copyright,.footer-bottom-content{color:#BBD6CE !important;font-size:12px;letter-spacing:.04em}

/* ------------------------------------------------------------
   10. レスポンシブ
   ------------------------------------------------------------ */
@media screen and (max-width:1023px){
  .cs-hero h1{font-size:32px}
  .cs-cards{grid-template-columns:1fr}
}
@media screen and (max-width:834px){
  .cs-inner{padding:0 18px}
  .cs-hero{padding:38px 0 32px}
  .cs-hero h1{font-size:27px}
  .cs-lead,.cs-subc{font-size:15px}
  .cs-sec{padding:38px 0}
  .cs-h2{font-size:21px}
  .cs-card h3{font-size:17px}
  .cs-ic{width:46px;height:46px}
  .entry-content h2{font-size:20px;margin-top:40px}
  .entry-content h3{font-size:18px}
  .entry-content > ul.wp-block-latest-posts,
  .wp-block-latest-posts{padding:0 18px !important;gap:22px}
}


/* ============================================================
   追加分（2026-07-29）
   ============================================================ */

/* Cocoonのサイトフォント設定（body.ff-hiragino 等）は詳細度が高く、
   単に body{font-family:...} と書くと負ける。!important で確実に上書きする。
   あわせて Cocoon設定 → 全体 → サイトフォント を「デフォルト」にすること */
body,
body[class],
.entry-content,
.article p,
input,textarea,select,button{
  font-family:'Noto Sans JP',-apple-system,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif !important;
}

/* 1カラム化 — 差別化で最も効く処理。
   Cocoonにはサイドバーを一括で消す設定が無い（カラムタブは幅・余白・枠線のみ）ため
   CSSで領域を消す。あわせて 外観 → ウィジェット でサイドバーのウィジェットを空にすること。
   トップページ(.home)は全幅、それ以外は本文幅720pxに制限する。 */
#sidebar,.sidebar,#sidebar-scroll{display:none !important}
.content-in,.wrap.content-in{display:block !important}
#main,.main{
  width:100% !important;float:none !important;
  margin-left:auto !important;margin-right:auto !important;
}
body.home #main,body.home .main{max-width:100% !important;padding-left:0;padding-right:0}
body:not(.home) #main,body:not(.home) .main{max-width:720px !important}

/* ------------------------------------------------------------
   11. ヘッダーのロゴ組み（イラスト画像 ＋ HTMLテキスト）
   ------------------------------------------------------------
   Cocoonの「ヘッダーロゴ」に画像を設定すると、サイト名テキストが
   画像に置き換わってしまう。設計は illustration.png ＋ HTMLテキストなので、
   Cocoon側のロゴ設定は空にしたうえで、擬似要素で画像を左に置く。
   ------------------------------------------------------------ */
.logo-header .site-name-link,.logo .site-name-link{
  display:inline-flex !important;align-items:center;gap:14px;text-decoration:none;
}
.logo-header .site-name-link::before,.logo .site-name-link::before{
  content:"";flex:none;width:58px;height:58px;
  background:url(https://chusho-shohosen.jp/wp-content/uploads/2026/07/illustration.png) center/contain no-repeat;
}

/* ------------------------------------------------------------
   12. トップページ（固定ページ）から不要な装飾を外す
   ------------------------------------------------------------ */
body.home .entry-title,
body.home .date-tags,
body.home .post-date,
body.home .post-update,
body.home .breadcrumb,
body.home .sns-share,
body.home .sns-follow,
body.home .article-footer,
body.home .entry-categories-tags{display:none !important}

body.home .article,
body.home .entry-content{
  padding:0 !important;margin:0 !important;border:none !important;background:transparent !important;
}
body.home #main,body.home .main{
  padding:0 !important;border:none !important;background:transparent !important;
}
body.home #content,body.home .content{margin-top:0 !important;padding-top:0 !important}
body.home .content-in{max-width:100% !important;width:100% !important}

/* ------------------------------------------------------------
   13. ヘッダーの実装（修正版）
   ------------------------------------------------------------
   Cocoonの実際のマークアップは
     .header-in > .tagline（キャッチフレーズ）
     .header-in > .logo.logo-header > a.site-name.site-name-text-link > span.site-name-text
   の順。キャッチフレーズがロゴより前にあるため、グリッドで並べ替える。
   イラストは .header-in::before で左に置く。
   ------------------------------------------------------------ */
.header-in{
  display:grid !important;
  grid-template-columns:auto 1fr;
  grid-template-areas:"cslogo csname" "cslogo cstag";
  align-items:center;column-gap:14px;justify-content:start;text-align:left;
}
.header-in::before{
  grid-area:cslogo;content:"";width:58px;height:58px;align-self:center;
  background:url(https://chusho-shohosen.jp/wp-content/uploads/2026/07/illustration.png) center/contain no-repeat;
}
.header-in .logo,.header-in .logo-header{grid-area:csname;margin:0 !important;text-align:left !important}
.header-in .tagline{
  grid-area:cstag;margin:0 !important;text-align:left !important;
  font-size:12.5px !important;color:var(--cs-sub) !important;letter-spacing:.02em;line-height:1.4;
}
.site-name-text{font-size:23px;font-weight:700;color:var(--cs-green);letter-spacing:.04em;line-height:1.35}

/* ------------------------------------------------------------
   14. 背景を白に／トップページの自動目次を消す
   ------------------------------------------------------------ */
body{background:#fff !important}
#container,#content,.content{background:transparent !important}
body.home .toc{display:none !important}

/* ------------------------------------------------------------
   15. .entry-content 配下で cs- コンポーネントが記事用スタイルに
       負けないようにする
   ------------------------------------------------------------
   トップページの中身は固定ページなので .entry-content の中に入る。
   .entry-content h2 (0,1,1) は .cs-h2 (0,1,0) より詳細度が高いため、
   記事用の左罫・下罫がトップページのカードにも効いてしまう。
   ------------------------------------------------------------ */
.entry-content .cs-h2{
  font-size:26px !important;font-weight:700 !important;color:var(--cs-ink) !important;
  border:none !important;background:none !important;padding:0 !important;margin:0 0 8px !important;
  line-height:1.6 !important;letter-spacing:.03em !important;
}
.entry-content .cs-card h3{
  font-size:19px !important;font-weight:700 !important;color:var(--cs-green) !important;
  border:none !important;background:none !important;padding:0 !important;margin:0 !important;
  line-height:1.5 !important;
}
.entry-content .cs-hero h1{
  font-size:44px !important;font-weight:700 !important;color:var(--cs-green) !important;
  border:none !important;background:none !important;padding:0 !important;margin:0 0 26px !important;
  line-height:1.5 !important;
}
.entry-content .cs-cb ul,.entry-content .cs-cb li{list-style:none !important;margin-left:0 !important}
.entry-content .cs-cb li::before{content:"" !important}
.entry-content .cs-card,.entry-content .cs-card:hover{text-decoration:none !important}
.entry-content .cs-more,.entry-content .cs-etc{margin-bottom:0 !important}

/* キャッチフレーズはこのヘッダーレイアウトだとCocoonが隠すので出し直す */
.header-in .tagline{display:block !important;visibility:visible !important}

/* ------------------------------------------------------------
   16. サイト名とキャッチフレーズの左端をそろえる
   ------------------------------------------------------------
   Cocoonが a.site-name に padding-left:23px を付けているため、
   サイト名だけが右に23pxずれる。打ち消して両方を同じ左端に揃える。
   ------------------------------------------------------------ */
.header-in .logo a.site-name,
.header-in .logo .site-name-text-link{
  padding-left:0 !important;padding-right:0 !important;margin-left:0 !important;
}
.header-in .logo,.header-in .tagline{padding-left:0 !important;margin-left:0 !important}

/* ------------------------------------------------------------
   17. グローバルナビをチップ状のボタンにする
   ------------------------------------------------------------
   Cocoonは .navi-in > ul > li に幅176pxを固定で当てており、
   項目が間延びする。幅を内容に合わせ、淡緑の面を敷いて
   「押せる」ことを明示する。角丸と影は使わない。
   ------------------------------------------------------------ */
.navi-in > ul{
  display:flex !important;align-items:center;justify-content:flex-end;gap:10px;
}
.navi-in > ul > li{
  width:auto !important;min-width:0 !important;flex:none !important;height:auto !important;
}
.navi-in > ul > li > a{
  display:inline-flex !important;align-items:center;justify-content:center;
  width:auto !important;height:auto !important;min-height:0 !important;
  padding:9px 20px !important;margin:0 !important;
  font-size:16px !important;font-weight:700 !important;line-height:1.5 !important;
  letter-spacing:.02em;
  color:var(--cs-green) !important;
  background:var(--cs-green-pale) !important;
  border:none !important;border-radius:0 !important;
  transition:background .15s,color .15s;
}
.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a{
  background:var(--cs-green) !important;color:#fff !important;
}
.navi-in > ul > li > a .caption-wrap{padding:0 !important;font-size:inherit !important}
#navi,.navi{height:auto !important}

/* ------------------------------------------------------------
   18. ヒーローの余白を詰める
   ------------------------------------------------------------
   上下の外余白と、H1・リード・サブコピー間の余白をそれぞれ半分に。
   before: padding 56/48、h1下26、リード下28
   after : padding 28/24、h1下13、リード下14
   ------------------------------------------------------------ */
.cs-hero{padding:28px 0 24px !important}
.entry-content .cs-hero h1,.cs-hero h1{margin:0 0 13px !important}
.cs-hero .cs-lead{margin:0 0 14px !important}
.cs-hero .cs-subc{margin:0 !important}

@media screen and (max-width:834px){
  .cs-hero{padding:20px 0 18px !important}
}

/* ------------------------------------------------------------
   19. セクションとお悩みカードの余白・行間を詰める
   ------------------------------------------------------------ */
.cs-sec{padding:32px 0 !important}
.cs-rule{margin-bottom:20px !important}
.cs-cards{gap:14px !important}

.cs-ch{padding:11px 18px !important;gap:12px !important}
.cs-ic{width:50px !important;height:50px !important}
.entry-content .cs-card h3{line-height:1.4 !important}

.cs-cb{padding:14px 18px 15px !important}
.cs-lbl{margin-bottom:7px !important}
.entry-content .cs-cb ul{margin:0 0 8px !important}
.entry-content .cs-cb li{line-height:1.6 !important;margin-bottom:3px !important}
.cs-etc{line-height:1.65 !important;margin:0 0 11px !important}
.cs-more{margin-top:2px !important;padding-top:11px !important}

/* このメディアについて */
.cs-about p{line-height:1.75 !important;margin:0 0 18px !important}

/* ------------------------------------------------------------
   20. 横スクロールの発生を止める
   ------------------------------------------------------------
   .cs-sec.is-tint の全幅化に使っている calc(50% - 50vw) は、
   100vw が「縦スクロールバーの幅を含む」ため、その分だけ横に
   はみ出して横スクロールバーが出る（実測8px）。
   ------------------------------------------------------------ */
html,body{overflow-x:hidden !important;max-width:100% !important}

/* ------------------------------------------------------------
   21. Cocoonが自動で付ける下マージンを打ち消す
   ------------------------------------------------------------
   Cocoonは .entry-content の直下の要素に margin-bottom:1.8em
   （18px基準で32.4px）を自動で当てる。そのためヒーローと
   セクションの間に、意図しない32.4pxの空きができていた。
   セクションの余白は padding で管理するので、マージンは0にする。
   ------------------------------------------------------------ */
.entry-content > .cs-hero,
.entry-content > .cs-sec,
.entry-content > .wp-block-latest-posts{
  margin-top:0 !important;margin-bottom:0 !important;
}
.cs-hero{padding-bottom:20px !important}

/* ------------------------------------------------------------
   22. セクションをさらに上に詰める
   ------------------------------------------------------------
   見出しの上を薄く、下を厚くして、見出しが次の内容に属して
   見えるようにする（近接の原則）。
   ------------------------------------------------------------ */
.cs-hero{padding-bottom:12px !important}
.cs-sec{padding:22px 0 30px !important}
.cs-rule{margin-bottom:16px !important}

@media screen and (max-width:834px){
  .cs-sec{padding:18px 0 24px !important}
}

/* ============================================================
   23. スマホ・タブレット最適化（最終・ここが一番後ろ）
   ============================================================
   セクション15で .entry-content .cs-hero h1 に !important を付けた結果、
   メディアクエリ側の指定が負けてスマホでもH1が44pxのままだった。
   ここでは詳細度と !important を揃えて確実に上書きする。
   Googleはモバイル版を見て評価する（モバイルファーストインデックス）ため、
   スマホの崩れは検索順位に直結する。
   ============================================================ */

/* --- タブレット（1023px以下） --- */
@media screen and (max-width:1023px){
  .entry-content .cs-hero h1,.cs-hero h1{font-size:34px !important;margin-bottom:11px !important}
  .cs-cards{grid-template-columns:1fr !important}
}

/* --- スマホ（834px以下） --- */
@media screen and (max-width:834px){
  .cs-inner{padding:0 18px !important}

  /* ヘッダー */
  .site-name-text{font-size:19px !important}
  .header-in::before{width:44px !important;height:44px !important}
  .header-in .tagline{font-size:11px !important}

  /* ナビ：タブレット幅では1行のまま、文字だけ詰める */
  .navi-in > ul{flex-wrap:wrap !important;justify-content:center !important;gap:6px !important;padding:0 12px 8px !important}
  .navi-in > ul > li > a{font-size:14px !important;padding:11px 12px !important}

  /* ヒーロー */
  .cs-hero{padding:18px 0 12px !important}
  .entry-content .cs-hero h1,.cs-hero h1{
    font-size:26px !important;line-height:1.45 !important;margin:0 0 10px !important;
  }
  .cs-hero .cs-lead{font-size:14.5px !important;line-height:1.8 !important;margin-bottom:10px !important}
  .cs-hero .cs-subc{font-size:14.5px !important;line-height:1.8 !important;padding-left:14px !important;border-left-width:3px !important}

  /* セクション・カード */
  .cs-h2,.entry-content .cs-h2{font-size:20px !important}
  .cs-rule{margin-bottom:12px !important}
  .entry-content .cs-card h3{font-size:16.5px !important}
  .cs-ch{padding:10px 14px !important;gap:10px !important}
  .cs-ic{width:42px !important;height:42px !important}
  .cs-cb{padding:12px 14px 13px !important}
  .entry-content .cs-cb li{font-size:13px !important}
  .cs-etc{font-size:12px !important}
  .cs-more{font-size:13.5px !important}

  /* Cocoonのモバイル固定ボタンに本文が隠れないよう下に余白 */
  .footer{padding-bottom:56px}
}

/* --- 小型スマホ（375px以下） --- */
@media screen and (max-width:375px){
  .entry-content .cs-hero h1,.cs-hero h1{font-size:23px !important}
  .site-name-text{font-size:17px !important}
  .navi-in > ul > li > a{font-size:13px !important;padding:11px 4px !important}
}

/* --- 600px以下：ナビを2×2にする（4つが1行に入らなくなる幅） --- */
@media screen and (max-width:600px){
  .navi-in > ul > li{flex:1 1 calc(50% - 6px) !important}
  .navi-in > ul > li > a{width:100% !important;padding:11px 8px !important}
}

/* ------------------------------------------------------------
   24. スマホでカード見出しを1行に収める
   ------------------------------------------------------------
   375pxで「M&A・事業承継を検討している」が239px必要なのに対し、
   利用可能幅が237pxしかなく2pxだけ溢れて2行になっていた。
   見出しは第1層（確定済みの文言）なので文字は変えず、
   フォントとアイコンを詰めて幅を作る。
   ------------------------------------------------------------ */
@media screen and (max-width:834px){
  .entry-content .cs-card h3{font-size:15.5px !important;letter-spacing:0 !important}
  .cs-ic{width:40px !important;height:40px !important}
  .cs-ch{gap:8px !important;padding:10px 12px !important}
  .cs-chev{font-size:17px !important}
}

/* ------------------------------------------------------------
   25. お問い合わせフォーム（Contact Form 7）
   ------------------------------------------------------------
   送信ボタンだけアクセント #C05621 を使う。
   colors.md の「アクセントは1画面に1箇所」に沿い、
   サイト内でアクセントを使うのはここだけにする。
   ------------------------------------------------------------ */
.wpcf7{margin-top:8px}
.wpcf7 .cs-f{margin-bottom:22px}
.wpcf7 .cs-f label{
  display:block;font-size:14px;font-weight:700;color:var(--cs-green);
  margin-bottom:7px;letter-spacing:.02em;
}
.cs-req{
  display:inline-block;font-size:11px;font-weight:700;color:#fff;background:#B4472F;
  padding:2px 8px;margin-left:8px;letter-spacing:.04em;vertical-align:2px;
}

/* 入力欄。font-size は16px未満にしないこと（iOSが自動でズームするため） */
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 textarea,.wpcf7 select{
  width:100%;font-size:16px;font-family:inherit;line-height:1.7;
  padding:11px 14px;background:#fff;color:var(--cs-ink);
  border:1px solid var(--cs-line-g);border-radius:0;
}
.wpcf7 textarea{min-height:180px}
.wpcf7 input[type=text]:focus,.wpcf7 input[type=email]:focus,
.wpcf7 textarea:focus,.wpcf7 select:focus{
  outline:none;border-color:var(--cs-green);box-shadow:0 0 0 2px var(--cs-green-pale);
}

.wpcf7 .cs-agree{
  background:var(--cs-sec-bg);border:1px solid var(--cs-line-g);
  padding:14px 18px;font-size:14px;margin:26px 0 0;
}
.wpcf7 .cs-agree a{color:var(--cs-green);text-decoration:underline}
.wpcf7 .wpcf7-list-item{margin:0}

.wpcf7 .cs-submit{text-align:center;margin:26px 0 0}
.wpcf7 input[type=submit]{
  background:var(--cs-accent);color:#fff;border:none;border-radius:0;
  font-size:16px;font-weight:700;letter-spacing:.08em;
  padding:15px 60px;cursor:pointer;transition:background .15s;
}
.wpcf7 input[type=submit]:hover{background:#A0451A}
.wpcf7 .wpcf7-spinner{display:block;margin:12px auto 0}

/* 検証メッセージ */
.wpcf7 .wpcf7-not-valid-tip{color:#B4472F;font-size:13px;margin-top:5px}
.wpcf7 form .wpcf7-response-output{
  border:1px solid var(--cs-line-g);border-left:5px solid var(--cs-green);
  border-radius:0;padding:14px 18px;margin:22px 0 0;font-size:14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output{border-left-color:#B4472F}

@media screen and (max-width:834px){
  .wpcf7 input[type=submit]{width:100%;padding:15px 20px}
}

/* ------------------------------------------------------------
   26. 固定ページから日付を消す
   ------------------------------------------------------------
   Cocoon設定の post_date_visible を切ると記事の日付まで消える。
   記事の日付は鮮度のシグナルとして残したいので、
   固定ページ（body.page）だけCSSで隠す。
   ------------------------------------------------------------ */
body.page .date-tags,
body.page .post-date,
body.page .post-update,
body.page .entry-date{display:none !important}

/* 固定ページのタイトル。トップページ(.home)では別途非表示にしている */
body.page:not(.home) .entry-title{
  font-size:32px;font-weight:700;line-height:1.55;color:var(--cs-ink);
  margin:0 0 24px;padding:0;border:none;background:none;
}
@media screen and (max-width:834px){
  body.page:not(.home) .entry-title{font-size:24px;margin-bottom:18px}
}

/* ------------------------------------------------------------
   27. お問い合わせページの余白を詰める
   ------------------------------------------------------------
   Cocoonが .entry-content の段落に 1.8em の下マージンを当てるため、
   導入文3行とフォームの間が空きすぎていた。
   ------------------------------------------------------------ */
body.page-id-29 .entry-content > p{margin-bottom:.9em !important;line-height:1.85}
body.page-id-29 .entry-title{margin-bottom:18px !important}
body.page-id-29 .entry-content > .wpcf7{margin-top:26px !important}

.wpcf7 .cs-f{margin-bottom:15px !important}
.wpcf7 .cs-f label{margin-bottom:5px !important}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 select{padding:9px 13px !important}
.wpcf7 textarea{min-height:150px !important;padding:9px 13px !important}
.wpcf7 .cs-agree{margin:18px 0 0 !important;padding:12px 16px !important}
.wpcf7 .cs-submit{margin:18px 0 0 !important}
.wpcf7 input[type=submit]{padding:13px 60px !important}

@media screen and (max-width:834px){
  .wpcf7 .cs-f{margin-bottom:13px !important}
  .wpcf7 textarea{min-height:130px !important}
}

/* ------------------------------------------------------------
   28. フォームのラベルと入力欄の間の空行を消す
   ------------------------------------------------------------
   CF7のフォーム定義でラベルと入力欄を改行して書くと、
   wpautop が <br> に変換して1行ぶん（34px）の空きができる。
   ------------------------------------------------------------ */
.wpcf7 .cs-f br{display:none !important}
.wpcf7 .wpcf7-form-control-wrap{display:block !important}
.wpcf7 textarea{height:auto !important;min-height:0 !important}

/* ------------------------------------------------------------
   29. 記事ページ v2 — モックアップ v2 から移植（2026-08-02）
   ------------------------------------------------------------
   article-mockup-v2.html で確定した記事フォーマット用。
   既存の 8 / 8b でカバーされていなかった以下を追加する。
     ・cs-step     セクション小ラベル（症状／診断／処方箋／副作用）
     ・cs-summary  この記事でわかること（リード直後・必須）
     ・cs-fig      SVG図版とキャプション（判断軸マトリクス／まとめ図）
     ・cs-note     出典・注記
     ・本文リスト   Cocoonの既定を打ち消して深緑のビュレットにする
   ------------------------------------------------------------ */

/* --- セクション小ラベル：H2の上に小さく置く診療メタファー --- */
.entry-content .cs-step{
  display:block;font-size:12px;font-weight:700;color:var(--cs-green-mid);
  letter-spacing:.16em;margin-bottom:6px;line-height:1.6;
}

/* --- この記事でわかること：強調ボックスはこの1種類だけ --- */
.cs-summary{
  border-left:5px solid var(--cs-green);background:var(--cs-sec-bg);
  padding:20px 24px;margin:32px 0;
}
.entry-content .cs-summary h2{
  font-size:15px !important;font-weight:700;color:var(--cs-green) !important;
  letter-spacing:.06em;margin:0 0 10px !important;padding:0 !important;
  border:none !important;background:none !important;line-height:1.6;
}
.cs-summary ul{margin:0 !important;padding:0 !important;list-style:none !important}
.entry-content .cs-summary li{
  font-size:15px !important;line-height:1.85;
  padding-left:18px !important;position:relative;margin-bottom:6px !important;
}
.cs-summary li:last-child{margin-bottom:0 !important}
.entry-content .cs-summary li::before{
  content:"" !important;position:absolute;left:0;top:.78em;
  width:7px !important;height:2px !important;background:var(--cs-green-mid) !important;
}

/* --- 図版：判断軸マトリクスとまとめ図。SVGを原寸比で流す --- */
.cs-fig{margin:0 0 2.2em}
.cs-fig svg,.cs-fig img{
  width:100%;height:auto;display:block;border:1px solid var(--cs-line);
}
.cs-fig figcaption{
  font-size:12px;color:var(--cs-meta);margin-top:8px;line-height:1.8;text-align:left;
}

/* --- 出典・注記 --- */
.cs-note{
  font-size:13.5px;color:var(--cs-sub);line-height:1.85;
  border-left:3px solid var(--cs-line-g);padding:2px 0 2px 16px;margin:0 0 2.2em;
}

/* --- 本文リスト：Cocoonの既定を打ち消して深緑のビュレットにする --- */
.entry-content > ul:not(.wp-block-latest-posts),.entry-content > ol,
.entry-content .cs-body ul,.entry-content .cs-body ol{
  margin:0 0 1.8em !important;padding-left:0 !important;list-style:none !important;
}
.entry-content > ul:not(.wp-block-latest-posts) > li{
  font-size:16.5px;line-height:1.9;padding-left:20px;position:relative;margin-bottom:8px;
}
.entry-content > ul:not(.wp-block-latest-posts) > li::before{
  content:"";position:absolute;left:0;top:.82em;
  width:7px;height:7px;background:var(--cs-green-mid);
}
.entry-content > ol{counter-reset:cs-num}
.entry-content > ol > li{
  counter-increment:cs-num;font-size:16.5px;line-height:1.9;
  padding-left:30px;position:relative;margin-bottom:8px;
}
.entry-content > ol > li::before{
  content:counter(cs-num);position:absolute;left:0;top:0;
  color:var(--cs-green);font-weight:700;font-size:15px;
}

/* --- 比較表：スマホで横スクロールさせるので折り返させない --- */
.cs-scroller table{border-collapse:collapse;width:100%;font-size:14.5px;line-height:1.7}
.cs-scroller th{
  background:var(--cs-green-pale);color:var(--cs-green);font-weight:700;
  border:1px solid var(--cs-line);padding:11px 14px;text-align:left;white-space:nowrap;
}
.cs-scroller td{border:1px solid var(--cs-line);padding:11px 14px;vertical-align:top}
.cs-scroller td:first-child{font-weight:500}

/* --- アイキャッチ：写真ではなく統一フォーマットの図版なので枠線で締める --- */
.eye-catch,.eye-catch img{border:1px solid var(--cs-line-g)}

/* --- Cocoonが .entry-content 直下に当てる 1.8em を打ち消す --- */
.entry-content > .cs-summary,
.entry-content > .cs-fig,
.entry-content > .cs-note,
.entry-content > .cs-scroller{margin-bottom:0}
.entry-content > .cs-scroller + .cs-tnote{margin-top:12px}

/* --- レスポンシブ（8/8b と同じ 834px で揃える） --- */
@media screen and (max-width:834px){
  .cs-summary{padding:17px 18px;margin:26px 0}
  .entry-content .cs-summary li{font-size:14.5px !important}
  .entry-content > ul > li,.entry-content > ol > li{font-size:15.5px}
  .cs-note{font-size:13px}
  .cs-fig figcaption{font-size:11.5px}
}

/* ------------------------------------------------------------
   30. 記事ページ v2 の補完（2026-08-02・F-1の実投稿で判明）
   ------------------------------------------------------------
   ・Cocoonは見出しの中身を <span id="tocN"> で包むため、
     見出し内に入れた <span class="cs-step"> や <span class="n"> は破壊される。
     → セクションラベルは見出しの「外」に <p class="cs-step"> として置く。
     → 見出し先頭の丸数字は h4.cs-n::first-letter で着色する。
   ・cs-axis-t / cs-wt は 29 で未定義だった。
   ------------------------------------------------------------ */

/* セクションラベル（症 状／診 断／処方箋／副作用）— 見出しの直前に置く */
.entry-content p.cs-step{
  display:block !important;
  font-size:12px !important;font-weight:700;color:var(--cs-green-mid);
  letter-spacing:.16em;line-height:1.6;
  margin:56px 0 2px !important;
}
.entry-content p.cs-step + h2{margin-top:0 !important}

/* 見出し先頭の丸数字を緑にする */
.entry-content h4.cs-n::first-letter{color:var(--cs-green-mid)}

/* 判断軸ボックス内の軸名を独立行にする */
.entry-content .cs-axis-t{display:block;font-size:15.5px;margin-bottom:4px}

/* 注意ボックス内のラベルを独立行にする */
.entry-content .cs-warn .cs-wt{display:block;margin-bottom:3px}

@media screen and (max-width:834px){
  .entry-content p.cs-step{margin-top:44px !important}
}
/* 「この記事でわかること」の見出し。
   h2 にするとCocoonが見出しとして拾い、目次に入るうえ目次の挿入位置がこの前になる。
   見出しタグを使わずに同じ見た目を出す。 */
.entry-content .cs-summary .cs-sum-t{
  display:block;font-size:15px !important;font-weight:700;color:var(--cs-green);
  letter-spacing:.06em;line-height:1.6;margin:0 0 12px !important;padding:0;
}


/* ============================================================
   セクション31（2026-08-06）
   目次との衝突対策：セクションラベルを h2 の疑似要素にする
   ------------------------------------------------------------
   Cocoonは目次を「最初の見出しの直前」に固定で挿入し、位置設定が無い。
   ラベルを <p class="cs-step"> の独立要素にすると、目次がラベルと見出しの
   間に割り込み、ラベルだけが目次の上に取り残される（F-3で発覚）。
   h2 の data-step 属性＋::before にすれば、ラベルが見出しに従属するので
   目次は必ずラベルごと下に来る。
   ※ 見出しの中身は Cocoon が <span id="tocN"> で包むため、見出し内に
      <span> を置くと壊れる。属性なら壊れない。
   ※ h2 は border-left:5px + padding-left:18px。absolute の基準は padding box
      なので、border の左端に揃えるには left:-5px。
   ※ p.cs-step の既存スタイルは F-1 が使っているので残すこと。
   ============================================================ */
.entry-content h2[data-step]{position:relative}
.entry-content h2[data-step]::before{
  content:attr(data-step);
  position:absolute;top:-21px;left:-5px;
  font-size:12px;font-weight:700;color:var(--cs-green-mid);
  letter-spacing:.16em;line-height:1.6;white-space:nowrap;
}
