@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){
  /*必要ならばここにコードを書く*/
}
/*トップページカスタマイズ******************************************************************/
/*見出し*/
div.title{
	text-align:center;/*中央寄せ*/
	font-size:2rem;/*文字の大きさ*/
	color:#555;/*文字色*/
	letter-spacing:.1rem;/*文字間の余白*/
	line-height:2;/*行の高さ*/
	margin:1rem;/*外側余白*/
	padding:0;/*内側余白*/
}

div.title:after{
	display:block;
	font-size:.8rem;
}

div.newpost:after{
	content:'- 新着記事 -';
}
div.category:after{
	content:'- カテゴリー -';
}
div.popular:after{
	content:'- 人気記事 -';
}


/***リンクボタン***/
.link-btn{
display:block;/*ブロック要素にする*/
margin:1em auto;/*外側余白*/
padding: 8px;/*内側余白*/
cursor:pointer;/*ポインター*/
text-align: center;/*中央寄せ*/
text-decoration: none;/*装飾なし*/
border:1px solid #ccc; /*枠線（太さ、種類、色）*/
font-size:.9em;/*文字の大きさ*/
color:#666;/*文字色*/
width: 90%;/*ボタンの幅*/
}

/*カテゴリ画像トリミング*/
.home figure img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
}

/*480px以下*/
@media screen and (max-width: 480px)
{
	.home figure img
	{
	max-height: 200px;
	}
}


/* タブ切り替え---------------------------------------------- */
.tab-wrap {
display: flex;
flex-wrap: wrap;
margin:0;
padding:0;
}

.tab-label {
white-space: nowrap;
text-align: center;
order: -1;
position: relative;
z-index: 1;
cursor: pointer;
flex: 1;
letter-spacing:1px;
padding:6px;
border:1px solid #ccc;/*タブの枠線　太さ　種類　色*/
font-size:.8em/*文字サイズ*/
}

.tab-switch:checked+.tab-label:after{
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -15px;
border: 10px solid transparent;
	width: 0;
	height: 0;
}

.tab-label:not(:last-of-type) {
  margin-right: 5px;
}

.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* アクティブなタブ */
.tab-switch:checked+.tab-label {
color:#fff;/*文字色*/
background-color:#b5b5ae;/*タブの背景色*/
border:1px solid #b5b5ae;/*タブの枠線　太さ　種類　色*/
}

.tab-switch:checked+.tab-label:after{
	content: "";
	position: absolute;
	top: 99%;
	left: 50%;
margin-left: -10px;
border: 10px solid transparent;
border-top:10px solid #b5b5ae;/*タブの吹き出し部分*/
	width: 0;
	height: 0;
}

.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: auto;
  padding: 15px 0 0 0;
  transition: .5s opacity;
}

/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}


/* ウィジェット記事全体*/
.widget-entry-cards{
margin-bottom:1em;/*カード下に余白をあける*/
}

/***記事横並べ(flex)***/
.new-entry-cards.large-thumb,
.popular-entry-cards.large-thumb,
.category-list-flex{
   display: flex; /* フレックスボックスにする */
   flex-wrap: wrap;
}

/*新着、人気記事サムネイル（大）*/
.new-entry-cards.large-thumb a,
.popular-entry-cards.large-thumb a{
width:calc(100% / 3);/*pcで横3列に並べる*/
}

.category-list{
	width:calc(100% / 2);/*パソコンで横２列*/
	padding:.5em;/*カードまわりに少し余白をあける*/
}

/*480px以下*/
@media screen and (max-width: 480px){
       .new-entry-cards.large-thumb a,
       .category-list{
		width:100%;/*スマホで横１列に*/
	}
       .popular-entry-cards.large-thumb a{
	       width:calc(100% / 2);/*スマホで横２列*/	
	}	
}

/* トップページ・固定ページ非表示項目*/
.home .toc,
.home .eye-catch,/*アイキャッチ画像*/
.home .entry-title,/*記事タイトル*/
.home .sns-share,/*シェアボタン*/
.home .sns-follow,/*フォローボタン*/
.home header .post-date,/*ヘッダー投稿日*/
.home header .post-update,/*ヘッダー更新日*/
.home .author-info/*投稿者名*/
{
display: none;
}

