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

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

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

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

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

nav#navi, .menu-header .sub-menu{
    font-weight: bold;
    box-shadow: 0 5px 15px -5px rgba(0,0,0,0.2);
}

.menu-header .sub-menu .item-label{
    font-size: 80%;
}
.menu-header .item-label{
    color: #ffffff !important;
}
.menu-header .current-menu-item,
.menu-header .current-post-item,
.menu-header .current-menu-ancestor,
.menu-header .current-post-ancestor,
.menu-header .menu-item:hover {
    color: #fff !important;
    border-bottom: 3px solid #FDD835;
    transition: all .2s ease;
}

.menu-header .sub-menu .menu-item,
.menu-header .sub-menu .menu-item:hover{
    border-bottom: none;
}
.menu-header .current-menu-item>a .item-label,
.menu-header .current-post-item>a .item-label,
.menu-header .current-menu-ancestor>a .item-label,
.menu-header .current-post-ancestor>a .item-label,
.menu-header .item-label:hover{
    color: #fff !important;
    transition: all .2s ease;
}

/* 目次全体デザイン */
.toc{
    background:#F9F9F9; /* 目次全体の背景色を変える場合はここを変更 */
    border:none;
    display:block;
    border-top:5px solid;
    border-top-color:#FFC679;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
    padding: 20px 25px;
}
/* 目次の文字指定 */
.toc-title {
    text-align:left;
    margin: 0 20px 20px -10px;
    padding-left: -20px;
    font-size: 23px;
    font-weight: 700;
    color: #FFC679; /* 目次の文字色を変える場合はここを変更 */
}
/* 目次のアイコン設定 */
.toc-title:before {
    top: 0;
    left: -45px;
    width: 50px;
    height: 50px;
    font-family: "Font Awesome 5 Free";
    content : "\f03a"; /* アイコンを変える場合はここを変更 */
    font-size:20px;
    margin-right:5px;
    color:#FFF; /* アイコンの色を変える場合はここを変更 */
    background-color:#FFC679; /* アイコンの背景色を変える場合はここを変更 */
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    padding:14px;
}
/* 目次のデザインカスタマイズ */
.toc-content ol {
    padding: 0 0.5em;
    position: relative;
}
.toc-content ol li {
    line-height: 1.5;
    padding: 0.7em 0 0.5em 1.4em;
    border-bottom: dashed 1px silver;
    list-style-type: none!important;
}
/* 目次の各節の先頭にあるアイコンを設定 */
.toc-content ol li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f138"; /* アイコンを変える場合はここを変更 */
    position: absolute;
    left : 0.5em;
    color: #FFC679; /* 色を変える場合はここを変更 */
    font-weight: bold;
}
.toc-content ol li:last-of-type {
    border-bottom: none;
}
.toc-content .toc-list li {
    font-weight:700; /* h2のみ太文字に */
}
.toc-content .toc-list li li {
    font-weight:normal; /* h3以降の文字サイズを普通に */
}

.sidebar h3 {
  background: none;
  font-size: 16px;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
  width: 100%;
  padding: 0;
  text-align: center;
  color: #00bfff; /* サイドバータイトルの色を指定 */
}
.sidebar h3::before,
.sidebar h3::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  border-top: 3px solid #00bfff; /* サイドバータイトル横のバーの色を指定 */
}
.sidebar h3::before {
  left: 0;
}
.sidebar h3::after {
  right: 0;
}
.widget_categories ul li a {
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  display: block;
  padding-right: 4px;
  padding-left: 4px;
  border-top: 1px dotted #ccc;
  font-size: 16px;
}
.widget_categories ul li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f07b";
  padding-right: 10px;
}
.widget_categories > ul > li > a:first-child {
  border-top: none;
}
.widget_categories > ul > li > a:last-child {
  border-bottom: 1px dotted #00bfff;
}
.widget_categories ul li a .post-count {
  display: block;
  float: right;
  background: #fff;
  padding: 0 1em;
  font-size: 14px;
  margin-top: 0.2em;
  border-radius: 4px;
}
.widget_categories ul li a:hover {
  background: none;
  transition: 0.5s;
  color: #00bfff;
}
.widget_categories ul li a:hover .post-count {
  background: #00bfff;
  color: #fff;
  transition: 0.5s;
}
.widget_categories ul li ul {
  border-bottom: 1px dotted #ccc;
}
.widget_categories ul li ul li a {
  color: #333;
  text-decoration: none;
  padding: 0 4px 4px 4px;
  display: block;
  border: none;
}
.widget_categories ul li ul li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f105";
  padding-right: 0.45em;
  font-weight: bold;
}
.author-box .sns-follow-buttons a.follow-button {
  background-color: #fff;
  color: black;
  border: 0px;
}
.author-box {
  border: 0px;
}
.author-box p {
  margin-top: 0.3em;
  line-height: 1.6;
}
.author-box p a {
  text-decoration: none;
}
.author-box p a:hover {
  text-decoration: underline;
  color: #008cee; /* プロフィールにリンクを貼っている場合, ホバーした際の色指定 */
}
/* スマホサイドバー設定 */
#sidebar .author-box {
  border: none;
  border-radius: 4px;
  margin: 1em 0;
  line-height: 1.4;
  position: relative;
  padding: 1.4% 2% 1.8%;
}
#sidebar .author-thumb {
  float: none;
  width: 100%;
  margin: 9px auto 0;
  height: 0;
  padding-top: 75px;
  position: relative;
}
#sidebar .author-thumb img {
  border: 3px dashed #00bfff;
  width: 35%;
  padding: 6px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25%;
}
#sidebar .author-content {
  margin-top: 16%;
  font-size: 0.9em;
}

/************************************
** スライダー
************************************/
.slide-wrap{
   display:-webkit-box;
   display:-ms-flexbox;
   display: flex;
   overflow-x: scroll;
   -webkit-overflow-scrolling: touch;
   overflow-scrolling: touch;
   scroll-snap-type: x mandatory;
   padding:0 0 1em;
   margin:0 0 2em 0;
   scroll-behavior: smooth;
}
.slide-wrap .slide-content{
   flex: 0 0 90%;
   margin: 0 10px;
   height:100%;
}
@media screen and (max-width: 480px){
.slide-wrap .slide-content {
    flex: 0 0 88%;
    margin: 0px 5px;
    scroll-snap-align:center;
}
}

.pager-post-navi a {/*ページ送りナビ*/
	font-weight: bold;/*文字の太さ*/
}
/* =========================
   目次全体
========================= */
#toc.toc {
  background: #F9F9F9;
  border: none;
  display: block;
  border-top: 5px solid #FFC679;
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  padding: 20px 25px;
}

/* タイトル */
#toc .toc-title {
  display: block;
  text-align: left;
  margin: 0 20px 20px 0;
  font-size: 23px;
  font-weight: 700;
  color: #FFC679;
  position: relative;
  padding-left: 60px;
}

#toc .toc-title::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-family: "Font Awesome 5 Free";
  content: "\f03a";
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
  background-color: #FFC679;
  border-radius: 50%;
  padding: 0;
}

/* =========================
   リスト全体の強制補正
   H2→H4/H5/H6飛びでも見た目を崩しにくくする
========================= */
#toc .toc-content,
#toc .toc-content ol,
#toc .toc-content ul {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

/* すべてのliを共通化 */
#toc .toc-content li {
  position: relative;
  list-style: none !important;
  margin: 0;
  padding: 0.7em 0 0.5em 1.8em;
  line-height: 1.5;
  border-bottom: dashed 1px silver;
}

/* 最後の罫線は消す */
#toc .toc-content li:last-child {
  border-bottom: none;
}

/* 先頭アイコン */
#toc .toc-content li::before {
  position: absolute;
  left: 0.4em;
  top: 0.85em;
  font-family: "Font Awesome 5 Free";
  content: "\f138";
  font-weight: 900;
  color: #FFC679;
  line-height: 1;
}

/* リンク */
#toc .toc-content a {
  display: inline-block;
  text-decoration: none;
}

/* =========================
   入れ子の見た目補正
   HTMLが ol > ol > ol でも崩れにくくする
========================= */

/* 第1階層 */
#toc .toc-content > ol,
#toc .toc-content > ul {
  padding-left: 0;
}

/* 第2階層以降 */
#toc .toc-content ol ol,
#toc .toc-content ol ul,
#toc .toc-content ul ol,
#toc .toc-content ul ul {
  margin-top: 0.4em;
  padding-left: 1.2em;
}

/* 異常な多重ネストを吸収 */
#toc .toc-content ol ol ol,
#toc .toc-content ol ol ol ol,
#toc .toc-content ol ol ol ol ol,
#toc .toc-content ul ul ul,
#toc .toc-content ul ul ul ul,
#toc .toc-content ul ul ul ul ul {
  padding-left: 1.2em;
  margin-top: 0.2em;
}

/* 深い階層ほど少し控えめに */
#toc .toc-content ol ol li,
#toc .toc-content ul ul li {
  font-weight: normal;
}

/* H2相当だけ少し強調 */
#toc .toc-content > ol > li,
#toc .toc-content > ul > li {
  font-weight: 700;
}

/* 深い階層のアイコン位置を安定化 */
#toc .toc-content ol li::before,
#toc .toc-content ul li::before {
  left: 0.4em;
}

/* チェックボックスは非表示のまま崩れないように */
#toc .toc-checkbox {
  display: none;
}