/**
 * 味別顔タイプ診断 - 専用スタイル
 */

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

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

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

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

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

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

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

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

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

.ak-option:hover {
	border-color: #E8726E;
	background: rgba(232, 114, 110, 0.04);
}

.ak-option.selected {
	border-color: #C94C64;
	background: rgba(201, 76, 100, 0.08);
	color: #C94C64;
}

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

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

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

.ak-analyze-icon {
	display: inline-block;
	font-size: 64px;
	animation: akPulse 1s ease-in-out infinite;
}

.ak-analyze-bars {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.ak-analyze-bar {
	width: 36px;
	height: 6px;
	background: var(--color-border);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.ak-analyze-bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #E8726E, #C94C64);
	border-radius: 3px;
	animation: akBarScan 1.5s ease-in-out infinite;
}

.ak-analyze-bar:nth-child(2) .ak-analyze-bar-fill {
	animation-delay: 0.15s;
}

.ak-analyze-bar:nth-child(3) .ak-analyze-bar-fill {
	animation-delay: 0.3s;
}

.ak-analyze-bar:nth-child(4) .ak-analyze-bar-fill {
	animation-delay: 0.45s;
}

@keyframes akPulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.12);
		opacity: 0.85;
	}
}

@keyframes akBarScan {
	0% {
		width: 0;
		left: 0;
	}

	50% {
		width: 100%;
		left: 0;
	}

	100% {
		width: 0;
		left: 100%;
	}
}

/* ===== 結果エリア ===== */

/* ステータスヘッダー */
.ak-result-header {
	padding: 40px 20px 32px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
	animation: akFadeIn 0.5s ease;
}

.ak-status-label {
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	margin-bottom: 16px;
}

/* タイプバッジ */
.ak-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;
}

.ak-type-badge--lg {
	width: 64px;
	height: 64px;
	font-size: 30px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ak-type-badge--md {
	width: 36px;
	height: 36px;
	font-size: 17px;
}

.ak-type-badge--sm {
	width: 32px;
	height: 32px;
	font-size: 15px;
}

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

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

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

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

/* ===== 主味パーセンテージ表示 ===== */
.ak-percent-section {
	padding: 24px 20px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
	display: flex;
	justify-content: center;
}

.ak-percent-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ak-percent-circle {
	position: relative;
	width: 100px;
	height: 100px;
}

.ak-percent-circle svg {
	transform: rotate(-90deg);
}

.ak-percent-circle .ak-circle-bg {
	fill: none;
	stroke: var(--color-border);
	stroke-width: 8;
}

.ak-percent-circle .ak-circle-fill {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dashoffset 1.2s ease;
}

.ak-percent-value {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
}

.ak-percent-label {
	font-size: 13px;
	font-weight: 700;
	margin-top: 8px;
	color: var(--color-text-secondary);
}

/* ===== ステータスバー（RPG風） ===== */
.ak-statusbar-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
}

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

.ak-statusbar-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ak-statusbar-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ak-statusbar-label {
	flex-shrink: 0;
	width: 80px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-secondary);
	text-align: right;
}

.ak-statusbar-track {
	flex: 1;
	height: 18px;
	background: #1a1a2e;
	border-radius: 9px;
	overflow: hidden;
	position: relative;
}

.ak-statusbar-fill {
	height: 100%;
	width: 0;
	border-radius: 9px;
	transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ak-statusbar-score {
	flex-shrink: 0;
	width: 36px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
	text-align: left;
}

/* ===== レーダーチャート ===== */
.ak-radar-section {
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
}

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

.ak-radar-container {
	display: inline-block;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== スタイリングTipsセクション ===== */
.ak-tips-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
}

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

.ak-tips-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

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

.ak-tips-num {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #E8726E;
	border-radius: 50%;
}

.ak-tips-content {
	flex: 1;
}

.ak-tips-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 2px;
}

.ak-tips-desc {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

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

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

.ak-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 #E8726E;
	border-radius: 0 var(--radius) var(--radius) 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

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

	.ak-type-badge--lg {
		width: 52px;
		height: 52px;
		font-size: 26px;
	}

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

	.ak-percent-circle {
		width: 80px;
		height: 80px;
	}

	.ak-percent-value {
		font-size: 20px;
	}

	.ak-statusbar-label {
		width: 64px;
		font-size: 11px;
	}

	.ak-statusbar-track {
		height: 14px;
	}

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

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

	.ak-analyze-icon {
		font-size: 52px;
	}

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