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

/************************************
** 共通要素
************************************/
/************************************
** 目次
** 00.基本設定
**  00-1.カラーの変数
** 02.全体
** 03.ヘッダー
**  03-1.ページ送りナビ設定
** 10.インデックス
**  10-1.カード
**  10-2.カードタイプ-エントリーカード（デフォルト）-
** 11.投稿
**  11-1.ページ送りナビ設定
**  11-2.パンくずリスト
**  11-3.関連記事設定
** 13.本文
**  13-1.本文全体
**  13-2.見出し
**  13-3.テーブル
**  13-4.リスト
**  13-5.投稿情報表示設定
** 14.目次
** 15.SNSシェア
** 17.画像
** 18.ブログカード
** 21.通知
** 22.アピールエリア
** 25.フッター
** 30.ウィジェット
**  30-1.ウィジェット全体
**  30-2.サイドバー
************************************/
/************************************
** 00.基本設定
************************************/
/*======== 00-1.カラーの変数 ========*/
:root {
	--grey: #e3e3e3;
	--grey-light: #f9f9f9;
	--grey-little-light: #f0f0f0;
	--grey-border: #ccc;
	--grey-border-light: #eee;
}
/************************************
** 02.全体
************************************/
main.main {
	margin: 0;
	border: 1px solid var(--grey-border);
	border-radius: 0;
}
@media screen and (max-width: 834px) {
	.content {
		margin-top: 0;
	}
}
/************************************
** 03.ヘッダー
************************************/
.tagline {
	margin: 0;
}
.logo-text {
	padding: 20px 0;
}
/* サイトネーム */
#header .site-name-text {
	font-weight: 700;
}
/* ナビゲーションメニュー */
.navi .item-label {
    white-space: initial;
}
/************************************
** 10.インデックス
************************************/
/* ページ全体 */
/* インデックスページのみ適用 */
.main:has(.list) {
	padding: 0;
}
/* タクソノミーのインデックスページで適用 */
.archive-title {
	padding: 16px;
	margin: 0;
}
/*======== 10-1.カード ========*/
/* カテゴリーラベル */
.cat-label {
	display: none;
}
/* タイトル */
.entry-card-title {
	line-height: 160%;
}
/* スニペット */
.ect-entry-card .entry-card-snippet,
.rect-entry-card .related-entry-card-snippet {
	line-height: 1.5!important;
}
/*======== 10-2.カードタイプ -エントリーカード（デフォルト）- ========*/
/* 11.投稿 > 関連記事 > 表示タイプ が エントリーカード（デフォルト）の場合に適用 */
/* カード全体 */
.ect-entry-card,
.new-entry-cards,
.rect-entry-card .related-list {
	row-gap: initial!important;
}
.ect-entry-card .a-wrap,
.new-entry-cards .a-wrap,
.rect-entry-card .a-wrap {
	border-bottom: 1px solid var(--grey-border);
	padding: 16px;
	margin-bottom: 0;
}
/* モバイル */
/* カード全体 */
@media screen and (max-width: 480px){
	.ect-entry-card .a-wrap,
	.new-entry-cards .a-wrap {
		padding: 16px;
	}
	.rect-entry-card .a-wrap {
		padding-bottom: 16px;
		margin-bottom: 16px;
		padding-top: 0;
		padding-left: 0;
		padding-right: 0;
	}
}
/* サムネイル */
.ect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb,
.new-entry-cards .a-wrap:not(.ec-big-card-first) .card-thumb,
.rect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb {
	margin-bottom: 0;
}
.ect-entry-card .card-thumb,
.new-entry-cards .card-thumb,
.rect-entry-card .card-thumb {
	margin-top: 0;
	margin-bottom: 0;
	margin-right: 12px;
	width: 16%;
}

@media screen and (max-width: 480px){
	.ect-entry-card .card-thumb,
	.new-entry-cards .card-thumb,
	.rect-entry-card .card-thumb {
		width: 32%;
	}
}
/* タイトル */
.ect-entry-card .entry-card-title,
.new-entry-cards .entry-card-title,
.rect-entry-card .entry-card-title {
	margin: 0 0 8px;
}
/* コンテンツ */
.ect-entry-card .card-content,
.new-entry-cards .card-content,
.rect-entry-card .card-content {
	padding-bottom: 0;
	margin-left: 0;
}
/* メタ情報 */
.ect-entry-card .entry-card-meta,
.new-entry-cards .entry-card-meta,
.rect-entry-card .related-entry-card-meta {
	position: initial;
}
/* ページネーション */
.pagination {
    margin: 20px 0;
}
.pagination-next-link {
    font-size: initial;
	width: 80%;
    margin: 0 auto;
}
.page-numbers {
    border-radius: 0;
    height: 32px;
    width: 32px;
    line-height: 32px;
    font-size: 14px;
}
/************************************
** 11.投稿
************************************/
/*======== 11-1.ページ送りナビ設定 ========*/
/* 均等割 */
.pager-post-navi {
	flex-direction: initial;
}
.pager-post-navi a {
	flex: 1;
}
.pager-post-navi a.prev-post {
	padding-left: 0;
}
.pager-post-navi a.next-post {
	padding-right: 0;
}
/* モバイル */
@media screen and (max-width: 480px){
	/* 均等割解除 */
	.pager-post-navi {
		flex-direction: column;
	}
	/* 	余白 */
	.pager-post-navi {
		margin: 0 0 16px 0;
	}
	/* 	タイトル */
	.pager-post-navi a.prev-post .prev-post-title {
		margin-left: 12px;
	}
}
/*======== 11-2.パンくずリスト ========*/
.breadcrumb,
.breadcrumb a,
.breadcrumb.sbp-main-before {
	color: var(--cocoon-text-color);
}
.breadcrumb.sbp-main-before {
	background-color: var(--grey-little-light);
	margin: 0;
	width: 100%;
	padding: 8px;
}
.breadcrumb.sbp-main-before+.content {
	margin-top: 0;
}
/*======== 11-3.関連記事設定 ========*/
/* 	余白 */
.related-list {
	margin-bottom: 0;
}
/************************************
** 13.本文
************************************/
/*======== 13-1.本文全体 ========*/
.main:has(.article) {
	padding: 20px;
}
.main:has(.list) { /* アーカイブページなど */
	/*     padding: 0; */
}
@media screen and (max-width: 834px) {
	.main:has(.article) {
		margin: 0;
	}
}
@media screen and (max-width: 480px){
	.main:has(.article) {
		padding: 16px;
	}
}
.entry-content {
	margin-top: 0;
	margin-bottom: 0;
}
/* 段落 */
.article p,
.article .toc,
.article ul,
.article ol,
.body .article,
.body .wp-block-table,
.body .blogcard-type,
.body .wp-block-group,
.body .widget,
.related-entries {
	margin-bottom: 20px;
}
/*======== 13-2.見出し ========*/
/* タイトル */
.entry-title {
	line-height: 160%!important;
	padding: 0;
	margin: 0 0 20px 0;
}
/* 関連記事・コメント */
.related-entry-heading,
.comment-title {
	background-color: var(--grey);
	font-size: 18px!important;
	line-height: 1.2;
	padding: 16px;
	margin: 0 0 20px;
}
/* h1～h6 */
.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
	margin-bottom: 20px;
	line-height: 160%;
}
.article h2 {
	padding: 16px;
	background-color: initial;
	color: initial;
}
.article h2:before {
	content: '';
	border-left: 6px solid var(--wp--preset--color--key-color);
	margin-right: 16px;
	margin-left: -12px;
}
.article h2 {
	font-size: 18px;
}
.article h3 {
	background-color: var(--grey);
	line-height: 1.2;
	padding: 12px;
	margin: 0 0 20px;
	font-size: 16px;
	border-left: none;
	border-right: none;
	border-top: none;
	border-bottom: none;
}
.article h3,
.article h4,
.article h5,
.article h6 {
	font-size: 16px;
}
@media screen and (max-width: 480px) {
	.article h2 {
		padding: 12px;
	}
}
/* アーカイブページなどのタイトル */
.archive-title {
	margin: 20px;
	padding: 0;
	line-height: 160% !important;
}
/*======== 13-3.テーブル ========*/
/* スマホ画面サイズ用 */
.wp-block-table th,
.wp-block-table tr,
.wp-block-table td {
	display: block;
}
.wp-block-table th {
	padding: 8px;
}
.wp-block-table td {
	padding: 8px;
}
.wp-block-table th {
	background-color: var(--grey-light);
	font-weight: bold;
}
.wp-block-table .price {
	font-weight: bold;
}
table tr:nth-of-type(2n+1) {
	background-color: initial;
}
table:not(.has-border-color) :where(th, td) {
	border: initial;
}
/* PC画面サイズ用 */
@media (min-width: 768px) {
	.wp-block-table th,
	.wp-block-table tr,
	.wp-block-table td {
		border-collapse: collapse;
		padding: 6px;
	}
	.wp-block-table tr {
		display: table-row;
	}
	.wp-block-table th,
	.wp-block-table td {
		display: table-cell;
		font-size: 14px;
	}
	.wp-block-table th {
		width: 20%;
	}
	.wp-block-table {
		display: table;
		border-collapse: collapse;
	}
}
/*======== 13-4.リスト ========*/
.article ul,
.article ol {
	background-color: var(--grey-light);
	border: var(--grey-border) 1px solid;
}
/* ulの中のul・ボックス・目次の中のulはボーダーを無くす */
.article ul ul,
.article ol ul,
.toc ul,
.toc ol,
.block-box ul,
.block-box ol {
	border: none;
}
/* ボックスの中のリストは背景色を無くす */
.block-box ul,
.block-box ol{
	background-color: initial;
}
.article ul li,
.article ol li, {
	position:relative;
	padding: 0em 0.3em 0.3em 1.3em;
}
/* 数字つきリスト */
[class*=is-style-numeric-list-]>li:before {
	left: -6px;
}
/*======== 13-5.投稿情報表示設定 ========*/
/* 投稿日・更新日 */
.date-tags {
	margin-bottom: 20px;
	text-align: initial;
	background-color: var(--grey-little-light);
	padding: 8px;
}
.post-date,
.post-update {
	padding: 0;
}
.entry-date {
	margin-left: 4px;
}
.fa-clock:before {
	content: "投稿日";
	font-weight: 400;
}
.fa-history:before {
	content: "更新日";
	font-weight: 400;
}
/************************************
** 14.目次
************************************/
/* 余白・全体のデザイン */
.article .toc,
.widget_toc {
	padding: 8px;
	border: 1px solid var(--grey-border-light);
	background-color: var(--grey-light);
}
.article .toc {
	width: 60%;
}
@media screen and (max-width: 480px){
	.article .toc {
		width: 100%;
	}
}
.toc-center {
	margin: initial;
}
/* ol・liの余白 */
.toc .toc-list {
	padding-left: 20px;
}
.toc .toc-list ol {
	padding-left: 20px;
}
.toc li {
	margin: 0!important;
}
/* タイトル */
.toc-title {
	padding: 0;
}
/************************************
** 15.SNSシェア
************************************/
/* 余白 */
.sns-buttons {
	margin-top: 0;
	margin-bottom: 20px;
}
.sns-follow-message,
.sns-share-message {
	margin-bottom: 20px;
}
/*480px以下*/
@media screen and (max-width: 480px){
	.sns-follow-message,
	.sns-share-message {
		margin-bottom: 8px;
	}
}
/* デザイン */
.sns-buttons a {
	border-radius: 0;
}
/* SNSキャプションを非表示 */
.button-caption {
	display: none!important;
}
/* SNSアイコンの大きさ */
.sns-share.ss-high-and-low-lc a .social-icon {
	font-size: 24px;
}
/* 余白をなくし、画面いっぱいに配置 */
.sns-share-buttons {
	flex-wrap: initial;
	justify-content: initial;
	align-content: initial;
}
.sns-share.ss-col-6 a {
	width: 100%;
}
.sns-share.ss-col-6 .sns-buttons {
	column-gap: initial;
}
/************************************
** 17.画像
************************************/
/* 本文アイキャッチの余白 */
.eye-catch {
	margin-bottom: 20px;
}
/************************************
** 18.ブログカード
************************************/
/* 余白 */
.blogcard {
	padding: 0;
	border-radius: 0;
	line-height: 1;
	border-color: initial;
	border-width: initial;
	border-style: initial;
}
/*480px以下*/
@media screen and (max-width: 480px){
	.blogcard {
		padding: 0;
	}
}
.blogcard-wrap {
	width: 100%;
	border: var(--grey-border) 1px solid;
	background-color: var(--grey-light);
	margin-bottom: 20px!important;
}
/* ラベル */
.blogcard-label {
	padding: 8px;
	border-radius: 0;
	position: initial;
}
/* ラベルがある場合の上の余白 */
.bct-related .blogcard-wrap {
	margin-top: 40px;
}
/* サムネイル */
.blogcard-thumbnail {
	margin: 12px;
}
.blogcard-content {
	margin-left: 0;
}
@media screen and (max-width: 834px) {
	.blogcard-thumbnail {
		width: 32%;
	}
}
/* タイトル */
.blogcard-title {
	font-size: 16px;
	margin: 12px 12px 12px 0;
}
/* スニペット */
.blogcard-snippet {
	margin-right: 16px;
}
@media screen and (max-width: 834px) {
	.blogcard-snippet {
		font-size: 12px;
		display: none;
	}
}
/* フッター */
.blogcard-footer {
	clear: initial;
	font-size: 12px;
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center;
    margin: 8px!important;
	padding-top: 0;
}
.blogcard-site,
.blogcard-date {
    display: flex;
    align-items: center;
}

.blogcard-footer.cf::after {
    content: none !important;
    border: none !important;
}
/************************************
** 21.通知
************************************/
/* 広告表記 */
#notice-area {
	font-size: 12px;
	background-color: var(--grey-light);
	padding: 16px;
	line-height: 1;
}
/************************************
** 22.アピールエリア
************************************/
.appeal-content {
    border: 1px solid var(--grey-border);
    border-radius: 0;
}
/************************************
** 25.フッター
************************************/
.footer .widget {
	background-color: initial;
}
.footer-mobile, .footer-left, .footer-center, .footer-right {
	padding: 16px;
}
.footer-section {
	margin-bottom: 24px;
}
.footer-section h3 {
	margin-bottom: 16px;
}
.footer-section h3:before {
    content: '';
    border-left: 6px solid var(--wp--preset--color--key-color);
    margin-right: 16px;
}
@media screen and (max-width: 480px) {
	.footer-section h2,
	.footer-section h3 {
		font-size: 18px;
	}
}
.footer-section ul {
	list-style: none;
	padding-left: 0;
}
.footer-section li {
	margin-bottom: 8px;
}
.footer-section a {
	text-decoration: none;
}
/************************************
** 30.ウィジェット
************************************/
/*======== 30-1.ウィジェット全体 ========*/
.widget {
	margin: 0 auto;
	background-color: #ffffff;
	border-radius: initial!important;
	overflow: hidden;
}
/*======== 30-2.サイドバー ========*/
/* 余白 */
.sidebar {
	background: white;
	overflow: hidden;
	margin: 0 auto;
	padding-top: 0;
	padding-bottom: 0;
}
/* モバイル */
#sidebar-menu-content {
	padding: 0;
}
@media screen and (max-width: 834px) {
	div.sidebar {
		padding: 16px;
	}
}
/* 各要素 */
.widget-sidebar {
	background-color: var(--grey-light);
	border: 1px solid var(--grey-border);
	margin-bottom: 30px;
	overflow: hidden;
}
/* タイトル */
.sidebar h2,
.sidebar h3 {
	color: initial;
	font-size: 16px;
	font-weight: 700;
	padding: 8px;
	background-color: white;
	border-bottom: 1px solid var(--grey-border);
	margin: 0;
	padding-left: 20px;
}

/* リスト */
.widget_block ul li a,
.widget_categories ul li a {
	font-size: 13px;
}

/* カテゴリー */
/* 親項目 */
.widget_categories > ul > li > a {
	color: var(--text-color);
	text-decoration: none;
	display: flex;
	justify-content: space-between;
	padding: 8px;
	border-bottom: 1px solid var(--grey-border);
	background-color: var(--grey-light);
}
/* カテゴリーの中で1つでも小カテゴリーを持つ要素がある場合 */
.widget_categories :has(ul) {
	font-weight: 600;
}
.widget_categories :has(ul) > li > a {
	background-color: #fff;
	margin: 8px;
	margin: 0 0 0 8px;
}
/* 子項目リスト */
.children {
	list-style: none;
	padding-left: 0 !important;
/* 	margin-bottom: 8px!important; */
	margin-left: 20px!important;
}
.children li a {
	font-weight: 400;
	display: flex !important;
	justify-content: space-between;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	padding-right: 8px !important;
	padding-left: 16px !important;
	border-bottom: 1px dashed #e0e0e0;
}
/* .child li:last-child a, */
.widget_categories :has(ul) > ul > li:last-child a {
	border-bottom: none;
}
/* カテゴリーカウント */
.widget_categories ul li a .post-count {
	display: initial;
	float: initial;
	margin-left: 4px;
}
.widget_categories ul li a .post-count:before {
	content: "(";
}
.widget_categories ul li a .post-count:after {
	content: ")";
}

/* タグクラウド */
.tagcloud {
	gap: 2px;
	padding: 8px;
}
.tagcloud a {
	border-radius: 0;
	background-color: #fff;
	border: 1px solid var(--grey-border-light);
}
/* 人気記事 */
.sidebar .popular-entry-cards {
	padding: 8px;
	margin-bottom: 0;
}
.sidebar .popular-entry-card {
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0f0f0;
}
.sidebar .popular-entry-card-link .cf::after {
    content: none;
}
.sidebar .popular-entry-card-link {
	padding: 0;
	margin-bottom: 0;
}
.sidebar .popular-entry-card-thumb {
	width: initial!important;
	margin-right: initial;
	margin-top: 0;
	margin-bottom: 0;
}
.sidebar .popular-entry-card-thumb img {
	min-width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #745c4d, #a3918a);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
}
.sidebar .popular-entry-card-title {
	font-size: 14px;
}
.sidebar .popular-entry-card-content {
	margin-left: 0;
}
/* 検索 */
.sidebar .search-box {
	margin: 0;
    padding: 8px;
}
.sidebar .search-edit {
	border-radius: 0;
	width: 80%;
}
.sidebar .search-submit {
	background: #745c4d;
	color: white;
	border: none;
	padding: 12px 16px!important;
	cursor: pointer;
	transition: background-color 0.3s ease;
	top: initial;
	right: initial;
}
/* プロフィール */
.sidebar .author-box {
	border-radius: 0;
	margin-bottom: 0;
	border-style: initial;
}
.sidebar .author-thumb img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	border: 3px solid rgba(255, 255, 255, 0.3);
}
.sidebar .author-box .author-name {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}
.sidebar .author-box p {
	margin-top: 0;
	font-size: 13px;
	opacity: .8;
	margin-bottom: 20px;
	line-height: 1.5;
	text-align: center;
}
.sidebar .author-box .author-content {
	padding: 0;
}
/* 新着記事 */
.sidebar .info-list {
	padding: 8px;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
	/*必要ならばここにコードを書く*/
}

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

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