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



/*検索ボックスのカスタマイズ（一体型・オーソドックス）*/
/*ここから*/
/*入力欄*/
.search-box .search-edit {
	padding: 8px;
	padding-right: 68px;
	border-color: #999;
}

/*検索ボタン*/
.search-box .search-submit {
	top: 0;
	right: 0px;
	height: 100%;
	width: 60px;
	color: #fff;
	background-color: #999;
	border-radius: 0 4px 4px 0;
}

.search-box .fa-search {
	display: block;
	margin-top: 3px;
}

/*入力欄と検索ボタンの強調の無効化*/
.search-box .search-edit:focus, .search-box .search-submit:focus {
	outline: 0;
	outline-offset: unset;
}
/*ここまで*/



/************************************
** サイドバー（Sidebar）・ウィジェットなど
************************************/
#sidebar h3{
  margin-bottom: 10px;
  font-size:20px;
  color: #000000; /* 文字色 */
border-bottom:3px solid #000000;
}
#sidebar .widget{
  margin-bottom: 45px;
}

.widget_search{
  margin-bottom: 0;
}

#sidebar ul,
#sidebar ol,
.widget-over-article ul,
.widget-over-article ol,
.widget-under-article ul,
.widget-under-article ol,
.widget-over-sns-buttons ul,
.widget-over-sns-buttons ol,
.widget-under-sns-buttons ul,
.widget-under-sns-buttons ol{
  padding-left: 1em;
  list-style:none;
}

.widget-over-article{
  margin-top: 10px;
  margin-bottom: 10px;
}

#sidebar-recent-posts li,
#sidebar-popular-posts li{
  margin:20px 0;
}

#sidebar li{
  margin-bottom:10px;
}

.sidebar-thumbnail-box{
  float: left;
  width: 75px;
}

.sidebar-recent-posts-title{
  float: right;
  width: 165px;
}
  #sidebar-recent-posts h3,
  #sidebar-recent-posts p,
  #sidebar-popular-posts h3,
  #sidebar-popular-posts p{
    margin: 0;
  }

#main .widgets{
  margin-top: 20px;
  margin-bottom: 20px;
}


/*****************************
*カレンダーに枠を付ける
*****************************/

.wp-calendar-table caption{
	position: relative;
	margin-bottom: 1.2em;
	text-align: center;
}
.wp-calendar-table caption:before{
	content: '';
	position: absolute;
	bottom: -5px;
	display: inline-block;
	width: 10%;
	height: 5px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #F06292;
	border-radius: 2px;
}

/*土曜日の色変更（曜日）*/
.wp-calendar-table thead tr th:last-child {
  background-color: #82C4E8;
}

/*日曜日の色変更（曜日）*/
.wp-calendar-table thead tr th:nth-child(1){
  background-color: #FBC0D5;
}


.wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-right: 4px;
  margin-left: 4px;
}
.wp-calendar-nav a {
  text-decoration: none;
  display: inline-block;
  padding: 0 10px;
  background-color: #FFC20D;
  color: #FFF;
  border-radius: 7px;
}


/*見出し h3　カラー　赤に変更*/
.article h3{
	 color:#ff0000;
}



/*見出し h4　カラー　緑に変更　線無し*/
.article h4{
	 border:none;
	 color:#006400;
}





/* インデックスカード タイトル文字色 */
.entry-card-title {
	color:#2f4f4f;
} 

/* インデックスカード 抜粋文字色 */
.entry-card-snippet {
color: #696969;
}

/* インデックスカード ホバー設定 */
.entry-card-wrap:hover{
	transform: translate(-10px,-10px);
    box-shadow: 2px 2px 6px 0 #ccc;
}


/* アイキャッチマウスオーバーで記事を読む */

.card-thumb {
    overflow: hidden;
    position: relative;
  }
.card-thumb::after{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "記事を読む";
    font-family: sans-serif;
    font-weight: bold;
    font-size: 80%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .3s;
}
.entry-card:hover {
    cursor: pointer;
}
.entry-card:hover .card-thumb::after{
    opacity: 1;
    font-size: 130%;
}
.entry-card-2 img {
    transition: .3s;
}
.entry-card:hover .card-thumb img {
    filter: blur(3px) brightness(60%);
    transform: scale(1.1);
}


/* スニペット８行表示 */
.entry-card-snippet.card-snippet.e-card-snippet {
  word-break: break-all; /*表示範囲に合わせて改行*/
  text-decoration: underline dotted #bbb; /*アンダーライン*/
  font-size: 14px; /*フォントサイズ*/
  margin-bottom:18px; /*説明文と日付間の余白*/
  color: #333;
  font-weight: 600; /*文字強調*/
  line-height: 1.6; /*行間設定*/
  overflow: hidden;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}


/* ページ送りナビ設定 */

.pager-post-navi a{/*ページ送りナビ*/
background: #f0f7ff;/*背景色*/
border: 1px dotted #5b8bd0;/*枠の大きさ、スタイル、色*/
}

.pager-post-navi a:hover {/*ホバー*/
	transform: translate(-10px,-10px);
	box-shadow: 2px 2px 6px 0 #ccc;
}


/************************************
** コメント非表示
************************************/


.comment-notes,
.comment-form-email,
.comment-form-url,
.form-allowed-tags{
  display:none;
}



/************************************
** ウィジェットエントリーカード  ホバー
************************************/

.widget-entry-card-content{
 font-size: 10pt;
}

.widget-entry-cards a:hover {/*ホバー*/
	transform: translate(-10px,-10px);
	box-shadow: 2px 2px 6px 0 #ccc;
}



/************************************
** 行間調節
************************************/

.entry-content p {
    line-height: 2em;
    margin: 1em 5px 1em 5px;
}



/* comment-info-bar コメント数表示 */
.comment-info-bar{
    background-color: #f8fff0;
	padding: 3px 3px;
	width:80%;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:2em;
	text-align: center;
    font-size: 90%;
}

/************************************
** 記事タイトル h1　スタイル変更
************************************/

.article h1 {
	color: #006400;
	font-size: 24px;
	padding: 10px 0px 10px 0px;
	border-bottom: 2px dotted red;
}
.article h1::first-letter {
	color: red;
	font-size: 40px;
}



/************************************
** ブログカード 過去の話題
************************************/

.bct-previous .blogcard-label::after {
	content: "過去の話題";
	color: #fff;
}

.bct-previous .blogcard-label{
	background-color: #006400;
}




/************************************
** トグル（アコーディオン）表示　カスタマイズ
************************************/

.toggle-wrap {
	width:80%;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:2em;
}
.toggle-button {
	background-color: #f8fff0; /* 見出しの背景色 */
    font-size: 100%;
	color: #006400; /* 見出しの文字色 */
	border: none; /* 見出しのボーダーを消す */
}
.toggle-button::before {
    font-size: 80%;
	color: #666666; /* 「＋」記号の色 */
}
.toggle-checkbox:checked ~ .toggle-content {
	border: none; /* ボックスのボーダーを消す */
    font-size: 80%;
  background: aliceblue; /* ボックスの背景色 */
}


/* フローティング案内欄 */
.acu-floating-box {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: auto;
    width: 92%;
    max-width: 600px;
    padding: 12px 16px;
    font-size: 14px;
    background: #fffef6;  /* ← かなり淡い黄色 */
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

.acu-floating-box.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* ボタンとの間の余白 */
.acu-floating-box button {
    margin-top: 6px;
}



#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
	width: 0;
	  transition: width 0.12s linear;
  background: #79f295;
  z-index: 9999;
}


/* 年代別 */

.archive-explore {
  width: 80%;
  margin: 2em auto;
  font-size: 90%;
}

.archive-explore-lead {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.6em;
}

.archive-explore-text {
  text-align: center;
  margin-bottom: 1em;
  line-height: 1.6;
}

.archive-explore-ui {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

/* 検索フォーム */
.archive-search {
  display: flex;
  gap: 0.4em;
}

.archive-search input[type="search"] {
  flex: 1;
  padding: 0.4em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 90%;
}

.archive-search button {
  padding: 0.4em 0.8em;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 4px;
  font-size: 90%;
  cursor: pointer;
}

/* 年アーカイブ */
.archive-explore select {
  width: 100%;
  padding: 0.4em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 90%;
}


