/* ============================================================
 * 夫婦の名づけ会議シート（page-naming-worksheet.php）
 * - 画面表示用 + A4 1ページに収まる印刷用スタイル
 * ============================================================ */

.pmn-ws-page { background: var(--pm-bg); }

/* ---- パンくず ---- */
.pmn-ws-bc {
	padding: 1rem 0;
	font-size: 0.85rem;
	color: var(--pm-text-sub);
}
.pmn-ws-bc a {
	color: var(--pm-text-sub);
	text-decoration: none;
}
.pmn-ws-bc a:hover { color: var(--pm-primary); }
.pmn-ws-bc .sep { margin: 0 0.5rem; color: var(--pm-text-faint); }

/* ---- 画面用イントロ ---- */
.pmn-ws-intro {
	padding: 1rem 0 2rem;
}
.pmn-ws-intro .eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	color: var(--pm-primary);
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.pmn-ws-intro h1 {
	font-family: var(--pm-font-heading);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--pm-text);
}
.pmn-ws-lead {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--pm-text-sub);
	margin: 0 0 1.5rem;
	max-width: 720px;
}
.pmn-ws-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
}
.pmn-ws-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--pm-primary);
	color: #fff;
	border: none;
	border-radius: var(--pm-radius-pill);
	padding: 12px 22px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s;
}
.pmn-ws-print-btn:hover { opacity: 0.88; }
.pmn-ws-print-btn svg { width: 18px; height: 18px; }
.pmn-ws-tip {
	font-size: 0.8rem;
	color: var(--pm-text-sub);
}
.pmn-ws-howto {
	list-style: none;
	padding: 1rem 1.25rem;
	margin: 0;
	background: var(--pm-surface);
	border: 1px solid var(--pm-border);
	border-radius: 10px;
	max-width: 720px;
}
.pmn-ws-howto li {
	font-size: 0.85rem;
	color: var(--pm-text-sub);
	line-height: 1.7;
}
.pmn-ws-howto li + li { margin-top: 0.5rem; }
.pmn-ws-howto b { color: var(--pm-text); margin-right: 0.4rem; }

/* ============================================================
 * 印刷対象シート（画面では A4 サイズのプレビューとして表示）
 * ============================================================ */
.pmn-ws-sheet {
	background: #fff;
	color: #2a2a2a;
	width: 210mm;
	min-height: 297mm;
	max-width: 100%;
	margin: 0 auto 2rem;
	padding: 12mm 14mm 10mm;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	font-family: var(--pm-font-body);
	font-size: 9.5pt;
	line-height: 1.45;
}

.pmn-ws-sheet__header {
	border-bottom: 2px solid #333;
	padding-bottom: 6mm;
	margin-bottom: 6mm;
}
.pmn-ws-sheet__brand {
	font-family: var(--pm-font-heading);
	font-size: 9pt;
	color: var(--pm-primary);
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-bottom: 1mm;
}
.pmn-ws-sheet__title {
	font-family: var(--pm-font-heading);
	font-size: 19pt;
	font-weight: 700;
	margin: 0 0 2mm;
	color: #222;
	letter-spacing: 0.03em;
}
.pmn-ws-sheet__sub {
	font-size: 9.5pt;
	color: #666;
	margin-bottom: 4mm;
}
.pmn-ws-sheet__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6mm;
	font-size: 9pt;
	color: #444;
}

/* ---- ステップ ---- */
.pmn-ws-step {
	margin-bottom: 5mm;
	break-inside: avoid;
}
.pmn-ws-step__no {
	display: inline-block;
	background: #333;
	color: #fff;
	font-family: var(--pm-font-heading);
	font-weight: 700;
	font-size: 9pt;
	padding: 1.5mm 3mm;
	border-radius: 3px;
	letter-spacing: 0.08em;
	margin-bottom: 1.5mm;
}
.pmn-ws-step__title {
	font-family: var(--pm-font-heading);
	font-size: 12pt;
	font-weight: 700;
	margin: 0 0 1.5mm;
	color: #222;
}
.pmn-ws-step__hint {
	font-size: 8.5pt;
	color: #777;
	margin: 0 0 2mm;
}
.pmn-ws-step--final { margin-bottom: 3mm; }

/* ---- STEP 1 チェックリスト ---- */
.pmn-ws-checklist table {
	width: 100%;
	border-collapse: collapse;
	font-size: 9pt;
}
.pmn-ws-checklist th,
.pmn-ws-checklist td {
	border: 1px solid #999;
	padding: 1.8mm 2mm;
	text-align: left;
}
.pmn-ws-checklist th {
	background: #f0f0f0;
	font-weight: 700;
	text-align: center;
	font-size: 8.5pt;
}
.pmn-ws-checklist th.ws-ck,
.pmn-ws-checklist td:not(.ws-axis) { width: 22mm; text-align: center; }

/* ---- STEP 2 候補表 ---- */
.pmn-ws-candidates {
	width: 100%;
	border-collapse: collapse;
	font-size: 9pt;
}
.pmn-ws-candidates th,
.pmn-ws-candidates td {
	border: 1px solid #999;
	padding: 2mm;
	height: 7mm;
}
.pmn-ws-candidates th {
	background: #f0f0f0;
	font-weight: 700;
	font-size: 8.5pt;
}
.pmn-ws-candidates th:nth-child(1),
.pmn-ws-candidates td:nth-child(1) { width: 7mm; text-align: center; }
.pmn-ws-candidates th:nth-child(2),
.pmn-ws-candidates td:nth-child(2) { width: 28mm; }
.pmn-ws-candidates th:nth-child(3),
.pmn-ws-candidates td:nth-child(3) { width: 28mm; }

/* ---- STEP 3 評価表 ---- */
.pmn-ws-eval {
	width: 100%;
	border-collapse: collapse;
	font-size: 8.5pt;
}
.pmn-ws-eval th,
.pmn-ws-eval td {
	border: 1px solid #999;
	padding: 1.2mm 1.5mm;
	text-align: center;
	height: 6mm;
}
.pmn-ws-eval th {
	background: #f0f0f0;
	font-weight: 700;
	font-size: 8pt;
}
.pmn-ws-eval td:nth-child(2) { text-align: left; padding-left: 2mm; }

/* ---- STEP 4 2 カラム ---- */
.pmn-ws-twocol {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4mm;
}
.pmn-ws-twocol__cell {
	border: 1px solid #999;
	padding: 2.5mm 3mm;
}
.pmn-ws-twocol__label {
	font-weight: 700;
	font-size: 9pt;
	color: #333;
	border-bottom: 1px dashed #ccc;
	padding-bottom: 1mm;
	margin-bottom: 2mm;
}
.pmn-ws-lines > div {
	border-bottom: 1px solid #aaa;
	height: 6mm;
}

/* ---- STEP 5 最終決定 ---- */
.pmn-ws-final {
	border: 2px solid #333;
	padding: 4mm 5mm;
	background: #fafafa;
}
.pmn-ws-final__row {
	display: flex;
	align-items: center;
	gap: 4mm;
	margin-bottom: 3mm;
}
.pmn-ws-final__row--small { font-size: 9pt; }
.pmn-ws-final__label {
	font-weight: 700;
	font-size: 9pt;
	color: #333;
	white-space: nowrap;
}
.pmn-ws-final__name {
	flex: 1;
	border-bottom: 2px solid #333;
	height: 14mm;
}
.pmn-ws-final__line {
	flex: 1;
	border-bottom: 1px solid #999;
	height: 6mm;
}
.pmn-ws-final__line--short { flex: 0 0 35mm; }
.pmn-ws-final__msg .pmn-ws-final__label { display: block; margin-bottom: 2mm; }

/* ---- フッター ---- */
.pmn-ws-sheet__footer {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #999;
	padding-top: 3mm;
	margin-top: 3mm;
	font-size: 8pt;
	color: #777;
}

/* ---- 完了後 CTA ---- */
.pmn-ws-cta {
	padding: 2.5rem 0 4rem;
	text-align: center;
}
.pmn-ws-cta h2 {
	font-family: var(--pm-font-heading);
	font-size: 1.4rem;
	margin: 0 0 0.5rem;
}
.pmn-ws-cta p { color: var(--pm-text-sub); }
.pmn-ws-cta a {
	color: var(--pm-primary);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* ============================================================
 * 印刷時: 画面用 UI を全部隠してシートだけを A4 一杯に出す
 * ============================================================ */
@media print {
	html, body { background: #fff !important; }
	.pmn-h, .pmn-f, .pmn-ws-bc, .pmn-ws-intro, .pmn-ws-cta {
		display: none !important;
	}
	.pmn-ws-page { padding: 0; }
	.pmn-ws-sheet {
		box-shadow: none;
		margin: 0;
		padding: 6mm 8mm;
		width: 100%;
		min-height: auto;
		page-break-inside: avoid;
	}
	.pmn-ws-step { page-break-inside: avoid; }
	@page {
		size: A4;
		margin: 6mm;
	}
}

/* ---- スモールビューポート: 画面表示時に横スクロールにする ---- */
@media (max-width: 820px) {
	.pmn-ws-sheet {
		width: 100%;
		padding: 8mm;
		font-size: 8.5pt;
	}
	.pmn-ws-eval { font-size: 7.5pt; }
}
