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

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

/************************************
** 見出しカスタマイズ（シンプル版）
************************************/
/*必要ならばここにコードを書く*/
/* 見出しカスタマイズ */
/* H2 */
/* H3 */
.article h3{
border-top:none;
border-bottom:none;
border-left:none;
border-right:none;
padding: 0;
}

.article h3 {
padding: 0.5em;/*文字周りの余白*/
color: #010101;/*文字色*/
background: #f1f9ff;
border-bottom: solid 3px #516ab6;/*下線*/
}
.title-box2{
margin: 1em 0;
padding: 1.5em 1em 1em;
position: relative;
border: 1px solid #81d4fa;
background-color: #e1f5fe;
}

.title-box2-title{
position: absolute;
top: -0.8em;
left: 20px;
font-weight: bold;
font-size: 1.1em;
background-color: #81d4fa;
color: #fff;
padding: 0 0.5em;
}

.title-box2 p{
margin: 0;
padding: 0;
}

/* 記事タイトル（H1） */
.article h1 {
  font-size: 36px !important; /* 本文18pxの2倍 */
  font-weight: bold !important; /* 太字で強調 */
  line-height: 1.8;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: solid 4px #516ab6; /* H2と同じ色だが太く */
  color: #1a1a1a;
}

/* 章見出し（H2） */
.article h2 {
  font-size: 26px; /* 本文18pxの1.44倍 */
  font-weight: bold;
  line-height: 1.5;
  padding: 0.5em 0;
  border-top: solid 3px #516ab6;
  border-bottom: solid 3px #516ab6;
}

/* 節見出し（H3） */
.article h3 {
  font-size: 22px; /* 本文18pxの1.22倍 */
  font-weight: bold;
  padding: 0.5em;
  color: #010101;
  background: #f1f9ff;
  border-bottom: solid 3px #516ab6;
}

/* 本文 */
.article {
  font-size: 18px;
  line-height: 1.8;
}

/* スマホ（480px以下）*/
@media screen and (max-width: 480px){
  .article h1 {
    font-size: 24px; /* スマホでは少し小さく */
  }
  .article h2 {
    font-size: 20px;
  }
  .article h3 {
    font-size: 18px;
  }
}




/************************************
** 記事内目次
************************************/
.toc {
  background: #f9f9f9!important;
  border: 0!important;
  display: block!important;
  border-top: 5px solid!important;
  border-top-color: #f8c678!important;/*お好みの色に*/
  box-shadow: 0 2px 2px rgba(0,0,0,.2)!important;
  padding: 20px 32px 7px 32px!important;
  margin-bottom: 5%!important;
  width:95%;
  border-radius:10px;
}
@media screen and (min-width:600px){
.toc {
  padding: 20px 35px 15px 35px!important;
  width:70%;
}
}
.toc-title{
  margin: 0 20px 20px -10px!important;
  font-size: 23px!important;
  font-weight: 700!important;
  color: #f8c678!important;/*お好みの色に*/
  background-color: initial;
}
.toc-title:before{
  font-family: "Font Awesome 5 Free";
  content: "\f03a";
  font-weight: 900 !important;
  font-size: 20px;
  color: #fff;
  background-color: #f8c678;/*お好みの色に*/
  border-radius: 50%;
  padding: 14px;
}
.toc a{
  color:#333;
  display: block;
  border-bottom: dashed 1px silver;
  padding-bottom: .5em;/*下の点線との間*/
  padding-top: 0em!important;/*下の点線との間*/
}
.toc ul li{
  font-weight: 700;
  line-height: 1.5;
  padding: 0 0 .4em 1.4em;
  position: relative;
}
.toc ul li:before{
  font-family: "Font Awesome 5 Free"!important;
  content: "\f138";
  position: absolute!important;
  left: -0.3em!important;
  color: #f8c678;/*お好みの色に*/
  font-weight: 900;
}
.toc li li{
  font-weight: 400;
  padding-top:.5em;
  margin-top:0!important;
}
.toc_list li{
  margin-top:-5%!important;
}
@media screen and (min-width:834px){
.toc_list li{/*PCでは目次のh2同士の間隔は抑えめに*/
  margin-top:-1.8%!important;
}
}



/************************************
** サイドバーの目次
************************************/
.sidebar .toc{
  background:transparent!important;
  border:initial!important;
  border-top: initial!important;
  border-top-color: initial!important;
  box-shadow:initial!important;
  margin-bottom:initial!important;
  width: initial!important;
  border-radius:initial!important;
  padding-top:initial!important;
}
.sidebar .toc li li:before{
  color:#fad9a7;/*お好みの色に*/
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
.entry-header {
    display: flex;
    flex-direction: column;
}
.entry-header .eye-catch-wrap {
    order: -1;
}