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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ========== 基本設定 ========== */

/* ---------- 1. 変数 ---------- */

:root {
	/* === キーカラー:青（サイトのアクセントとして使う色） === */
	--pss-sky: #73ccd8;
	--pss-sky-light: #d6f1f5;
	--pss-sky-dark: #52b1d2;
	
	/* -- キーカラー -- */
	--pss-color-key: var(--pss-sky);
	--pss-color-hover: var(--pss-sky-dark);
	--pss-color-key-bg: var(--pss-sky-light);

	/* -- 記事の背景 -- */
	--pss-content-bg: #fefefe;
	--pss-footer-bg: #73ccd8;
}

/* ---------- 2. リセット＆ベース ---------- */

*, .entry-content>*,
*::before, *::after {
	margin: unset;
	padding: unset;
	box-sizing: border-box;
}

img, video, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	fill: currentColor;
}

p, ul, ol {
	margin: unset;
	padding: unset;
}

p {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

a {
	transition: all 0.3s ease 0s;
}

/* ==================================================================================================
　　　全体 レイアウト
================================================================================================== */
/* 背景 */
body, #main, #content, #sidebar, .header-container {
	background: transparent;
}

/* レイアウト */
.main, .sidebar {
	padding: 0;
}


/* ==================================================================================================
　　　main レイアウト
================================================================================================== */
/* メインコンテンツをコンテナとして設定 */
.main {
	container: main / inline-size;
}
/* 記事一覧 レイアウト　----------------------------------- */
.entry-content {
	container: article / inline-size;
}

/* エントリーカード：基本は2カラム */
.ect-vertical-card {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	column-gap: 2%;
}

/* カード幅：2カラム */
.ect-vertical-card .entry-card-wrap {
	display: inline-block;
	width: 49%;
}

/* コンテナ幅540px以下：1カラム */
@container main (max-width: 540px) {

  /* カードを中央寄せ */
  .ect-vertical-card {
    justify-content: center;
  }

  /* カード幅：95% */
  .ect-vertical-card .entry-card-wrap {
    width: 95%;
  }
}

/* エントリーカード　----------------------------------- */
#list .a-wrap {
	padding: 0;
}
#list article {
	background: var(--pss-content-bg);
}
.ect-vertical-card .entry-card-wrap .entry-card-content {
	padding: 1rem;
}
#list article h2 {
	font-size: 1.3rem;
	line-height: 1.5;
	transition-duration: 0.5s;
}
/* 画像 */
#list a figure {
	margin: 0;
	overflow: hidden;
}

/* カテゴリラベル */
.cat-label {
	position: absolute;
	top: unset;
	bottom: 0;
	left: 0;
	padding: .07rem .4rem;
	border: none;
	background-color: rgba(115,204,216,0.9);
	font-size: .75rem;
    color: #fff;
}
#list .entry-card-wrap {
	overflow: hidden;
	border-radius: 15px;
	box-shadow: none;
	transform: translateY(0);
	transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
/* -- エントリーカード hover --*/
@media (any-hover: hover) {
	.a-wrap:hover {
		background: transparent;
	}
	#list .entry-card-wrap:hover {
		box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
		transform: translateY(-4px);
		transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);		
	}
	#list .entry-card-wrap:hover h2 {
		color: var(--pss-color-hover);
	}
}

/* 投稿記事　----------------------------------- */
#main:has(#breadcrumb):not(:has(#list)) {
	padding: 2rem;
	border-radius: 20px;
	background: var(--pss-content-bg);
}
/* 画像 */
.wp-block-image img {
	margin: 0 auto;
}
/* ページ送りナビ 横並びに変更 */
.pager-post-navi {
    display: flex;
	flex-direction: row;
    justify-content: space-between;
	column-gap: 10px;
}
.pager-post-navi .a-wrap {
	flex: 1;
	flex-grow: 1;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}
div#pager-post-navi.pager-post-navi.post-navi-default.cf::after {
	display: none;
}
.pager-post-navi a .iconfont {
	font-size: 1.3em; /*矢印のサイズ*/
}
.fas.fa-chevron-left.iconfont {
	padding-left: 0;
}
.fas.fa-chevron-right.iconfont {
	padding-right: 0;
}
.card-thumb img {
	width: 100%;
}

/* -- 投稿記事 hover -- */
@media (any-hover: hover) {
		/* --- 関連記事 --- */
	.related-list a:hover {
		color: var(--pss-color-hover);
	}
	
	/* --- ページ送りナビ --- */
	.pager-post-navi a:hover {
		background: #f0f0f0;
	}
}



/* ======================================================================
　　　main　投稿　文字装飾
====================================================================== */
/* 段落　----------------------------------- */
.entry-content p {
	margin-block: 0 .8rem;
    margin-inline: .3rem;
}
[class^="pss-"] p {
	margin: unset;
}

/* 見出し　----------------------------------- */
/* 見出し --reset */
.entry-content :is(h1,h2,h3,h4,h5) {
	margin: unset;
	padding: unset;
	border: unset;
	border-radius: unset;
	background-color:transparent;
}
.article h1 {
	font-size: clamp(1.5rem, 1.35rem + 0.75vw, 1.9rem);
}

.article h2 {
	font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
}

.article h3 {
  font-size: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
}

.article h4 {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
}

/* 見出し H2 */
.entry-content h2:not([class^="pss-"]) {
	margin-block: 5rem 1.5rem;
	padding-block: .1rem;
	padding-inline-start: 1rem;
	border-left: 5px solid var(--pss-color-key);
}

/* 見出し H3*/
.entry-content h3:not([class^="pss-"]) {
	margin-block: 2rem .8rem;
	padding: .5rem .2rem;
	border-bottom: 1px dashed #d3d3d3;
	&:first-of-type {
		margin-block-start: 0;
	}
}
/* 見出し H4*/
.entry-content h4:not([class^="pss-"]) {
	display: block;
	position: relative;
	margin: 2rem .3rem 1rem;
	padding-inline-start: 1.5rem;
	line-height: 1.3;
	&::before {
		content: "\f00c";
		position: absolute;
		top: 0;
		left: 0;
		padding-inline-end: .5rem;
		font-family: "Font Awesome 6 Free";
		font-size: 1.2rem;
		font-weight: 900;
		color: var(--pss-color-key);
	}
}

/* リスト　----------------------------------- */
/* リスト --reset */
.article ul,
.article ol,
.article ul li, .article ol li {
	margin: unset;
	padding: unset;
}

/* テーブル　----------------------------------- */
/* テーブル --reset */
.entry-content table tr {
	background-color: transparent;
}

/* ==================================================================================================
　　　side レイアウト
================================================================================================== */
/* --- side link --- */
#sidebar a {
	text-decoration : none;　/*下線消去*/
}
/* ウィジェットタイトル　----------------------------------- */
h3.widget-sidebar-title.widget-title {
	position: relative;
	margin-block-end: 1rem;
	padding: .3rem .4rem;
	border-bottom: 3px solid #E8E4E2;
	background: transparent;
	font-weight: bold;
}
h3.widget-sidebar-title.widget-title:after {
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 20%;
	height: 3px;
	background: var(--pss-color-key);
	content: '';
}

/* 検索フォーム　----------------------------------- */
/* 検索ボックス */
.wp-block-search__inside-wrapper {
	display: block;
	position: relative;
	top: 0; /*中央寄せ*/
	left: 50%;
	width: 300px;
	height: 2.2rem;
	max-width: 100%;
	padding: 3px 10px;
	overflow: hidden;
	box-sizing: border-box;
	border-radius: 20px;
	background: #E8E4E2;
	transform: translate(-50%,0);
}
/*検索フォーム*/
#wp-block-search__input-1, .wp-block-search__input {
	width: 100%;
	border: none;
	border-radius: 4px;
	background: none;
	outline: 0;
}
/*検索ボタン*/
button.wp-block-search__button {
	position: absolute;
	top: -0.3rem;
	right: 0;
	height: 2.2rem;
	padding: 0;
	border: none;
	background-color: transparent;
	font-family: "Font Awesome 6 Free";
	font-size: 1.3rem;
	font-weight: 900;
	color: #05192C;
	outline : none;
	cursor: pointer;
}

/* カテゴリ　---------------------------------------- */
/* 件数表示 */
.post-count {
	margin-block: 3px;
	padding: 2px 10px;
	border: 1px solid #E8E4E2;/*線*/
	border-radius: 20px;/*角の丸み*/
	background-color: transparent;
	font-size: .7rem;
	transition: background 1s;
}

/* 親カテゴリ */
.widget_categories ul li a {
	position: relative;
	padding: .5rem .5rem;
	border-bottom: none;
}
.widget_categories ul li a::before {
	padding-inline-end: .4rem;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--pss-color-key);
	content: "\f07b";
}

.widget_categories > ul > li > a:first-child {
	border-top: none;
}

/* 子カテゴリ */
.widget_categories ul li ul li a::before {
	padding-inline-end: .4rem;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--pss-color-key);
	content: "\f105";
}

/* -- カテゴリ hover -- */
@media (any-hover: hover) {
	.cat-item a:hover .post-count {
		background: #E8E4E2;
	}
	.widget_categories ul li a:hover {
		background-color:transparent; /*カテゴリ名のみ背景透明化*/
	}
	/* 親 */
	.widget_categories ul li a:hover::before {
		font-family: "Font Awesome 6 Free";
		font-weight: 900;
		content: "\f07c";
	}
	/* 子 */
	.widget_categories ul li ul li a:hover::before {
		font-family: "Font Awesome 6 Free";
		font-weight: 900;
		content: "\f101";
	}
}



/* ======================================================================
　　　footer レイアウト
====================================================================== */
#footer {
	background-color: var(--pss-footer-bg);
	color: #ffffff;
}
/* --- フッターナビ --- */
	.navi-footer-in a {
		transition: all 0.3s ease-in-out;
	}

/* -- footer hover -- */
@media (any-hover: hover) {
	.navi-footer-in a:hover {
		background: transparent;
		transform: translateY(-0.18rem);
	}	
}



/*media Queries - 1023px以下　> 1カラムに切替
---------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 1023px) {

	.content-in {
		max-width: 720px;
	}
	/*-- ここまで --*/
}

/*media Queries - 959px以下　> 1カラムに切替 > 余白なし
---------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 738px) {
	
	#main:has(#breadcrumb) {
		border-radius: 0;
	}

	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {

	
	/*-- ここまで --*/
}	
	

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {

	
	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {
	/*ヘッダー*/
	#header .site-name-text {
		width: 80%;
	}
	
	/* メインエリア 余白設定 */
	#main {
		margin-inline: .5rem;
		padding: 0;
	}
	#main:has(#breadcrumb) {
		margin: 0;
		padding: .5rem;
	}
	#main:has(#breadcrumb):not(:has(#list)) {
		padding: .5rem 1.2rem;
	}

	/* 記事内ページ送りナビ img */
	.pager-post-navi a figure {
		display: none;
	}