/* =========================================================
   Q&A 個別ページ（single-qa.php）
   カラートークンは blog-hub.css / qa-archive.css と共通語彙（--accent 系）。
   既定値＝ai-search。サイト別の色は theme-vars.css が上書きする（色だけ差分）。
   .l-single-qa には .blog-hub を付けないため、ここでトークンを自前定義する。
   ========================================================= */
.l-single-qa{
	--accent:#864B98; --accent-2:#6f3c80; --accent-soft:#f1e6f4;
	--cv-orange:#ef7322;
	--fg:#15212f; --fg-muted:#4b5663; --fg-dim:#86929f;
	--border:#e2e7ec;
}

/* パンくず */
.l-single-qa .qa-breadcrumb { font-size: 12px; color: var(--fg-dim); margin: 0 0 16px; line-height: 1.8; }
.l-single-qa .qa-breadcrumb a { color: var(--accent); text-decoration: none; }
.l-single-qa .qa-breadcrumb a:hover { text-decoration: underline; }
.l-single-qa .qa-breadcrumb__sep { margin: 0 6px; }
.l-single-qa .qa-breadcrumb__current { color: var(--fg-dim); }

/* カテゴリーチップ */
.qa-single__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qa-single__cat {
	display: inline-block; padding: 4px 12px;
	background: var(--accent-soft); color: var(--accent);
	border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none;
}
.qa-single__cat:hover { background: var(--accent); color: #fff; }

/* Q/A バッジ */
.qa-badge {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 8px;
	background: var(--accent); color: #fff;
	font-weight: 700; font-size: 18px; line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
}
.qa-badge--a { background: var(--cv-orange); }
.qa-badge--sm { width: 20px; height: 20px; font-size: 12px; border-radius: 5px; vertical-align: middle; margin-right: 8px; }

/* 質問 */
.qa-single__question {
	display: flex; gap: 14px; align-items: flex-start;
	font-size: clamp(1.35em, 3.4vw, 1.8em);
	font-weight: 700; line-height: 1.55;
	margin: 0 0 24px; padding-bottom: 22px;
	border-bottom: 2px solid var(--border);
}
.qa-single__question-text { flex: 1; padding-top: 2px; }

/* 回答 */
.qa-single__answer { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 48px; }
.qa-single__answer-body { flex: 1; min-width: 0; }
.qa-single__answer-body > :first-child { margin-top: 0; }

/* 関連Q&A */
.qa-related {
	margin: 40px 0; padding: 24px;
	background: var(--accent-soft);
	border-radius: 12px;
}
.qa-related__title { font-size: 1.15em; font-weight: 700; margin: 0 0 16px; }
.qa-related__list { list-style: none; margin: 0; padding: 0; }
.qa-related__list li { border-bottom: 1px dashed var(--border); }
.qa-related__list li:last-child { border-bottom: none; }
.qa-related__list a {
	display: block; padding: 12px 4px;
	color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.6;
}
.qa-related__list a:hover { color: var(--accent); }

/* 戻る */
.l-single-qa .qa-back { margin-top: 8px; }
.l-single-qa .qa-back a { color: var(--accent); font-weight: 600; text-decoration: none; }
.l-single-qa .qa-back a:hover { text-decoration: underline; }

@media screen and (max-width: 768px) {
	.qa-single__question { gap: 10px; }
	.qa-badge { width: 28px; height: 28px; font-size: 15px; }
	.qa-single__answer { gap: 10px; }
	.qa-related { padding: 18px; }
}
