@charset "utf-8";
/* =====================================================================
   FAQ（よくある質問）一覧 専用スタイル
   - すべて .faq 配下にスコープ。他ページには影響しない。
   - フォント・基本レイアウトは既存の .contents / .content-inner / .page-title を継承。
   ===================================================================== */

/* ページタイトル（他ページ .philosophy .page-title 等に準拠） */
.faq .page-title {
	font-size: 3rem;
	margin-bottom: 8rem;
	height: 7rem;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border-bottom: 1px dotted #000;
}

.faq .faq-group {
	margin-top: 56px;
}
.faq .faq-group:first-of-type {
	margin-top: 32px;
}

/* 中見出し（カスタムタクソノミー名で区切る） */
.faq .faq-group-title {
	margin: 0 0 24px;
	padding: 0 0 12px;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.5;
	border-bottom: 1px solid #ddd;
}

.faq .faq-list {
	margin: 0;
}

.faq .faq-item {
	padding: 22px 0;
	border-bottom: 1px solid #eee;
}

/* 質問（記事タイトル）＝クリックで開閉するトグル */
.faq .faq-q {
	position: relative;
	margin: 0;
	padding-left: 1.8em;
	padding-right: 1.8em;
	font-weight: bold;
	line-height: 1.7;
	cursor: pointer;
}
.faq .faq-q::before {
	content: "Q";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: bold;
}
/* 開閉インジケーター（シェブロン）。is-open で回転 */
.faq .faq-q::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 0.45em;
	width: 8px;
	height: 8px;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}
.faq .faq-item.is-open .faq-q::after {
	transform: rotate(-135deg);
}

/* 回答（ACF: 回答 / テキストエリア）＝既定は閉じる（JS有効時。無効時はnoscriptで表示） */
.faq .faq-a {
	display: none;
	position: relative;
	margin: 14px 0 0;
	padding-left: 1.8em;
	line-height: 1.9;
}
.faq .faq-a::before {
	content: "A";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: bold;
}

@media screen and (max-width: 768px) {
	/* タイトル下の余白を他ページ（philosophy/privacypolicy）と同様に詰める */
	.faq .page-title {
		margin-bottom: 3rem;
		height: auto;
	}
	.faq .faq-group {
		margin-top: 40px;
	}
	.faq .faq-group-title {
		font-size: 18px;
	}
	.faq .faq-item {
		padding: 18px 0;
	}
}
