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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ==========================================
   Cocoon目次・最適サイズ調整スタイル
   ========================================== */

/* 1. 目次全体の外枠と幅の調整（500pxに縮小） */
.toc,
#toc-box {
  max-width: 500px !important;
  margin: 2em auto !important;
  border: 1px solid #dcdcdc !important;
  background-color: #f8f9fa !important;
  box-sizing: border-box !important;
  counter-reset: toc-counter !important;
  padding: 0 !important;
}

/* 2. タイトル（グレー部分） */
.toc .toc-title,
#toc-box .toc-title {
  background-color: #e2e6ea !important;
  color: #333 !important;
  text-align: center !important;
  font-weight: bold !important;
  padding: 3px 16px !important;
  font-size: 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #dcdcdc !important;
}

/* 3. リスト全体のコンテナ */
.toc .toc-content,
#toc-content {
  display: block !important;
  padding: 12px 20px !important;
  background-color: #f8f9fa !important;
  margin: 0 !important;
}

/* 4. 各項目の縦並び強制 ＆ 行間の調整 */
.toc .toc-content li,
#toc-content li {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  text-align: left !important;
  margin: 3px 0 !important;
  padding: 0 !important;
}

/* 標準のマーカーや番号を非表示 */
.toc .toc-content li::before,
.toc .toc-content li::marker,
#toc-content li::before,
#toc-content li::marker {
  content: "" !important;
  display: none !important;
}

/* 5. 「数字 ｜ タイトル」形式の自動生成 */
.toc .toc-content li > a::before,
#toc-content li > a::before {
  content: counter(toc-counter) " ｜ " !important;
  counter-increment: toc-counter !important;
  color: #555 !important;
  font-weight: bold !important;
  margin-right: 4px !important;
}

/* 6. リンク文字の設定 */
.toc .toc-content li a,
#toc-content li a {
  color: #333 !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-size: 15px !important;
  padding: 2px 0 !important;
}

.toc .toc-content li a:hover,
#toc-content li a:hover {
  text-decoration: underline !important;
}

/* ==========================================
   H2 見出しデザイン（吹き出し付き・縦幅調整版）
   ========================================== */
.entry-content h2, 
h2.custom-heading {
  position: relative;
  background-color: #3b4878;
  color: #fff;
  padding: 15px 20px; /* 上下のパディングを12pxから15pxに拡大 */
  font-size: 18px;
  font-weight: bold;
  border-radius: 0;
  margin: 30px 0 20px 0;
}

/* 左下の三角形（吹き出しの角） */
.entry-content h2::after,
h2.custom-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 0;
  border-color: #3b4878 transparent transparent transparent;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
