/* =====================================
   2027年ラッキーカラー一覧・意味ガイド
   prefix: .lcg-
   ===================================== */

/* ---------- 見出し下の更新日 ---------- */
.lcg-updated {
	margin-top: 8px;
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.7;
}

.lcg-updated time {
	font-weight: 500;
	color: var(--color-text-secondary);
}

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

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

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

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

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

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

.lcg-select:focus {
	outline: none;
	border-color: var(--color-primary);
}

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

.lcg-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, #3d5a80 0%, #2b4463 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(61, 90, 128, 0.28);
}

.lcg-check-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(61, 90, 128, 0.38);
}

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

.lcg-result {
	max-width: 560px;
	margin: 22px auto 0;
	padding: 18px 18px 14px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	text-align: left;
}

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

.lcg-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);
}

.lcg-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);
}

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

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

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

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

.lcg-result-sub {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13.5px;
	color: var(--color-text);
}

.lcg-result-sub-swatch {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

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

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

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

.lcg-result-detail {
	color: var(--color-white);
	background: linear-gradient(135deg, #3d5a80 0%, #2b4463 100%);
	padding: 9px 16px;
	border-radius: 999px;
}

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

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

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

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

/* ---------- 目次 ---------- */
.lcg-toc .card-body {
	padding: 14px 20px;
}

.lcg-toc-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-secondary);
	letter-spacing: 0.04em;
}

.lcg-toc-list {
	margin: 0;
	padding-left: 1.4em;
	font-size: 13px;
	line-height: 1.9;
	columns: 2;
	column-gap: 24px;
}

.lcg-toc-list a {
	color: var(--color-accent);
	text-decoration: none;
}

.lcg-toc-list a:hover {
	text-decoration: underline;
}

/* ---------- 色チップ ---------- */
.lcg-chip {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex: 0 0 auto;
	vertical-align: -2px;
	margin-right: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

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

/* ---------- 3つの層 ---------- */
.lcg-layers {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 14px 0;
}

.lcg-layer {
	padding: 14px 16px;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background: var(--color-white);
}

.lcg-layer-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
}

.lcg-layer-num {
	flex: 0 0 auto;
	padding: 2px 10px;
	font-size: 12px;
	color: var(--color-white);
	background: var(--color-primary);
	border-radius: 999px;
}

.lcg-layer-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.lcg-theme-card {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px 6px 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-text);
	background: var(--color-bg);
	border-radius: 999px;
}

.lcg-theme-card .lcg-chip {
	width: 18px;
	height: 18px;
	margin-right: 4px;
}

.lcg-theme-card small {
	font-size: 11px;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-left: 4px;
}

.lcg-layer-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--color-text);
}

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

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

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

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

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

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

.lcg-table-eto th {
	width: 30%;
}

.lcg-table-eto td {
	white-space: normal;
}

.lcg-table-remainder td,
.lcg-table-remainder th {
	white-space: nowrap;
	text-align: center;
}

.lcg-table-remainder td {
	text-align: left;
	min-width: 150px;
}

.lcg-td-rem {
	font-family: var(--font-display);
	font-size: 16px;
	color: var(--color-primary);
}

.lcg-table-compare {
	min-width: 760px;
}

.lcg-table-compare td {
	font-size: 13px;
	white-space: normal;
	min-width: 120px;
}

.lcg-table-compare thead th:first-child {
	width: 92px;
}

/* 月別 12×12 */
.lcg-table-months {
	min-width: 1180px;
	font-size: 12px;
}

.lcg-table-months th,
.lcg-table-months td {
	padding: 6px 6px;
	text-align: center;
	white-space: nowrap;
}

.lcg-table-months .lcg-sticky {
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--color-white);
	text-align: left;
}

.lcg-table-months thead .lcg-sticky {
	z-index: 2;
	background: #eef2f6;
}

.lcg-table-months td .lcg-chip {
	display: block;
	margin: 0 auto 3px;
}

.lcg-td-name {
	display: block;
	font-size: 11px;
	color: var(--color-text-secondary);
}

.lcg-th-sub {
	display: block;
	font-size: 10.5px;
	font-weight: 500;
	color: var(--color-text-muted);
}

.lcg-table-months td.lcg-td-main {
	background: rgba(61, 90, 128, 0.06);
}

/* 12色の輪 */
.lcg-wheel {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0 10px;
	padding: 0;
	list-style: none;
	counter-reset: wheel;
}

.lcg-wheel li {
	counter-increment: wheel;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 12.5px;
	background: var(--color-white);
}

.lcg-wheel li::before {
	content: counter(wheel);
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--color-white);
	background: var(--color-primary);
}

.lcg-wheel-link {
	display: inline-flex;
	align-items: center;
	color: var(--color-text);
	text-decoration: none;
	min-width: 0;
}

.lcg-wheel-link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lcg-wheel-link:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

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

/* ---------- 色別解説カード ---------- */
.lcg-tg-item {
	scroll-margin-top: 16px;
}

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

.lcg-tg-swatch {
	width: 22px;
	height: 22px;
	margin-right: 2px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.lcg-tg-hex {
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-left: 2px;
}

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

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

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

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

/* ---------- 取り入れ方 ---------- */
.lcg-use-list {
	margin: 0 0 12px;
	padding-left: 1.3em;
	font-size: 14px;
	line-height: 1.85;
	color: var(--color-text);
}

.lcg-use-list li + li {
	margin-top: 6px;
}

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

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

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

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

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

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

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

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

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

	.lcg-toc-list {
		columns: 1;
	}

	.lcg-wheel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lcg-tg-item .tg-name {
		font-size: 16px;
		flex-wrap: wrap;
	}

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

	.lcg-table-eto th {
		width: 34%;
	}
}

/* 固定列（sticky）は border-collapse で下罫線が欠けることがあるので、内側の影で罫線を描く */
.lcg-table-months .lcg-sticky {
	box-shadow: inset 0 -1px 0 var(--color-border);
}
