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

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

.front-top-page .notice-area {
  display: none;
}



/****************************
 * フォント設定 
 * **************************/


/***************************************
 *背景色変更
 * *********************************/



/***************************************
 * 目次のデザインを変更 
 * *********************************/

/*目次*/
.article .toc {
	width: 100%;
	max-width:600px;/*外枠の最大幅を指定*/
	border-color: #686868;/*外枠の線の色*/
	font-size: 88%;
	box-sizing: border-box;
	margin: 30px auto;/*上下に30pxマージン・左右中央寄せ*/
	padding: 1em 2em;
	line-height: 1.8;
}

.article .toc ul {
	margin: 0;
	padding-left: 0;
	line-height: 1.5;
}

.article .toc ul li {
	margin:1px;
	text-indent: 0;
}

.article .toc ul a {
	display: block;
	padding: 10px 0;
	text-decoration: none;
	color: #5E5E5E; /*リンク色*/
	border-bottom: 1px dotted #cccccc; /*リンク下線*/
}

.article .toc li > ul {
	padding-left: 5%; /*hタグの種類で先頭左スペースのサイズが変わる*/
}



/***************************** 
 * 見出し変更 
 * **************************/

/***** h2のデザインを変更 ****/
.article h2 {
  position: relative;
  margin: 48px 0 1em 0; /* 上下の余白 */
  padding: 10px 20px; /* 内側の余白 */
  font-size: 1rem; /* フォントサイズ */
  line-height: 1.7;
  letter-spacing: 0.015em;
  text-align: left;
  box-shadow: 6px 6px rgba(51, 51, 51, 0.5); /* ずれた影 */
  outline: 5px solid #F9F9F7; /* 白い枠 */
  border: 1px solid #333; /* 外枠 */
  background: #ffffff; /* 背景色を白に変更 */
  color: inherit; /* 文字色も継承 */
}


/* 疑似要素の完全削除 */
.article h2::before,
.article h2::after {
  content: none !important;
}

/************* h3のデザインを変更 ******************/
.article h3 {
    background: none !important; /* 背景を解除 */
    border: none !important; /* 枠線を解除 */
    box-shadow: none !important; /* 影を解除 */
    outline: none !important; /* フォーカス時の線を解除 */
    color: #4a5661; /* 文字色を変更 */
    font-size: 28px !important; /* フォントサイズを調整 */
    font-weight: 700; /* フォントの太さを設定 */
    line-height: 1.5; /* 行間を調整 */
    margin-bottom: 3px; /* 下の余白をさらに減らす */
  /*   margin-left: 0 !important; /* 左の余白を削除 */
    padding-left: 0 !important; /* 左のパディングも削除 */
}
.article h3::before,
.article h3::after {
    content: none !important; /* 疑似要素による装飾を解除 */
}

/************** h4のデザインを変更 ****************/
/* 元の h4 デザインを無効化 */
.article h4 {
  all: unset;
}

/* 新しい h4 デザイン */
.article h4 {
  position: relative;
  padding-left: 1.5em; /* アイコン分のスペース */
  line-height: 1.6;
  color: #c8a94a; /* 少し明るい、落ち着いた黄色 */
  font-size: 1.2rem; /* テキストサイズ */
  margin-bottom: 0.8em; /* h4の下に隙間を追加 */
}

.article h4::before {
  font-family: "Font Awesome 5 Free";
  content: "\f00c"; /* アイコンのユニコード */
  font-weight: 900;
  position: absolute;
  font-size: 1em; /* アイコンサイズ */
  left: 0; /* アイコンの位置 */
  top: -5px; /* アイコン位置を少し上に調整 */
  color: #d9c27d; /* くすんだ黄色 */
}

/*====================================================
 * 横並び表示
 * ====================================================*/
.is-list-horizontal .swiper-button-prev{
  display: flex;
}


/*==============================マーカーの色を変更する================================ */
.marker {background-color: #fff6c4; }
.marker-red {background-color: #efe1da; }
.marker-blue {background-color: #e3f3f4; }

.marker-under {
background: linear-gradient(transparent 60%, #fff6c4 60%);
}
.marker-under-red {
background: linear-gradient(transparent 60%, #efe1da 60%);
}
.marker-under-blue {
background: linear-gradient(transparent 60%, #e3f3f4 60%);
}


/**************************************** 
 * ブログカードでファビコンを消す
 * *************************************/
/* ファビコンを非表示にする */
.internal-blogcard .blogcard-favicon {
    display: none !important;
}
/* ブログカードで日付を消す*/
.skin-grayish .internal-blogcard .blogcard-date {
    display: none !important; /* 日付を完全に非表示 */
}


/*======================================サイドバー=================================== */
.sidebar h3 {
    background: none;
    font-size: 17px;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    width: 100%;
    padding: 0;
    text-align: center;
    color: #5B6366; /* 文字色を指定 */
}

.sidebar h3::before, .sidebar h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 26%; /* セミコロンが必要 */
    border-top: 3px solid #696969;
}

.sidebar h3::before {
    left: 0;
}

.sidebar h3::after {
    right: 0;
}


/*==================== toc　目次の色変えと追尾とスクロール============================= */
.widget_toc{
	max-height: 600px; /* 目次の高さを調整 */
	overflow-y: auto; /* 垂直スクロールバーを有効にする */
}
/* スクロールバーのスタイルを調整（サイドバー目次） */
.widget_toc::-webkit-scrollbar {
    width: 10px; /* スクロールバーの幅 */
}

.widget_toc::-webkit-scrollbar-track {
    background: #f1f1f1; /* スクロールバーのトラックの背景色 */
}

.widget_toc::-webkit-scrollbar-thumb {
    background: #aaa; /* スクロールバーのつまみの色 */
}

.widget_toc::-webkit-scrollbar-thumb:hover {
    background: #999; /* スクロールバーのつまみのホバー時の色 */
}



/* toc====================== */
/* h1 */
.toc-list li a.current {
    background-color: #ebf1f5 !important; /* 新しい背景色 */
    color: inherit; /* 文字色を変更しない */
}

/* h2 */
.toc-list ol > li:has(a.current) {
    background-color: #ebf1f5 !important; /* 新しい背景色 */
}

.toc-list li a:hover {
    background-color: #ebf1f5; /* 新しい背景色 */
    color: inherit; /* 文字色を変更しない */
}



/************************************
 *  人気記事ランキング style1
************************************/
/* サイドバーを完全に除外するデザイン */
.widget-entry-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に分け、各列の幅を均等（1fr）に設定 */
    gap: 16px; /* 各グリッドアイテムの間に16pxの隙間を設定 */
}

/* サイドバー内は適用しない */
.sidebar .widget-entry-cards {
    display: block; /* サイドバー内のスタイルを通常のブロック表示に戻す */
}

/* モバイル用（サイドバー外のみ適用） */
@media (max-width: 768px) {
    .widget-entry-cards {
        grid-template-columns: repeat(2, 1fr); /* モバイルでは2列にする */
        gap: 0; /* 隙間を0にする */
    }

    .sidebar .widget-entry-cards {
        grid-template-columns: none; /* サイドバー内では通常のスタイル */
    }
}


/***** 人気記事タイトルのフォントサイズを小さくする *****/
.widget-entry-cards .card-title {
    font-size: 14px; /* サイズを14pxに変更（お好みで調整） */
}

/************* 人気記事ランキング見た目を丸に *************/
/* 人気記事ランキング style2 */
.widget-entry-cards.ranking-visible .card-thumb::before {
  top: 3px!important; /* 位置を少し下に変更 */
  left: -5px!important; /* 左からの位置はそのまま */
  border-radius: 100%; /* 丸みはそのまま */
  width: 30px; /* 幅を調整 */
  height: 30px; /* 高さも調整 */
}

/******************** 
 *ブロックの編集
 * *********************/

/*======= 詩のデザイン変更 =======*/
pre.wp-block-verse {
    border-radius: 12px; /* 角を丸くする */
    padding: 20px; /* 内側の余白 */
    background-color: #E1E6E1; /* 淡いグレー */
    color: #4C5A67; /* 文字色は落ち着いたグレーに */
    border: none; /* 枠線なし */
    font-family: 'Georgia', serif; /* 詩の内容に合ったフォント */
    line-height: 1.6; /* 行間を広げて読みやすく */
    text-align: center; /* 中央揃え */
}

/* 詩のブロック内のリンク色 */
pre.wp-block-verse a {
    color: #4C5A67; /* リンクも落ち着いたグレー */
    text-decoration: none; /* 下線をなくす */
}

pre.wp-block-verse a:hover {
    text-decoration: underline; /* ホバー時に下線を追加 */
}



/* ＝＝＝＝＝＝＝＝＝＝引用blockの角を丸める＝＝＝＝＝＝＝＝＝＝＝ */
blockquote{
  border-radius: 20px; /*角を丸める*/
}


/****************************** 
 * 画像を画像の上に表示
 * ****************************/
.new-entry-cards a {
	position: relative;/*起点となる位置*/
}


/*********************** 
 * カテゴリーラベル 
*************************/

/************ カテゴリーラベル非表示 **************/
.cat-label {display:none}


/*********投稿本文中カテゴリーのカスタマイズ*********/
.entry-categories a {
  border-radius: 0px; /*角の丸み*/
  background-color: #8195a2; /*背景の色*/
  color: #ffffff; /*アイコンと文字の色*/
}

/*投稿本文中カテゴリー：ホバー時のカスタマイズ*/
.entry-categories a:hover {
  color: #ffffff; /*アイコンと文字の色*/
}



/************************************
** ブログカード変更
************************************/
.blogcard-snippet,
.blogcard-footer {
  display: none;
}
.blogcard-wrap {
  transition: all .3s;
  max-width: 600px;
  margin: 2em auto;
}
.blogcard {
  border:1px solid #eaeaea !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
  padding: 10px;
}
.blogcard-wrap:hover {
  background: none;
  transform: translateY(-3px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, .1);
}
.blogcard-thumbnail {
  margin: 0;
}
.blogcard-thumbnail img {
  display: block;
}
.blogcard-title {
  color: #555;
  letter-spacing: 0.5px;
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0 0;
  height: 45px;
  overflow: hidden;
}
.blogcard-content {
  min-height: auto;
  margin-left: 185px;
  padding-right: 6px;
}
.blogcard-label {
  top: -11px;
  left: 9px;
  padding: 3px 0.6em;
  background:#aaa;
  padding: 1px 10px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
}
.blogcard-content:after {
  content: "クリックして読む";
  background: #aac2d2; /* 背景色 */
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  width: 180px;
  border-radius: 20px;
  font-size: 13px;
  padding: 1px 0;
  margin-top: 6px;
}
@media screen and (max-width: 834px) {
  .blogcard-content {
    margin-left: 130px;
  }
  .blogcard-title {
    font-size:12px;
    line-height: 1.5;
    height: 35px;
    margin:0;
  }
  .blogcard-content:after {
    content: "タップして読む";
  }
  .blogcard-thumbnail{
    width:120px;
  }
}
@media screen and (max-width: 560px) {
  .blogcard-content:after {
    width: 120px;
    font-size: 12px;
  }
  .blogcard-title {
    margin:0;
  }
}
@media screen and (max-width: 320px) {
  .blogcard-thumbnail {
    width: 100px;
  }
  .blogcard-content {
    margin-left: 110px;
  }
  .blogcard-title {
    height: 35px;
  }
}


/*********************** 
 * タグクラウドのデザイン変更 
*************************/
.tagcloud a {
   /* 背景色と文字色の指定 */
   background: none; /* 背景を消す */
   color: #687782; /* 文字色 */
   
   /* 不要な枠線を削除 */
   border: none; /* 枠線を完全に消す */
   border-radius: 20px; /* 角の丸み（必要に応じて残す） */

   /* サイズや配置に関するスタイル */
   padding: 3px 10px; /* 要素の内部余白 */
   text-decoration: none; /* 文字の装飾なし */
   font-size: 13px; /* 文字サイズ */
   margin: 2px; /* 要素の外部余白 */
   display: inline-block; /* フレックスを無効にしてデフォルトのブロック設定に戻す */
}

.tagcloud a:hover { 
   background: #687782; /* カーソルを合わせた時の背景色 */
   color: #fff; /* カーソルを合わせた時の文字色 */
   transition: 0.5s; /* アニメーションの時間 */
   /* 枠線が不要なら border を指定しない */
}



/***************************
** グローバルナビのカスタマイズ
****************************/
/* ナビメニュー 文字*/
#navi {
	font-family: '○○', sans-serif;/*〇〇にはお好きなGoogleフォントを入力*/
	font-weight: bold; /* 太文字 */
	letter-spacing: 0.12em;/*字間を広げる*/
	color: #333;
}
.navi-in a {
	font-size: 13px;/*文字サイズ*/
}

/* safari文字の太さ指定 */
_::-webkit-full-page-media, _:future, :root  
#navi {
	-webkit-text-stroke-width: .1px !important; 
}

 /* ブラウザChromeのみ太文字にする */
@media screen and (-webkit-min-device-pixel-ratio:0){
  #navi {
	-webkit-text-stroke-width: .4px !important;
}
}

/* ナビメニュー 下線*/
#navi .navi-in a::after {
	position: absolute;/*線の位置を絶対配置に*/
	bottom: 12px;/*線の位置*/
	left: 0;
	content: '';
	width: 100%;
	height: 2px;/*線の太さ*/
	background: #FFF035;/*線の色*/
	transform: scale(0, 1);
	transform-origin: center top;
	transition: transform 0.3s;/*変形の時間*/
}

#navi .navi-in a:hover::after {
	transform: scale(1, 1);
}

/* タブレットメニュー中央寄せ */
@media screen and (max-width: 768px){
#navi-in{
	display: flex;
	justify-content: center;
}
}

/*スマホメニューを横スクロール*/
@media screen and (max-width: 480px){
#header-container .navi-in > ul li {
   height: auto;
   font-weight: 600;
   line-height:1.3;
}
#header-container #navi a{
   color:#222; /* 文字色 */
   padding:0.8em 1em;
}
#header-container #navi a:hover{
   color:#222; /* マウスホバー時の文字色 */
}
#header-container .navi-in > ul > .menu-item-has-children > a::after {
   top: 0.8em;
   font-size: 1.2em;
   font-weight: 600;
}
#header-container .sub-menu .caption-wrap{
   padding-left:1em;
}
.navi-in > ul .menu-item-has-description > a > .caption-wrap{
   height:auto;
}
}	
@media screen and (max-width: 1030px){
  #header-container .menu-mobile{
    display:none;
  }
  .navi-in > .menu-mobile{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    overflow-x: scroll;
    white-space: nowrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
  #header-container #navi a{
    font-size:0.8em;
    padding: 1em 1.2em;
  }
  #header-container .navi-in > ul > .menu-item-has-children > a::after{
    display:none;
  }
  #navi .navi-in > .menu-mobile li {
    height: auto;
    line-height: 1.8;
  }
  .mblt-header-mobile-buttons {
    margin-top: 53px;
  }
}


/************************************
**アピールエリアを画面いっぱいに
https://tachimade.com/cocoon-appeal-area/
************************************/
.apple{
height:98vh;
background-position:center;
}
.appeal-in{
width:100%;
height:98vh!important;
background-color:rgba(255,255,255,.5);/*画像をちょっと白っぽくしている*/
}
.appeal-content {
background-color:transparent;/*ロゴ部分の背景色を透明にしている*/
}
.appeal-logo{
width:200px;/*ロゴの大きさ*/
}



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

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

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