/* ==========================================================================
   復縁の冷却期間カレンダー（co-）
   フォント切替で高さが変わらないように、select・input・button は line-height と height を明示する（CLS 規約 2026-11-08）。
   ========================================================================== */

:root {
	--co-main: #5b6b9e;
	--co-main-dark: #46547f;
	--co-soft: #eef0f8;
	--co-sand: #f6f5f1;
	--co-warn: #b23b3b;
	--co-today: #e0a040;
}

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

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

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

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

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

.co-grid--1 {
	grid-template-columns: 1fr;
}

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

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

.co-input,
.co-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;
}

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

.co-input[type="date"] {
	min-width: 0;
	position: relative;
}

.co-input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
	line-height: 24px;
}

.co-input:focus,
.co-select:focus {
	outline: none;
	border-color: var(--co-main);
	box-shadow: 0 0 0 3px rgba(91, 107, 158, 0.18);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.co-caution p {
	margin: 0;
}

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

.co-head {
	margin: 16px 0 12px;
	text-align: center;
}

.co-head-label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.co-head-date {
	margin: 4px 0;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--co-main-dark);
}

.co-head-sub {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--color-text-secondary);
}

/* 時間軸 */
.co-timeline {
	margin: 14px 0 16px;
}

.co-track {
	position: relative;
	height: 10px;
	margin: 18px 10px 10px;
	background: #e9e5de;
	border-radius: 999px;
}

.co-track-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: var(--co-main);
	border-radius: 999px;
}

.co-mark {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.co-mark--start,
.co-dot--start {
	background: #9a9a9a;
}

.co-mark--today,
.co-dot--today {
	background: var(--co-today);
}

.co-mark--earliest,
.co-dot--earliest {
	background: var(--co-main);
}

.co-mark--settled,
.co-dot--settled {
	background: var(--co-main-dark);
}

.co-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--color-text-secondary);
}

.co-legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.co-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* 数字のカード */
.co-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.co-stat {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 12px 10px;
	background: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.co-stat-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text-muted);
}

.co-stat-value {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--co-main-dark);
	line-height: 1.2;
	word-break: keep-all; /* 「3か月〜半年」を途中で切らず、<wbr>（〜の後ろ）でだけ折り返す */
}

.co-stat-note {
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--color-text-muted);
	min-height: 1.5em;
}

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

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

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

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

.co-list--dont li.is-hit {
	color: var(--co-warn);
	font-weight: 700;
}

.co-list--dont li.is-hit::after {
	content: "　← あなたの状態に当たります";
	font-weight: 500;
	font-size: 12.5px;
}

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

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

.co-next-link {
	font-weight: 700;
	font-size: 14px;
	color: var(--co-main-dark);
	text-decoration: none;
}

.co-next-link:hover {
	text-decoration: underline;
}

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

/* ---------- 目安表 ---------- */
.co-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

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

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

.co-doc-table .co-nowrap {
	white-space: nowrap;
}

.co-base-table td:nth-child(1) {
	min-width: 11em;
}

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

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

	.co-input,
	.co-select {
		height: 42px;
		padding: 9px 12px;
		line-height: 22px;
		font-size: 15px;
	}

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

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

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

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

	.co-head-date {
		font-size: 22px;
	}

	.co-stats {
		gap: 8px;
	}

	.co-stat {
		padding: 10px 6px;
	}

	.co-stat-value {
		font-size: 17px;
	}

	.co-stat-label,
	.co-stat-note {
		font-size: 11px;
	}

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

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

	.co-list--dont li.is-hit::after {
		content: "";
	}

	.co-list--dont li.is-hit::before {
		content: "← あなたの状態に当たります ";
		font-weight: 500;
		font-size: 12.5px;
	}
}
