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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/************************************
** 共通要素
************************************/
/************************************
** 目次
** 00.基本設定
**  00-1.カラーの変数
**  00-2.Font Awesome 5 Free
** 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.ブログカード
** 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;
}
/************************************
** 2.全体
************************************/
main.main {
	margin: 0;
}
@media screen and (max-width: 834px) {
    .content {
        margin-top: 0;
    }
}
/************************************
** 3.ヘッダー
************************************/
.tagline {
    margin: 0;
}
.logo-text {
    padding: 20px 0;
}
/* サイトネーム */
#header .site-name-text {
	font-weight: 700;
}
/************************************
** 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,
.rect-entry-card .related-list {
	row-gap: initial!important;
}
.ect-entry-card .a-wrap,
.rect-entry-card .a-wrap {
	border-bottom: 1px solid var(--grey-border);
}
/* モバイル */
/* カード全体 */
@media screen and (max-width: 480px){
	.ect-entry-card .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,
.rect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb {
	margin-bottom: 0;
}
.ect-entry-card .card-thumb,
.rect-entry-card .card-thumb {
	margin-top: 0;
	margin-right: 12px;
}
@media screen and (max-width: 480px){
	.ect-entry-card .card-thumb,
	.rect-entry-card .card-thumb {
		width: 32%;
	}
}
/* タイトル */
.ect-entry-card .entry-card-title {
    margin: 0 0 8px;
}
/* コンテンツ */
.ect-entry-card .card-content,
.rect-entry-card .card-content {
    padding-bottom: 0;
	margin-left: 0;
}
/* メタ情報 */
.ect-entry-card .entry-card-meta,
.rect-entry-card .related-entry-card-meta {
    position: initial;
}
/************************************
** 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;
}
@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,
.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;
}
/* 広告表記 */
.single .entry-title:after {
	content: "本ページは広告が含まれています";
	display: block;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
    background-color: var(--grey-light);
    border: var(--grey-border) 1px solid;
	padding: 8px;
	margin-top: 16px;
	line-height: 1;
}
/* 関連記事・コメント */
.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: 8px;
    margin-left: -12px;
}
.article h2 {
    font-size: 18px;
}
.article h3,
.article h4,
.article h5,
.article h6 {
    font-size: 16px;
}
@media screen and (max-width: 480px) {
    .article h2 {
		padding: 12px;
    }
}
/*======== 13-3.テーブル ========*/
/* 背景色 */
table tr:nth-of-type(2n+1) {
    background-color: #fff;
}
tr td:first-child {
	background-color: var(--grey-little-light);
}
/* ボーダー */
table:not(.has-border-color) :where(th,td) {
    border: var(--grey-border) 1px solid;
}
/*======== 13-4.リスト ========*/
.article ul {
	padding: 4px 4px 4px 12px!important;
	list-style-type:none;
	background-color: var(--grey-light);
	border: var(--grey-border) 1px solid;
}
.article ul li {
	position:relative;
	padding: 0em 0.3em 0.3em 1.3em;
}
.article ul li:before {
	position:absolute;
	content:'';
	top: 0.5em;
	left: 0.2em;
	border-style: solid;
	border-width: 6px 0 6px 9px;
	border-color: transparent transparent transparent var(--cocoon-text-color);
}
/*======== 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: 16px;
    border-radius: 0;
    line-height: 1;
	border-color: initial;
    border-width: initial;
    border-style: initial;
}
/*480px以下*/
@media screen and (max-width: 480px){
	.blogcard {
		padding: 8px;
	}
}
.blogcard-wrap {
    width: 100%;
    border: var(--grey-border) 1px solid;
    background-color: var(--grey-light);
	margin-bottom: 20px!important;
}
/* ラベル */
.blogcard-label {
	height: 20px;
	top: -20px;
	left: 0px;
    border-radius: 0;
}
/* ラベルがある場合の上の余白 */
.bct-related .blogcard-wrap {
	margin-top: 40px;
}
/* サムネイル */
.blogcard-thumbnail {
    margin-top: 0;
	margin-right: 12px;
}
.blogcard-content {
	margin-left: 0;
}
@media screen and (max-width: 834px) {
    .blogcard-thumbnail {
        width: 32%;
    }
}
/* タイトル */
.blogcard-title {
	font-size: 16px;
}
/* フッター */
.blogcard-footer {
    padding-top: 4px;
	font-size: 12px;
}
.blogcard-favicon {
    margin-top: 0;
}
/************************************
** 30.ウィジェット
************************************/
/*======== 30-1.ウィジェット全体 ========*/
/* 見出し */
.widget h2 {
    font-size: 18px;
}
/*======== 30-2.サイドバー ========*/
/* 余白 */
.sidebar {
	padding: 20px;
}
.sidebar h2,
.sidebar h3 {
	padding: 0 16px;
	background-color: initial;
	color: initial;
	font-size: 14px;
}
.sidebar h2:before,
.sidebar h3:before {
	content: '';
    border-left: 6px solid var(--wp--preset--color--key-color);
    margin-right: 8px;
    margin-left: -12px;
}
/* リスト */
.widget_block ul li a,
.widget_categories ul li a {
	font-size: 13px;
	padding: 4px 0;
}
/* カテゴリーカウント */
.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: ")";
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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