/* ============================================================
   FAQ 下層ページ専用スタイル
   Figma: 463:3 (PC) / 463:516 (SP)
   共通トークン(--wao-*)は css/theme.css の :root を参照。
   ============================================================ */

.wao-faq {
	background: var(--wao-white);
}

/* ---- 本文ラッパー（PCで最大1000px中央） ---- */
.wao-faq__body {
	padding: 56px var(--wao-pad) 80px;
}

/* ------------------------------------------------------------
   カテゴリタブ
   ------------------------------------------------------------ */
.wao-faq__tabs {
	display: flex;
	gap: 80px;
	padding: 0 4px;
	margin-bottom: 48px;
}

.wao-faq__tab {
	position: relative;
	padding: 0 0 8px;
	border: 0;
	background: none;
	color: var(--wao-bar);
	font-family: var(--wao-font-noto);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.wao-faq__tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	background: var(--wao-bar);
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.wao-faq__tab.is-active::after {
	opacity: 1;
}

.wao-faq__tab:not(.is-active) {
	opacity: 0.85;
}

.wao-faq__tab:not(.is-active):hover {
	opacity: 1;
}

/* ------------------------------------------------------------
   パネル（カテゴリ）
   ------------------------------------------------------------ */
.wao-faq__panel[hidden] {
	display: none;
}

/* 全カテゴリ縦積み: パネル間の余白 */
.wao-faq__panel + .wao-faq__panel {
	margin-top: 56px;
}

/* タブでスクロール移動した際、sticky ヘッダーに見出しが隠れないよう余白を確保 */
.wao-faq__panel {
	scroll-margin-top: 88px;
}

/* カテゴリ見出し（中央・アイコン＋テキスト） */
.wao-faq__cathead {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 24px;
	color: var(--wao-bar);
	font-family: var(--wao-font-zen);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* 見出し左のアイコン（Figma書き出しのSVG、24x24） */
.wao-faq__cathead-ico {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------
   アコーディオン項目
   ------------------------------------------------------------ */
.wao-acc__item {
	margin-bottom: 20px;
}

.wao-acc__item:last-child {
	margin-bottom: 0;
}

/* 質問行（薄緑カード） */
.wao-acc__head {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 60px;
	padding: 12px 30px 12px 30px;
	border: 0;
	background: var(--wao-mint);
	border-radius: 10px;
	color: var(--wao-bar);
	font-family: var(--wao-font-noto);
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wao-acc__item.is-open .wao-acc__head {
	border-radius: 10px 10px 0 0;
}

.wao-acc__q {
	flex: 0 0 auto;
	margin-right: 14px;
	color: var(--wao-bar);
	font-family: var(--wao-font-zen);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.wao-acc__qtext {
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

/* 右端の開閉丸ボタン */
.wao-acc__mark {
	flex: 0 0 auto;
	position: relative;
	width: 36px;
	height: 36px;
	margin-left: 16px;
	border-radius: 50%;
	background: var(--wao-white);
}

.wao-acc__mark::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--wao-bar);
	border-bottom: 2px solid var(--wao-bar);
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.wao-acc__item.is-open .wao-acc__mark::before {
	transform: translate(-50%, -30%) rotate(225deg);
}

/* 回答本文（白背景・枠線なし） */
.wao-acc__body {
	display: none;
	padding: 24px 40px 28px;
	background: var(--wao-white);
	border-radius: 0 0 10px 10px;
}

.wao-acc__item.is-open .wao-acc__body {
	display: block;
}

.wao-acc__body p {
	margin: 0 0 1.2em;
	color: var(--wao-text-sub);
	font-family: var(--wao-font-noto);
	font-size: 14px;
	line-height: 1.9;
}

.wao-acc__body p:last-child {
	margin-bottom: 0;
}

.wao-acc__figure {
	margin: 0 0 20px;
}

.wao-acc__figure img {
	display: block;
	width: 380px;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* ----------------------------------------------------------
   回答本文の Rich text スタイル（destyle.css のリセットを復元）
   news-single.css の .wao-newssingle__content と同じ考え方。
   ---------------------------------------------------------- */
.wao-acc__body a {
	color: var(--wao-teal);
	text-decoration: underline;
}

.wao-acc__body img {
	max-width: 100%;
	height: auto;
}

.wao-acc__body ul,
.wao-acc__body ol {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.wao-acc__body ul {
	list-style: disc;
}

.wao-acc__body ol {
	list-style: decimal;
}

.wao-acc__body li {
	margin: 0 0 0.4em;
}

/* Contentful のリッチテキストは <li><p> と入れ子になるため、内側 p の余白を消す */
.wao-acc__body li p {
	margin: 0;
}

.wao-acc__body h2,
.wao-acc__body h3,
.wao-acc__body h4 {
	margin: 1.4em 0 0.6em;
	color: var(--wao-text-sub);
	font-family: var(--wao-font-noto);
	font-weight: 700;
	line-height: 1.4;
}

.wao-acc__body h2 {
	font-size: 1.3em;
}

.wao-acc__body h3 {
	font-size: 1.15em;
}

.wao-acc__body h4 {
	font-size: 1.05em;
}

.wao-acc__body blockquote {
	margin: 0 0 1.2em;
	padding: 12px 18px;
	border-left: 3px solid var(--wao-badge, #2f8f4e);
	background: #f4f6f7;
}

.wao-acc__body blockquote > *:last-child {
	margin-bottom: 0;
}

.wao-acc__body hr {
	height: 0;
	margin: 1.8em 0;
	border: 0;
	border-top: 1px solid var(--wao-rule-faint);
}

/* ============================================================
   PC（1024px以上）
   ============================================================ */
@media (min-width: 1024px) {

	.wao-faq__body {
		max-width: 1000px;
		padding: 64px 0 32px;
	}

	/* タブ・カードは Figma に合わせ 900px 幅で左に寄せる */
	.wao-faq__tabs {
		padding-left: 70px;
		margin-bottom: 56px;
	}

	.wao-faq__panel {
		max-width: 900px;
		margin: 0 auto;
		scroll-margin-top: 120px;
	}
}

/* ============================================================
   SP（〜767px）
   ============================================================ */
@media (max-width: 767px) {

	.wao-faq__body {
		padding: 40px 20px 64px;
	}

	/* タブ 2×2 グリッド */
	.wao-faq__tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px 16px;
		padding: 0 12px;
		margin-bottom: 40px;
		justify-items: start;
	}

	.wao-faq__tab {
		font-size: 15px;
	}

	.wao-faq__cathead {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.wao-acc__head {
		align-items: flex-start;
		padding: 16px 18px;
		border-radius: 10px;
	}

	.wao-acc__item.is-open .wao-acc__head {
		border-radius: 10px 10px 0 0;
	}

	.wao-acc__q {
		margin-right: 10px;
		font-size: 18px;
		line-height: 1.4;
	}

	.wao-acc__qtext {
		font-size: 15px;
		line-height: 1.4;
	}

	.wao-acc__mark {
		width: 32px;
		height: 32px;
		margin-left: 10px;
	}

	.wao-acc__body {
		padding: 22px 20px 26px;
	}

	.wao-acc__figure img {
		width: 100%;
	}
}
