/**
 * 恋愛脳度診断 - 専用スタイル
 */

/* ===== 質問エリア ===== */
.lb-quiz-area {
	padding: 32px 20px;
}

.lb-quiz-inner {
	max-width: 520px;
	margin: 0 auto;
}

/* プログレスバー */
.lb-progress {
	height: 6px;
	background: var(--color-border);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}

.lb-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #E8789A, #E04060);
	border-radius: 3px;
	transition: width 0.4s ease;
}

.lb-progress-text {
	font-size: 12px;
	color: var(--color-text-muted);
	text-align: right;
	margin-bottom: 24px;
}

/* 質問 */
.lb-question {
	margin-bottom: 20px;
	min-height: 60px;
}

.lb-question-text {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.7;
}

/* 選択肢 */
.lb-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lb-option {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	text-align: left;
	line-height: 1.6;
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s ease;
}

.lb-option:hover {
	border-color: #E8789A;
	background: rgba(232, 120, 154, 0.04);
}

.lb-option.selected {
	border-color: #E04060;
	background: rgba(224, 64, 96, 0.08);
	color: #E04060;
}

/* ===== 分析アニメーションエリア ===== */
.lb-analyze-area {
	padding: 60px 20px;
	text-align: center;
}

.lb-analyze-inner {
	max-width: 400px;
	margin: 0 auto;
}

.lb-analyze-title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 32px;
}

.lb-analyze-heart {
	display: inline-block;
	font-size: 64px;
	color: #E04060;
	animation: lbHeartbeat 0.8s ease-in-out infinite;
}

@keyframes lbHeartbeat {
	0%, 100% { transform: scale(1); }
	25% { transform: scale(1.15); }
	50% { transform: scale(1); }
	75% { transform: scale(1.1); }
}

/* ===== 結果ヘッダー ===== */
.lb-result-header {
	padding: 40px 20px 32px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
	animation: lbFadeIn 0.5s ease;
}

/* ゲージ */
.lb-gauge-container {
	position: relative;
	width: 200px;
	height: 200px;
	margin: 0 auto 20px;
}

.lb-gauge-container canvas {
	display: block;
}

.lb-gauge-percent {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 700;
	color: var(--color-text);
}

.lb-gauge-percent span {
	font-size: 18px;
	font-weight: 500;
}

.lb-gauge-label {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-bottom: 16px;
}

/* タイプ名 */
.lb-type-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}
.lb-type-badge--lg { width: 56px; height: 56px; font-size: 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.lb-type-badge--md { width: 36px; height: 36px; font-size: 17px; }
.lb-type-badge--sm { width: 32px; height: 32px; font-size: 15px; }

.lb-result-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.lb-result-name {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 12px;
}

.lb-result-keywords {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.lb-keyword-chip {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-secondary);
	background: var(--color-bg);
	padding: 4px 12px;
	border-radius: 20px;
}

/* ===== 特徴テキスト ===== */
.lb-feature-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
}

.lb-feature-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 10px;
}

.lb-feature-text {
	font-size: 14px;
	color: var(--color-text-secondary);
	line-height: 1.8;
}

/* ===== 長所・短所カード ===== */
.lb-cards-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
}

.lb-cards-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
}

.lb-cards-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.lb-card {
	padding: 16px;
	border-radius: var(--radius);
	text-align: center;
}

.lb-card--strength {
	background: rgba(93, 174, 139, 0.08);
	border: 1px solid rgba(93, 174, 139, 0.2);
}

.lb-card--weakness {
	background: rgba(224, 64, 96, 0.06);
	border: 1px solid rgba(224, 64, 96, 0.15);
}

.lb-card-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.lb-card--strength .lb-card-label {
	color: #5DAE8B;
}

.lb-card--weakness .lb-card-label {
	color: #E04060;
}

.lb-card-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-text-secondary);
}

/* ===== アドバイスセクション ===== */
.lb-advice-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
}

.lb-advice-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
}

.lb-advice-text {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.8;
	color: var(--color-text-secondary);
	padding: 16px;
	background: var(--color-white);
	border-left: 4px solid #E8789A;
	border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== 相性セクション ===== */
.lb-compat-section {
	padding: 20px;
	background: var(--color-bg);
}

.lb-compat-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
}

.lb-compat-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--color-white);
	border-radius: var(--radius);
}

.lb-compat-icon {
	flex-shrink: 0;
}

.lb-compat-info {
	flex: 1;
	min-width: 0;
}

.lb-compat-label {
	font-size: 12px;
	font-weight: 700;
	color: #E8789A;
	margin-bottom: 2px;
}

.lb-compat-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
}

.lb-compat-reason {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: 2px;
}

/* ===== タイプ概要グリッド ===== */
.lb-type-overview {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 16px;
}

.lb-type-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--color-bg);
	border-radius: var(--radius);
	cursor: default;
}

.lb-type-chip-icon {
	flex-shrink: 0;
}

.lb-type-chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.lb-type-chip-text {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-secondary);
	line-height: 1.3;
}

/* ===== クロスリンクボタン ===== */
.lb-crosslink-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-accent);
	background: var(--color-white);
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	text-decoration: none;
	transition: all 0.2s ease;
}

.lb-crosslink-btn:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* ===== シェアボタン ===== */
.btn-share {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-white);
	background: #1DA1F2;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-share:hover {
	background: #1a91da;
}

/* ===== アニメーション ===== */
@keyframes lbFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
	.lb-quiz-area {
		padding: 24px 16px;
	}

	.lb-question-text {
		font-size: 15px;
	}

	.lb-option {
		padding: 12px 14px;
		font-size: 13px;
	}

	.lb-type-badge--lg {
		width: 48px;
		height: 48px;
		font-size: 22px;
	}

	.lb-result-name {
		font-size: 20px;
	}

	.lb-gauge-container {
		width: 170px;
		height: 170px;
	}

	.lb-gauge-percent {
		font-size: 30px;
	}

	.lb-cards-grid {
		grid-template-columns: 1fr;
	}

	.lb-type-overview {
		grid-template-columns: 1fr;
	}

	.lb-analyze-heart {
		font-size: 52px;
	}

	.action-section {
		flex-wrap: wrap;
	}
}
