/* =====================================
   ソウルカラー11色一覧・意味ガイド
   prefix: .scg-
   ===================================== */

/* ---------- 簡易チェック ---------- */
.scg-check {
	padding: 30px 20px 26px;
	text-align: center;
	background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--color-border);
	border-radius: var(--radius) var(--radius) 0 0;
}

.scg-check-lead {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 6px;
}

.scg-check-sub {
	font-size: 13px;
	color: var(--color-text-secondary);
	margin: 0 0 20px;
	line-height: 1.6;
}

.scg-birth-form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.scg-birth-field {
	display: flex;
	align-items: center;
	gap: 4px;
}

.scg-select {
	padding: 10px 12px;
	font-family: inherit;
	font-size: 16px;
	color: var(--color-text);
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	appearance: auto;
	min-width: 80px;
}

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

.scg-birth-label {
	font-size: 14px;
	color: var(--color-text-secondary);
	font-weight: 500;
}

.scg-check-btn {
	display: inline-block;
	padding: 13px 38px;
	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: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 4px 14px rgba(123, 94, 167, 0.28);
}

.scg-check-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(123, 94, 167, 0.38);
}

.scg-check-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

/* 結果 */
.scg-result {
	max-width: 520px;
	margin: 22px auto 0;
	padding: 18px 18px 14px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	text-align: left;
}

.scg-result-main {
	display: flex;
	align-items: center;
	gap: 14px;
}

.scg-result-swatch {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scg-result-swatch-light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.10);
}

.scg-result-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.scg-result-number {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-text-secondary);
}

.scg-result-name {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.3;
}

.scg-result-color {
	font-size: 13px;
	color: var(--color-text-secondary);
}

.scg-result-steps {
	margin: 12px 0 0;
	padding: 10px 12px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	border-radius: 8px;
	word-break: break-all;
}

.scg-result-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 12px;
}

.scg-result-detail,
.scg-result-anchor {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.5;
}

.scg-result-detail {
	color: var(--color-white);
	background: linear-gradient(135deg, #7b5ea7 0%, #5e4587 100%);
	padding: 9px 16px;
	border-radius: 999px;
}

.scg-result-detail:hover {
	opacity: 0.9;
}

.scg-result-anchor {
	color: var(--color-primary);
	padding: 9px 4px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.scg-result-anchor:hover {
	color: var(--color-accent);
}

.scg-result-note {
	margin: 10px 0 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--color-text-muted);
}

/* ---------- 表 ---------- */
.scg-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 12px 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.scg-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 13.5px;
	line-height: 1.6;
}

.scg-table th,
.scg-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: middle;
}

.scg-table thead th {
	background: rgba(61, 90, 128, 0.07);
	font-weight: 700;
	color: var(--color-primary-dark);
	white-space: nowrap;
}

.scg-table tbody tr:last-child th,
.scg-table tbody tr:last-child td {
	border-bottom: none;
}

.scg-table tbody th {
	background: rgba(61, 90, 128, 0.04);
	font-weight: 700;
	color: var(--color-text);
	white-space: nowrap;
}

.scg-td-num {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-primary);
	text-align: center;
	width: 44px;
}

.scg-td-name {
	white-space: nowrap;
	font-weight: 700;
}

.scg-td-rate {
	white-space: nowrap;
}

.scg-name-link {
	color: var(--color-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.scg-name-link:hover {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.scg-chip {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex: 0 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.scg-chip-light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.scg-rare {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 700;
	color: var(--color-white);
	background: var(--color-accent);
	border-radius: 999px;
	vertical-align: middle;
}

.scg-rate-note,
.scg-colors-note {
	margin-top: 4px;
}

.scg-table-list td:nth-child(3),
.scg-table-list td:nth-child(5) {
	white-space: nowrap;
}

.scg-table-example {
	min-width: 560px;
}

.scg-table-compare {
	min-width: 720px;
}

.scg-table-compare thead th:first-child {
	width: 96px;
}

/* ---------- 計算ルール枠 ---------- */
.scg-rule {
	margin: 16px 0 6px;
	padding: 14px 16px;
	background: rgba(123, 94, 167, 0.07);
	border-left: 4px solid #7b5ea7;
	border-radius: 0 var(--radius) var(--radius) 0;
}

.scg-rule-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: #5e4587;
	margin: 0 0 6px;
}

.scg-rule-text {
	font-size: 14px;
	line-height: 1.8;
	color: var(--color-text);
	margin: 0;
}

.scg-rule-text strong {
	color: #5e4587;
}

/* ---------- 色別解説 ---------- */
.scg-type-guide {
	margin-top: 12px;
}

.scg-tg-item {
	scroll-margin-top: 16px;
}

.scg-tg-item .tg-name {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	font-family: var(--font-display);
}

.scg-tg-swatch {
	display: inline-block;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.scg-tg-swatch-light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.12);
}

.scg-tg-item .tg-kw {
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.scg-tg-item .tg-gap {
	font-size: 13.5px;
}

.scg-type-link {
	display: inline-block;
	margin-left: 6px;
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.scg-type-link:hover {
	color: var(--color-accent);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
	.scg-check {
		padding: 24px 14px 22px;
	}

	.scg-check-lead {
		font-size: 17px;
	}

	.scg-birth-form {
		gap: 4px;
	}

	.scg-select {
		min-width: 70px;
		padding: 8px 6px;
		font-size: 15px;
	}

	.scg-check-btn {
		padding: 12px 30px;
		font-size: 15px;
	}

	.scg-result {
		padding: 14px 12px 12px;
	}

	.scg-result-swatch {
		width: 54px;
		height: 54px;
	}

	.scg-result-name {
		font-size: 18px;
	}

	.scg-result-detail {
		width: 100%;
		text-align: center;
	}

	.scg-tg-item .tg-name {
		font-size: 16px;
	}

	.scg-type-link {
		display: block;
		margin: 6px 0 0;
		white-space: normal;
	}
}
