/* ==========================================================================
   2027年ラッキーナンバー診断
   ========================================================================== */

/* ---------- 入力 ---------- */
.ln27-input {
	padding: 24px 20px 20px;
}

.ln27-lead {
	text-align: center;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 14px;
}

.ln27-birth {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.ln27-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ln27-select {
	font-size: 16px;
	padding: 10px 12px;
	border: 2px solid var(--color-border);
	border-radius: 10px;
	background: #fff;
	color: var(--color-text);
	min-width: 84px;
}

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

.ln27-unit {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.ln27-btn {
	display: block;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 14px 20px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #3d5a80 0%, #2b4160 100%);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(61, 90, 128, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ln27-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(61, 90, 128, 0.3);
}

.ln27-btn:disabled {
	background: #ccc;
	box-shadow: none;
	cursor: not-allowed;
}

.ln27-note {
	text-align: center;
	font-size: 12px;
	color: var(--color-text-secondary);
	margin: 12px 0 0;
}

/* ---------- 結果 ---------- */
.ln27-result {
	--ln27-accent: #3d5a80;
	padding: 0 20px 24px;
}

/* 共有URL（?n=）・本人用URL（?b=）で開いたとき：サーバー側が結果エリアを「保留」状態で先に描画し、JSが中身を入れてから見せる（CLS対策） */
.ln27-result.ln27-result-pending {
	min-height: 100vh;
}

.ln27-result.ln27-result-pending > * {
	visibility: hidden;
}

.ln27-hero {
	text-align: center;
	padding: 30px 16px 20px;
	margin: 0 -20px 14px;
	background: linear-gradient(180deg, #fbf7f2 0%, rgba(255, 255, 255, 0) 100%);
}

.ln27-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-text-secondary);
	margin: 0 0 12px;
}

.ln27-circle {
	width: 150px;
	height: 150px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ln27-circle--light {
	color: #333 !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 10px 28px rgba(0, 0, 0, 0.10) !important;
}

.ln27-digit {
	font-family: var(--font-display);
	font-size: 84px;
	font-weight: 700;
	line-height: 1;
}

.ln27-name {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.3;
	margin: 0 0 4px;
}

.ln27-en {
	font-size: 13px;
	color: var(--color-text-secondary);
	letter-spacing: 0.1em;
	margin: 0 0 12px;
}

.ln27-keywords {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ln27-kw {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f3f1ec;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
}

.ln27-meaning {
	font-size: 15px;
	line-height: 1.8;
	color: var(--color-text);
	margin: 0 auto;
	max-width: 620px;
	text-align: left;
}

.ln27-rarity {
	font-size: 12px;
	color: var(--color-text-secondary);
	margin: 10px 0 0;
}

.ln27-shared-note {
	background: #fff8e6;
	border: 1px solid #f0dcb0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	color: #6b5a2a;
	margin: 0 0 14px;
}

.ln27-section {
	margin-top: 22px;
}

.ln27-section-title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 10px;
	padding-left: 12px;
	border-left: 4px solid var(--ln27-accent);
	line-height: 1.4;
}

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

.ln27-tip {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f7f5f0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--color-text);
}

.ln27-tip strong {
	color: var(--ln27-accent);
	margin-right: 6px;
}

/* 相性 */
.ln27-compat {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.ln27-compat-item {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
}

.ln27-compat-mark {
	display: block;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 4px;
}

.ln27-compat-best .ln27-compat-mark { color: #e07850; }
.ln27-compat-good .ln27-compat-mark { color: #3d5a80; }
.ln27-compat-caution .ln27-compat-mark { color: #999; }

.ln27-compat-kind {
	display: block;
	font-size: 11px;
	color: var(--color-text-secondary);
	margin-bottom: 4px;
}

.ln27-compat-num {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
}

/* 月別 */
.ln27-months {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.ln27-month {
	text-align: center;
	padding: 8px 4px 6px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--color-border);
}

.ln27-month--now {
	border-color: var(--ln27-accent);
	box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.12);
}

.ln27-month-num {
	width: 44px;
	height: 44px;
	margin: 0 auto 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ln27-month-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text);
}

.ln27-month-tag {
	font-size: 11px;
	color: var(--color-text-secondary);
}

/* パーソナルイヤー・ソウルナンバー */
.ln27-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f7f5f0;
}

.ln27-row + .ln27-row {
	margin-top: 10px;
}

.ln27-row-num {
	flex: 0 0 auto;
	min-width: 56px;
	height: 56px;
	padding: 0 10px;
	border-radius: 14px;
	background: #fff;
	border: 2px solid var(--ln27-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--ln27-accent);
}

.ln27-row-body {
	min-width: 0;
}

.ln27-row-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 3px;
}

.ln27-row-text {
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin: 0;
}

.ln27-master-note {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: #6b5a2a;
	background: #fff8e6;
	border-radius: 8px;
	padding: 8px 12px;
}

.ln27-steps {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #4a5f80;
	word-break: break-all;
	line-height: 1.7;
}

.ln27-link {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: underline;
}

.ln27-links {
	margin-top: 18px;
	display: grid;
	gap: 8px;
}

.ln27-links a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--color-border);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: none;
}

.ln27-links a:hover {
	background: #f7f5f0;
}

/* 共有 */
.ln27-share {
	margin-top: 22px;
}

.ln27-share-lead {
	font-size: 12px;
	color: var(--color-text-secondary);
	margin: 0 0 6px;
}

.ln27-share-row {
	display: flex;
	gap: 8px;
}

.ln27-share-url {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	padding: 9px 10px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fafafa;
	color: var(--color-text);
}

.ln27-share-copy {
	padding: 9px 14px;
	border-radius: 8px;
	border: 1px solid var(--color-primary);
	background: #fff;
	color: var(--color-primary);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.ln27-share-copy:hover {
	background: var(--color-primary);
	color: #fff;
}

.ln27-result .action-section {
	margin-top: 18px;
	flex-wrap: wrap;
	justify-content: center;
}

.ln27-result .action-section > * {
	flex: 1 1 calc(50% - 6px);
	min-width: 140px;
}

/* Xでシェア（.btn-share は共通CSSに無いため、姉妹ページと同じ色をツール側で定義） */
.ln27-result .btn-share {
	padding: 10px 20px;
	font-family: inherit;
	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;
}

.ln27-result .btn-share:hover {
	background: #1a91da;
}

/* ---------- 一覧（解説） ---------- */
.ln27-guide {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.ln27-guide-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background: #fff;
}

.ln27-guide-num {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ln27-guide-name {
	font-size: 15px;
	font-weight: 700;
	margin: 2px 0 4px;
}

.ln27-guide-name a {
	color: var(--color-text);
	text-decoration: none;
}

.ln27-guide-name a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.ln27-guide-text {
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin: 0;
}

.ln27-uses {
	margin: 0;
	padding-left: 1.3em;
}

.ln27-uses li {
	margin-bottom: 6px;
	line-height: 1.7;
}

/* 早見表：13列あるのでスマホでは横スクロール（.table-wrapper は共通CSSに無いためツール側で定義） */
.ln27-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 8px;
}

.ln27-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 13px;
}

.ln27-table th,
.ln27-table td {
	border: 1px solid var(--color-border);
	padding: 6px 8px;
	text-align: center;
}

.ln27-table th {
	background: #f7f5f0;
	white-space: nowrap;
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
	.ln27-months {
		grid-template-columns: repeat(4, 1fr);
	}

	.ln27-month-num {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.ln27-compat {
		grid-template-columns: 1fr;
	}

	.ln27-compat-item {
		display: flex;
		align-items: center;
		gap: 10px;
		text-align: left;
	}

	.ln27-compat-mark,
	.ln27-compat-kind {
		margin: 0;
	}

	.ln27-circle {
		width: 130px;
		height: 130px;
	}

	.ln27-digit {
		font-size: 72px;
	}
}
