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

/************************************
** ↓　以下追加CSS　↓
************************************/
a{
text-decoration: none;
}
/************************************
** サイドバーのデザイン変更
************************************/
/* 見出し変更 */
.sidebar h3{
	background: transparent;
	font-size:15px;
	border-bottom: dashed 2px #e1f0f7;
}

/* サイドバー目次 */
#sidebar .toc{
margin-top: 4em;/*枠の上の余白*/
margin-bottom: 2em;/*枠の下の余白*/
padding: 1em 1.5em;/*枠の中の余白*/
border: 3px solid #EEF8FB;/*枠線の太さ・種類・色*/
border-radius: 2px;/*枠線の角の丸み*/
}

/************************************
** ブログカードのデザイン変更
************************************/
/*タイトル文字サイズを変更*/
.blogcard-title{
	font-size: 1.2em;
}

/*ファビコンとURLを消す*/
.internal-blogcard-footer{
	display: none
}

/*ラベル部分のデザイン変更*/
.blogcard-type .blogcard-label{
 background-color:#E1F0F7;/* 背景色*/
 color:#3D484B;/* テキストの色 */
}

/*枠線の変更*/
.blogcard{
	border: 2px solid #E1F0F7 ! important
}

/******************************************
** ホーム画面 ホバー時に
グローバルメニューにアンダーラインを出す
******************************************/
/*グローバルメニュー メニュー項目の左右の余白*/
#navi .navi-in>ul>li>a{
padding: 0 1.8em;
}

/*ホバー時にメニューの色が薄くなるのをやめる*/
#navi .navi-in a:hover {
    background-color: rgb(255 255 255 / 0);
}

/*ホバー時にメニューにアンダーラインを出す*/
#navi .navi-in a:after{
position: absolute;/*線の位置を絶対配置に*/
content: "";/*文字はなし*/
left: 0px;/*線の位置*/
bottom: 0;/*線の位置*/
height: 2px;/*線の高さ*/
width: 100%;/*幅いっぱいに線を引く*/
background: #E1F0F7;/*線の色*/
transform: scale(0,1);/*ホバー前は線を消す*/
transition: 0.3s;/*線が0→100%になるまでの秒数*/
}

#navi .navi-in a:hover:after{
transform: scale(1);/*マウスオーバー後、線を100%出す*/
}



/************************************
** 目次の読んでいる部分をハイライト
************************************/
#toc-2 li.current {
	background-color: #E1F0F7; /* ハイライト色 */
}

/*記事一覧アイキャッチ画像の角丸め*/
.card-thumb img {
    border-radius: 4px;
}

/************************************
** 商品PRリンクのデザイン
************************************/
/*Cocoon商品リンク：料率を非表示*/
.product-affiliate-rate{
display:none;
}

/*Cocoon商品リンク：枠線を細く*/
.rakuten-item-box{
margin: 0;
padding: 12px 15px; /*余白調整*/
border: solid 1px #ccc; /*線の太さ*/
border-radius: 6px;
}

/*Cocoon商品リンク：キャッシュ情報を非表示*/

.cache-delete-link{
display:none;
}

/* === 景品表示法対応 === */
/* Cocoon設定本文上のPR表記 */
.pr-label-l {
    border-top: 1px dotted #333; /* 上の点線 */
    border-bottom: 1px dotted #333; /* テキスト下の点線 */
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: 0.7em; /* 文字サイズ */
    color: #637477; /* 文字の色 */
    text-align: center; /* テキスト中央揃え */
    background: #fff;
    padding: 3px 0;
    margin-bottom: 2em;
}

/* 画像のキャプションを中央揃えに、文字サイズを調整する */
.wp-block-image figcaption {
	text-align: center;
	font-size: 0.8em;
}

/* TOPへ戻るボタンを丸に */
.go-to-top .go-to-top-button {
  border-radius: 100%;
}

/************************************
** モバイルヘッダーのデザイン
************************************/
/*アイコン下の文字を消す*/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .mobile-menu-buttons .menu-caption{
    display: none;
  }
  .mobile-menu-buttons{
    align-items: center;
  }
}

/*ヘッダーモバイルボタンの文字色と背景色を変更*/
.search-menu-button.menu-button,
.navi-menu-button.menu-button{
	background: #e1f0f7;
}

.logo-menu-button.menu-button{
	background: #e1f0f7;
}

.mobile-menu-buttons{
	background: #e1f0f7;
}

/*ドロワーの背景色*/
.navi-menu-content {
	background-color: #e1f0f7;
}

/*ヘッダーモバイルボタンの色と高さを変更*/
.search-menu-button.menu-button,
.navi-menu-button.menu-button{
	background-color: #e1f0f7;
	height: 70px;
}

.logo-menu-button.menu-button{
	background-color: #e1f0f7;
	height: 70px;
}

.mobile-menu-buttons{
	background: #e1f0f7;
}

/*×アイコンを移動*/
.menu-close-button {
	 padding-top: 15px;
	 padding-left: 25px;
	 padding-bottom: 30px;
	text-align: left;
	font-size: 1.3em;
}

.menu-drawer a {
	font-size: 0.9em;
	line-height: 1.6em;
	border-bottom: solid 1px #e6e6e6;
}
.menu-drawer a:hover {
	background-color:#E1F0F7;　/*マウスオーバー時の背景色*/
}
.sub-menu li {                                      
	margin-left:-14px;
	font-size: 0.9em;
	color: #e6e6e6;
}

/* 「次のページ」表示を削除
-------------------------------------------------- */
.pagination-next-link {
  display: none;
}

/* ページネーションを角丸、色付きに
-------------------------------------------------- */
.page-numbers {
  color: #3D484B;
  border: 1px solid #cde6f2;
  border-radius: 50%;
}
.pagination .current {
  background-color: #E1F0F7;
  color: #3D484B;
}
.page-numbers.dots {
  opacity: 1;
  background: none;
}
.pagination a:hover {
  background-color: #E1F0F7;
  color: #3D484B;
}
.page-numbers {
min-width: 46px;
}


/************************************
** 英字フォントの変更
************************************/
/*サイドバー「category」*/
.sidebar h3{
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing:0.07em;
  font-size: 16px;
}
/*サイドバー「category」各タイトル*/
.sidebar ul li a {
  letter-spacing:0.1em;
  font-size:14px;
}

/*ヘッダー下「category」各タイトル*/

.navi-in a {
	font-size: 15px;
	 font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing:0.1em;
}

#archive-title,.entry-header h1, #rtoc-mokuji-title,.page-numbers
{
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing:0.1em;
}

/************************************
** サイト型カスタマイズ
************************************/
/*ボックスメニュー*/
#content-top {
	padding: 40px 0 0 0;	
}

.box-menu {
  padding: 0;
  min-height: 0;
  transition: transform 0.3s ease; /* ← ここを追加 */
}

.box-menu:hover {
  transform: translateY(-6px); /* 上に少し動く */
}

.box-menu-label,
.box-menu-description {
  display: none;
}

.box-menu-icon * {
  margin: 0;
  max-width: 100%;
  max-height: 300px;
}

/*ボックスメニュー　余白つくる*/
@media screen and (min-width: 480px){
	.wwa .box-menu{
		width: 22%;  /*ボックスの幅*/
		margin-right: 3%;  /*余白の幅*/
		}
	.box-menu:last-child{
		margin-right: 0px;
	}
}

@media screen and (max-width: 769px){
	.wwa .box-menu{
		width: 46%;  /*ボックスの幅*/
		margin-bottom: 3%;
		margin-left: 2%; 
		margin-right: 2%;  /*余白の幅*/
	}
}
/*ボックスメニューをホーム画面でのみ表示*/
body.page .box-menu,
body.single .box-menu,
body.archive .box-menu,
body.category .box-menu,
body.tag .box-menu {
  display: none !important;
}

/* フロントトップページでもボックスメニューを表示 */
body.front-top-page .box-menu {
  display: block !important;
}

/************************************
**トップページ(固定ページ)のスタイルここから 
************************************/
/* トップページ背景色を白にする（不要なら削除） */
/*.front-top-page body { background-color: #fff!important; }*/


/* トップページヘッダー・フッター非表示 */
.front-top-page .article-header,
.front-top-page .article-footer {
   display: none; /* トップページのヘッダーとフッターを非表示に */
}

/* セクションの余白設定 */
.section-wrap {
   padding-top: 3em; /* 上部の内側余白 */
   padding-bottom: 3em; /* 下部の内側余白 */
   margin-bottom: 0; /* 下部の外側余白 0（固定） */
}

/* 見出し ------------------------------------------------------------ */
.heading {
   text-align: center; /* 見出しを中央揃え */
	font-size: 2rem; /* 見出しの文字サイズ */
   color: #555F65; /* 見出しの色を設定 */
	font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing:0.08em;
   line-height: 1.6; /* 行の高さを1.4倍 */
   position: relative; /* 基準点を設定 */
   padding-bottom: 1rem; /* 下部の内側余白を1rem */
   margin-bottom: 3rem; /* 下部の外側余白を3rem */
}

/*480px以下*/
@media screen and (max-width: 480px){
   .heading {
   font-size: 1.6rem; /* 見出しの文字サイズ */
   }
}

.heading span {
   display: block; /* サブ見出しをブロック要素化 */
   font-size: .8rem; /* サブ見出しの文字サイズ */
   font-weight: normal; /* サブ見出しを通常の太さに設定 */
}

/* 見出し下の線 */
.heading::after {
   display: block; /* 擬似要素をブロック要素に */
   content: ""; /* 内容を空に */
   width: 2.5rem; /* 線の幅を2.5rem */
   height: 1px; /* 線の高さを1px */
   border-radius: 10px; /* 線に丸みを追加 */
   background-color: #A3D4E6; /* 線の色を設定 */
   position: absolute; /* 位置を絶対配置に */
   bottom: 0; /* 下部の位置を基準に */
   left: 50%; /* 左から50%で中央揃え */
   transform: translateX(-50%); /* 中央寄せを調整 */
}

/* リンクボタン---------------------------------------------- */

/* ボタンの配置 */
.link-btn {
   display: block; /* ボタンをブロック要素に */
   text-align: center; /* ボタン内のテキストを中央揃え */
	font-family: "Poppins";
	letter-spacing: 0.1em;
}

/* ボタンのスタイル */
.link-btn a {
   display: inline-block; /* インラインブロック要素 */
   background-color:#E1F0F7;
   color: var(--cocoon-text-color); /* 文字色 */
	border: 1px solid transparent;
   width: auto; /* ボタンの幅を自動調整 */
   min-width:300px; /*ボタンの最小幅*/
   padding: .7em 3em; /* 内側余白*/
   text-decoration: none; /* 下線を削除 */
   border-radius: 100px; /* 角の丸み */
   transition: .3s all; /* 変化をスムーズに */
   position: relative; /* 起点設定 */
}

/* 834px以下のボタン幅調整 */
@media screen and (max-width: 834px) {
   .link-btn a {
   width: 100%; /* モバイルでの最小幅を100%に */
   min-width: unset; /* min-widthを解除 */
   }
}

/* 矢印のスタイル */
.link-btn a:after {
   content: ''; /* 擬似要素の内容を空に */
   border-bottom: 1px solid var(--cocoon-text-color); /* 下矢印の線 */
   border-right: 1px solid var(--cocoon-text-color); /* 右矢印の線 */
   width: 15px; /* 矢印の幅 */
   height: 3px; /* 矢印の高さ */
   transform: skewX(45deg); /* 45度傾斜 */
   position: absolute; /* 位置を絶対配置に */
   right: 20px; /* 右から20pxに配置 */
   bottom: 50%; /* 下から50%の位置 */
   transition: .3s all; /* 変化をスムーズに */
}

/* ホバー時の変化 */
.link-btn a:hover {
	border: 1px solid #E1F0F7;
   background-color: #ffffff; /* 背景色を変化 */
}

/* 矢印のホバー効果 */
.link-btn a:hover:after {
   right: 15px; /* 矢印の位置を左へ少し移動 */
}

/* 記事カードの最大幅設定 --------------------------------------------- */
.widget-entry-cards.card-large-image .a-wrap {
   max-width: 600px; /* 最大幅を600pxに制限 */
   width: 100%; /*カード幅を揃える*/
}

/* サムネイル（大）記事を横並びにする(grid)------------------------------------------ */
.widget-entry-cards.large-thumb {
   display: grid; /* グリッドレイアウトを適用 */
   justify-items: center; /* アイテムを中央揃え */
   gap: 16px; /* アイテム間の隙間を16pxに */
}

/* 新着記事セクション：グリッド化 */
.new-entry-cards.large-thumb {
   grid-template-columns: repeat(3, 1fr); /* 横3列に等間隔で配置 */
}

/* 人気記事サムネイルのグリッド */
.popular-entry-cards.large-thumb {
   grid-template-columns: repeat(3, 1fr); 
}

/* 人気記事部分に背景色追加 */
.section-wrap.pop {
	background-color:#edf7fc;	
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: calc(50vw - 50%);
    padding-left: calc(50vw - 50%);
}

/* 834px以下のグリッド設定 */
@media screen and (max-width: 834px) {
   .new-entry-cards.large-thumb {
   grid-template-columns: 1fr; /* 1列に配置 */
   gap: 0; /* 隙間を0に */
   }
	
  .cate .new-entry-cards.large-thumb,
   .popular-entry-cards.large-thumb {
   grid-template-columns: repeat(2, 1fr); /* 2列に分配 */
   gap: 0; /* 隙間を0に */
   }
}

/* モバイルでのタイトル文字サイズ調整 */
@media screen and (max-width: 834px) {
   .cate .large-thumb .new-entry-card-title,
   .popular-entry-card-title {
   font-size: 14px !important; /* タイトル文字を小さく */
   }
}

/* タブ切り替え---------------------------------------------- */

/* タブコンテナの設定 */
.tab-switch {
	padding-bottom: 0;
   --active-tab-color: #E1F0F7; /* 選択タブの色はここで指定 */
   display: flex; /* タブを横並びに */
   flex-wrap: wrap; /* 幅に応じて折り返し */
   max-width: 100%; /* コンテナの最大幅 */
   margin: auto; /* 中央寄せ */
   justify-content: center; /* 中央揃え */
   gap: 10px 5px; /* タブ間の隙間 */
}

/* タブボタンのスタイル */
.tab-switch > label {
	 flex: 1 1 auto; /* タブ均等幅、幅を超えると折り返す */
   order: -1; /* コンテンツより上に表示 */
   position: relative; /* 起点 */
   padding: .7em 1em; /* 内側余白 */
   border-bottom: 1px solid var(--active-tab-color); /* 下ボーダー */
   color: #555F65; /* 文字色 */
   text-align: center; /* テキスト中央揃え */
   cursor: pointer; /* ポインタ表示 */
   transition:.3s all; /* ゆっくり変化 */
}

/* タブのホバーと選択時のスタイル */
.tab-switch > label:hover,
.tab-switch label:has(:checked) {
   background-color: var(--active-tab-color); /* 背景色を変化 */
   color: #555F65; /* 文字色 */
}

/* 選択タブの下三角形 */
.tab-switch label:has(:checked)::before {
   position: absolute; /* 三角形位置を絶対配置 */
   bottom: -8px; /* 下からの位置 */
   left: 50%; /* 中央寄せ */
   transform: translateX(-50%); /* 中央寄せを調整 */
   width: 18px; /* 三角形の幅 */
   height: 9px; /* 三角形の高さ */
   background-color: var(--active-tab-color); /* 三角形色 */
   content: ''; /* 内容なし */
   clip-path: polygon(0 0, 100% 0, 50% 100%);  /* 三角形の形 */
}

/* ラジオボタン非表示 */
.tab-switch input {
   display: none; /* 非表示 */
}

/* タブのコンテンツエリア */
.tab-switch > div {
   display: none; /* 初期非表示 */
   width: 100%; /* 幅設定 */
   padding: 1.5em 0; /* 内側余白 */
}

/* 選択されたタブの内容表示 */
.tab-switch label:has(:checked) + div {
   display: block; /* チェック時に表示 */
}

/*ウィジェット記事の投稿日・更新日を表示*/
.widget-entry-card-date {
   display:block;
   text-align: right; /*右寄せ*/
}


/***見出しH6カスタマイズ***/
.article h6 {
	padding: 0;
	border-bottom: 0;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", YuGothic, Verdana, Meiryo, "M+ 1p", sans-serif; 
	font-size:1.2rem;/*文字の大きさ*/
	font-weight: 500;
	letter-spacing:0.1em;/*文字間の余白*/
	position: relative;
	border-bottom: 2px solid #E1F0F7;
	padding: 10px 0;
	margin-bottom: 25px;
}

/***トップページ プロフィール画像カスタマイズ***/
.home .wp-block-image{
	margin: 10px 0;
}

.home .has-text-align-center{
	margin-bottom: 10px;/*名前の下の余白を調節*/	
}


/***リンクボタンのカスタマイズ***/
/*リンクボタン*/
.link-btn-top{
		display:block;/*ブロック要素にする*/
		text-decoration: none;/*文字装飾なし*/
        margin:1em auto;/*外側余白*/
        padding: 0em 20px;/*内側余白*/
        text-align: center;/*中央寄せ*/
        border:none;/*枠線（太さ、種類、色）*/
        font-size:.9em;/*文字の大きさ*/
        color:#3D484C;/*文字色*/
        width:150px;/*ボタンの幅*/
		background-color:#E1F0F7;
		border-radius: 100px;
		padding: 10px;
		font-family: "Poppins";
		font-size: 14px;
		letter-spacing: 0.1em;
}
.link-btn-top:hover {
	 background-color: transparent; /* 背景を透明に */
    border: 1px solid #E1F0F7; /* 枠線を表示 */
    color: #3D484C; /* 文字色はそのまま */
}

/***検索ボックスのカスタマイズ***/
input::placeholder{
	font-size: 0.75em;/*「サイト内を検索」の文字サイズ*/
	line-height:1.9;
}

.home.search-submit {
	font-size: 15px;/*「サイト内を検索」のアイコンサイズ*/
	line-height:1.6;
}

.search-edit,
.search-box input[type="text"] {
	border-radius: 3px; /* 少し角丸にする*/
	height:40px;
}

.home .search-box .search-submit { /*アイコン位置を調整*/
    right: 6px; /* 横位置を微調整 */
    top: calc(50% - 24px); /* 縦位置を微調整 */
}

/**********************************************
トップページの固定ページにあるカテゴリーリンク
***********************************************/
body.front-top-page .wp-block-categories a,
body.front-top-page .widget_categories a {
    font-size: 14px;  /* 文字サイズ */
    text-decoration: none; /* 下線なし */
    transition: 0.3s all; /* ホバー時のアニメーション */
}

/* ホバー時 */
body.front-top-page .wp-block-categories a:hover,
body.front-top-page .widget_categories a:hover {
    color: #E1F0F7; /* ホバー時の文字色 */
}

/****************************************
トップページ　タグクラウドのカスタマイズ
*****************************************/
.wp-block-tag-cloud a {
  font-size: 0.8em !important;
  border-radius: 4px; /*角の丸み*/
  background-color: #e1f0f7;
  color: #505050; /*文字色*/
  padding: 3px 14px 3px 6px; /*要素の内部余白*/
  text-decoration: none; /*文字の装飾なし*/
  font-size: 13px; /*文字サイズ*/
  margin: 3px; /*要素の外部余白*/
  flex: 1 1 auto; /*余白分の自動伸縮比率*/
  justify-content: space-between;
}
.wp-block-tag-cloud a::before {
  content: "\f02b"; /* fa-tag */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900; /* solid の場合必要 */
  font-size: 12px;
  padding-right: 4px;
}
.wp-block-tag-cloud a:hover {
	background: #F8F9FA;
　　transition: 0.5s; /*アニメーションの時間*/
}
/****************************************
スマホでグローバルメニューを1行表示
*****************************************/
@media screen and (max-width: 834px){
  /* メニュー全体を横スクロール可能に */
  #navi {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* メニューリストを横並び固定 */
  #navi .navi-in > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    min-width: max-content;
/*     justify-content: flex-start; */
  }
  
  /* 各メニュー項目の設定 */
  #navi .navi-in > ul > li {
    flex-shrink: 0 !important;
    display: inline-block !important;
    float: none !important;
  }
  
  /* メニューリンクの調整 */
  #navi .navi-in > ul > li > a {
    padding: 0.8em 1.2em !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}
/* フッターの運営者情報等を縦一列に */
@media screen and (max-width: 834px){
  .footer-bottom {
    text-align: center !important;
  }
  
  .footer-bottom .footer-bottom-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5em !important;
  }
  
  /* コピーライトとプライバシーポリシー等を縦並びに */
  .footer-bottom-content > * {
    display: block !important;
    margin: 0.2em 0 !important;
  }
}
/* トップページのスタイルここまで -------------------------------------------- */

/* サイト全体の記事カードタイトルを小さく */
.entry-card-title,
.new-entry-card-title,
.popular-entry-card-title {
  font-size: 17px;   /* 好きなサイズに調整 */
  line-height: 1.7;  /* 行間も調整すると読みやすい */
}