@charset "UTF-8";

/*
    よくある質問(トップページの .p-topFaq セクション・一覧ページ archive-exsol_faq.php 共通)
    カテゴリータブ + アコーディオン(<details>)。動作は assets/js/faq.js。
    トップページ側のセクション幅・余白・見出しは front-page.css の共通ルールに .p-topFaq を加えて揃えている。
*/

/* 一覧ページ: SWELL標準の.l-content{padding-top:4em}を解除し、ヘッダーとメインビジュアルを詰める */
.post-type-archive-exsol_faq #content {
	padding-top: 0;
}
.post-type-archive-exsol_faq #main_content.l-article {
	max-width: 1400px;
}

.p-faq {
	max-width: 880px;
	margin: 0 auto;
	/* <details> の開閉アニメーション(対応ブラウザのみ。非対応ブラウザではそのまま開閉する) */
	interpolate-size: allow-keywords;
}

/* カテゴリータブ */
.p-faq__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}
.p-faq__tab {
	appearance: none;
	font-family: var(--brand-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--brand-color-main);
	background: #fff;
	border: 1px solid var(--brand-divider-color);
	border-radius: 999px;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.p-faq__tab:hover {
	border-color: var(--brand-color-main);
}
.p-faq__tab[aria-selected="true"] {
	color: #fff;
	background: var(--brand-color-main);
	border-color: var(--brand-color-main);
}
.p-faq__tab:focus-visible {
	outline: 2px solid var(--brand-color-accent);
	outline-offset: 2px;
}

/* アコーディオン */
.p-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.p-faq__item {
	background: #fff;
	border: 1px solid rgba(0, 104, 183, 0.1);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 104, 183, 0.05);
	overflow: hidden;
	scroll-margin-top: 100px;
}
.p-faq__item[hidden] {
	display: none;
}
.p-faq__item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}
.p-faq__item[open]::details-content {
	block-size: auto;
}

.p-faq__q {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	cursor: pointer;
	list-style: none;
}
.p-faq__q::-webkit-details-marker {
	display: none;
}
.p-faq__q:focus-visible {
	outline: 2px solid var(--brand-color-accent);
	outline-offset: -2px;
	border-radius: 16px;
}
.p-faq__qText {
	flex: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--brand-font-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--brand-color-text);
}
.p-faq__qText::before,
.p-faq__qText::after {
	content: none;
}

.p-faq__mark {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-family: var(--brand-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}
.p-faq__mark.-q {
	color: #fff;
	background: var(--brand-color-main);
}
.p-faq__mark.-a {
	color: var(--brand-color-accent);
	background: rgba(225, 128, 54, 0.12);
}

/* 開閉アイコン(+ → −) */
.p-faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}
.p-faq__icon::before,
.p-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	border-radius: 1px;
	background: var(--brand-color-main);
	transition: transform 0.3s ease;
}
.p-faq__icon::after {
	transform: rotate(90deg);
}
.p-faq__item[open] .p-faq__icon::after {
	transform: rotate(0deg);
}

.p-faq__a {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 24px;
	padding: 20px 0 24px;
	border-top: 1px dashed var(--brand-divider-color);
}
.p-faq__aText {
	flex: 1;
	padding-top: 4px;
}
.p-faq__aText > :first-child {
	margin-top: 0;
}
.p-faq__aText > :last-child {
	margin-bottom: 0;
}

/* 回答内のリンク(本文中のテキストリンク・関連リンクボタン) */
.p-faq__aText a:not(.u-btnSweep) {
	color: var(--brand-color-main);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.p-faq__aText a:not(.u-btnSweep):hover {
	text-decoration: none;
}
.p-faq__link {
	margin: 16px 0 0;
}
.p-faq__link .u-btnSweep {
	font-size: 14px;
	padding: 8px 20px;
}

/* トップページのセクション */
.p-topFaq__more {
	text-align: center;
	margin: 40px 0 0;
}

/* 一覧ページ */
.p-faqArchive {
	padding: 64px 24px 24px;
}
.p-faqArchive__empty {
	text-align: center;
}
.p-faqArchive__contact {
	max-width: 880px;
	margin: 48px auto 80px;
	padding: 40px 24px;
	text-align: center;
	background: var(--brand-color-sub);
	border-radius: var(--brand-radius-card);
}
.p-faqArchive__contactTitle {
	font-size: 20px;
	margin: 0 0 8px;
}
.p-faqArchive__contact .brand-body-text {
	margin: 0 0 24px;
}

@media (max-width: 768px) {
	.p-faq__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin-bottom: 24px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.p-faq__tabs::-webkit-scrollbar {
		display: none;
	}
	.p-faq__tab {
		flex-shrink: 0;
		font-size: 13px;
		padding: 8px 16px;
	}
	.p-faq__q {
		gap: 12px;
		padding: 16px;
	}
	.p-faq__qText {
		font-size: 15px;
	}
	.p-faq__mark {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.p-faq__a {
		gap: 12px;
		margin: 0 16px;
		padding: 16px 0 20px;
	}
	.p-faqArchive {
		padding: 40px 0 16px;
	}
	.p-faqArchive__contact {
		margin: 32px auto 56px;
		padding: 32px 20px;
	}
	.p-faqArchive__contactTitle {
		font-size: 18px;
	}
}
