/**
 * 守護色相性診断 - 専用スタイル
 * prefix: gcc-
 */

/* ===== デュアル入力エリア ===== */
.gcc-dual-input {
	padding: 32px 20px;
	border-bottom: 1px solid var(--color-border);
}

.gcc-dual-input-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	text-align: center;
	margin-bottom: 24px;
}

.gcc-dual-panels {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	max-width: 580px;
	margin: 0 auto 20px;
}

.gcc-person-panel {
	flex: 1;
	max-width: 220px;
	text-align: center;
}

.gcc-person-label {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
	display: block;
}

.gcc-birthday-form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-wrap: wrap;
}

.gcc-birthday-field {
	display: flex;
	align-items: center;
	gap: 2px;
}

.gcc-select {
	padding: 10px 8px;
	font-family: inherit;
	font-size: 15px;
	color: var(--color-text);
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	appearance: auto;
	min-width: 70px;
}

.gcc-select:focus {
	outline: none;
	border-color: #7b5ea7;
}

.gcc-birthday-label {
	font-size: 13px;
	color: var(--color-text-secondary);
	font-weight: 500;
}

.gcc-connector {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: 28px;
	font-size: 22px;
	font-weight: 700;
	color: var(--color-white);
	background: linear-gradient(135deg, #7b5ea7 0%, #5e4587 100%);
	border-radius: 50%;
	flex-shrink: 0;
}

.gcc-diagnose-btn {
	display: inline-block;
	padding: 14px 40px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-white);
	background: linear-gradient(135deg, #7b5ea7 0%, #5e4587 100%);
	border: none;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(123, 94, 167, 0.3);
	margin-top: 8px;
}

.gcc-diagnose-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(123, 94, 167, 0.4);
}

.gcc-diagnose-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
}

.gcc-input-help {
	font-size: 13px;
	color: var(--color-text-muted);
	margin-top: 16px;
	text-align: center;
}

.gcc-input-help a {
	color: var(--color-accent);
	text-decoration: none;
	font-weight: 500;
}

.gcc-input-help a:hover {
	text-decoration: underline;
}

/* ===== 計算アニメーションエリア ===== */
.gcc-calc-area {
	padding: 40px 20px;
	border-bottom: 1px solid var(--color-border);
	text-align: center;
}

.gcc-calc-title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 24px;
}

.gcc-calc-dual {
	display: flex;
	justify-content: center;
	gap: 40px;
	max-width: 600px;
	margin: 0 auto;
}

.gcc-calc-panel {
	flex: 1;
	max-width: 250px;
}

.gcc-calc-panel-label {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-muted);
	margin-bottom: 12px;
}

.gcc-calc-steps {
	margin-bottom: 8px;
}

.gcc-calc-step {
	font-family: var(--font-display);
	font-size: 18px;
	color: var(--color-text);
	margin-bottom: 6px;
	opacity: 0;
	transform: translateY(8px);
	transition: all 0.4s ease;
}

.gcc-calc-step.visible {
	opacity: 1;
	transform: translateY(0);
}

.gcc-calc-step .gcc-calc-sum {
	font-weight: 700;
	color: #7b5ea7;
}

.gcc-calc-step .gcc-calc-arrow {
	display: block;
	font-size: 16px;
	color: var(--color-text-muted);
	margin: 2px 0;
}

.gcc-calc-result {
	margin-top: 12px;
}

.gcc-calc-result-text {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: #7b5ea7;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.gcc-calc-result-text.visible {
	opacity: 1;
}

.gcc-calc-color-reveal {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 24px;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.gcc-calc-color-reveal.visible {
	opacity: 1;
}

.gcc-calc-color-circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 3px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gcc-calc-color-connector {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-muted);
}

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

.gcc-dual-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 20px;
}

.gcc-person-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.gcc-person-tag {
	font-size: 11px;
	font-weight: 700;
	color: var(--color-text-muted);
	background: var(--color-white);
	padding: 2px 10px;
	border-radius: 10px;
	border: 1px solid var(--color-border);
}

.gcc-person-circle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gcc-person-color-name {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
}

.gcc-display-connector {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-muted);
	margin-top: 18px;
}

.gcc-type-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	background: linear-gradient(135deg, #7b5ea7 0%, #5e4587 100%);
	color: var(--color-white);
	border-radius: 24px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
	box-shadow: 0 3px 10px rgba(123, 94, 167, 0.3);
}

.gcc-type-badge-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gcc-tagline {
	font-size: 15px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ===== 結果セクション ===== */
.gcc-section {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
	animation: gccFadeIn 0.5s ease;
}

.gcc-section-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.gcc-section-title-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

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

/* ===== デュアルレーダーチャート ===== */
.gcc-dual-radar {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.gcc-radar-panel {
	text-align: center;
}

.gcc-radar-label {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 8px;
}

.gcc-radar-panel canvas {
	max-width: 100%;
	height: auto;
}

/* ===== ペアラッキーカラー ===== */
.gcc-color-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.gcc-color-item {
	text-align: center;
}

.gcc-color-swatch {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	margin: 0 auto 6px;
}

.gcc-color-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.4;
}

/* ===== アドバイス ===== */
.gcc-advice-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

.gcc-advice-number {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7b5ea7 0%, #5e4587 100%);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.gcc-advice-text {
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-text-secondary);
	flex: 1;
}

/* ===== ラッキーアイテム交換 ===== */
.gcc-lucky-exchange {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gcc-lucky-exchange-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--color-bg);
	border-radius: var(--radius);
}

.gcc-lucky-exchange-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid rgba(0, 0, 0, 0.06);
}

.gcc-lucky-exchange-info {
	flex: 1;
	min-width: 0;
}

.gcc-lucky-exchange-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text-muted);
	margin-bottom: 2px;
}

.gcc-lucky-exchange-text {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

/* ===== 相性タイプ一覧 ===== */
.gcc-types-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.gcc-type-card {
	padding: 16px;
	background: var(--color-bg);
	border-radius: var(--radius);
	text-align: center;
}

.gcc-type-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.gcc-type-dot {
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

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

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

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
	.gcc-dual-input {
		padding: 24px 12px;
	}

	.gcc-dual-panels {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.gcc-person-panel {
		max-width: 100%;
		width: 100%;
	}

	.gcc-connector {
		margin: 12px auto;
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.gcc-select {
		min-width: 64px;
		padding: 8px 6px;
		font-size: 14px;
	}

	.gcc-diagnose-btn {
		padding: 12px 32px;
		font-size: 15px;
	}

	.gcc-calc-dual {
		flex-direction: column;
		gap: 24px;
		align-items: center;
	}

	.gcc-calc-panel {
		max-width: 100%;
	}

	.gcc-calc-step {
		font-size: 16px;
	}

	.gcc-dual-display {
		gap: 10px;
	}

	.gcc-person-circle {
		width: 44px;
		height: 44px;
	}

	.gcc-type-badge {
		font-size: 16px;
		padding: 6px 16px;
	}

	.gcc-dual-radar {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.gcc-section {
		padding: 16px;
	}

	.gcc-color-grid {
		gap: 10px;
	}

	.gcc-color-swatch {
		width: 48px;
		height: 48px;
	}

	.gcc-types-grid {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 360px) {
	.gcc-dual-input {
		padding: 20px 8px;
	}

	.gcc-birthday-form {
		gap: 2px;
	}

	.gcc-select {
		min-width: 58px;
		padding: 7px 4px;
		font-size: 13px;
	}

	.gcc-person-circle {
		width: 38px;
		height: 38px;
	}

	.gcc-person-color-name {
		font-size: 11px;
	}

	.gcc-type-badge {
		font-size: 14px;
	}

	.gcc-calc-color-circle {
		width: 48px;
		height: 48px;
	}
}
