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

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

/* 20250201 変更  20230203 カテゴリー折り畳み機能 ここから */

/* 子カテゴリのパディングを狭める */
.widget_categories ul li a {
    padding: 3px 0;
}

/* デフォルトで、子カテゴリを非表示状態にする */
.widget_categories ul li.cat-item > ul.children {
    display: none;
}

/* 親カテゴリの開閉時に「＋」「ー」を切り替える&右端に表示させる */
.widget_categories > ul > li.cat-item > a {  /* a.cf -> a */
    position: relative;
}

.widget_categories > ul > li.cat-item > a:after{/* 閉じている時 */   /* a.cf -> a */
    content: "＋";
    display:inline-block; /*改行させないようにする*/
    position: absolute;
    right: 5px;
}

.widget_categories > ul > li.cat-item > a.active:after{/* 開いている時 */    /* a.cf -> a */
    content: "－";
    display:inline-block; /*改行させないようにする*/
    position: absolute;
    right: 5px;
}

/* 親カテゴリのアイコンを変更する（各種） */
/* li.cat-item-[XX]の部分は、あなたの環境での番号に置き換えてください。 */
.widget_categories ul li.cat-item-7 > a:before {    /* a.cf -> a */
    font-family: "Font Awesome 5 Free";
    content: '\f0da';
/*    width: 10%;  */
    padding-right: 7px;
    font-weight: 900;
    display: inline-block;
}
.widget_categories ul li.cat-item-2 > a:before {    /* a.cf -> a */
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
/*    width: 10%;  */
    padding-right: 7px;
    font-weight: 900;
    display: inline-block;
}
.widget_categories ul li.cat-item-32 > a:before {    /* a.cf -> a */
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
/*    width: 10%;  */
    padding-right: 7px;
    font-weight: 900;
    display: inline-block;
}
.widget_categories ul li.cat-item-15 > a:before {    /* a.cf -> a */
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
/*    width: 10%;  */
    padding-right: 7px;
    font-weight: 900;
    display: inline-block;
}

/* 子カテゴリのアイコンを変更する */
.widget_categories ul li.cat-item > ul.children > li.cat-item > a:before {    /* a.cf -> a */
    font-family: "Font Awesome 5 Free";
    content: "\f0c1";
    padding-right: 7px;
    font-size: 0.8em;
    font-weight: 900;
}

/* 親カテゴリの記事数（post-count）を無効化（非表示） */
.widget_categories > ul > li.cat-item > a > .post-count {  /* 20250201 .cf -> a に変更 */
    display: none;
}

/* 20250201 変更 20230203 カテゴリー折り畳み機能 ここまで */

/* 20250201 アーカイブ階層化 ここから */
/************************************
** 折り畳みアーカイブウィジェット
************************************/
/* デフォルトで、子カテゴリを非表示状態にする */
.widget_archive .years ul {
    display: none;
}
.widget_archive a.year{
  cursor: pointer;
  padding: 3px 0;
}
.widget_archive ul li a{
  padding: 3px 0;
}
.widget_archive a.year:before {
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
    padding-right: 7px;
    font-weight: 900;
    display: inline-block;
}
/* .widget_archive > ul.years > li.year > a.year:after {/* 閉じている時 */
.widget_archive a.year::after {/* 閉じている時 */
    content: "＋";
    display:inline-block; /*改行させないようにする*/
    position: absolute;
    right: 5px;
}
/*.widget_archive > ul.years > li.year > a.year.active:after {/* 閉じている時 */
.widget_archive a.year.active::after {/* 閉じている時 */
    content: "－";
    display:inline-block; /*改行させないようにする*/
    position: absolute;
    right: 5px;
}
.widget_archive ul.month {
	padding-left: 20px;
}
/*
.widget_archive .years ul {
  -webkit-transition: .5s ease;
  transition: .5s ease;
  margin: 0;
  margin-bottom: 1em;
}
*/

#sidebar .widget_archive ul.years li {
  margin-bottom: 0;
}
#sidebar .widget_archve ul.month li a {
	margin-left: 3em;
}
/* 子カテゴリのアイコンを変更する */
#sidebar .widget_archive ul li ul.month li a:before {
    font-family: "Font Awesome 5 Free";
    content: "\f0c1";
    padding-right: 7px;
    font-size: 0.8em;
    font-weight: 900;
}
/*
.widget_archive ul.years .hide {
  margin: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
} */
/* 20250201 アーカイブ階層化 ここまで */

/* 20230205 コードブロック内のスクロールを有効化 ここから */
.wp-block-code code{
	white-space: pre !important;
}
/* 20230205 コードブロック内のスクロールを有効化 ここまで */

/* 20230205 reCAPTCHA のバッジを非表示 ここから */
/* .grecaptcha-badge { visibility: hidden; } */
/* 20230205 reCAPTCHA のバッジを非表示 ここまで */

/* 20230221 サイトロゴの変更　ここから */
/* 20230402 縁取りを白 (#ffffff) に変更 20230408 黒 (#000000) に戻す*/
/*サイトロゴのフォント変更-縁取り黒 */
.logo-header a span{
/* font-family: 'Avenir','Helvetica Neue'; */
font-weight: bold;
font-size:40px;

text-shadow:2px 2px 0 #000000, -2px -2px 0 #000000,
              -2px 2px 0 #000000, 2px -2px 0 #000000,
              0px 2px 0 #000000,  0 -2px 0 #000000,
              -2px 0 0 #000000, 2px 0 0 #000000;
}
/* 20230221 サイトロゴの変更　ここまで */

/* 20230226 プロフィール欄のリンクアイコンを修正 ここから */
/* リンクアイコンのデザインを丸くする */
.author-box .sns-follow .sns-follow-buttons a.follow-button {
  font-size: 36px;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  margin-right: 10px;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 5px 0 rgba(0,0,0,.1),0 3px 5px 0 rgba(0,0,0,.2);
}

/* アイコンをセンタリングする */
.author-box .sns-follow-buttons a.follow-button span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* リンクアイコンの背景色にSNSのブランドカラーを設定する */
.author-box .sns-follow-buttons a.website-button {
	background-color: #47555c !important;
}

.author-box .sns-follow-buttons a.twitter-button {
  background-color: #000000 !important;
}

.author-box .sns-follow-buttons a.bluesky-button {
  background-color: #0085ff !important;
}

.author-box .sns-follow-buttons a.feedly-button {
  background-color: #6cc655 !important;
}

.author-box .sns-follow-buttons a.rss-button {
  background-color: #f26522 !important;
}
/* 20230226 プロフィール欄のリンクアイコンを修正 ここまで */

/* 20240125 カテゴリーラベル非表示 ここから */
.entry-card .cat-label,
.related-entry-card .cat-label{
 display: none;
}
/* 20240125 カテゴリーラベル非表示 ここまで */

/* 20240302 コードにコピーボタンを追加 ここから */
/*----- 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;
  }
}
/* 20240302 コードにコピーボタンを追加 ここまで */

/* 20240326 SNS シェアボタン色の修正 ここから */
.bluesky-button {
	background-color: var(--cocoon-bluesky-color) !important;
}

.x-corp-button {
	background-color: var(--cocoon-twitter-color) !important;
}
/* 20240326 ボタン色の修正 ここまで */

/* 20250131 タブブロックの表示修正 ここから */
/*   20250131 修正完了
 *    CSS側 : is-active を再設定 (元は cocoon-master の style.css で定義)
 *    JS側  : tab-frontend.js を "JS除外" と "JS Deferred / Delayed 除く" の両方に入れる
 */
.tab-label-group .tab-label.is-active {
  background-color: var(--cocoon-tab-label-active-color); /* #404453; */ 
  color: var(--cocoon-white-color);  /* #fff; */
}
.tab-content-group .tab-content.is-active {
    display: block;
}
/* 20250131 タブブロックの表示修正 ここまで */

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
/* 20230226 スマホ用のページネーションボタンを大きくする ここから */
/* 前、次のボタンを表示しない */
a.prev, a.next {
  display: none;
}
/* ページネーションボタンを大きくする */
.page-numbers {
  width: 48px;
  height: 48px;
  line-height: 48px;
}
/* 20230226 スマホ用のページネーションボタンを大きくする ここまで */
}
