@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.2.4
*/



/************************************
** 子テーマ用のスタイルを書く
************************************/

/* 固定ヘッダー対応：コンテンツがヘッダーに被らないようにする */
.navi-fixed #content,
.navi-fixed .content,
.navi-fixed #container {
  padding-top: 70px;
}
@media screen and (max-width: 834px) {
  .navi-fixed #content,
  .navi-fixed .content,
  .navi-fixed #container {
    padding-top: 60px;
  }
}

/************************************
** 環境変更css
************************************/


.header {
  background-size: cover;
}

.logo-image {
  padding: 9px 0;
}

.toc {
  width: 100%;
}

.article h1 {
  color: #1C7F09;
}

.article h2 {
  background-color: #1C7F09;
  color: #fff;
}

.article h3 {
  border: none;
  border-bottom: 1px solid silver;
}

.article h4 {
  border: none;
  border-left: 2px solid #1C7F09;
  padding: 4px 10px;
}

.article h5 {
  border: none;
}

.article h6 {
  border: none;
}

.entry-title {
  font-size: 32px;
}

.a-wrap:hover {
  background-color: transparent;
}

.a-wrap:hover .card-thumb-image,
.a-wrap:hover .carousel-entry-card-no-image,
.a-wrap:hover .entry-card-thumb-image,
.a-wrap:hover .no-image,
.a-wrap:hover .wp-post-image {
  transform: scale(1.1);
}

.a-wrap:hover .card-content {
  opacity: 0.6;
}

.card-thumb-image,
.no-image,
.wp-post-image {
  transition: transform 0.3s;
}

.card-thumb {
  overflow: hidden;
}

.card-content {
  transition: opacity 0.3s;
}

.e-card-info {
  justify-content: flex-start;
}

.entry-card-categories .cat-label {
  position: relative;
  padding: 4px 6px;
  top: 0;
  left: 0;
  max-width: 100%;
  margin-right: 5px;
  background-color: #1C7F09;
}

.popular-entry-card-content .category-label {
  position: relative;
  top: 0;
  left: 0;
  max-width: 100%;
  margin-right: 5px;
  color: #1C7F09;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #1C7F09;
  padding: 2px 6px;
}

.entry-card-categories {
  position: absolute;
  top: 0.24em;
  left: 0.24em;
  display: flex;
  flex-wrap: wrap;
  widows: 100%;
}

.entry-categories {
  top: 0.4em;
  left: 0.4em;
}

.archive-title {
  text-align: center;
}

.tagcloud a {
  flex: none;
  border-radius: 40px;
  color: #fff;
  background-color: #1C7F09;
  border: 1px solid #1C7F09;
}

.tagcloud a:hover {
  color: #1C7F09;
}

.tag-cloud-link .fa {
  display: none;
}

.post-count {
  background-color: #1C7F09;
  color: #fff;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.8em;
}

.sidebar h3 {
  background: transparent;
  padding: 0.4em;
  margin: 0.3em 0;
}

.widget_recent_entries ul li a,
.widget_categories ul li a,
.widget_archive ul li a {
  border-bottom: 1px dashed #ccc;
  padding: 5px 0;
}


.pagination-next-link {
  border-radius: 6px;
  background-color: #fff;
  border: 1px solid #1C7F09;
  color: #1C7F09;
}

.page-numbers {
  border-color: #46a51e;
  background-color: #fff;
  border-radius: 50%;
  color: #46a51e;
}

.page-numbers.dots {
  background-color: rgba(28, 127, 9, 0.1);
  opacity: 1;
}

.pagination .current {
  background-color: #daedd2
}

.pagination-next-link,
.pagination a {
  transition: .3s;
}

.pagination-next-link:hover,
.pagination a:hover {
  background-color: #1C7F09;
  color: #fff;
}

.pagination-next-link:hover {
  color: #fff;
}

.sidebar h3 {
  border-left: 3px solid #1C7F09;
  border-radius: 0;
  padding: 0.05em 0.4em;
  margin-bottom: 1em;
}

.popular-entry-card-title {
  font-size: 14px;
  margin-top: 8px;
}

@media screen and (max-width: 769px) {

.archive-title {
  font-size: 22px;
}
}


/************************************
** 人気記事ウィジェットランキング表示
************************************/
.widget-entry-cards.popular-entry-cards {
  counter-reset: p-rank;
}

.widget-entry-cards.popular-entry-cards .popular-entry-card {
  counter-increment: p-rank;
  position: relative;
}

.widget-entry-cards.popular-entry-cards .popular-entry-card::before {
  content: counter(p-rank);
  position: absolute;
  top: -10px;
  left: -10px;
  padding: 4px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  background-color: #98d49d;
  color: #fff;
  opacity: 0.9;
  text-align: center;
  font-size: 13px;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid #eee;
}

/* ランキング別の色付け */
.widget-entry-cards.popular-entry-cards .no-1 .popular-entry-card::before {
  background: #cca11f;
}

.widget-entry-cards.popular-entry-cards .no-2 .popular-entry-card::before {
  background: #b1b1b3;
}

.widget-entry-cards.popular-entry-cards .no-3 .popular-entry-card::before {
  background: #b37036;
}

.bl_side_banner {
  transition: opacity 0.3s;
}

@media screen and (min-width: 768px) {
  .bl_side_banner:hover {
    opacity: 0.7;
  }
}

@media screen and (max-width: 769px) {

  /*元のロゴを消す*/
  img.header-site-logo-image {
    visibility: hidden;
  }

  /*ロゴの画像を指定したものにする*/
  .logo-header {
    background-image: url(https://kakeru.miraic.com/blog/wp-content/themes/cocoon-child-master/img/header_logo_sp.png);
    background-size: 85%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
  }

  .header {
    background-image: url(https://kakeru.miraic.com/blog/wp-content/themes/cocoon-child-master/img/header_back_sp.jpg);
  }

  .header .tagline { 
    display: none;
  }

}

@media screen and (max-width: 480px) {
  .entry-title {
    font-size: 24px;
    padding: 0.6em 0;
  }
}

/* 最上位カテゴリ（親カテゴリ）だけ太字 */
.widget_categories>ul>li>a {
  font-weight: bold;
}

/* サブカテゴリは通常の太さ */
.widget_categories ul.children li>a {
  font-weight: normal;
}


/************************************
** 一旦対応（のちに復活する予定）
************************************/


.entry-categories,
.entry-card-categories,
.child-materials-section {
  display: none !important;
}




/****************************/
/*         header           */
/****************************/

.bl_header a {
  vertical-align: baseline;
  text-decoration: none;
  color: inherit;
}

.bl_header_nav li::marker {
  content: none;
}

.bl_header_nav a {
  font-size: 1.6rem;
}

.el_conversionBtn {
  color: #fff !important;
}

@media screen and (max-width: 1280px) {
  .bl_header_nav {
    padding-left: 0;
  }

}

/************************************
** 子テーマ用のスタイルを書く
************************************/

.container {
  margin-top: 69px;
}

@media screen and (max-width: 1280px) {
  .container {
    margin-top: 60px;
  }
}

/* bold-greenの色をカスタマイズ */
.bold-green {
  color: #1C7F09 !important;
}


/* カスタム投稿ヘッダー */
.custom-post-header {
  background-color: #eaf4e9;
  padding: 20px 20px;
  margin-bottom: 0;
  text-align: center;
}

.custom-post-header-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.custom-breadcrumbs {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  text-align: left;
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #eef2ef;
}

/* パンくずリンク：黒・下線なし */
.custom-breadcrumbs a {
  color: #999;
  text-decoration: none;
}

.custom-breadcrumbs a:hover {
  color: #999;
  text-decoration: none;
}

.custom-category-label {
  display: inline-block;
  background-color: transparent;
  color: #1C7F09;
  padding: 0;
  border-radius: 0;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.custom-post-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 20px 0;
  color: #333;
  text-align: center;
}

.custom-post-meta {
  display: flex;
  gap: 20px;
  font-size: 18px;
  color: #000;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* PC・タブレットではラッパー不要（デフォルト表示） */
.custom-post-header-wrapper {
  display: contents;
}

/* PCで本文直前のアイキャッチを表示、ヘッダー内のアイキャッチは非表示 */
.child-single-eyecatch--pc {
  display: none;
}

@media screen and (min-width: 1024px) {
  .child-single-eyecatch--header {
    display: none;
  }

  .child-single-eyecatch--pc {
    display: block;
  }
}

.custom-post-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-post-author .img-block {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.custom-post-author .img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-author-avatar {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* アイキャッチセクション */
.child-single-eyecatch {
  padding: 0 29px !important;
}

/* 導入文セクション */
.child-single-intro {
  background-color: transparent;
  padding: 20px 29px !important;
  margin: 30px 29px;
  line-height: 1.8;
  font-size: 18px;
}

/* この記事でわかることセクション */
.child-single-points {
  background-color: transparent;
  padding: 25px 29px !important;
  margin: 30px 29px;
  border-radius: 12px;
  border: 10px solid #EBF4E9;
}

/* =============================
   PC/SP 表示切り替えユーティリティ
   ============================= */
/* PCのみ表示（768px以下で非表示） */
.pc-only {
  display: block;
}

/* SPのみ表示（768pxより大きい場合は非表示） */
.sp-only {
  display: none;
}

/* brタグ用（SPで改行表示） */
br.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  /* brタグはinlineに戻して改行を有効化 */
  br.sp-only {
    display: inline !important;
  }

  /* SP用：薄太枠内のstrongタグの後に仕切り線を追加 */
  p.is-style-border-thin-and-thick strong {
    display: block !important;
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
    border-bottom: 1px dashed #ccc !important;
  }

  p.is-style-border-thin-and-thick strong:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
  }

  p.is-style-border-thin-and-thick br:not(.sp-only) {
    display: none !important;
  }
}

/* ブロックエディターの囲み枠スタイル */
.is-style-border-thin-and-thick {
  background-color: transparent !important;
  padding: 25px 29px !important;
  margin: 30px 0px !important;
  border-radius: 12px !important;
  border: 10px solid #EBF4E9 !important;
}

.child-single-points h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.child-single-points>div {
  line-height: 1.8;
  font-size: 18px;
}

/* この記事でわかること：箇条書きのぶら下がりインデント */
.child-single-points .points-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.child-single-points .points-item {
  position: relative;
  padding-left: 1.4em;
  /* 行継続時の開始位置 */
  margin: 4px 0;
  line-height: 1.5;
  font-size: 18px;
  font-weight: bold;
}

.child-single-points .points-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
}

/* 順序付きリスト（手順①形式） - 目次を除外 */
.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol),
div[itemprop="articleBody"]>ol.wp-block-list {
  list-style: none !important;
  counter-reset: step-counter !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li,
div[itemprop="articleBody"]>ol.wp-block-list li {
  position: relative !important;
  padding-left: 3.5em !important;
  margin-bottom: 12px !important;
  counter-increment: step-counter !important;
  list-style: none !important;
  list-style-type: none !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li::marker,
div[itemprop="articleBody"]>ol.wp-block-list li::marker {
  content: none !important;
  display: none !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li::before,
div[itemprop="articleBody"]>ol.wp-block-list li::before {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  font-weight: 700 !important;
  color: #000 !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* 丸数字の個別設定 - 目次を除外 */
.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(1)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(1)::before {
  content: "手順①　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(2)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(2)::before {
  content: "手順②　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(3)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(3)::before {
  content: "手順③　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(4)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(4)::before {
  content: "手順④　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(5)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(5)::before {
  content: "手順⑤　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(6)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(6)::before {
  content: "手順⑥　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(7)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(7)::before {
  content: "手順⑦　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(8)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(8)::before {
  content: "手順⑧　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(9)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(9)::before {
  content: "手順⑨　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(10)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(10)::before {
  content: "手順⑩　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(11)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(11)::before {
  content: "手順⑪　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(12)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(12)::before {
  content: "手順⑫　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(13)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(13)::before {
  content: "手順⑬　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(14)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(14)::before {
  content: "手順⑭　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(15)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(15)::before {
  content: "手順⑮　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(16)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(16)::before {
  content: "手順⑯　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(17)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(17)::before {
  content: "手順⑰　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(18)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(18)::before {
  content: "手順⑱　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(19)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(19)::before {
  content: "手順⑲　" !important;
}

.child-single-content ol.wp-block-list:not(.child-toc ol):not(.toc ol) li:nth-child(20)::before,
div[itemprop="articleBody"]>ol.wp-block-list li:nth-child(20)::before {
  content: "手順⑳　" !important;
}

/* 目次 */
.child-toc {
  background-color: #fff;
  border: 2px solid #1C7F09;
  border-radius: 8px;
  margin: 30px 0;
  overflow: hidden;
}

.child-toc-header {
  background-color: #1C7F09;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.child-toc-header h2 {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.child-toc-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.child-toc-content {
  padding: 20px 30px;
}

.child-toc-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.child-toc-content ul li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.child-toc-content ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #1C7F09;
  font-size: 12px;
}

.child-toc-content ul li.toc-h3 {
  padding-left: 40px;
  font-size: 14px;
}

.child-toc-content ul li.toc-h3::before {
  left: 20px;
}

.child-toc-content a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.child-toc-content a:hover {
  color: #1C7F09;
}

/* モバイルでは文字サイズを少し小さく戻す */
@media screen and (max-width: 834px) {

  .toc-content>ul>li,
  .toc-content li.toc-h2,
  .child-toc-content>ul>li {
    font-size: 16px;
  }

  .toc-content ul ul>li,
  .toc-content li.toc-h3,
  .child-toc-content ul li.toc-h3 {
    font-size: 14px;
  }
}

/* 記事本文のh2スタイル */
.child-single-content {
  padding: 0 29px !important;
}

.child-single-content h2 {
  background-color: #1C7F09;
  color: white;
  padding: 15px 20px;
  margin: 40px 0 20px 0;
  font-size: 24px;
  font-weight: bold;
}

/* 記事本文のh3スタイル（チェックボックス + アンダーライン） */
.child-single-content h3 {
  position: relative;
  color: #111;
  font-weight: 800;
  font-size: 20px;
  margin: 28px 0 14px 0;
  padding: 0 0 8px 0;
  /* 下線分の余白 */
  border-bottom: 3px solid #111;
  line-height: 1.4;
  display: flex;
  /* アイコンとテキストを横並び */
  align-items: baseline;
  gap: 4px;
  /* アイコンとテキストの間隔 */
}

.child-single-content h3::before {
  content: '■';
  display: inline-block;
  color: #111;
  font-size: 23px;
  line-height: 1;
  margin-right: 0;
}

/* アイコンの後ろのテキスト（Gutenbergのspan#toc*など）を折返し可能にして位置を揃える */
.child-single-content h3>span {
  flex: 1 1 auto;
  min-width: 0;
}

/* オンライン相談リンク */
.online-consultation-link {
  text-align: center;
  padding: 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.consultation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 28px;
  background: #fff;
  color: #5CB032;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid #5CB032;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.consultation-button:hover {
  background: #f5f9f3;
  border-color: #4A9628;
  color: #4A9628;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consultation-icon-svg {
  height: 24px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(54%) sepia(73%) saturate(438%) hue-rotate(68deg) brightness(95%) contrast(88%);
}

.consultation-text {
  text-decoration: none;
}

.consultation-arrow {
  font-size: 24px;
  font-weight: 300;
}

.bl-side-banner-sp {
  display: none;
}

.bl-side-banner-sp img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-search-section {
  display: none;
}

.mobile-search-widget {
  width: 100%;
}

@media screen and (max-width: 834px) {
  .bl-side-banner-sp {
    display: block;
    margin: 0px auto 0;
    padding: 0 8px;
    padding-top: 10px;
  }

  .mobile-search-section {
    display: block;
  }

  .child-search-section {
    background-color: transparent;
    margin: 20px 0px;
    padding: 30px 0px !important;
    text-align: center;
  }

  .mobile-search-widget {
    margin: 0 auto;
    padding: 0 16px;
  }

  .mobile-search-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
  }

  .mobile-search-widget .search-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* 白背景セクション */
.white-background-section {
  background: #fff;
  padding: 0px 8px;
  margin: 0px 8px;
}

/* シェアセクション */
.child-share-section {
  background-color: transparent;
  margin: 40px 29px;
  padding: 30px 29px !important;
  text-align: center;
}

.child-share-section h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #333;
}

.child-share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.child-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  justify-content: center;
}

.child-share-btn:hover {
  opacity: 0.8;
}

.child-share-btn.line {
  background-color: #00B900;
  color: white;
  min-width: 200px;
  border-radius: 5px;
}

.child-share-btn.copy {
  background-color: #4a4a4a;
  color: white;
  min-width: 200px;
  border-radius: 5px;
  font-size: 14px;
}

/* CTAセクション */
.child-cta-section {
  background-color: #0000006b;
  margin: 40px 29px;
  padding: 60px 40px !important;
  text-align: center;
  color: white;
}

.child-cta-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: white;
  background: none;
  padding: 0;
}

.child-cta-section p {
  font-size: 18px;
  margin: 0 0 30px 0;
  line-height: 1.6;
  color: white;
}

.child-cta-btn {
  display: inline-block;
  background-color: #4a7c59;
  color: white;
  padding: 15px 50px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.child-cta-btn:hover {
  background-color: #3a6a49;
  color: white;
}

/* 著者情報セクション */
.child-author-section {
  background-color: #f9f9f9;
  margin: 40px 29px;
  padding: 30px 29px !important;
  border-radius: 8px;
}

.child-author-section .author-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.child-author-section .author-image {
  flex-shrink: 0;
}

.child-author-section .author-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.child-author-section .author-info {
  flex: 1;
  min-width: 250px;
}

.child-author-section .author-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  /* 下線は疑似要素で描画 */
}

.child-author-section .author-info h3::after {
  content: '';
  flex: 1 1 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b67a3 0%, #2e9afc 100%);
  border-radius: 2px;
}

.child-author-section .author-position {
  font-size: 14px;
  color: #000 !important;
  margin: 10px 0;
  line-height: 1.6;
}

.child-author-section .author-company {
  font-size: 14px;
  color: #000 !important;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.child-author-section .author-bio {
  font-size: 14px;
  line-height: 1.8;
  color: #000 !important;
  margin: 15px 0 0 0;
}

/* 会社情報セクション */
.child-company-section {
  background-color: whitesmoke;
  margin: 40px 29px;
  padding: 20px 29px !important;
}

.child-company-section .company-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.child-company-section .company-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  overflow: hidden;
}

.child-company-section .company-logo img {
  max-width: 72px;
  max-height: 72px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.child-company-section .company-logo .author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.child-company-section .company-info {
  flex: 1;
  min-width: 250px;
}

.child-company-section .company-info h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  color: #333;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #00c853, #1C7F09) 1;
}

.child-company-section .company-description {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 16px 0 0 0;
  /* ヘッダー行の下に余白 */
}

/* セクション区切り（淡いグリーン帯） */
.section-separator {
  height: 14px;
  background: #eaf4e9;
  border-top: 1px solid #dfece1;
  border-bottom: 1px solid #dfece1;
  margin: 20px 0 24px 0;
}

@media (max-width: 834px) {
  .section-separator {
    height: 10px;
    margin: 12px 0 16px 0;
  }
}

/* =============================
   CTA × Writer 2カラム（PC表示）
   ============================= */
@media screen and (min-width: 1024px) {
  .cta-writer-columns {
    display: grid;
    /* grid-template-columns: minmax(0,1fr) minmax(0,1fr); */
    gap: 28px;
    align-items: start;
    margin: 30px 0;
  }

  .cta-writer-columns>.child-cta-section,
  .cta-writer-columns>.child-company-section {
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* 2カラム時の区切りライン（Writer側の左に余白、右に薄い線） */
  .cta-writer-columns>.child-company-section {
    background-color: #fff;
    border: 1px solid #e6efe6;
    padding: 20px 20px !important;
    overflow-wrap: anywhere;
  }

  .cta-writer-columns>.child-cta-section {
    overflow-wrap: anywhere;
  }
}

/* PCではCTA・Writerを縦積みに戻す（添付レイアウト） */
@media screen and (min-width: 1200px) {
  .cta-writer-columns {
    display: block;
    margin: 30px;
  }

  .cta-writer-columns>.child-cta-section,
  .cta-writer-columns>.child-company-section {
    margin: 0 0 28px 0 !important;
    width: auto;
  }
}

/* Writer / Operator ラベルはPCでは非表示（モバイルで表示） */
.company-role-label {
  display: none;
}

/* 執筆者・監修者ラベルスタイル */
.section-label-box {
  margin-bottom: 20px;
}

.section-label-text {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  padding-bottom: 5px;
  border-bottom: 4px solid #1C7F09;
}

/* 関連記事セクション */
.child-related-posts {
  margin: 0;
  padding: 40px 0;
  background-color: #fff;
}

.child-related-posts .related-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.related-title-en {
  font-size: 46px;
  font-weight: bold;
  color: #333;
  letter-spacing: 2px;
}

.related-title-ja {
  font-size: 22px;
  color: #1C7F09;
  font-weight: bold;
  margin: 0;
}

.related-posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.related-post-item {
  background: white;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-post-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-link {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.related-post-thumbnail {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.related-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  transition: transform 0.3s;
}

.related-post-item:hover .related-post-thumbnail img {
  transform: scale(1.05);
}

.related-post-no-image {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.related-post-content {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.related-post-category {
  display: inline-block;
  background-color: #fff;
  color: #1C7F09;
  padding: 0;
  font-size: 15px;
  align-self: flex-start;
  font-weight: 800;
}

.related-post-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: #333;
}

.related-post-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-post-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
  margin-top: auto;
}

/* TAGS セクション リデザイン */
.child-tags-section {
  margin: 60px 0;
  padding: 40px 20px;
  background-color: #fff;
}

.child-tags-section .tags-header {
  text-align: center;
  margin-bottom: 24px;
}

.child-tags-section .tags-title-en {
  font-size: 46px;
  font-weight: bold;
  color: #333;
  letter-spacing: 2px;
}

.child-tags-section .tags-title-ja {
  font-size: 22px;
  color: #1C7F09;
  font-weight: bold;
  margin: 0 0 10px 0;
}

/* 内側の淡いグリーンの囲み */
.tags-cloud {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 0;
  /* 丸角をやめる */
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  /* row gap / column gap */
  justify-content: flex-start;
}

/* タグはテキストリンク（ピルではない） */
.tag-item {
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  color: #000;
  /* タグ名は黒 */
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.tag-item .tag-hash {
  color: #1C7F09;
  margin-right: 4px;
}

.tag-item:hover {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 834px) {
  .tags-cloud {
    padding: 20px 18px;
    gap: 16px 22px;
  }

  .tag-item {
    font-size: 18px;
  }
}

/* MATERIALSセクション */
.child-materials-section {
  margin: 60px 0;
  margin-bottom: 0px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #5CB032 0%, #3D9E1F 100%);
}

/* 単一カードレイアウト */
.materials-single-card {
  max-width: 600px;
  margin: 0 auto;
}

/* カードヘッダー（緑背景の上） */
.materials-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.materials-header-en {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.materials-header-ja {
  font-size: 28px;
  font-weight: 700;
  color: #FFE04D;
  line-height: 1.3;
}

/* カード本体 */
.materials-card-inner {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 右側の黄色い装飾 */
.materials-card-inner::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 250px;
  height: 250px;
  background: #FFE04D;
  transform: rotate(45deg);
  opacity: 0.9;
  z-index: 0;
}

/* カード画像 */
.materials-card-image {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.materials-card-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ロゴ */
.materials-card-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.materials-card-logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

/* 機能リスト */
.materials-card-features {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  color: #333;
  font-weight: 400;
  font-size: 27px;
  flex-shrink: 0;
  line-height: 1.4;
}

.feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
}

.highlight-red {
  color: #E53935;
  font-weight: 700;
}

/* ボタン */
.materials-card-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #cf2e2e;
  color: #fff;
  padding: 18px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(92, 176, 50, 0.3);
  transition: all 0.3s ease;
}

.materials-card-button::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" fill="%23fff"><path d="M432 320h-32a16 16 0 0 0-16 16v112H80V128h112a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16H64A64.07 64.07 0 0 0 0 128v336a64.07 64.07 0 0 0 64 64h336a64.07 64.07 0 0 0 64-64V336a16 16 0 0 0-16-16zm56-304H320a32 32 0 0 0 0 64h73.37L201.37 312a32 32 0 1 0 45.26 45.26L440 125.26V200a32 32 0 0 0 64 0V16a16 16 0 0 0-16-16z"/></svg>') no-repeat center;
  background-size: contain;
}

.materials-card-button:hover {
  background: #cf2e2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 176, 50, 0.4);
  color: #fff;
}

.materials-card-button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* 無料ラベル */
.materials-card-button .button-label {
  background: #fff;
  color: #cf2e2e;
  padding: 4px 12px;
  font-size: 16px;
  font-weight: 700;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .child-materials-section {
    padding: 30px 16px;
  }

  .materials-header-en {
    font-size: 16px;
  }

  .materials-header-ja {
    font-size: 22px;
  }

  .materials-card-inner {
    padding: 24px 20px;
  }

  .logo-text {
    font-size: 20px;
  }

  .feature-text {
    font-size: 16px;
  }

  .materials-card-button {
    font-size: 16px;
    padding: 16px 24px;
  }

  .materials-card-button .button-label {
    font-size: 14px;
    padding: 3px 10px;
  }

  .online-consultation-link {
    padding: 20px 16px;
  }

  .consultation-button {
    font-size: 16px;
    padding: 16px 24px;
    gap: 8px;
  }

  .consultation-icon-svg {
    height: 20px;
  }

  .consultation-arrow {
    font-size: 20px;
  }
}

.child-materials-section .materials-header {
  text-align: center;
  margin-bottom: 30px;
}

.child-materials-section .materials-title-en {
  font-size: 46px;
  font-weight: bold;
  color: #333;
  letter-spacing: 2px;
}

.child-materials-section .materials-title-ja {
  font-size: 22px;
  color: #1C7F09;
  font-weight: bold;
  margin: 0;
}

.materials-content {
  max-width: 700px;
  margin: 0 auto;
}

/* MATERIALS カードをリッチに（テキストは変更せず見た目のみ強化） */
.child-materials-section .materials-content {
  position: relative;
  background: #eaf4e9;
  padding: 18px 18px 24px;
  box-shadow: 0 8px 22px rgba(28, 127, 9, 0.10);
  overflow: hidden;
}

.child-materials-section .materials-content::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: #ffe04d;
  transform: rotate(35deg);
  border-radius: 16px;
  opacity: .9;
  pointer-events: none;
}

.child-materials-section .materials-banner,
.child-materials-section .materials-cta {
  position: relative;
  z-index: 1;
}

.child-materials-section .materials-banner {
  display: block;
  margin-bottom: 16px;
}

.child-materials-section .materials-banner img {
  border-radius: 12px;
}

.materials-promo {
  background: #eaf4e9;
  border-radius: 16px;
  padding: 18px 18px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 127, 9, 0.10);
}

.materials-promo::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: #ffe04d;
  /* イメージの黄色アクセント */
  transform: rotate(35deg);
  border-radius: 16px;
  opacity: .9;
}

.materials-promo .materials-banner {
  position: relative;
  z-index: 1;
}

.materials-promo .materials-banner img {
  border-radius: 12px;
}

.promo-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px 0;
  position: relative;
  z-index: 1;
}

.promo-points li {
  padding-left: 28px;
  margin: 10px 0;
  font-weight: 700;
  color: #0f3f0b;
  position: relative;
}

.promo-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1C7F09;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.promo-points li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.materials-banner {
  display: block;
  margin-bottom: 30px;
  transition: opacity 0.3s;
}

.materials-banner:hover {
  opacity: 0.9;
}

.materials-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.materials-cta {
  text-align: center;
  border: 2px solid #1C7F09;
  border-radius: 16px;
  padding: 20px 10px;
  box-shadow: 0 2px 8px rgba(28, 127, 9, 0.08);
}

/* MATERIALS CTA テキスト装飾 */
.materials-cta-text {
  font-size: 22px;
  color: #222;
  font-weight: bold;
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  letter-spacing: 0.02em;
}

.materials-cta-text::before {
  content: "＼";
  font-size: 28px;
  color: #222;
  font-weight: normal;
  margin-right: 2px;
}

.materials-cta-text::after {
  content: "／";
  font-size: 28px;
  color: #222;
  font-weight: normal;
  margin-left: 2px;
}

.materials-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #1C7F09;
  color: #fff;
  padding: 22px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(28, 127, 9, 0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
  margin: 0 auto;
  justify-content: center;
}

.materials-cta-button:hover {
  background: #176a07;
  color: #fff;
  box-shadow: 0 6px 24px rgba(28, 127, 9, 0.18);
}

.materials-cta-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* 右端の白丸矢印（HTMLはそのまま） */
/* .materials-cta-button::after {
  content: '↓';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #1C7F09;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
} */

/* 矢印付きのリッチボタン */
.materials-cta-button--arrow {
  gap: 16px;
  padding: 18px 24px;
  font-size: 20px;
}

.materials-cta-button--arrow .cta-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.materials-cta-button--arrow .cta-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: #1C7F09;
  border-radius: 1px;
}

.materials-cta-button--arrow .cta-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid #1C7F09;
  border-bottom: 2px solid #1C7F09;
}

@media (max-width: 600px) {
  .materials-cta {
    position: relative;
    background: #f8fcf7;
    border: 3px solid #1C7F09;
    border-radius: 16px;
    padding: 36px 24px 32px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(28, 127, 9, 0.08);
  }

  /* 左上の黄色い装飾 */
  .materials-cta::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 70px;
    height: 70px;
    background: #FFE04D;
    transform: rotate(45deg);
    border-radius: 0;
    opacity: 0.95;
  }

  /* 右下の黄色い装飾 */
  .materials-cta::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 70px;
    height: 70px;
    background: #FFE04D;
    transform: rotate(45deg);
    border-radius: 0;
    opacity: 0.95;
  }

  .materials-cta-text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: bold;
    color: #222;
    text-align: center;
  }

  .materials-cta-text::before {
    content: "＼";
    font-size: 20px;
    font-weight: normal;
    margin-right: 4px;
  }

  .materials-cta-text::after {
    content: "／";
    font-size: 20px;
    font-weight: normal;
    margin-left: 4px;
  }

  .materials-cta-button {
    position: relative;
    z-index: 1;
    font-size: 14px;
    padding: 16px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(28, 127, 9, 0.25);
    font-weight: 700;
    transition: all 0.3s ease;
  }

  .materials-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 127, 9, 0.3);
  }

  .materials-cta-button svg {
    width: 24px;
    height: 24px;
  }
}

/* PC表示の時にサイドバーをメインの右側に配置 */
@media screen and (min-width: 1024px) {
  .content-in {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.main {
  padding: 0px 0px;
  padding-bottom: 0px;
  background-color: #eaf4e9;
}

/* .marker-under {
  background: linear-gradient(transparent 0%, #ff9 0%);
  font-weight: bold;
} */
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  .custom-post-title {
    font-size: 32px;
  }

  .related-title-en,
  .child-tags-section .tags-title-en,
  .child-materials-section .materials-title-en {
    font-size: 32px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .custom-post-title {
    font-size: 24px;
  }

  .custom-post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .child-author-section .author-container,
  .child-company-section .company-container {
    flex-direction: column;
  }

  .related-post-link {
    flex-direction: column;
  }

  .related-post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .related-post-content {
    padding: 20px;
  }

  .related-title-en,
  .child-tags-section .tags-title-en,
  .child-materials-section .materials-title-en {
    font-size: 28px;
  }

  .child-company-section .company-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/*600px以下：スマホ向けヘッダーリデザイン*/
@media screen and (max-width: 600px) {

  /* スマホのみ：アイキャッチを上に配置 */
  .custom-post-header-wrapper {
    display: flex;
    flex-direction: column;
  }

  .child-single-eyecatch--header {
    order: 1;
    margin-bottom: 0;
    padding: 0 !important;
  }

  .child-single-eyecatch--header img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .custom-post-header {
    order: 2;
    background-color: transparent;
    padding: 0;
  }

  .custom-post-header-inner {
    background-color: #fff;
    border-radius: 0;
    padding: 16px 16px 20px;
    margin-bottom: 0;
    position: relative;
  }

  .custom-post-header-inner::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #d0d0d082;
  }

  .custom-breadcrumbs {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
    color: #999;
  }

  .custom-breadcrumbs a {
    color: #999;
    text-decoration: none;
  }

  .custom-category-label {
    background-color: transparent;
    color: #1C7F09;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 12px 0;
    display: block;
    text-align: left;
    line-height: 1.4;
  }

  .custom-post-title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 0;
    text-align: left;
    font-weight: 700;
    color: #333;
  }

  .custom-post-header .custom-post-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center !important;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    width: 100%;
    text-align: center;
  }

  .custom-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .custom-post-meta span:first-child {
    margin-right: 0;
    font-weight: 400;
  }

  .custom-post-meta span:last-child {
    margin-left: 0;
    justify-content: center;
  }

  .custom-post-meta svg {
    width: 16px;
    height: 16px;
  }

  .custom-author-avatar {
    width: 18px;
    height: 18px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  .custom-post-header {
    padding: 14px 10px 24px;
  }

  .custom-post-header-inner {
    padding: 22px 16px 24px;
  }

  .custom-post-title {
    font-size: 20px;
  }

  .child-single-intro,
  .child-single-points,
  .child-toc,
  .child-share-section,
  .child-cta-section,
  .child-author-section,
  .child-company-section {
    padding: 20px 0px;
    margin: 20px 0px;
  }

  .child-toc-content {
    padding: 15px 20px;
  }

  .child-single-content h2 {
    font-size: 20px;
    padding: 12px 15px;
  }

  .child-single-content h3 {
    font-size: 18px;
    padding-bottom: 6px;
    border-bottom-width: 2px;
  }

  .child-single-content h3::before {
    font-size: 23px;
  }

  .child-cta-section h2 {
    font-size: 22px;
  }

  .related-title-en,
  .child-tags-section .tags-title-en,
  .child-materials-section .materials-title-en {
    font-size: 24px;
  }

  .related-posts-grid,
  .tags-cloud,
  .materials-content {
    padding: 0 15px;
  }

  .related-post-content {
    padding: 15px;
  }

  .related-post-title {
    font-size: 16px;
  }

  .child-share-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .child-share-btn {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
  }

  .child-share-btn.line,
  .child-share-btn.copy {
    min-width: 0;
    /* 等幅にするため最小幅制限を解除 */
  }

  .child-company-section .company-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.child-single-article {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  margin: 0 0 60px 0;
  padding-top: 30px;
}

@media (max-width: 600px) {
  .child-single-article {
    border-radius: 0;
    margin: 20px 0 30px 0;
  }
}

/* =============================
   Company section mobile headings
   ============================= */
@media screen and (max-width: 767px) {
  .child-company-section {
    background: #fff;
    border: 1px solid #e6efe6;
  }

  /* サムネと会社名/著者名を横並びに */
  .child-company-section .company-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
  }

  .child-company-section .company-role-label {
    display: block;
    text-align: center;
    color: #1C7F09;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 8px 0;
  }

  .child-company-section .company-logo {
    margin: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    align-self: flex-start;
  }

  .child-company-section .company-logo img {
    max-width: 85px;
    max-height: 85px;
  }

  .child-company-section .company-logo .author-avatar-img {
    width: 80px;
    height: 80px;
  }

  .child-company-section .company-info {
    flex: 1 1 auto;
    min-width: 0;
  }

  .child-company-section .company-info h3 {
    border-image: none;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
    margin: 8px 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    display: block;
  }

  .child-company-section .company-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
  }
}

/* =============================
   TOC redesign (Cocoon/.toc および .child-toc を統一調整)
   画像のような「もくじ」見た目に寄せる
   - 見出し: 緑文字・中央
   - 本文: 薄い緑背景、シンプルな中黒「・」の箇条書き
   - もっと見るボタン: 緑の丸ボタン
   ============================= */

/* コンテナ */
.toc,
.child-toc {
  background: #f7faf5;
  border: none;
  border-radius: 0;
  padding: 28px 32px;
  margin: 30px 0;
  position: relative;
  /* ボタン内包のため */
  padding-bottom: 80px;
  /* 下部ボタン分の余白 */
  width: 100%;
}

/* タイトル */
.toc-title,
.child-toc-header h2 {
  background: transparent;
  color: #1C7F09;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 18px 0;
  padding: 0;
}

/* タイトル文言はPHPで置換。CSS側では色と整形のみ */

/* コンテンツ余白をフラットに */
.toc-content,
.child-toc-content {
  padding: 0;
  position: relative;
}

/* 折りたたみ時の下部グラデーション（半透明→背景色） */
.toc:not(.toc-open) .toc-content::after,
.child-toc:not(.toc-open) .child-toc-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  /* フェード高さ */
  background: linear-gradient(to bottom, rgba(247, 250, 245, 0) 0%, #f7faf5 80%);
  pointer-events: none;
  z-index: 1;
}

/* リスト体裁 */
.toc-content ul,
.child-toc-content ul,
/* Cocoonがolで出力する場合も抑制 */
.toc-content ol,
.child-toc-content ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-content li,
.child-toc-content ul li {
  margin: 0px 0;
  padding-left: 0;
  position: relative;
}

/* 中黒のプレフィックス */
.toc-content li::before,
.child-toc-content ul li::before {
  content: '・';
  color: #1C7F09;
  margin-right: 8px;
}

/* 階層のサイズ・インデント調整 */
.toc-content>ul>li,
.toc-content li.toc-h2,
.child-toc-content>ul>li {
  font-size: 18px;
  font-weight: 700;
}

.toc-content ul ul>li,
.toc-content li.toc-h3,
.child-toc-content ul li.toc-h3 {
  font-size: 18px;
  padding-left: 20px;
}

/* リンク色 */
.toc-content a,
.child-toc-content a {
  color: #000;
  text-decoration: none;
}

.toc-content a:hover,
.child-toc-content a:hover {
  color: #1C7F09;
}

/* --- TOC マーカー調整: H2を01.形式、H3を➢ に --- */
.toc-content,
.child-toc-content {
  counter-reset: toc-h2;
}

/* H2相当（最上位項目） */
.toc-content>ul>li,
.toc-content>ol>li,
.child-toc-content>ul>li,
.child-toc-content>ol>li,
.toc-content li.toc-h2,
.child-toc-content li.toc-h2 {
  position: relative;
  padding-left: 2.4em;
  /* 番号のぶら下がり分 */
  counter-increment: toc-h2;
  font-weight: 700;
  /* 大項目は太字 */
}

.toc-content>ul>li::before,
.toc-content>ol>li::before,
.child-toc-content>ul>li::before,
.child-toc-content>ol>li::before,
.toc-content li.toc-h2::before,
.child-toc-content li.toc-h2::before {
  content: counter(toc-h2, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-weight: 700;
  width: 2.2em;
  /* 揃え用 */
}

/* H3相当（中項目） */
.toc-content ul ul>li,
.toc-content ol ol>li,
.toc-content ul ol>li,
.toc-content ol ul>li,
.toc-content li.toc-h3,
.child-toc-content ul li.toc-h3,
.child-toc-content ol li.toc-h3,
.child-toc-content ul ul>li,
.child-toc-content ol ol>li,
.child-toc-content ul ol>li,
.child-toc-content ol ul>li {
  position: relative;
  padding-left: 1.4em;
  font-weight: 400;
  /* 中項目は標準太さに戻す */
}

.toc-content ul ul>li::before,
.toc-content ol ol>li::before,
.toc-content ul ol>li::before,
.toc-content ol ul>li::before,
.toc-content li.toc-h3::before,
.child-toc-content ul li.toc-h3::before,
.child-toc-content ol li.toc-h3::before,
.child-toc-content ul ul>li::before,
.child-toc-content ol ol>li::before,
.child-toc-content ul ol>li::before,
.child-toc-content ol ul>li::before {
  content: '➢';
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-weight: 700;
}

/* もっと見るボタン（下部中央配置） */
.toc .toc-toggle,
.toc .toc-switch,
.toc .toggle-button,
.toc .toc-more,
.child-toc .child-toc-toggle,
.toc button,
.toc .button,
/* JSで挿入するボタン */
.toc-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #1C7F09;
  border: 2px solid #1C7F09;
  border-radius: 999px;
  padding: 8px 28px;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  /* フェードの上に表示 */
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  font-size: 16px;
}

/* 下向き山括弧を右側に表示 */
.toc .toc-toggle::after,
.toc .toc-switch::after,
.toc .toggle-button::after,
.toc .toc-more::after,
.child-toc .child-toc-toggle::after,
.toc button::after,
.toc .button::after,
.toc-toggle-button::after {
  content: '↓';
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
  color: #1C7F09;
}

/* 目次が開いている時（閉じる表示時）は上向き矢印に変更 */
.toc.toc-open .toc-toggle-button::after,
.child-toc.toc-open .toc-toggle-button::after {
  content: '↑';
}

/* タイトル横の閉じる/トグル系ボタンは非表示 */
.toc-title .toc-toggle,
.toc-title .toc-switch,
.toc-title .toggle-button,
.toc-title .toc-more,
.child-toc-header .child-toc-toggle,
.toc .toc-close,
.toc .toc-close-button {
  display: none !important;
}

.toc .toc-toggle:hover,
.toc .toc-switch:hover,
.toc .toggle-button:hover,
.toc .toc-more:hover,
.child-toc .child-toc-toggle:hover,
.toc button:hover,
.toc .button:hover,
.toc-toggle-button:hover {
  background: transparent;
  color: #1C7F09;
}

.wp-block-table thead {
  border-bottom: none;
}

table tr {
  background-color: white !important;
}

/* Gutenberg テーブルブロック：背景色で選んだ色をヘッダー行(th)だけに適用 */
.wp-block-table.has-blue-background-color thead th {
  background-color: var(--wp--preset--color--blue);
  color: #fff;
}

.wp-block-table.has-orange-background-color thead th {
  background-color: var(--wp--preset--color--orange);
  color: #fff;
}

.wp-block-table.has-gray-background-color thead th {
  background-color: var(--wp--preset--color--gray);
  color: #fff;
}

.wp-block-list {
  border: 10px solid #eaf4e9;
}

.child-ctaarea-section {
  margin: 0px;
  padding: 5px 0;
  background-color: #fff;
}

a[target="_blank"]:not(.materials-banner):not(.child-share-btn):not(.consultation-button):not(.bl_side_banner):not(.materials-card-button):not(.blogcard-wrap)::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" fill="%23999"><path d="M432 320h-32a16 16 0 0 0-16 16v112H80V128h112a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16H64A64.07 64.07 0 0 0 0 128v336a64.07 64.07 0 0 0 64 64h336a64.07 64.07 0 0 0 64-64V336a16 16 0 0 0-16-16zm56-304H320a32 32 0 0 0 0 64h73.37L201.37 312a32 32 0 1 0 45.26 45.26L440 125.26V200a32 32 0 0 0 64 0V16a16 16 0 0 0-16-16z"/></svg>') no-repeat center;
  background-size: contain;
  vertical-align: middle;
  opacity: 0.6;
}

.bold-red {
  /* white-space: nowrap; */
}

@media (max-width: 480px) {

  .toc,
  .child-toc {
    padding: 20px 18px;
    margin: 20px 0;
  }

  .toc-title,
  .child-toc-header h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }
}

@media (max-width: 767px) {

  /* スマホのみ：アイキャッチを上に配置 */
  .custom-post-header-wrapper {
    display: flex;
    flex-direction: column;
  }

  .child-single-eyecatch--header {
    order: 1;
    margin-bottom: 0;
    padding: 0 !important;
  }

  .child-single-eyecatch--header img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .custom-post-header {
    order: 2;
  }

  .body,
  .menu-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .child-single-eyecatch {
    padding: 0 0px !important;
  }

  main.main,
  div.sidebar {
    padding: 0px 0px;
  }

  .child-single-intro {
    background-color: transparent;
    padding: 20px !important;
    margin: 0px 0px;
    line-height: 1.8;
    font-size: 15px;
  }

  .child-single-points {
    padding: 15px 5px !important;
    margin: 20px 8px;
    border: 10px solid #1C7F09;
    border-radius: unset;
    margin-left: 4%;
    margin-right: 4%;

  }

  .is-style-border-thin-and-thick {
    padding: 15px 20px !important;
    margin: 20px 0px !important;
    border: 10px solid #EBF4E9 !important;
    border-radius: 12px !important;
  }

  .child-single-points>div {
    line-height: 1.5;
    font-size: 14px;
    margin: 8px;

  }

  .child-single-points h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding: 0;
    border-bottom: none;
    padding-bottom: 0px;
    text-align: center;
  }

  .child-single-content {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  .toc-content li,
  .child-toc-content ul li {
    margin: 0px 0px;
  }

  .child-single-content h2 {
    font-size: 17px;
    padding: 5px 15px;
    line-height: 1.5;
  }

  /* スマホ：パンくずを横一列＋横スクロール */
  .custom-breadcrumbs {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    padding-bottom: 12px;
    /* スクロールバー分の余白 */
    margin-bottom: 12px;
  }

  .custom-breadcrumbs a {
    display: inline-block;
  }

  /* スマホ：ヘッダーカードの見た目（添付デザイン寄せ） */
  .custom-post-header {
    background: transparent;
    padding: 0;
  }

  .custom-post-header-inner {
    background: #fff;
    border-radius: 0;
    padding: 18px 16px 30px;
    margin-bottom: 0;
    position: relative;
  }

  .custom-post-header-inner::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #d0d0d082;
  }

  /* カテゴリは緑色のテキストのみ */
  .custom-category-label {
    background: transparent;
    color: #1C7F09;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: block;
    text-align: left;
    line-height: 1.4;
  }

  /* タイトル */
  .custom-post-title {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    text-align: left;
    font-weight: 700;
    color: #333;
  }

  /* 更新日と著者はinner内で中央に配置 */
  .custom-post-header .custom-post-meta {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 16px;
    width: 100%;
    font-size: 12px;
    margin: 0;
  }

  .custom-post-header .custom-post-meta span:first-child {
    margin-right: 0 !important;
    font-weight: 400;
  }

  .custom-post-header .custom-post-meta span:last-child {
    margin-left: 0 !important;
    justify-content: center;
  }

  .custom-author-avatar {
    width: 18px !important;
    height: 18px !important;
  }

  .child-single-article {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    margin: 0px 0 10px 0;
    padding-top: 15px;
  }

  .child-company-section {
    background-color: whitesmoke;
    margin: 10px 8px;
    padding: 15px 15px !important;
  }

  .toc,
  .child-toc {
    padding: 21px 18px;
    padding-bottom: 78px;
    margin: 20px 0;
  }

  .toc .toc-list ul,
  .toc .toc-list ol {
    padding-left: 0em;
    margin: 0;
  }

  .child-single-content h2 {
    margin: 20px 0 20px 0;
  }

  .child-cta-section {
    padding: 20px 15px;
    margin: 15px 8px;
  }

  .child-share-section {
    background-color: transparent;
    margin: 0px 0px;
    padding: 16px 0px !important;
    padding-top: 40px !important;
    text-align: center;
  }

  .child-materials-section {
    margin: 10px 7px;
  }

  .child-tags-section {
    margin: 10px 7px;
    padding: 40px 20px;
    background-color: #fff;
  }

  .child-single-points .points-item {
    position: relative;
    padding-left: 1.4em;
    margin: 4px 0;
    line-height: 1.5;
    font-size: 14px;
    font-weight: bold;
  }

  .toc-content>ul>li,
  .toc-content>ol>li,
  .child-toc-content>ul>li,
  .child-toc-content>ol>li,
  .toc-content li.toc-h2,
  .child-toc-content li.toc-h2 {
    position: relative;
    padding-left: 1.5em;
    counter-increment: toc-h2;
    padding-bottom: 5px;
  }

  .related-title-en,
  .child-tags-section .tags-title-en,
  .child-materials-section .materials-title-en {
    font-size: 16px;
  }

  .related-title-ja {
    font-size: 21px;
    color: #1C7F09;
    font-weight: bold;
    margin: 0;
  }

  .child-tags-section .tags-title-ja {
    font-size: 21px;
    color: #1C7F09;
    font-weight: bold;
    margin: 0 0 10px 0;
  }

  .child-materials-section .materials-title-ja {
    font-size: 21px;
    color: #1C7F09;
    font-weight: bold;
    margin: 0;
  }

  .child-related-posts {
    margin: 0 7px;
    padding: 40px 0;
    background-color: #fff;
  }

  .child-related-posts {
    margin: 0 7px;
    padding: 40px 0;
    background-color: #fff;
  }

  .child-ctaarea-section {
    margin: 7px;
    padding: 5px 0;
    background-color: #fff;
  }

  .wp-block-list {
    border: 10px solid #eaf4e9;
    /* margin: 10px; */
    padding: 15px 20px 15px 20px;
  }

  .child-single-content h3 {
    position: relative;
    color: #111;
    font-weight: 800;
    font-size: 20px;
    margin: 14px 0 14px 0;
    padding: 0 0 8px 0;
    border-bottom: 3px solid #111;
    line-height: 1.4;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  main.main,
  div.sidebar {
    margin-top: 0px;
  }

  .content {
    margin-top: 0px;
  }
}

/* =============================
   シンプル下線装飾（ブロックエディター用）
   ============================= */
.has-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}