/**
 * 樹形スタイル診断 - 専用スタイル
 */

/* ========================================
   入力セクション
   ======================================== */
.input-section {
	border-bottom: 1px solid var(--color-border);
}

/* ========================================
   結果セクション 補足
   ======================================== */
.result-sub-reading {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 4px;
}

/* ========================================
   スタイルカード
   ======================================== */
.style-cards-section {
	border-bottom: 1px solid var(--color-border);
}

.style-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.style-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-white);
}

.style-card--rank-1 {
	border-color: #3A5A25;
	box-shadow: 0 2px 8px rgba(58, 90, 37, 0.15);
}

.style-card--rank-2 {
	border-color: #81c784;
}

.style-card--rank-3 {
	border-color: #c5e1a5;
}

.style-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.style-card--rank-1 .style-card-header {
	background: linear-gradient(135deg, #5D8C3E 0%, #3A5A25 100%);
}

.style-card-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	background: #3A5A25;
	color: var(--color-white);
	flex-shrink: 0;
}

.style-card--rank-1 .style-card-rank {
	background: var(--color-white);
	color: #3A5A25;
}

.style-card-title-wrap {
	flex: 1;
	margin-left: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.style-card-name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
}

.style-card--rank-1 .style-card-name {
	color: var(--color-white);
}

.style-card-reading {
	font-size: 12px;
	color: var(--color-text-secondary);
}

.style-card--rank-1 .style-card-reading {
	color: rgba(255, 255, 255, 0.85);
}

.style-card-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.style-card-score-label {
	font-size: 10px;
	color: var(--color-text-muted);
}

.style-card--rank-1 .style-card-score-label {
	color: rgba(255, 255, 255, 0.75);
}

.style-card-score-value {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: #3A5A25;
}

.style-card--rank-1 .style-card-score-value {
	color: var(--color-white);
}

.style-card-score-unit {
	font-size: 12px;
	font-weight: 400;
}

.style-card-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.style-card-desc {
	font-size: 13px;
	color: var(--color-text);
	line-height: 1.7;
}

.style-card-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.style-card-detail {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.style-card-detail-label {
	font-size: 11px;
	color: var(--color-text-muted);
}

.style-card-detail-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
}

/* ========================================
   難易度インジケーター
   ======================================== */
.difficulty-indicator {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.difficulty-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e0e0e0;
}

.difficulty-dot--filled {
	background: #3A5A25;
}

.difficulty-label {
	font-size: 12px;
	color: var(--color-text-secondary);
	margin-left: 4px;
}

/* ========================================
   アクションボタン
   ======================================== */
.action-section {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 12px 20px;
}

.btn-secondary {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #3A5A25;
	background: var(--color-white);
	border: 1px solid #3A5A25;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-secondary:hover {
	background: #f1f8e9;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.style-card-details {
		grid-template-columns: 1fr;
	}

	.style-card-name {
		font-size: 16px;
	}

	.style-card-score-value {
		font-size: 18px;
	}

	.result-value {
		font-size: 36px;
	}
}
