@charset "UTF-8";
/* =========================================================
 * SaaS FAQ ブロック（アコーディオン）
 * ショートコード [saas_faq id="..."] の出力スタイル
 * 評価スコアブロック / 比較表ブロックと配色を統一
 *  - 黄色：Qバッジ・装飾
 *  - 濃紺：見出し・質問文
 *  - オレンジ：Aバッジ・アクセント
 * ========================================================= */

.hbz-saas-faq {
	--hbz-faq-bg: #ffffff;
	--hbz-faq-border: #e6e8ec;
	--hbz-faq-text: var(--color_text, #2b2b2b);
	--hbz-faq-muted: #6b7280;
	--hbz-faq-soft: #f7f8fa;
	--hbz-faq-navy: #1f3a5f;
	--hbz-faq-accent: var(--color_main, #2589d0);
	--hbz-faq-cta: #ff7a00;
	--hbz-faq-star: #f5b400;
	--hbz-faq-radius: 14px;
	--hbz-faq-radius-sm: 10px;
	--hbz-faq-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

	box-sizing: border-box;
	max-width: 720px;
	margin: 2em auto;
	padding: 22px 24px;
	background: var(--hbz-faq-bg);
	color: var(--hbz-faq-text);
	border: 1px solid var(--hbz-faq-border);
	border-radius: var(--hbz-faq-radius);
	box-shadow: var(--hbz-faq-shadow);
	font-size: 15px;
	line-height: 1.7;
}

.hbz-saas-faq *,
.hbz-saas-faq *::before,
.hbz-saas-faq *::after {
	box-sizing: border-box;
}

/* ---------- セクションタイトル ---------- */
.hbz-saas-faq-title {
	position: relative;
	margin: 0 0 16px;
	padding: 0 0 10px 32px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--hbz-faq-navy);
	border: none;
	border-bottom: 2px solid var(--hbz-faq-soft);
}
.hbz-saas-faq-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-60%);
	width: 22px;
	height: 22px;
	background: var(--hbz-faq-star);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21Zm.001 5.25a1.65 1.65 0 0 1 1.65 1.65c0 .91-.5 1.36-1.31 1.97-.84.62-1.49 1.13-1.49 2.13v.5h2.06v-.36c0-.65.5-1.06 1.39-1.7.91-.66 1.83-1.49 1.83-3.02a3.36 3.36 0 0 0-3.45-3.34 3.45 3.45 0 0 0-3.69 3.4l2.07.13c.05-.85.69-1.36 1.46-1.36Zm-1.27 9.97a1.27 1.27 0 1 1 2.54 0 1.27 1.27 0 0 1-2.54 0Z"/></svg>') center / contain no-repeat;
	        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21Zm.001 5.25a1.65 1.65 0 0 1 1.65 1.65c0 .91-.5 1.36-1.31 1.97-.84.62-1.49 1.13-1.49 2.13v.5h2.06v-.36c0-.65.5-1.06 1.39-1.7.91-.66 1.83-1.49 1.83-3.02a3.36 3.36 0 0 0-3.45-3.34 3.45 3.45 0 0 0-3.69 3.4l2.07.13c.05-.85.69-1.36 1.46-1.36Zm-1.27 9.97a1.27 1.27 0 1 1 2.54 0 1.27 1.27 0 0 1-2.54 0Z"/></svg>') center / contain no-repeat;
}

/* ---------- リスト ---------- */
.hbz-saas-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ---------- アコーディオン項目 ---------- */
.hbz-saas-faq-item {
	border: 1px solid var(--hbz-faq-border);
	border-radius: var(--hbz-faq-radius-sm);
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hbz-saas-faq-item:hover {
	border-color: #d6dbe3;
}
.hbz-saas-faq-item[open] {
	border-color: color-mix(in srgb, var(--hbz-faq-cta) 35%, var(--hbz-faq-border));
	box-shadow: 0 2px 8px rgba(255, 122, 0, 0.08);
}

/* ---------- 質問（summary） ---------- */
.hbz-saas-faq-q {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	font-weight: 700;
	color: var(--hbz-faq-navy);
	background: #fff;
	transition: background 0.18s ease;
	list-style: none; /* Firefox: 標準マーカー除去 */
	user-select: none;
	outline-offset: 2px;
}
.hbz-saas-faq-q:hover {
	background: var(--hbz-faq-soft);
}
.hbz-saas-faq-q:focus-visible {
	outline: 2px solid var(--hbz-faq-accent);
	outline-offset: -2px;
}
.hbz-saas-faq-q::-webkit-details-marker {
	display: none;
}
.hbz-saas-faq-q::marker {
	display: none;
	content: "";
}

.hbz-saas-faq-q-label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hbz-faq-star);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(245, 180, 0, 0.4);
}

.hbz-saas-faq-q-text {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.55;
	word-break: break-word;
}

/* ＋ → － トグルアイコン（CSSで描画、回転で切替） */
.hbz-saas-faq-q-icon {
	flex: 0 0 auto;
	position: relative;
	width: 18px;
	height: 18px;
	color: var(--hbz-faq-navy);
}
.hbz-saas-faq-q-icon::before,
.hbz-saas-faq-q-icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.hbz-saas-faq-q-icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
}
.hbz-saas-faq-q-icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	margin-left: -1px;
}
/* open状態で縦棒を回転 → ＝ になり「－」表現に */
.hbz-saas-faq-item[open] .hbz-saas-faq-q-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

/* ---------- 回答（アニメーション対象） ---------- */
.hbz-saas-faq-a {
	overflow: hidden;
	background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
	border-top: 1px dashed var(--hbz-faq-border);
}
.hbz-saas-faq-a-inner {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
}
.hbz-saas-faq-a-label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hbz-faq-cta);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(255, 122, 0, 0.4);
}
.hbz-saas-faq-a-text {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.7;
	color: var(--hbz-faq-text);
}

/* ---------- レスポンシブ（〜600px） ---------- */
@media (max-width: 600px) {
	.hbz-saas-faq {
		padding: 18px 16px;
		font-size: 14px;
	}
	.hbz-saas-faq-title {
		font-size: 18px;
		padding-left: 28px;
	}
	.hbz-saas-faq-title::before {
		width: 20px;
		height: 20px;
	}
	.hbz-saas-faq-q {
		padding: 12px 14px;
		gap: 10px;
	}
	.hbz-saas-faq-q-text {
		font-size: 14px;
	}
	.hbz-saas-faq-q-label,
	.hbz-saas-faq-a-label {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}
	.hbz-saas-faq-a-inner {
		padding: 12px 14px;
	}
}

/* ---------- 印刷時：常時展開 ---------- */
@media print {
	.hbz-saas-faq {
		max-width: 100%;
		margin: 0 0 16px;
		padding: 12px;
		border: 1px solid #999;
		box-shadow: none;
		page-break-inside: avoid;
		break-inside: avoid;
	}
	.hbz-saas-faq-item {
		border: 1px solid #999;
		page-break-inside: avoid;
		break-inside: avoid;
	}
	.hbz-saas-faq-a {
		display: block !important;
		max-height: none !important;
		opacity: 1 !important;
		background: transparent;
	}
	.hbz-saas-faq-q-icon {
		display: none;
	}
}

/* ---------- アニメーション低減設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
	.hbz-saas-faq-item,
	.hbz-saas-faq-q,
	.hbz-saas-faq-q-icon::before,
	.hbz-saas-faq-q-icon::after {
		transition: none !important;
	}
}
