/**
 * 平成女児タイプ診断 - 専用スタイル
 */

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

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

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

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

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

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

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

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

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

.hj-option:hover {
	border-color: #e58bb0;
	background: rgba(229, 139, 176, 0.05);
}

.hj-option.selected {
	border-color: #e58bb0;
	background: rgba(229, 139, 176, 0.1);
	color: #b8557f;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== 平成女児度スコア ===== */
.hj-score-section {
	padding: 28px 20px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
}

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

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

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

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

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

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

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

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

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

/* ===== あの頃の宝物 ===== */
.hj-items-section {
	padding: 24px 20px;
	border-bottom: 1px solid var(--color-border);
}

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

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

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

/* ===== 相性 ===== */
.hj-compat-section {
	padding: 24px 20px;
	border-bottom: 1px solid var(--color-border);
}

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

.hj-compat-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--color-bg);
	border-radius: var(--radius);
	padding: 14px 16px;
}

.hj-compat-icon {
	flex-shrink: 0;
	padding-top: 2px;
}

.hj-compat-info {
	flex: 1;
}

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

.hj-compat-reason {
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-text-secondary);
}

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

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

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

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

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

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

.hj-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 hjFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

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

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