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




/****************************************************
 * 色々な設定
 ****************************************************/

/* スムーススクロール */
html {
	scroll-behavior: smooth;
}

/* ふわっとした動作（指定箇所に"fadeIn"を入れる） */
.fadeIn,
.eye-catch img {
	animation-name:fadeInAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
	opacity:0;
}
@keyframes fadeInAnime {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* サムネイルの横幅 */
.eye-catch {
	min-width: 100%;
}

/* 画像の余白削除 */
img { vertical-align: top; }

/* 画像サイズを100% */
img { width: 100%; }

/* 改行削除 */
@media screen and (min-width: 768px) {
	.brSP { display: none; }	/* スマホだけ改行したいとき */
}
@media screen and (max-width: 768px) {
	.brPC { display: none; }	/* パソコンだけ改行したいとき */
}

/* reCAPTCHAの中央表示 */
.grecaptcha-badge {
	margin: auto;
}

/* 検索窓の虫眼鏡の位置 */
.search-box br {
	display: none;
}



/****************************************************
 * テキストデザイン
 ****************************************************/

/* マーカー */
mark {
	color: #394154;
	background: repeating-linear-gradient(-45deg, #FFDDBC 0 2px, transparent 2px 4px) bottom left / 100% 0.8em no-repeat;
	font-weight: bold;
}

/* テキスト（三原色） */
.textR,
.textG,
.textB {
	font-weight:bold;
}
.textR { color:red; }
.textG { color:green; }
.textB { color:blue; }

/* 小文字化（左寄せ） */
.textSmall {
	font-size: 80%;
}



/****************************************************
 * ボックスデザイン
 ****************************************************/

/* ボックス（グレー） */
.boxGray {
	background-color: #F5F5F5;
	padding: 1em;
}
.boxGray-title {
	font-weight: bold;
}
.boxGray-title::before {
	content: '✔ ';
	color: #88ABDA;
	font-size: 1.2em;
}
.boxGray ul,
.boxGray ol {
	margin-bottom: 0!important;
}
.boxGray li a {
	color: #6FB6C3;
	font-weight: bold;
	transition: all .3s;
}
.boxGray li a:hover {
	color: #A3EAF7;
}
.boxGray p {
	margin-bottom: 0!important;
}



/****************************************************
 * リンクデザイン
 ****************************************************/

a {
	color: #1A80DA;
	font-weight: 500;
	text-decoration: none;
	transition: all .3s;
}
a img {
	transition: all .3s;
}
a img:hover {
	opacity: .7;
}


/* リンク（関連記事） */
.linkRelation {
	color: #0044CC;
	text-decoration: none!important;
	transition: all .3s;
}
.linkRelation:hover {
	color: #429EFF;
}
.linkRelation::before {
	content: "関連記事";
	color: #FFF;
	background-color: #88ABDA;
	margin-right: .7em;
	padding: .3em .7em .4em;
}



/****************************************************
 * 吹き出しデザイン
 ****************************************************/

.balloonUser {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
	background-color: #FFF;
	border-radius: 12px;
	padding: 16px;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s ease-out forwards;
}
.balloonUser-icon {
	flex-shrink: 0;
	margin-right: 14px;
}
.balloonUser-icon img {
	width: 78px;
	height: 78px;
	border-radius: 50%;
	border: 2px solid #CCC;
	background-color: #FFF;
}
.balloonUser-icon::after {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #555;
	text-align: center;
	content: "";
}

.balloonAuthor::after { content:"キタイチ"; color:#394154; font-weight:bold; }
.balloonAuthor img { border: 2px solid #D18F73; }
.balloonTeacher::after { content:"さくら先生"; color:#B093F7; font-weight:bold; }
.balloonTeacher img { border: 2px solid #BABCDA; }

.balloonUser-review {
	position: relative;
	color: #333;
	background-color: #F2F2F2;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.7;
	max-width: 100%;
}

.balloonUser-review b {
	color: #535252;
}

/* 吹き出しのしっぽ */
.balloonUser-review::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 16px;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 10px solid #F2F2F2;
}
/* アニメーション（ふわっと上がって出てくる） */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* モバイル対応 */
@media (max-width: 480px) {
	.balloonUser {
		flex-direction: row;
		align-items: flex-start;
	}
	.balloonUser-review {
		font-size: 14px;
		line-height: 1.6;
	}
}



/****************************************************
 * 画像デザイン
 ****************************************************/

/* 画像（キャプション設定） */
figure {
	text-align: center;
}
figure img {
	width: 100%;
}
figure figcaption {
	margin-top: .5em;
}



/****************************************************
 * アコーディオンデザイン（単体）
 ****************************************************/

.accordionSingle {
	max-width: 100%;
	margin: 0 auto 1.8em;
}
.accordionSingle-item {
	margin-bottom: 12px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
	background: #f7fafd;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
.accordionSingle-item:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.accordionSingle-detail {
	width: 100%;
	transition: all 0.3s ease;
	background: transparent;
}
.accordionSingle-question {
	list-style: none;
	cursor: pointer;
	padding: 20px;
	position: relative;
	font-size: 17px;
	font-weight: 600;
	color: #2f3e4d;
	background-color: transparent;
}
.accordionSingle-question::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 20px;
	color: #5c738a;
	transition: transform 0.3s ease;
}
.accordionSingle-detail[open] .accordionSingle-question {
	border-bottom: 1px solid #c3d2e0;
}
.accordionSingle-detail[open] .accordionSingle-question::after {
	content: "−";
	transform: rotate(0deg);
}
.accordionSingle-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.6;
	background-color: #ffffff;
	transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordionSingle-answer b {
	color: #0077CC;
}
.accordionSingle-answer ul,
.accordionSingle-answer ol,
.accordionSingle-answer table {
	margin-bottom: 0;
}
.accordionSingle-detail[open] .accordionSingle-answer {
	max-height: 100%;
	padding: 20px;
}
.accordionSingle-detail[open] .accordionSingle-answer p {
	font-size: 90%;
	margin-bottom: 1.5em;
}
/* ▼ レスポンシブ調整 */
@media screen and (max-width: 600px) {
	.accordionSingle-question {
		font-size: 16px;
		padding: 18px 30px 16px 16px;
	}
	.accordionSingle-question::before {
		left: 12px;
		top: 16px;
		font-size: 14px;
		padding: 3px 8px;
	}
	.accordionSingle-question::after {
		right: 10px;
		top: 16px;
		font-size: 18px;
	}
	.accordionSingle-answer {
		font-size: 14px;
		padding: 0 16px;
	}
	.accordionSingle-detail[open] .accordionSingle-answer {
		padding: 16px;
	}
}




