/*!
 * 診断システム用スタイル
 * 既存テーマと衝突しないよう、クラス名はすべて "shindan-" で始めています。
 * 色などは自由に変更してください（下部の変数だけ変えればOK）。
 */

.shindan-app {
	--shindan-main: #e8879a;       /* メインカラー */
	--shindan-main-dark: #d46b80;  /* ホバー時など */
	--shindan-bg: #fff8f9;         /* 背景色 */
	--shindan-border: #f0d9dd;
	--shindan-text: #3a3a3a;
	--shindan-line: #06c755;       /* LINE公式カラー */

	box-sizing: border-box;
	max-width: 560px;
	margin: 2em auto;
	padding: 1.75em 1.5em;
	background: var(--shindan-bg);
	border: 1px solid var(--shindan-border);
	border-radius: 16px;
	font-family: inherit;
	color: var(--shindan-text);
	line-height: 1.7;
	scroll-margin-top: 1em;
}

.shindan-app *,
.shindan-app *::before,
.shindan-app *::after {
	box-sizing: border-box;
}

.shindan-error {
	color: #b00020;
	font-weight: bold;
}

/* 進捗バー */
.shindan-progress {
	margin-bottom: 1.25em;
}

.shindan-progress-bar {
	background: #f1e0e3;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.shindan-progress-bar span {
	display: block;
	height: 100%;
	background: var(--shindan-main);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.shindan-progress-label {
	margin-top: 0.5em;
	font-size: 0.85em;
	color: #888;
	text-align: right;
}

/* 質問 */
.shindan-question-title {
	font-size: 1.15em;
	margin: 0 0 0.5em;
	line-height: 1.6;
}

.shindan-question-help {
	margin: 0 0 1em;
	font-size: 0.9em;
	color: #777;
}

.shindan-choices {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	margin-bottom: 1.5em;
}

.shindan-choice {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	padding: 0.85em 1em;
	background: #fff;
	border: 1.5px solid var(--shindan-border);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.shindan-choice:hover {
	border-color: var(--shindan-main);
}

.shindan-choice input[type='radio'] {
	accent-color: var(--shindan-main);
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
	margin-top: 0.28em;
}

.shindan-choice-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shindan-choice-label {
	display: block;
	font-weight: 600;
	line-height: 1.55;
}

.shindan-choice-description {
	display: block;
	margin-top: 0.25em;
	font-size: 0.82em;
	line-height: 1.55;
	color: #777;
}

.shindan-app[data-step='q1'] .shindan-choices {
	gap: 0.5em;
}

.shindan-app[data-step='q1'] .shindan-choice {
	padding-top: 0.75em;
	padding-bottom: 0.75em;
}

.shindan-choice:has(input:checked),
.shindan-choice.is-checked {
	border-color: var(--shindan-main);
	background: #fff0f2;
}

/* ナビゲーション（戻る／次へ） */
.shindan-nav {
	display: flex;
	gap: 0.75em;
}

.shindan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 0.85em 1em;
	border: none;
	border-radius: 999px;
	font-size: 0.95em;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.1s ease;
	background: var(--shindan-main);
	color: #fff;
}

.shindan-btn:hover:not(:disabled) {
	background: var(--shindan-main-dark);
}

.shindan-btn:active:not(:disabled) {
	transform: scale(0.98);
}

.shindan-btn:disabled {
	background: #e2c9ce;
	cursor: not-allowed;
}

.shindan-btn-back {
	background: #fff;
	color: var(--shindan-main-dark);
	border: 1.5px solid var(--shindan-border);
	flex: 0 0 auto;
	padding-left: 1.4em;
	padding-right: 1.4em;
}

.shindan-btn-back:disabled {
	color: #ccc;
	background: #fff;
	border-color: #eee;
}

/* 結果画面 */
.shindan-result-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: bold;
	letter-spacing: 0.05em;
	color: var(--shindan-main-dark);
	background: #fff0f2;
	padding: 0.25em 0.8em;
	border-radius: 999px;
	margin-bottom: 0.75em;
}

.shindan-result-title {
	font-size: 1.35em;
	margin: 0 0 0.6em;
}

.shindan-result-desc {
	margin: 0 0 1.25em;
}

.shindan-selection-box {
	background: #fff;
	border: 1.5px solid var(--shindan-border);
	border-radius: 12px;
	padding: 0.9em 1em;
	margin-bottom: 1em;
}

.shindan-selection-label {
	font-size: 0.75em;
	font-weight: bold;
	color: var(--shindan-main-dark);
	margin-bottom: 0.35em;
}

.shindan-selection-primary {
	font-weight: bold;
	line-height: 1.55;
}

.shindan-selection-detail {
	margin-top: 0.55em;
	font-size: 0.92em;
	line-height: 1.55;
	color: #555;
}

.shindan-selection-detail span {
	display: block;
	font-size: 0.78em;
	color: #999;
}

.shindan-action-box {
	background: #fff0f2;
	border-radius: 12px;
	padding: 0.9em 1em;
	margin-bottom: 1em;
}

.shindan-action-label {
	font-size: 0.75em;
	font-weight: bold;
	color: var(--shindan-main-dark);
	margin-bottom: 0.3em;
}

.shindan-action-text {
	font-weight: bold;
}

.shindan-line-cta {
	background: #f1fbf5;
	border: 1.5px solid #bce7ca;
	border-radius: 14px;
	padding: 1em;
	margin: 1.25em 0;
}

.shindan-line-cta-title {
	font-weight: bold;
	color: #087b3a;
	margin-bottom: 0.35em;
}

.shindan-line-cta-text {
	font-size: 0.9em;
	margin: 0 0 0.9em;
}

.shindan-articles {
	margin-bottom: 1.25em;
}

.shindan-articles-label {
	font-size: 0.8em;
	color: #999;
	margin-bottom: 0.4em;
}

.shindan-articles-list {
	margin: 0;
	padding-left: 1.2em;
}

.shindan-articles-list li {
	margin-bottom: 0.3em;
}

.shindan-articles-list a {
	color: var(--shindan-main-dark);
}

.shindan-message-box {
	background: #fff;
	border: 1.5px dashed #a9dcb9;
	border-radius: 12px;
	padding: 1em;
	margin-bottom: 1em;
}

.shindan-message-label {
	font-size: 0.8em;
	color: #999;
	margin-bottom: 0.5em;
}

.shindan-message-text {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: inherit;
	margin: 0;
	font-size: 0.95em;
}

.shindan-nav-result {
	margin-bottom: 0;
}

.shindan-btn-copy {
	background: var(--shindan-main);
}

.shindan-btn-copied {
	background: #4caf50 !important;
}

.shindan-btn-line {
	background: var(--shindan-line);
	flex: 1;
}

.shindan-btn-line:hover {
	opacity: 0.9;
	background: var(--shindan-line);
}

.shindan-btn-restart {
	display: block;
	width: 100%;
	background: none;
	color: #999;
	text-decoration: underline;
	font-weight: normal;
	padding: 0.4em;
}

.shindan-btn-restart:hover {
	background: none;
	color: #666;
}

.shindan-note {
	font-size: 0.8em;
	color: #999;
	text-align: center;
	margin: 0.75em 0 0;
}

@media (max-width: 480px) {
	.shindan-app {
		padding: 1.25em 1em;
		border-radius: 12px;
	}

	.shindan-nav-result {
		flex-direction: column;
	}

	.shindan-nav-result .shindan-btn {
		width: 100%;
	}
}
