/* FAQ アーカイブ。広幅 = カテゴリー（サイド）＋一覧（メイン）の 2 カラム、狭幅は縦積み。
   アコーディオンは core/details（下罫線・+/− 丸マーカー）。 */

.faq-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

/* カテゴリータブ（広幅は縦タブ、アクティブは右にアクセント線）。 */
.faq-cats {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--wp--preset--color--line, #ececec);
}
.faq-cat {
	display: block;
	padding: 12px 18px;
	margin-right: -1px;
	border-right: 2px solid transparent;
	font-family: var(--wp--custom--brand-ui, var(--wp--custom--brand-body));
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #555;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}
.faq-cat:hover {
	color: var(--aureate, #b89766);
}
.faq-cat.is-current {
	color: var(--aureate, #b89766);
	border-right-color: var(--aureate, #b89766);
	font-weight: 700;
}

/* カテゴリー見出し（メイン側）。 */
.faq-group__title {
	font-family: var(--wp--custom--brand-heading);
	font-weight: 700;
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.4;
	letter-spacing: 0.06em;
	color: var(--aureate, #b89766);
	margin: 0 0 clamp(16px, 2.4vw, 24px);
}

/* アコーディオン（core/details、トークン化） */
.faq-list {
	border-top: 1px solid var(--wp--preset--color--line, #ececec);
}
.wp-block-details.faq-item {
	border-bottom: 1px solid var(--wp--preset--color--line, #ececec);
	padding: 14px 0;
}
.wp-block-details.faq-item > summary {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	padding: 4px 0;
	font-family: var(--wp--custom--brand-ui, var(--wp--custom--brand-body));
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text, #111);
}
.wp-block-details.faq-item > summary::-webkit-details-marker {
	display: none;
}
/* 開閉マーカー +/− は質問1行目（24px 高）の中央に合わせる。 */
.wp-block-details.faq-item > summary::before {
	content: "+";
	display: inline-block;
	width: 16px;
	height: 16px;
	line-height: 14px;
	text-align: center;
	color: var(--aureate, #b89766);
	border: 1px solid var(--aureate, #b89766);
	border-radius: 50%;
	font-size: 14px;
	flex-shrink: 0;
	margin-top: 4px;
}
.wp-block-details.faq-item[open] > summary::before {
	content: "\2212"; /* − */
}
.faq-a {
	font-family: var(--wp--custom--brand-ui, var(--wp--custom--brand-body));
	font-size: 14px;
	line-height: 1.75;
	color: var(--text, #111);
	margin: 10px 0 6px;
	padding-left: 24px;
}
.faq-a > :first-child {
	margin-top: 0;
}
.faq-a > :last-child {
	margin-bottom: 0;
}
.faq-a a {
	color: var(--aureate, #b89766);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.faq-empty {
	padding: 24px 0;
	color: #666;
}

/* 1024px 以下: 1カラム化、カテゴリーは横スクロールの上タブ。 */
@media (max-width: 1024px) {
	.faq-layout {
		grid-template-columns: 1fr;
		gap: clamp(20px, 4vw, 28px);
	}
	/* タブのスクロール領域を archive-main のガターを相殺して画面端まで伸ばす。 */
	.faq-cats-scroll {
		margin-left: -32px;
		margin-right: -32px;
		padding-left: 32px;
		padding-right: 32px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.faq-cats {
		flex-direction: row;
		flex-wrap: nowrap;
		width: max-content;
		min-width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--line, #ececec);
	}
	.faq-cat {
		margin-right: 0;
		margin-bottom: -1px;
		border-right: 0;
		border-bottom: 2px solid transparent;
		padding: 10px 14px;
		font-size: 13px;
		white-space: nowrap;
		flex-shrink: 0;
	}
	.faq-cat.is-current {
		border-right-color: transparent;
		border-bottom-color: var(--aureate, #b89766);
	}
}

/* SP（≤700px）はガター 16px に合わせる。 */
@media (max-width: 700px) {
	.faq-cats-scroll {
		margin-left: -16px;
		margin-right: -16px;
		padding-left: 16px;
		padding-right: 16px;
	}
}
