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

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




/*モバイル時ヘッダー背景画像の横スクロールを強制的に防ぐ*/
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

.header {
  max-width: 100% !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* 目次のデザイン */
.toc {
    background: #fbfbfb; /* 薄グレー背景 */
    border-top: 5px solid #2d339e; /* 藍色の上部ボーダー */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); /* 軽い影 */
    border-radius: 10px; /* 角丸 */
    padding: 20px 32px 7px 32px; /* 内側余白 */
    margin: 30px auto 5%; /* 中央揃え、下余白 */
    width: 90%; /* デフォルト幅 */
    max-width: 700px; /* PCでコンパクト */
    display: block;
}

/* PC（600px以上） */
@media screen and (min-width: 600px) {
    .toc {
        width: 60%; /* コンパクト幅 */
        padding: 20px 35px 15px 35px;
    }
}

/* 目次タイトル */
.toc-title {
    margin: 0 20px 20px -10px;
    font-size: 23px;
    font-weight: 700;
    color: #555555; /* グレー */
    background-color: transparent;
}
.toc-title:before {
    font-family: "Font Awesome 5 Free";
    content: "\f03a"; /* リストアイコン */
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    background-color: #2d339e; /* 藍色 */
    border-radius: 50%;
    padding: 14px;
    margin-right: 10px;
}

/* 目次リンク */
.toc a {
    color: #333; /* 濃いグレー */
    display: block;
    border-bottom: dashed 1px silver; /* 点線 */
    padding-bottom: 0.5em;
    padding-top: 0;
    transition: color 0.3s ease;
}
.toc a:hover {
    color: #2d339e; /* ホバーで藍色 */
}

/* 目次リスト（上位項目：手順など） */
.toc ul li {
    font-weight: 700;
    line-height: 1.5;
    padding: 0.3em 0 0.3em 1.4em; /* 天地幅を統一 */
    position: relative;
    margin: 0; /* ネガティブマージン削除 */
}
.toc ul li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f138"; /* 矢印アイコン */
    position: absolute;
    left: -0.3em;
    color: #2d339e;
    font-weight: 900;
}

/* サブ項目 */
.toc li li {
    font-weight: 400;
    padding: 0.3em 0 0.3em 1.4em; /* 上位項目と同じ天地幅 */
    margin: 0;
}

/* リスト間隔 */
.toc-list li {
    margin-top: 0.5em; /* 均一な間隔 */
}

/* PC（834px以上） */
@media screen and (min-width: 834px) {
    .toc-list li {
        margin-top: 0.3em; /* PCでやや詰める */
    }
}

/* スマホ（480px以下） */
@media screen and (max-width: 480px) {
    .toc {
        width: 95%;
        padding: 15px 20px 10px 20px;
        margin: 20px auto 5%;
    }
    .toc-title {
        font-size: 20px;
        margin: 0 15px 15px -10px;
    }
    .toc-title:before {
        font-size: 18px;
        padding: 12px;
    }
    .toc a {
        font-size: 13px;
    }
    .toc ul li, .toc li li {
        padding: 0.2em 0 0.2em 1.2em; /* スマホでコンパクト */
    }
    .toc-list li {
        margin-top: 0.4em;
    }
}


/*固定ページの日付非表示*/
.post-26 .date-tags,
.post-24 .date-tags,
.post-3 .date-tags,
.post-20 .date-tags,
.post-12 .date-tags {
display: none;
}




/* 見出しのデザインリセット */
/*H2 */
.entry-content h2{
border:none;
background:none;
padding: 0;
}

/* 見出しのデザインリセット */
/*H3 */
.entry-content h3{
border:none;
background:none;
padding: 0;
}

/* 見出しのデザインリセット */
/*H4 */
.entry-content h4{
border:none;
background:none;
padding: 0;
}

/* 見出しのデザインリセット */
/*H5 */
.entry-content h5{
border:none;
background:none;
padding: 0;
}

/* 見出しのデザイン設定 */
/* H2 */
.entry-content h2 {
  color: #ffffff;
  text-shadow: 0 0 5px black;
  padding: 0.8em 0.8em;
  background: -webkit-repeating-linear-gradient(-35deg, #636f9e, #6e6f9e 8px, #2d339e 8px, #2d339e 24px);
  background: repeating-linear-gradient(-35deg, #6e6f9e, #6e6f9e 8px, #2d339e 8px, #2d339e 24px);
	font-size: 150%;

}

/* 見出しのデザイン設定 */
/* H3 */
.entry-content h3 {
   border-bottom: solid 3px #DBE2FF;
  position: relative;
	    padding-bottom: 8px; /* テキストとボーダーの間に空間 */
		font-size: 135%;
}

.entry-content h3:after {
     position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #2d339e;
  bottom: -3px;
  width: 15%;
}

/* 見出しのデザイン設定 */
/* H4 */
.entry-content h4 {
	color: #333333;
	background: -webkit-repeating-linear-gradient(-35deg, #ffffff, #ffffff 8px, #DBE2FF 8px, #DBE2FF 24px);
   background: repeating-linear-gradient(-35deg, #ffffff, #ffffff 8px, #DBE2FF 8px, #DBE2FF 24px);
   border-top: solid 1px #333333;
	border-bottom: solid 1px #333333;
	padding: 0.5rem 0;
	}

/* 見出しのデザイン設定 */
/* H5 */
.entry-content h5 {
	position:relative;
	padding:.5em 0; /*内側余白　上下・左右*/     
       color:#333;/*文字色（黒）*/  
	}

h5:after{
	--stripe-color:#808080;/*ストライプの色*/
	position:absolute;
	content: "";
	width: 100%;
	height: 7px;
	bottom:0;
       left:0;
	background: linear-gradient(135deg, transparent 25%,var(--stripe-color)  25%,var(--stripe-color)  50%,transparent 50%,transparent 75%,var(--stripe-color) 75%,var(--stripe-color));
	background-size: 4px 4px;
}



/*グローバルナビに線を追加*/
#navi .navi-in > ul > li{
border-right: 1px solid #60357c;
}

#navi .navi-in > ul > li:last-child{
border-right-width: 0;
}

.navi-in > ul > .menu-item-has-children > a::after{
right: 10px;
}

/*グローバルメニューのグラデーション*/
.navi.cf{
background-image: linear-gradient(#7b31af 0%, #7b31af 40%, #4a267d 100%);
}




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

}



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

	/*モバイル時ヘッダー背景画像の横スクロールを強制的に防ぐ*/
	 .header {
    width: 100vw !important; /* ビューポート幅で強制制御 */
    height: 166px !important; /* 任意の高さ */
    box-sizing: border-box;
  }
}



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





