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

/*カテゴリーのアイコンを変更*/
.widget_categories ul li a::before{
  font-family: "Font Awesome 5 Free"; /*Font Awesomeのバージョン*/
  content: "\f192"; /*アイコンのフォント*/
  color:#a8bcc8; /*アイコンの色*/
  padding-right:5px; /*アイコンとフォントの間の余白*/
  font-weight: 900; /*アイコンの太さ（なくてもOK）*/
  font-size:18px; /*アイコン・フォントの大きさ（なくてもOK）*/
}

/*子カテゴリーのアイコンを変更*/
.widget_categories ul li ul li a::before{ 
  font-family: "Font Awesome 5 Free"; /*Font Awesomeのバージョン*/
  content: "\f061"; /*アイコンのフォント*/
  color: #a8bcc8; /*アイコンの色*/
}

/* サイドバー目次ハイライト */
#toc-2 li.current {
	background-color: #7FFFD4; /* ハイライト色 */
}

/* 目次カスタマイズ Start*/
.toc {
  background: rgba(55, 140, 176, 0.1);
  font-size: 0.9em;
  padding: 0;
  display: table;
  box-shadow: 0 1.5px 2.4px rgba(0, 0, 0, 0.2);
}

.toc-center {
  margin: 2em auto;	/* サイドバーの目次が押し下げられる対応 */
  font-size: 12px;	/* フォントサイズ変更 */
}

.toc-content {
  overflow-y: scroll;
  max-height: 600px;
}

.toc .toc-list {
  margin-top: 0;
  counter-reset: li;
}

.toc .toc-list > li {
  margin: 0;
  padding: 5px 0;
  font-weight: 700;
}

.toc .toc-list > li:before {
  counter-increment: li;
  content: counter(li, decimal) ". ";
}

.toc .toc-list > li ul, .toc .toc-list > li ol {
  margin: 5px;
  padding-left: 15px;
}

.toc .toc-list > li ul > li, .toc .toc-list > li ol > li {
  position: relative;
  font-size: .95em;
  font-weight: 400;
}

.toc .toc-list > li ul > li:before, .toc .toc-list > li ol > li:before {
  position: absolute;
  left: -0.7rem;
  top: 0;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f105";
  color: #ccc;
}

.toc .toc-list > li ul > li ul > li:before, .toc .toc-list > li ul > li ol > li:before, .toc .toc-list > li ol > li ul > li:before, .toc .toc-list > li ol > li ol > li:before {
  content: "\f101";
  left: -1.3em;
}

.toc-checkbox:checked ~ .toc-content {
  padding: 20px 25px;
}

.toc a {
  color: #333;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.toc-title {
  color: #fff;
  background: rgba(55, 140, 176, 0.9);
  box-shadow: 0px 2px 0px 0px rgba(55, 140, 176, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 5px 0;
  font-weight: 700;
}

.toc-title:before {
  display: inline-block;
  width: 38px;
  height: 38px;
  font-family: "Font Awesome 5 Free";
  font-size: 1.1em;
  text-align: center;
  line-height: 38px;
  content: "\f0ca";
  font-weight: 700;
}

.toc-checkbox:checked + .toc-title::after,
.toc-title::after {
  cursor: pointer;
  font-size: .8em;
  display: inline-block;
  margin-left: 0.8em;
  padding: 4px 16px;
  font-size: .7em;
  line-height: 1;
  background-color: #ccc;
  border-radius: 4px;
  text-decoration: none;
}

.toc-checkbox:checked + .toc-title::after {
  content: '閉じる';
}

.toc-title::after {
  content: '開く';
}
/* 目次カスタマイズ End*/

/* 見出しのカスタマイズ Start */
/*スタイルリセット用*/
main h2.wp-block-heading,
main h3.wp-block-heading,
main h4.wp-block-heading {
    color: initial;
    font-size: initial;
    padding: initial;
    display: initial;
    background-color: initial;
    background: initial;
    border: initial;
    border-radius: initial;
    font-weight: bold;
}
main h2.wp-block-heading:before,
main h3.wp-block-heading:before,
main h4.wp-block-heading:before,
main h2.wp-block-heading:after,
main h3.wp-block-heading:after,
main h4.wp-block-heading:after {
    color: initial;
    font-size: initial;
    padding: initial;
    display: initial;
    background-color: initial;
    background: initial;
    border: initial;
    border-radius: initial;
    margin: initial;
    content: initial;
    position: initial;
}

/*H2見出し*/
main h2.wp-block-heading {
    background: #fff;/*背景色（白）*/
    border: 4px double #339ecc;/*囲み線（太さ 二重線 色）*/
    display: block;
    font-size: 24px;/*文字サイズ*/
    padding: 0.8rem;/*文字回りの余白（上下左右）*/
    position: relative;
}
main h2.wp-block-heading:before {
    border-right: 30px solid #2181C8;/*折れ曲がり部の幅・色など*/
    border-bottom: 10px solid transparent;/*折れ曲がり部の高さなど*/
    content: '';
    left: -0.2rem;
    position: absolute;
    top: 105%;
}
/*H3見出し*/
main h3.wp-block-heading {
    background: #e9eff1;/*背景色（白）*/
    border-left: 4px double #339ecc;/*左線（太さ 二重線 色）*/
    display:block;
    font-size: 22px;/*文字サイズ*/
    padding: 0.7rem;/*文字回りの余白（上下左右）*/
}
/*H4見出し*/
main h4.wp-block-heading {
    border-top: 4px double #339ecc;/*上線（太さ 二重線 色）*/
    border-bottom: 1px solid #339ecc;/*下線（太さ 実線 色）*/
    display: block;
    font-size: 20px;/*文字サイズ*/
    padding: 0.4rem;/*文字回りの余白（上下左右）*/
}
/* 見出しのカスタマイズ End */