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

/************************************
** 目次
** 01.インデックス
** 	01-1.エントリーカード（デフォルト）
** 	01-5. 縦型カード3列（デフォルト）
** 02.関連記事（投稿記事の下）
** 10.本文関連
** 	10-0.全体
** 	10-1.table
** 	10-2.h1～h6
** 33.API
** 99.オリジナル
************************************/
/************************************
** 01.インデックス
************************************/
/*:: 01-1.エントリーカード（デフォルト） :::::::::::::::::::::::*/
/* エントリーカードのサイズ（4列にする） */
/* .entry-card-wrap {
    width: 24%!important;
}
@media screen and (max-width: 834px) {
    .entry-card-wrap {
        width: 33%!important;
    }
} */
/* インデックスカード全体 */
/* 一部ウィジェットエントリーカードを含む */
/* flex: 2;などを設定したいので親要素をdisplay: flex;にする */
.ect-entry-card .entry-card,
.ect-entry-card .related-entry-card {
    display: flex;
	margin: 16px 0;
	padding: 10px 0;
}
/*480px以下*/
@media screen and (max-width: 480px){
	.ect-entry-card .entry-card,
	.ect-entry-card .related-entry-card {
		padding: 10px 4px;
	}
}
.ect-entry-card .widget-entry-cards .a-wrap {
	margin: 16px 0;
	padding: 10px 4px;
}
.ect-entry-card .a-wrap {
    padding: 0;
    margin: 0;
}
/* 非表示項目 */
.ect-entry-card .entry-card-thumb {
/*     display: none; */
}
/* インデックスカードのタイトル */
.ect-entry-card .entry-card-title,
.ect-entry-card .related-entry-card-title,
.ect-entry-card .widget-entry-card-title {
	font-size: 16px;
	line-height: 1.8;
	font-weight: 500;
	margin-left: 4px;
	margin-bottom: 5px;
	 /* タイトルを英単語の途中でも改行させる */
	word-break: break-all;
	font-weight: bold;
}
@media screen and (max-width: 480px) {
	.ect-entry-card .entry-card-title,
	.ect-entry-card .related-entry-card-title,
	.ect-entry-card .widget-entry-card-title {
    	font-size: 14px;
	}
}
/* タイトルホバー時と外したとき */
.ect-entry-card .entry-card-wrap {
    transition: initial;
	color: #333;
}
.ect-entry-card .entry-card:hover {
    background-color: #f5f8fa;
    transition: all 0.3s ease-in-out;
    color: #333;
}
/* 背景を暗くしてから、カードを白くする */
/* トップと固定ページ */
.home .main,
.page-template-default .main {
/*     background: #F4F5F7; */
	background: var(--background-color);
}
.ect-entry-card .entry-card,
.ect-entry-card .widget-entry-cards .a-wrap {
    background: #fff;
}
/* 5.縦型カード3列 */
.ect-vertical-card .entry-card-wrap {
    background: #fff;
}
/* インデックスカードの画像サイズ */
.ect-entry-card .entry-card-thumb {
    flex: 1;
}
/* 画像の余白 */
.ect-entry-card .entry-card-thumb,
.ect-entry-card .widget-entry-card-thumb,
.ect-entry-card .related-entry-card-thumb,
.ect-entry-card .carousel-entry-card-thumb {
    margin-top: 0;
}
.ect-entry-card .entry-card-thumb,
.ect-entry-card .widget-entry-card-thumb {
    margin-left: 1.6%;
	margin-right: 1.6%;
}
.ect-entry-card .entry-card {
    line-height: 0;
}
@media screen and (max-width: 480px){
    .ect-entry-card .ect-entry-card .card-thumb {
        margin-bottom: 0;
    }
}
/* インデックスカードのコンテンツ */
.ect-entry-card .entry-card-content {
    margin: 0;
    flex: 4;
    margin-left: 0 !important;
}
@media screen and (max-width: 834px){
    .ect-entry-card .entry-card-content {
        flex: 2;
    }
}
/* コンテンツの余白 */
.ect-entry-card .entry-card-content {
    padding-bottom: 0;
}
/* スニペットを非表示 */
.ect-entry-card .entry-card-snippet {
	display: none;
}
/* メタ情報のデザイン */
/* 右寄せ→左寄せ */
.ect-entry-card .entry-card-meta,
.ect-entry-card .related-entry-card-meta {
    position: initial;
    text-align: initial;
}
.ect-entry-card .e-card-info {
    justify-content: initial;
}
/* ウィジェットエントリーカードも同じようなデザインにする */
/* flex: 2;などを設定したいので親要素をdisplay: flex;にする */
.ect-entry-card .widget-entry-card {
    display: flex;
}
.ect-entry-card .widget-entry-card-thumb {
	flex: 1;
}
.ect-entry-card .widget-entry-card-content {
	flex: 4;
	margin-left: initial;
}
@media screen and (max-width: 834px){
	.ect-entry-card .widget-entry-card-content {
    	flex: 2;
	}
}
/*:: 01-5.縦型カード3列 :::::::::::::::::::::::*/
/* コンテンツの余白 */
.ect-vertical-card-3 .entry-card-content {
    padding-bottom: 0;
}
/* スニペットを非表示 */
.ect-vertical-card-3 .entry-card-snippet {
	display: none;
}
/************************************
** 02.関連記事（投稿記事の下）※インデックスリストもあわせて反映されるような設計に変更
************************************/
/* 表示タイプ　縦型カード4列（推奨表示数：4, 8, 12...） */
/* 画像サイズ */
.rect-vertical-card-3 .related-entry-card-wrap,
.rect-vertical-card-4 .related-entry-card-wrap,
.ect-vertical-card-3 .entry-card-wrap {
    width: 23%;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media screen and (max-width: 834px) {
	.rect-vertical-card-3 .related-entry-card-wrap,
    .rect-vertical-card-4 .related-entry-card-wrap,
	.ect-vertical-card-3 .entry-card-wrap {
        width: 48%;
    }
}
/* カード全体 */
.rect-vertical-card .related-entry-card-wrap,
.ect-3-columns .entry-card-wrap {
    padding: 0;
}
/* 画像とタイトルを縦並びにする */
/* .rect-vertical-card-4 .related-entry-card,
.ect-vertical-card {
    display: initial;
} */
/* スニペットを非表示 */
/* .rect-vertical-card-4 .related-entry-card-snippet {
    display: none;
} */
/* 余白の調整 */
/* .rect-vertical-card-4 .related-list, */
.ect-vertical-card {
    column-gap: 2%;
}
@media screen and (max-width: 480px){
    .single-post .related-entry-card,
	.ect-vertical-card {
        margin: 0;
        padding: 0;
    }
}
@media screen and (max-width: 834px) {
    .rect-vertical-card .related-list,
	.ect-vertical-card {
        column-gap: 4%;
    }
}
/* 文字サイズ */
.rect-vertical-card .related-entry-card-title,
.entry-card-title {
    font-size: 14px;
	margin-left: 0;
	padding: .8rem;
}
/* 画像 */
.rect-vertical-card .related-entry-card-thumb,
.entry-card-thumb {
    margin: 0;
}
/* タイトル */
.related-entry-heading {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}
.related-entry-heading:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 8px auto 0;
}
/* カテゴリーラベル */
.related-entry-card .cat-label,
.entry-card .cat-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-top-right-radius: 6px;
	top: initial;
}
/************************************
** 10.本文関連
************************************/
/*:: 10-0.全体 :::::::::::::::::::::::*/
.single-post .main {
    background-color: initial;
}
.single-post .main {
/*     padding: 0; */
}
/*:: 10-1.table :::::::::::::::::::::::*/
.main figure.wp-block-table {
    border: 1px solid #ccc;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #fff;
}
.wp-block-table thead {
	border-bottom: none;
}
figure.wp-block-table table {
    width: 100%;
	font-size: 16px;
}
/* th */
.wp-block-table th {
    padding: 4px;
}
/* tbの下線 */
.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
    border-bottom: 1px solid #ccc;
}
/* ヘッダーセルの背景色 */
table tr:nth-of-type(2n+1) {
    background-color: #e6e6e6;
}
@media screen and (max-width: 834px) {
	table th, table td {
		font-size: 14px;
	}
}
td:nth-of-type(1) {
	text-align: center;
/* 	width: 30%; */
}
td:nth-of-type(2) {
/* 	width: 70%; */
}
/*:: 10-2.h1～h6 :::::::::::::::::::::::*/
.article h2, .article h3, .article h4, .article h5, .article h6 {
    margin-bottom: 12px;
	padding: 12px;
}
.article h2 {
    font-size: 16px;
}
/************************************
** 33.API
************************************/
.product-item-title a {
    color: #353535;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.6;
    font-size: 16px;
}
.product-item-title a:where(:not(.wp-element-button)) {
    text-decoration: initial;
}
.product-item-box {
	width: 100%;
    margin: 2em auto;
    position: relative;
    display: grid;
    grid-gap: 0 24px;
    grid-template-areas:
        "areaImg areaBody"
        "areaBtns areaBtns";
    grid-template-rows: auto auto;
    grid-template-columns: 100px 1fr;
    border: none;
    box-shadow: 0 1px 8px -4px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .02);
    max-width: 960px;
}
.booklink-image, .kaerebalink-image, .tomarebalink-image, .product-item-thumb {
    width: initial;
    min-width: initial;
}
.product-item-maker {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: .75;
}
.product-item-price {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
}
.booklink-link2 a, .kaerebalink-link1 a, .tomarebalink-link1 a, .product-item-buttons a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 12px;
    font-size: 1em;
    line-height: 1;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 0;
    font-weight: initial;
}
.booklink-link2 > *, .kaerebalink-link1 > *, .tomarebalink-link1 > *, .product-item-buttons > * {
    margin: 0.5%;
    box-sizing: border-box;
    flex: 1;
    max-width: 50%;
    font-size: 15px;
}
@media screen and (max-width: 834px) {
    .booklink-box, .kaerebalink-box, .tomarebalink-box, .product-item-box {
        padding: 24px !important;
    }
    .booklink-image, .kaerebalink-image, .tomarebalink-image, .product-item-thumb {
        margin-right: initial !important;
        float: initial !important;
        margin: 0 !important;
        width: initial;
        min-width: initial;
    }
}
@media screen and (min-width: 769px) {
    .booklink-info, .kaerebalink-info, .tomarebalink-info, .product-item-content {
        line-height: 125%;
        vertical-align: top;
        box-sizing: border-box;
        padding-left: 0;
        width: 100%;
    }
}
@media screen and (max-width: 599px) {
    .product-item-box {
        grid-gap: 0 16px;
        width: 88%;
        box-sizing: border-box;
        font-size: 13px;
        grid-template-columns: 40% 1fr;
        padding: 8px !important;
    }
    .product-item-title a {
        font-size: 13px;
    }
    .product-item-price {
        font-size: 12px;
    }
    .booklink-link2 > *, .kaerebalink-link1 > *, .tomarebalink-link1 > *, .product-item-buttons > * {
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
    .booklink-image, .kaerebalink-image, .tomarebalink-image, .product-item-thumb {
        width: initial;
        min-width: initial;
    }
    .booklink-info, .kaerebalink-info, .tomarebalink-info, .product-item-content {
        text-align: initial !important;
    }
}




/************************************
** 99.オリジナル
************************************/
/* 見出し */
.caption {
	font-size: 20px;
	margin-top: 16px;
	margin-bottom: 16px!important;
	padding: 16px 24px;
	color: #fff;
	background-color: #161616;
	line-height: 1.25;
	font-weight: bold;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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