/**
 * 平成レトロ度診断 - 専用スタイル
 */

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

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

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

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

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

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

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

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

.hr-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;
}

.hr-option:hover {
	border-color: #e56a8f;
	background: rgba(229, 106, 143, 0.04);
}

.hr-option.selected {
	border-color: #e56a8f;
	background: rgba(229, 106, 143, 0.08);
	color: #b84a6f;
}

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

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

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

.hr-analyze-icons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.hr-analyze-icon-item {
	opacity: 0.2;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.hr-analyze-icon-item.active {
	opacity: 1;
	transform: scale(1.3);
}

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

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

.hr-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;
}
.hr-type-badge--lg { width: 56px; height: 56px; font-size: 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.hr-type-badge--sm { width: 32px; height: 32px; font-size: 15px; }

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

.hr-result-catch {
	font-size: 13px;
	color: var(--color-text-secondary);
	margin: 0 0 14px;
}

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

.hr-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;
}

/* ===== レトロ度スコア ===== */
.hr-score-section {
	padding: 28px 20px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
}

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

.hr-score-value {
	font-family: var(--font-display);
	font-size: 56px;
	font-weight: 700;
	color: var(--color-primary-dark);
	line-height: 1.2;
	margin-bottom: 12px;
}

.hr-score-unit {
	font-size: 28px;
	margin-left: 2px;
}

.hr-score-meter {
	max-width: 420px;
	height: 14px;
	margin: 0 auto 8px;
	background: var(--color-bg);
	border-radius: 7px;
	overflow: hidden;
}

.hr-score-meter-bar {
	height: 100%;
	width: 0;
	border-radius: 7px;
	transition: width 0.2s ease;
}

.hr-score-scale {
	display: flex;
	justify-content: space-between;
	max-width: 420px;
	margin: 0 auto;
	font-size: 11px;
	color: var(--color-text-muted);
}

/* ===== 時代バランス ===== */
.hr-era-section {
	padding: 24px 20px;
	border-bottom: 1px solid var(--color-border);
}

.hr-era-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	text-align: center;
	margin-bottom: 14px;
}

.hr-era-bar {
	display: flex;
	max-width: 420px;
	height: 18px;
	margin: 0 auto 10px;
	border-radius: 9px;
	overflow: hidden;
	background: var(--color-bg);
}

.hr-era-seg {
	height: 100%;
	transition: width 0.6s ease;
}

.hr-era-seg--showa { background: #a08468; }
.hr-era-seg--heisei { background: #e56a8f; }
.hr-era-seg--reiwa { background: #5ba8d0; }

.hr-era-legend {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12px;
	color: var(--color-text-secondary);
}

.hr-era-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hr-era-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* ===== 特徴 ===== */
.hr-feature-section {
	padding: 24px 20px;
	border-bottom: 1px solid var(--color-border);
}

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

.hr-feature-text {
	font-size: 14px;
	line-height: 1.9;
	color: var(--color-text);
	margin: 0;
}

/* ===== 刺さるアイテム ===== */
.hr-items-section {
	padding: 24px 20px;
	border-bottom: 1px solid var(--color-border);
}

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

.hr-items-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hr-item-chip {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	background: var(--color-white);
	border: 1.5px solid var(--color-border);
	padding: 6px 14px;
	border-radius: 20px;
}

/* ===== アドバイス ===== */
.hr-advice-section {
	padding: 24px 20px;
}

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

.hr-advice-text {
	font-size: 14px;
	line-height: 1.9;
	color: var(--color-text);
	background: var(--color-bg);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin: 0;
}

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

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

.hr-type-chip-icon {
	display: inline-flex;
	flex-shrink: 0;
}

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

/* ===== Xシェアボタン ===== */
.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 hrFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== レスポンシブ ===== */
@media (min-width: 640px) {
	.hr-type-overview {
		grid-template-columns: repeat(4, 1fr);
	}

	.hr-type-chip {
		flex-direction: column;
		text-align: center;
		padding: 14px 10px;
	}
}
