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

/***********************************
** 目次ｸﾘｯｸで飛ぶ時に見出しが見やすい位置調整
***********************************/
span[id^="toc"] {
padding-top: 3.0em;  /* 数値変更で調整可能 */
}


**********************************
ブログカードに「続きを読む」を追加
**********************************
.internal-blogcard-footer{
	display: none/* ブログカード内のアイコンとURLを表示しない */
}

.blogcard-snippet{
display: none;/*投稿冒頭にある説明文を非表示*/
}

/* 続きを読む 追加と体裁を整える */
.internal-blogcard::after{
	content: '続きを読む \00bb';
	position: absolute;
	bottom: .5rem;
	right: 1rem;
	font-size: 70%;
	background-color: #d8d8d8; /* 続きを読む の背景色 */
	padding: .4em 3em;
	font-weight: bold;
	color: #6d6d6d; /* 続きを読む の文字色 */
	border-radius: 10px;
}
************************************
** トップのカテゴリタブ色枠変更
************************************/
/*トップページのタブ（選択前）*/
.index-tab-button{
color: #6d6d6d;/*文字色*/
font-size: 30px!important;/*文字の大きさ*/
background: #d8d8d8!important;/*背景色*/
border: solid 0.3px #fff!important;/*枠線の種類・太さ・色*/
}
/*トップページのタブ（選択後）*/
#index-tab-1:checked~.index-tab-buttons .index-tab-button[for=index-tab-1],
#index-tab-2:checked~.index-tab-buttons .index-tab-button[for=index-tab-2],
#index-tab-3:checked~.index-tab-buttons .index-tab-button[for=index-tab-3],
#index-tab-4:checked~.index-tab-buttons .index-tab-button[for=index-tab-4]{
color: #545454;/*選択後の文字色*/
background: #e8e8e8!important;/*選択後の背景色*/
font-weight: 600;/*文字の太さ*/
}
	
**********************************
/*チェックボックス*/
.checkbox{
	margin-bottom: 1.5em;
}

.checkbox-input{
  display: none;
}

.checkbox-parts{
  padding-left: 23px;
  position:relative;
}

.checkbox-parts::before{
  content: "";
  display: block;
  position: absolute;
  top: 0px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #999;
  border-radius: 4px;
}

/*.checkbox-input:checked + .checkbox-parts{
  color: #009a9a;
}*/

.checkbox-input:checked + .checkbox-parts::after{
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  left: 5px;
  width: 7px;
  height: 14px;
  animation: check .1s forwards;
  transform: rotate(40deg);
  border-bottom: 3px solid #009a9a;
  border-right: 3px solid #009a9a;
}

@keyframes check {
  0% {
    width: 0px;
    height: 0px;
    top: 9px;
    left: 5px;
  }
  20% {
    width: 7px;
    height: 0px;
    top: 9px;
    left: 2px;
  }
  50% {
    top: 9px;
    left: 2px;
    width: 7px;
    height: 0px;
  }
  100% {
    width: 7px;
    height: 14px;
  }
}
