/*
 * HSP QA Form - フロント CSS
 *
 * Spec §2-2-3 / §2-2-4：
 *   - 本番サイト「HSPとお仕事と私」（https://euj.co.jp/hsp/）SWELL CSS 変数を継承
 *   - WCAG 2.1 AA 準拠（コントラスト 4.5:1 以上、focus-visible、リフロー 320px）
 *   - HSP 配慮（穏やかなアニメーション 250ms、autofocus 不使用、prefers-reduced-motion 完全対応）
 *   - iOS Safari dynamic viewport bounce 対応（100dvh + 100svh 併用、m-6 反映）
 *   - 16px 以上 textarea 文字サイズで iOS 自動ズーム回避
 */

.hsp-qa-form {
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px;
	background: var(--swell-bg, #faf9f7);
	color: var(--swell-color-text, #2d2a26);
	font-family: var(--swell-font-family, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
	font-size: 16px;
	line-height: 1.7;
}

.hsp-qa-form *,
.hsp-qa-form *::before,
.hsp-qa-form *::after {
	box-sizing: border-box;
}

.hsp-qa-form__container {
	max-height: 100dvh;
	min-height: 100svh;
}

/* ----- タブ UI（Spec_Phase2h_v2 v1.1.0、Q-v2-1 (b) 3 タブ + slug 英語）----- */
.hsp-qa-form__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding: 0;
	list-style: none;
}

.hsp-qa-form__tab {
	flex: 1 1 0;
	min-width: 0;
	min-height: 56px;
	padding: 10px 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 10px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background 250ms ease-out, border-color 250ms ease-out, color 250ms ease-out;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.hsp-qa-form__tab-label {
	font-weight: 600;
	font-size: 14px;
}

.hsp-qa-form__tab-hint {
	font-size: 11px;
	color: var(--swell-color-text-secondary, #5c574f);
}

.hsp-qa-form__tab:hover {
	background: var(--swell-bg, #faf9f7);
	border-color: var(--swell-color-accent, #7a9cb8);
}

.hsp-qa-form__tab:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-form__tab.is-active,
.hsp-qa-form__tab[aria-selected="true"] {
	background: var(--swell-color-accent-bg, #eef3f7);
	border-color: var(--swell-color-accent, #7a9cb8);
	color: var(--swell-color-text, #2d2a26);
}

.hsp-qa-form__tab.is-active .hsp-qa-form__tab-hint,
.hsp-qa-form__tab[aria-selected="true"] .hsp-qa-form__tab-hint {
	color: var(--swell-color-text, #2d2a26);
}

@media (max-width: 480px) {
	.hsp-qa-form__tabs {
		gap: 6px;
	}
	.hsp-qa-form__tab {
		min-height: 60px;
		padding: 8px 6px;
	}
	.hsp-qa-form__tab-label {
		font-size: 13px;
	}
	.hsp-qa-form__tab-hint {
		font-size: 10px;
	}
}

/* ----- ニックネーム入力欄（Spec_Phase2h_v2 v1.1.0、Q-v2-3 (i) 本文上）----- */
.hsp-qa-form__input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 8px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-family: inherit;
	font-size: 16px;
	min-height: 48px;
	transition: border-color 250ms ease-out;
}

.hsp-qa-form__input:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
	border-color: var(--swell-color-accent, #7a9cb8);
}

/* ----- Honeypot：完全不可視化 ----- */
.hsp-qa-form__honeypot {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	visibility: hidden;
}

/* ----- 自動保存通知 ----- */
.hsp-qa-form__autosave-notice {
	margin-bottom: 8px;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 12px;
	min-height: 20px;
}

/* ----- フィールド共通 ----- */
.hsp-qa-form__field {
	margin-bottom: 20px;
}

.hsp-qa-form__field--checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hsp-qa-form__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--swell-color-text, #2d2a26);
}

.hsp-qa-form__hint {
	display: inline-block;
	margin-left: 8px;
	font-size: 13px;
	font-weight: 400;
	color: var(--swell-color-text-secondary, #5c574f);
}

.hsp-qa-form__hint--secondary {
	margin-top: 6px;
	font-size: 13px;
	color: var(--swell-color-text-secondary, #5c574f);
}

/* ----- textarea ----- */
.hsp-qa-form__field textarea {
	width: 100%;
	min-height: 200px;
	padding: 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 8px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	resize: vertical;
	transition: border-color 250ms ease-out;
}

.hsp-qa-form__field textarea:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
	border-color: var(--swell-color-accent, #7a9cb8);
}

/* ----- select ----- */
.hsp-qa-form__field select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 8px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-size: 16px;
	min-height: 48px;
}

.hsp-qa-form__field select:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

/* ----- checkbox ----- */
.hsp-qa-form__field--checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.hsp-qa-form__field--checkbox label {
	cursor: pointer;
	font-size: 14px;
	color: var(--swell-color-text, #2d2a26);
}

/* ----- 任意属性アコーディオン ----- */
.hsp-qa-form__attributes {
	margin-bottom: 20px;
	padding: 12px 16px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.6);
}

.hsp-qa-form__attributes summary {
	cursor: pointer;
	padding: 4px 0;
	font-size: 14px;
	color: var(--swell-color-text-secondary, #5c574f);
	list-style: revert;
}

.hsp-qa-form__attributes summary:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-form__attributes[open] summary {
	margin-bottom: 12px;
}

/* ----- 送信ボタン ----- */
.hsp-qa-form__submit {
	display: block;
	width: 100%;
	height: 56px;
	margin-top: 8px;
	border: none;
	border-radius: 12px;
	background: var(--swell-color-primary, #6b8e7f);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 250ms ease-out;
}

.hsp-qa-form__submit:hover {
	background: var(--swell-color-primary-hover, #577061);
}

.hsp-qa-form__submit:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-form__submit:active {
	transform: scale(0.98);
}

.hsp-qa-form__submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ----- 通知 ----- */
.hsp-qa-form__notice {
	margin-top: 16px;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
	min-height: 24px;
}

.hsp-qa-form__notice--success {
	background: #e7f3ed;
	color: #2d5d4a;
	border: 1px solid #b9dcc9;
}

.hsp-qa-form__notice--error {
	background: #fbeaea;
	color: #7d2d2d;
	border: 1px solid #e8b9b9;
}

.hsp-qa-form__error {
	padding: 12px 16px;
	border-radius: 8px;
	background: #fbeaea;
	color: #7d2d2d;
	border: 1px solid #e8b9b9;
}

/* ----- リアクションスタンプ ----- */
.hsp-qa-reactions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.hsp-qa-reactions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 24px;
	background: #ffffff;
	font-size: 20px;
	cursor: pointer;
	transition: background 250ms ease-out, border-color 250ms ease-out;
}

.hsp-qa-reactions__btn:hover {
	background: var(--swell-bg, #faf9f7);
	border-color: var(--swell-color-accent, #7a9cb8);
}

.hsp-qa-reactions__btn:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-reactions__btn[aria-pressed="true"] {
	background: var(--swell-color-accent-bg, #eef3f7);
	border-color: var(--swell-color-accent, #7a9cb8);
}

/* ----- 削除ボタン ----- */
.hsp-qa-delete-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 6px;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 13px;
	cursor: pointer;
	transition: background 250ms ease-out;
}

.hsp-qa-delete-btn:hover {
	background: #fbeaea;
	color: #7d2d2d;
	border-color: #e8b9b9;
}

.hsp-qa-delete-btn:focus-visible {
	outline: 2px solid #c87878;
	outline-offset: 2px;
}

/* ----- レスポンシブ ----- */
@media (max-width: 480px) {
	.hsp-qa-form {
		padding: 12px;
	}
	.hsp-qa-form__field textarea {
		min-height: 240px;
	}
}

/* ----- prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
	.hsp-qa-form *,
	.hsp-qa-form *::before,
	.hsp-qa-form *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.hsp-qa-form__submit:active {
		transform: none;
	}
}

/* ============================================================================
   v1.1.4（S-103 2026-05-16）：TOP shortcode [hsp_qa_recent] +
   一覧 shortcode [hsp_qa_list_tabs] 共通スタイル
   - .hsp-qa-recent / .hsp-qa-list 両方の BEM ベース class に対応（同一 CSS で共有）
   - Spec_Phase2h_v1.1.4 §1-1 / §1-2 HTML 構造準拠
   - タナカ S-102 F-1「コードは無駄に冗長にしない、軽量化」整合 = CSS 最小限
   ============================================================================ */

.hsp-qa-recent,
.hsp-qa-list {
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 0;
	color: var(--swell-color-text, #2d2a26);
	font-family: var(--swell-font-family, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
	font-size: 16px;
	line-height: 1.7;
}

.hsp-qa-recent *,
.hsp-qa-recent *::before,
.hsp-qa-recent *::after,
.hsp-qa-list *,
.hsp-qa-list *::before,
.hsp-qa-list *::after {
	box-sizing: border-box;
}

/* ----- header（CTA + heading） ----- */
.hsp-qa-recent__header,
.hsp-qa-list__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.hsp-qa-recent__cta,
.hsp-qa-list__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 48px;
	padding: 12px 24px;
	border: none;
	border-radius: 12px;
	background: var(--swell-color-primary, #6b8e7f);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background 250ms ease-out;
}

.hsp-qa-recent__cta:hover,
.hsp-qa-list__cta:hover {
	background: var(--swell-color-primary-hover, #577061);
	color: #ffffff;
}

.hsp-qa-recent__cta:focus-visible,
.hsp-qa-list__cta:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-recent__heading,
.hsp-qa-list__heading {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--swell-color-text, #2d2a26);
}

/* ----- 一覧タブナビ（.hsp-qa-list__tabs） ----- */
.hsp-qa-list__tabs {
	margin: 0 0 16px;
}

.hsp-qa-list__tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsp-qa-list__tab-item {
	flex: 1 1 0;
	min-width: 0;
}

.hsp-qa-list__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 10px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 250ms ease-out, border-color 250ms ease-out;
}

.hsp-qa-list__tab:hover {
	background: var(--swell-bg, #faf9f7);
	border-color: var(--swell-color-accent, #7a9cb8);
	color: var(--swell-color-text, #2d2a26);
}

.hsp-qa-list__tab:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

.hsp-qa-list__tab.is-active {
	background: var(--swell-color-accent-bg, #eef3f7);
	border-color: var(--swell-color-accent, #7a9cb8);
	color: var(--swell-color-text, #2d2a26);
	cursor: default;
}

/* ----- カード一覧 ----- */
.hsp-qa-recent__list,
.hsp-qa-list__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsp-qa-recent__card,
.hsp-qa-list__card {
	padding: 16px;
	margin-bottom: 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 12px;
	background: #ffffff;
	transition: border-color 250ms ease-out, box-shadow 250ms ease-out;
}

.hsp-qa-recent__card:hover,
.hsp-qa-list__card:hover {
	border-color: var(--swell-color-accent, #7a9cb8);
	box-shadow: 0 2px 8px rgba(122, 156, 184, 0.12);
}

.hsp-qa-recent__card-meta-top,
.hsp-qa-list__card-meta-top {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12px;
}

.hsp-qa-recent__tab-badge,
.hsp-qa-list__tab-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--swell-color-accent-bg, #eef3f7);
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 11px;
	font-weight: 600;
}

.hsp-qa-recent__tab-badge--chat,
.hsp-qa-list__tab-badge--chat {
	background: #fff4e6;
	color: #8a5a2b;
}

.hsp-qa-recent__tab-badge--experience,
.hsp-qa-list__tab-badge--experience {
	background: #eef7e6;
	color: #4a6b3a;
}

.hsp-qa-recent__category,
.hsp-qa-list__category {
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 12px;
}

.hsp-qa-recent__title-link,
.hsp-qa-list__title-link {
	display: block;
	color: var(--swell-color-text, #2d2a26);
	text-decoration: none;
	transition: color 250ms ease-out;
}

.hsp-qa-recent__title-link:hover,
.hsp-qa-list__title-link:hover {
	color: var(--swell-color-accent, #7a9cb8);
}

.hsp-qa-recent__title-link:focus-visible,
.hsp-qa-list__title-link:focus-visible {
	outline: 2px solid var(--swell-color-accent, #7a9cb8);
	outline-offset: 2px;
}

/* S-105 T-A タナカ追加指示（2026-05-16）：タイトル相当（excerpt）の可読性向上
   = 15px→16px + font-weight 500 + line-height 1.6 維持。控えめ調整で雰囲気壊さない。 */
.hsp-qa-recent__excerpt,
.hsp-qa-list__excerpt {
	margin: 6px 0 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--swell-color-text, #2d2a26);
}

.hsp-qa-recent__meta,
.hsp-qa-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 12px;
}

/* S-105 T-A タナカ追加指示 2nd（2026-05-16）：「0 件も含めてもっと目立たせる」
   = meta から独立 bar 化、0 件は控えめ・1 件以上は accent 色で段階的可視性。 */
.hsp-qa-recent__answer-bar,
.hsp-qa-list__answer-bar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0;
	padding: 6px 12px;
	background: rgba(122, 156, 184, 0.06);
	border-radius: 8px;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 13px;
	font-weight: 500;
}

.hsp-qa-recent__answer-bar.has-answers,
.hsp-qa-list__answer-bar.has-answers {
	background: rgba(122, 156, 184, 0.18);
	color: var(--swell-color-accent, #5680a2);
	font-weight: 600;
}

.hsp-qa-recent__answer-bar-icon,
.hsp-qa-list__answer-bar-icon {
	font-size: 16px;
}

.hsp-qa-recent__answer-bar-num,
.hsp-qa-list__answer-bar-num {
	font-size: 16px;
	font-weight: 700;
}

.hsp-qa-recent__answer-bar.has-answers .hsp-qa-recent__answer-bar-num,
.hsp-qa-list__answer-bar.has-answers .hsp-qa-list__answer-bar-num {
	font-size: 18px;
	color: var(--swell-color-accent, #5680a2);
}

.hsp-qa-recent__answer-bar-label,
.hsp-qa-list__answer-bar-label {
	font-size: 12px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
	.hsp-qa-recent__answer-bar,
	.hsp-qa-list__answer-bar {
		background: rgba(122, 156, 184, 0.10);
		color: #c8c4bd;
	}
	.hsp-qa-recent__answer-bar.has-answers,
	.hsp-qa-list__answer-bar.has-answers {
		background: rgba(122, 156, 184, 0.25);
		color: #a4c1d8;
	}
	.hsp-qa-recent__answer-bar.has-answers .hsp-qa-recent__answer-bar-num,
	.hsp-qa-list__answer-bar.has-answers .hsp-qa-list__answer-bar-num {
		color: #a4c1d8;
	}
}

.hsp-qa-recent__reactions,
.hsp-qa-list__reactions {
	display: flex;
	gap: 12px;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 13px;
}

.hsp-qa-recent__reaction,
.hsp-qa-list__reaction {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ----- ページネーション ----- */
.hsp-qa-recent__pagination,
.hsp-qa-list__pagination {
	margin-top: 16px;
	text-align: center;
}

.hsp-qa-recent__pagination ul,
.hsp-qa-list__pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsp-qa-recent__pagination a,
.hsp-qa-recent__pagination span,
.hsp-qa-list__pagination a,
.hsp-qa-list__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 8px;
	background: #ffffff;
	color: var(--swell-color-text, #2d2a26);
	font-size: 14px;
	text-decoration: none;
	transition: background 250ms ease-out, border-color 250ms ease-out;
}

.hsp-qa-recent__pagination a:hover,
.hsp-qa-list__pagination a:hover {
	background: var(--swell-bg, #faf9f7);
	border-color: var(--swell-color-accent, #7a9cb8);
}

.hsp-qa-recent__pagination .current,
.hsp-qa-list__pagination .current {
	background: var(--swell-color-accent-bg, #eef3f7);
	border-color: var(--swell-color-accent, #7a9cb8);
	color: var(--swell-color-text, #2d2a26);
	font-weight: 600;
}

/* ----- empty state ----- */
.hsp-qa-recent__empty,
.hsp-qa-list__empty {
	padding: 24px 16px;
	text-align: center;
	color: var(--swell-color-text-secondary, #5c574f);
	font-size: 14px;
}

/* ----- レスポンシブ ----- */
@media (max-width: 480px) {
	.hsp-qa-list__tab-item {
		flex: 1 1 calc(50% - 4px);
	}
	.hsp-qa-recent__card,
	.hsp-qa-list__card {
		padding: 12px;
	}
}

/* ----- prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
	.hsp-qa-recent *,
	.hsp-qa-recent *::before,
	.hsp-qa-recent *::after,
	.hsp-qa-list *,
	.hsp-qa-list *::before,
	.hsp-qa-list *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ----- dark mode ----- */
@media (prefers-color-scheme: dark) {
	.hsp-qa-recent__card,
	.hsp-qa-list__card,
	.hsp-qa-list__tab,
	.hsp-qa-recent__pagination a,
	.hsp-qa-recent__pagination span,
	.hsp-qa-list__pagination a,
	.hsp-qa-list__pagination span {
		background: #2a2825;
		color: #e8e4dd;
		border-color: #3a3833;
	}
	.hsp-qa-recent__title-link,
	.hsp-qa-list__title-link {
		color: #e8e4dd;
	}
}

/* ============================================================================
   v1.1.4 §1-3：質問詳細ページの h1 visually-hidden 化（D 案、SWELL テーマ整合）
   - SWELL の h1 = .c-postTitle__ttl（親 .p-articleHead.c-postTitle）
   - SEO 担保：post_title は WP コア内部保持 → meta title + JSON-LD QAPage.name に残置
   - タナカ F-8「タイトル不要、本文 1 行目がタイトルだから重複」整合
   ============================================================================ */
.single-hsp_qa .c-postTitle__ttl {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.single-hsp_qa .p-articleHead.c-postTitle {
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* ----- prefers-color-scheme: dark（穏やか配色） ----- */
@media (prefers-color-scheme: dark) {
	.hsp-qa-form {
		background: var(--swell-bg-dark, #1f1d1a);
		color: var(--swell-color-text-dark, #e8e4dd);
	}
	.hsp-qa-form__field textarea,
	.hsp-qa-form__field select,
	.hsp-qa-form__input {
		background: #2a2825;
		color: #e8e4dd;
		border-color: #3a3833;
	}
	.hsp-qa-form__attributes {
		background: rgba(255, 255, 255, 0.04);
		border-color: #3a3833;
	}
	.hsp-qa-form__tab {
		background: #2a2825;
		color: #e8e4dd;
		border-color: #3a3833;
	}
	.hsp-qa-form__tab.is-active,
	.hsp-qa-form__tab[aria-selected="true"] {
		background: rgba(122, 156, 184, 0.18);
		border-color: var(--swell-color-accent, #7a9cb8);
	}
}

/* =====================================================
 * v1.2.0（S-104.5b）：返信フォーム + 返信一覧 + 各返信 3 共感 + ニックネーム自動補完
 * Spec_v3 §2-2-3-b 構造図準拠（返信フォーム上、返信一覧下、シンプル）
 * F-2 / F-4（S-104.5b タナカフィードバック）：author box 非表示 + 連動性 UI
 * ===================================================== */

/* ----- F-2：SWELL post_foot の「この記事を書いた人」非表示（hsp_qa post type のみ） ----- */
body.single-hsp_qa .p-authorBox,
body.single-hsp_qa .c-postAuthor,
body.single-hsp_qa .l-articleBottom .p-authorBox,
body.single-hsp_qa #after_article .p-authorBox,
body.single-hsp_qa .post_author,
body.single-hsp_qa .p-shareBtns + .p-authorBox {
	display: none !important;
}

/* ----- F-3：質問本文上部の投稿者ヘッダー（F-8 でカテゴリー追加、縦並び）----- */
.hsp-qa-question-header {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--swell-color-text-muted, #6c6862);
	background: rgba(122, 156, 184, 0.08);
	border-radius: 8px;
}

.hsp-qa-question-header__meta {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hsp-qa-question-header__author {
	font-weight: 600;
	color: var(--swell-color-text, #2d2a26);
	font-size: 14px;
}

.hsp-qa-question-header__sep {
	color: var(--swell-color-border, #d6d1c7);
}

.hsp-qa-question-header__date {
	font-size: 13px;
}

/* ----- S-113（2026-05-21）：投稿者属性折りたたみ表示（HSP 配慮 + AI 検索シグナル可視化、攻-C2 D 案）----- */
/* 一覧ページは属性なし、個別ページのみ <details> で折りたたみ。HSP コア層の匿名性配慮で控えめスタイル。*/
.hsp-qa-question-header__attributes {
	margin-top: 2px;
	font-size: 12px;
	color: var(--swell-color-text-muted, #6c6862);
}

.hsp-qa-question-header__attributes-toggle {
	cursor: pointer;
	color: var(--swell-color-accent, #7a9cb8);
	user-select: none;
	list-style: none;
	padding: 2px 0;
	transition: opacity 250ms ease;
	font-size: 12px;
}
.hsp-qa-question-header__attributes-toggle::-webkit-details-marker {
	display: none;
}
.hsp-qa-question-header__attributes-toggle:hover,
.hsp-qa-question-header__attributes-toggle:focus-visible {
	opacity: 0.7;
}

.hsp-qa-question-header__attributes-content {
	margin-top: 6px;
	padding: 8px 10px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	color: var(--swell-color-text, #2d2a26);
	font-size: 13px;
	line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
	.hsp-qa-question-header__attributes-toggle {
		transition: none;
	}
}

/* F-8：カテゴリーピル（タップでカテゴリー archive へ）*/
.hsp-qa-question-header__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hsp-qa-category-pill {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px 12px;
	background: #fff;
	color: var(--swell-color-accent, #7a9cb8);
	border: 1px solid var(--swell-color-accent, #7a9cb8);
	border-radius: 14px;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: background 250ms ease, color 250ms ease;
}

.hsp-qa-category-pill:hover,
.hsp-qa-category-pill:focus-visible {
	background: var(--swell-color-accent, #7a9cb8);
	color: #fff;
	text-decoration: none;
	outline: none;
}

/* ----- F-4：質問 → 返信フォーム → 返信一覧の流れ記号 ----- */
.hsp-qa-flow-divider {
	text-align: center;
	color: var(--swell-color-accent, #7a9cb8);
	font-size: 14px;
	margin: 16px 0;
	letter-spacing: 0.2em;
	opacity: 0.5;
}

.hsp-qa-answer-section {
	max-width: 720px;
	margin: 16px auto 0;
}

/* ----- 質問本文末尾の 3 共感ボタン（reactions.php）＋ 各返信の 3 共感 共用 ----- */
.hsp-qa-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.hsp-qa-reactions__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	background: #fff;
	color: var(--swell-color-text, #2d2a26);
	border-radius: 20px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background 250ms ease, border-color 250ms ease;
}

.hsp-qa-reactions__btn:hover,
.hsp-qa-reactions__btn:focus-visible {
	background: rgba(122, 156, 184, 0.10);
	border-color: var(--swell-color-accent, #7a9cb8);
	outline: none;
}

.hsp-qa-reactions__btn[aria-pressed="true"] {
	background: rgba(122, 156, 184, 0.20);
	border-color: var(--swell-color-accent, #7a9cb8);
	cursor: default;
}

.hsp-qa-reactions__btn[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.hsp-qa-reactions__label {
	font-size: 13px;
}

.hsp-qa-reactions__count {
	font-size: 13px;
	font-weight: 600;
	color: var(--swell-color-accent, #7a9cb8);
	margin-left: 2px;
}

/* ----- 返信フォームセクション（S-105 T-A Q3 (b) 採択：枠弱化、視覚優先度を返信一覧に譲る） ----- */
.hsp-qa-answer-form-section {
	margin: 24px 0 16px;
	padding: 0;
	background: transparent;
	border: none;
}

.hsp-qa-answer-form__heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
}

.hsp-qa-answer-form {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.hsp-qa-answer-form__submit {
	min-width: 160px;
}

/* ----- 返信一覧セクション（S-105 T-A Q1 (b-1) 採択：見出し視覚非表示、空時 section ごと非表示） ----- */
.hsp-qa-answer-list-section {
	margin: 32px 0;
}

/* S-105 T-A Q4 (b) 採択：0 件時も <ol> は出力 → 空 <ol> のとき section ごと非表示（F-9 維持） */
.hsp-qa-answer-list-section:has(.hsp-qa-answer-list:empty) {
	display: none;
}

/* S-105 T-A タナカ追加指示（2026-05-16）：「ユーザーから見えない形で SEO/AI 向けに残す」
   = WCAG 標準 visually-hidden パターン。SR / Google クローラ / AI クローラには <h2>みんなの返信</h2>
   として認識され、視覚的には完全に消える。既存 .single-hsp_qa .c-postTitle__ttl と同パターン。 */
.hsp-qa-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hsp-qa-answer-list__heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
}

.hsp-qa-answer-list__empty {
	padding: 16px;
	color: var(--swell-color-text-muted, #6c6862);
	background: rgba(122, 156, 184, 0.06);
	border-radius: 8px;
	font-size: 14px;
}

.hsp-qa-answer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hsp-qa-answer-list__item {
	padding: 16px;
	background: #fff;
	border: 1px solid var(--swell-color-border, #d6d1c7);
	border-radius: 12px;
}

.hsp-qa-answer-list__item.is-accepted {
	border-color: #5fa86b;
	box-shadow: 0 0 0 2px rgba(95, 168, 107, 0.20);
}

.hsp-qa-answer-list__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	padding: 4px 10px;
	background: #5fa86b;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
}

/* F-4 連動性：質問ヘッダーと同じ視覚スタイルに揃える */
.hsp-qa-answer-list__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	padding: 8px 12px;
	font-size: 13px;
	color: var(--swell-color-text-muted, #6c6862);
	background: rgba(122, 156, 184, 0.08);
	border-radius: 8px;
}

.hsp-qa-answer-list__author {
	font-weight: 600;
	font-size: 14px;
	color: var(--swell-color-text, #2d2a26);
}

.hsp-qa-answer-list__sep {
	color: var(--swell-color-border, #d6d1c7);
}

.hsp-qa-answer-list__body {
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 12px;
}

.hsp-qa-answer-list__body p {
	margin: 0 0 0.8em;
}

.hsp-qa-answer-list__body p:last-child {
	margin-bottom: 0;
}

.hsp-qa-answer-list__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

/* ----- 質問者本人選択ボタン（Step 18、M-2 採択：フッター配置）----- */
.hsp-qa-pick-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid #d4af37;
	background: #fff;
	color: #8a7320;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 250ms ease, border-color 250ms ease;
}

.hsp-qa-pick-btn:hover,
.hsp-qa-pick-btn:focus-visible {
	background: rgba(212, 175, 55, 0.12);
	outline: none;
}

.hsp-qa-pick-btn.is-picked {
	background: #5fa86b;
	border-color: #5fa86b;
	color: #fff;
}

.hsp-qa-pick-btn.is-picked:hover,
.hsp-qa-pick-btn.is-picked:focus-visible {
	background: #4a8654;
	border-color: #4a8654;
}

.hsp-qa-pick-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
	.hsp-qa-answer-form-section,
	.hsp-qa-answer-list__item {
		background: #2a2825;
		border-color: #3a3833;
		color: #e8e4dd;
	}
	.hsp-qa-reactions__btn {
		background: #2a2825;
		color: #e8e4dd;
		border-color: #3a3833;
	}
	.hsp-qa-answer-list__author {
		color: #e8e4dd;
	}
	.hsp-qa-category-pill {
		background: #2a2825;
		color: #a4c1d8;
		border-color: #a4c1d8;
	}
	.hsp-qa-category-pill:hover,
	.hsp-qa-category-pill:focus-visible {
		background: #a4c1d8;
		color: #2a2825;
	}
	/* S-113：投稿者属性折りたたみ ダークモード */
	.hsp-qa-question-header__attributes-content {
		background: rgba(0, 0, 0, 0.2);
		color: #e8e4dd;
	}
}

