/* ==========================================================================
   復縁LINEの最初の一通メーカー（fl-）
   フォント切替で高さが変わらないように、select・input・button・ラジオは line-height と height を明示する（CLS 規約 2026-11-08）。
   ========================================================================== */

:root {
	--fl-main: #7a6fa3;
	--fl-main-dark: #5f5584;
	--fl-soft: #f1eef8;
	--fl-sand: #f7f5f1;
	--fl-warn: #b23b3b;
	--fl-amber: #e0a040;
}

/* ---------- 入力 ---------- */
.fl-section {
	padding: 18px 20px 6px;
}

.fl-section + .fl-section {
	border-top: 1px solid var(--color-border);
}

.fl-section-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	line-height: 1.6;
}

.fl-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fl-main);
	color: #fff;
	font-size: 12px;
	flex-shrink: 0;
}

.fl-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin-bottom: 12px;
}

.fl-grid--format {
	margin-top: 12px;
}

.fl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.fl-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.6;
}

.fl-opt {
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-muted);
}

.fl-input,
.fl-select {
	width: 100%;
	height: 48px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.fl-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.fl-input::placeholder {
	color: var(--color-text-muted);
}

.fl-input:focus,
.fl-select:focus {
	outline: none;
	border-color: var(--fl-main);
	box-shadow: 0 0 0 3px rgba(122, 111, 163, 0.18);
}

/* ラジオ（固定グリッド・固定高さ） */
.fl-radio-row {
	display: grid;
	gap: 8px;
}

.fl-radio-row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fl-radio-row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fl-radio {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 64px;
	padding: 6px 8px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	cursor: pointer;
	background: #fff;
	box-sizing: border-box;
	text-align: center;
}

.fl-radio small {
	display: block;
	font-size: 11px;
	line-height: 14px;
	font-weight: 500;
	color: var(--color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.fl-radio--plain {
	flex-direction: row;
	height: 42px;
	gap: 6px;
	border-radius: 999px;
	white-space: nowrap;
}

.fl-radio input {
	margin: 0;
	accent-color: var(--fl-main);
	flex-shrink: 0;
}

.fl-radio:not(.fl-radio--plain) input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fl-radio:has(input:checked) {
	border-color: var(--fl-main);
	background: var(--fl-soft);
	color: var(--fl-main-dark);
}

.fl-hint {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--color-text-muted);
}

.fl-error {
	display: none;
	margin: 0 20px;
	padding: 10px 12px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--fl-warn);
	background: #fdf0f0;
	border-radius: var(--radius);
}

.fl-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 20px 20px;
}

.fl-btn {
	padding: 11px 20px;
	border-radius: var(--radius);
	border: 2px solid var(--fl-main);
	background: var(--fl-main);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 24px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.fl-btn:hover {
	background: var(--fl-main-dark);
	border-color: var(--fl-main-dark);
}

.fl-btn--sub {
	background: #fff;
	color: var(--fl-main-dark);
}

.fl-btn--sub:hover {
	background: var(--fl-soft);
}

/* ---------- 結果 ---------- */
.fl-result {
	display: none;
	padding: 4px 20px 20px;
	border-top: 1px solid var(--color-border);
}

.fl-result.is-shown {
	display: block;
}

.fl-stop {
	margin: 14px 0 0;
	padding: 14px 16px;
	background: #fdf0f0;
	border: 1px solid #e9b8b8;
	border-radius: var(--radius);
}

.fl-stop-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--fl-warn);
	line-height: 1.5;
}

.fl-stop-text {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text);
}

.fl-caution {
	margin: 14px 0 0;
	padding: 10px 14px;
	background: #fff7e8;
	border-left: 4px solid var(--fl-amber);
	border-radius: var(--radius);
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text);
}

.fl-caution p {
	margin: 0;
}

.fl-caution p + p {
	margin-top: 6px;
}

.fl-caution a,
.fl-link {
	color: var(--fl-main-dark);
	font-weight: 700;
	text-decoration: none;
}

.fl-caution a:hover,
.fl-link:hover {
	text-decoration: underline;
}

.fl-result-sub {
	margin: 14px 0 10px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-text-secondary);
}

.fl-drafts {
	display: grid;
	gap: 12px;
}

.fl-draft {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 12px 14px;
	background: #fff;
}

.fl-draft-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.fl-draft-label {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--fl-main-dark);
}

.fl-draft-count {
	font-size: 12px;
	color: var(--color-text-muted);
}

.fl-draft-text {
	margin: 8px 0;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.9;
	color: var(--color-text);
	background: var(--fl-sand);
	border-radius: var(--radius);
	white-space: pre-wrap;
	word-break: break-word;
}

.fl-draft-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fl-draft-why {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--color-text-secondary);
	flex: 1 1 200px;
}

.fl-copy {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--fl-main);
	background: #fff;
	color: var(--fl-main-dark);
	font-weight: 700;
	font-size: 13px;
	line-height: 20px;
	font-family: inherit;
	cursor: pointer;
	flex-shrink: 0;
}

.fl-copy:hover {
	background: var(--fl-soft);
}

.fl-block-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	margin: 18px 0 8px;
	color: var(--color-text);
}

.fl-list {
	margin: 0;
	padding-left: 1.3em;
	font-size: 13.5px;
	line-height: 1.8;
}

.fl-list li + li {
	margin-top: 4px;
}

.fl-list--ng strong {
	color: var(--fl-warn);
}

.fl-notice {
	margin: 0;
	padding: 10px 14px;
	font-size: 13.5px;
	line-height: 1.7;
	background: var(--fl-sand);
	border-radius: var(--radius);
	color: var(--color-text);
}

.fl-rule {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: var(--fl-soft);
	border-radius: var(--radius);
}

.fl-rule-title {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--fl-main-dark);
}

.fl-rule-text {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--color-text);
}

.fl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 8px;
}

/* ---------- 例文の表 ---------- */
.fl-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

.fl-doc-table th,
.fl-doc-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.fl-doc-table th {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--color-text-secondary);
	background: var(--color-bg);
	white-space: nowrap;
}

.fl-example-table td:nth-child(1) {
	min-width: 9em;
}

.fl-example-table td:nth-child(2) {
	min-width: 16em;
}

.fl-example-text {
	color: var(--color-text);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
	.fl-section {
		padding: 16px 16px 4px;
	}

	.fl-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fl-input,
	.fl-select {
		height: 42px;
		padding: 9px 12px;
		line-height: 22px;
	}

	.fl-radio {
		height: 60px;
		font-size: 13px;
		line-height: 18px;
		padding: 6px 4px;
	}

	.fl-radio small {
		font-size: 10px;
		line-height: 13px;
	}

	.fl-radio--plain {
		height: 40px;
		font-size: 13px;
	}

	.fl-error {
		margin: 0 16px;
	}

	.fl-btn-row {
		padding: 12px 16px 16px;
	}

	.fl-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.fl-result {
		padding: 4px 16px 16px;
	}

	.fl-draft-text {
		font-size: 14.5px;
	}

	.fl-doc-table th,
	.fl-doc-table td {
		padding: 7px 8px;
		font-size: 13px;
	}

	.fl-example-table td:nth-child(1) {
		min-width: 7em;
	}

	.fl-example-table td:nth-child(2) {
		min-width: 14em;
	}
}
