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

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

.sidebar .search-box, .search-menu-content .search-box {
  width: 100%;
  margin: 1em 0 2em;
  position: relative;
  display: flex;
  border-radius: 50px; /*全体を囲むボックスの角丸*/
  box-shadow:0px 4px 6px 0px #c4c4c4; /*全体を囲むボックスのシャドウ*/
}
.search-menu-content .search-box {
  box-shadow:0px 4px 6px 0px #333; /*スライドイン表示でのシャドウ*/
}
.sidebar .search-edit, .search-menu-content .search-edit {
  width: 80%; /*入力部分の長さ*/
  background: #fff; /*入力部分の背景色*/
  padding: 0 10px;
  border: none; /*ボーダーを消す*/
  border-radius: 50px 0 0 50px; /*左上、左下のみ角丸*/
  font-size: 16px;
}
.search-submit {
  width: 20%; /*ボタン部分の長さ*/
  background: #673bbb; /*ボタン部分の背景色*/
  color: #ff00ff; /*アイコンの色*/
  position: static;
  right: auto;
  top: auto;
  font-size: 20px; /*アイコンの大きさ*/
  cursor: pointer;
  line-height: 40px; /*検索窓の高さ*/
  border: none;
  border-radius: 0 50px 50px 0; /*右上、右下のみ角丸*/
  padding: 0;
}
.search-box input::placeholder {
  color: #bbb; /*プレースホルダーの色*/
}
.search-box input:focus, .search-box button:focus {
  outline: 0; /*フォーカス時の枠線を消す*/
}

/* マウスオーバー時の背景色 */
.search-submit:hover {
    color: #72ffff;
	background: #72ffff;
    }

.tagcloud a .tag-caption:hover{
	background: #72ffff;
}
.tagcloud a .tag-link-count:hover{
	background: #72ffff;
}



/*ヘッダーの文字と背景の色を変える*/
/*.search-menu-button.menu-button,
.navi-menu-button.menu-button{
	color:  #FFFFFF!important;
	background-color: #FFFFFF!important;
	height: 45px;
	padding-top: 8px;
}

.logo-menu-button.menu-button{
	background-color: #FFFFFF!important;
	height: 45px;
}
/*ヘッダーの文字と背景の色を変える追加CSS*/
/*.menu-button-in{
	color: #FFFFFF!important;
	background-color: #ff00ff!important;
	height: 45px;
}*/

/*768px以下でロゴの大きさ変更*/
@media screen and (max-width: 768px){
img.site-logo-image{
	width: 200px;
	margin: 2px auto 0;
}
}
/*スライドインメニューを右から*/
.navi-menu-content{
	left: auto;
	right: 0;
	background-color: rgba(30,124,209,0.5);
	transform: translateX(101%);
}
.menu-drawer a{
	font-size: 1.1em;/*文字の大きさ*/
	color: #fff;/*文字の色*/
	height: 3em;/*行の高さ*/
}

.menu-drawer a:hover{
	color: rgba(255,255,255,0.7);
	background-color: rgba(30,124,209,0);
}
/*---SNSボタンを丸くする---*/
#main .button-caption {
	display: none; /*キャプション非表示*/
}

/*SNSシェアボタン*/
.sns-share-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-share-buttons {
	flex-wrap: nowrap; /*折り返さない*/
	justify-content: center; /*中央寄せ*/
}
.sns-share-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-share a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}

/*SNSフォローボタン*/
.sns-follow-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-follow-buttons {
	justify-content: center; /*中央寄せ*/
}
.sns-follow-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-follow a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}

/*コードブロック折り返し有効化*/
.wp-block-code code{
	white-space: pre !important;
}

/************************************
** 記事内目次
************************************/
/* 目次 */
.toc {
 background: #fff; /* 背景色 */
 border: 2px solid #8491c3; /* 枠線 */
 border-radius: 3px;
}
.toc-title {
 background-color: #8491c3; 
 padding: 3px;
 font-size: 1.2rem;
 color: #fff; /* 文字色 */
 font-family: "メイリオ"; /* フォント */
 border-radius: 3px;
}
.toc-title:before{ /* タイトル前のアイコン */
 font-family: "Font Awesome 5 Free";
 content: "\f15b";
 margin-right: 5px;
 margin-left: 5px;
}
.toc a{
	color: #6a859c;
}
.toc li {
padding: 3px;
list-style: none;
position: relative;
line-height: 1.5;
padding: 0.5em 0 0.5em 1.4em;
/*border-bottom: dashed 1px #57697f; /* 点線 */
list-style-type: none important;
}
.toc li:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f054"; /* 矢印アイコン */
position: relative;
left : -0.5em;
color: #8491c3;
}

/************************************
** Code Copy
************************************/

/*----- Copy Button -----*/
.lvg-code-copybtn {
  position: absolute;
  margin: 4px;
  top: 0px;
  right: 0px;
  padding: 0px 6px 0px;
  border: none;
  border-radius: 20%;
  font-size: 18px;
  color: #ccc;
  background-color: #000;
  opacity: 0.9;
  transition: 0.3s;
}
.lvg-code-copybtn:hover {
  cursor: pointer;
  color: #fff;
  opacity: 1;
}
.lvg-code-copybtn:hover:fucus {
  background-color: #ccc;
}
.lvg-code-copybtn:hover:active {
  background-color: #ccc;
}
.lvg-code-copybtn::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0c5";
  background-color: transparent;
}

/*----- Copy Button Notice -----*/
.lvg-code-copybtn-notice {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  top: 5px;
  right: calc(100% + 4px);
  padding: 2px 6px 0px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 13px;
  color: #000;
  background: #fff;
}
.lvg-code-copybtn-notice-after {
  visibility: visible;
}

/*=== [OPTION] for RWD ===*/
@media screen and (max-width: 1240px) {
  /*----- Copy Button -----*/
  .lvg-code-copybtn {
    margin: 3px;
    padding: 0px 6px 0px;
    font-size: 14px;}
  /*--- Copy Button notice ---*/
  .lvg-code-copybtn-notice {
    top: 1px;
    right: calc(100% + 2px);
    padding: 2px 6px 0px;
    border-radius: 3px;
    font-size: 11px;
  }
}
/************************************
****　サイドバーアレンジ
************************************/
#sidebar>.widget{
border-radius:10px;
}
.widget_search{
padding:0;
}
span.fas.fa-search::before{
color:#fff;/*検索マーク色変更はこちら*/
}
.sidebar h3{
color:#7b7b7b;
border-radius: 0%;
border-bottom:3px dotted;
border-color:#72ffff;/*タイトル下のライン色変更はこちら*/
padding-bottom:0.3em;
margin-top:-0.5em;
margin-bottom:1em;
}
.widget_recent_entries ul li a, .widget_categories ul li a, .widget_archive ul li a, .widget_pages ul li a, .widget_meta ul li a, .widget_rss ul li a, .widget_nav_menu ul li a {
background-color:#f7f7f7;
margin: 6px 0;
padding: 4px 10px;
border-radius:20px;
transition: 0.4s
}
.widget_recent_entries ul li a:hover, .widget_categories ul li a:hover, .widget_archive ul li a:hover, .widget_pages ul li a:hover, .widget_meta ul li a:hover, .widget_rss ul li a:hover, .widget_nav_menu ul li a:hover{
background-color:#72ffff;/*マウスオーバー時の背景色変更はこちら*/
color:#fff!important;
}
.tagcloud a{
background-color:#f7f7f7;
}
.tagcloud a:hover{
background-color:#72ffff;/*マウスオーバー時の背景色変更はこちら*/
color:#fff!important;
transition: 0.4s ;
}
.nwa .recommended.rcs-card-margin a {
margin: 0 0 1em;
width: 90%;
}
.widget-entry-cards .widget-entry-card-content{
color: #565656;
}

/* タブ切り替え 新着記事-人気記事 開始 */
.tab-wrap {
	background: #F9FFFF;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	padding: 0 0 20px;
}

.tab-label {
	color: Gray;
	cursor: pointer;
	flex: 1;
	font-weight: bold;
	order: -1;
	padding: 12px 24px;
	position: relative;
	text-align: center;
	transition: cubic-bezier(0.4, 0, 0.2, 1) .2s;
	user-select: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	border-bottom: 3px solid #ddd;
}

.tab-label:hover {
	background: rgba(100, 100, 100,.1);
}

.tab-switch:checked + .tab-label {
	color: #545454;
}

.tab-label::after {
	background: #545454;
	bottom: -3px;
	content: '';
	display: block;
	height: 3px;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(100%);
	transition: cubic-bezier(0.4, 0, 0.2, 1) .2s 80ms;
	width: 100%;
	z-index: 1;
}

.tab-switch:checked ~ .tab-label::after {
	transform: translateX(-100%);
}

.tab-switch:checked + .tab-label::after {
	opacity: 1;
	transform: translateX(0);
}

.tab-content {
	height:0;
	opacity:0;
	padding: 0 10px;
	pointer-events:none;
	transform: translateX(-30%);
	transition: transform .3s 80ms, opacity .3s 80ms;
	width: 100%;
}

.tab-switch:checked ~ .tab-content {
	transform: translateX(30%);
}

.tab-switch:checked + .tab-label + .tab-content {
	height: auto;
	opacity: 1;
	order: 1;
	pointer-events:auto;
	transform: translateX(0);
}

.tab-wrap::after {
	content: '';
	height: 20px;
	order: -1;
	width: 100%;
}

.tab-switch {
	display: none;
}
/* タブ切り替え 新着記事-人気記事 終了 */

/************************************
** タブ切り替え 本のおすすめアレンジ
************************************/
.content-set {
  height:0;
  opacity:0;
  padding: 0 10px;
  pointer-events:none;
  transform: translateX(-30%);
  transition: transform .3s 80ms, opacity .3s 80ms;
  width: 100%; /* widthを変更 */
  display: flex; /* flexboxを利用 */
  flex-wrap: wrap; /* 画像が折り返されるようにする */
  justify-content: space-between; /* 等間隔に表示する */
}

.content-set >img {
  width: calc(50% - 7.5px); /* 画像とリンクを等間隔に並列に表示する */
  margin-bottom: 0; /* 画像とリンクの下に余白を設定 */
  box-sizing: border-box; /* borderやpaddingが幅に含まれるようにする */
}

.tab-switch:checked ~ .content-set {
  transform: translateY(30%);
}

.tab-switch:checked + .tab-label + .content-set {
  height: auto;
  opacity: 1;
  order: 1;
  pointer-events:auto;
  transform: translateY(0);
}

.book-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.book-card {
  background: linear-gradient(145deg, #f4f6f9, #e8ecf3);
  border: 1px solid #d0d7e1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.book-card img {
  width: 100px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 4px;
}

.book-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* ▼ レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .tab-label {
    padding: 10px;
    font-size: 14px;
  }

  .book-card img {
    width: 80px;
  }

  .book-card {
    padding: 12px;
  }
}

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

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

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