@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
*/
/*見出し*/
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:'- 新着記事 -';
}
/* 新着記事を横並びにする---------------------------------------------- */
.new-entry-cards.large-thumb{
	display: flex; /* フレックスボックスにする */
	flex-wrap: wrap;
	margin-bottom:1em;
}

/*新着記事サムネイル（大）*/
.new-entry-cards.large-thumb a{
width:calc(100% / 3);/*pcで横3列に並べる*/
}
/*480px以下*/
@media screen and (max-width: 480px){
	.new-entry-cards.large-thumb a{
		width:100%;/*スマホで横１列に*/
	}
}
/***リンクボタン***/
.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%;/*ボタンの幅*/
}

/*見出し*/
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.category:after{
	content:'- カテゴリー別の記事 -';
}

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

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

/*カテゴリーごとの記事(flex)を横並べする*/
.category-list-flex{
 display: flex; /* フレックスボックスにする */
 flex-wrap: wrap;
}

.category-list{
	width:calc(100% / 2);/*パソコンで横２列*/
	padding:.5em;
}

/*480px以下*/
@media screen and (max-width: 480px){
	.category-list{
		width:100%; /*パソコンで横１列*/
	}
}

/*見出し*/
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.category:after{
	content:'- カテゴリー別の記事 -';
}


/*カテゴリー見出し写真*/
.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;
}


/*カテゴリーごとの記事横並べ(flex)*/
.category-list-flex{
 display: flex; /* フレックスボックスにする */
 flex-wrap: wrap;
}

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

/*480px以下*/
@media screen and (max-width: 480px){
	.category-list{
		width:100%; /*スマホで横１列*/
	}
}


/***リンクボタン***/
.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%;/*ボタンの幅*/
}
/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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


