/* =========================================================
   住まいのセルフチェック（#nexpro-self-check / .nsc 限定）
   スマートフォン優先
   ========================================================= */

#nexpro-self-check.nsc {
	--nsc-navy: #0f2a44;
	--nsc-navy-soft: #1a3d5c;
	--nsc-accent: #5ec8e8;
	--nsc-bg: #f5f7fa;
	--nsc-white: #ffffff;
	--nsc-text: #1f2a33;
	--nsc-muted: #5a6a76;
	--nsc-border: #d7dee5;
	--nsc-radius: 6px;
	--nsc-shadow: 0 1px 3px rgba(15, 42, 68, 0.08);

	box-sizing: border-box;
	color: var(--nsc-text);
	line-height: 1.7;
	margin: 0 auto 2.5em;
	max-width: 720px;
	width: 100%;
}

#nexpro-self-check.nsc *,
#nexpro-self-check.nsc *::before,
#nexpro-self-check.nsc *::after {
	box-sizing: border-box;
}

#nexpro-self-check .nsc-section {
	background: var(--nsc-white);
	border: 1px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	padding: 1.25rem 1rem 1.5rem;
}

#nexpro-self-check .nsc-section[hidden] {
	display: none !important;
}

#nexpro-self-check .nsc-title {
	color: var(--nsc-navy);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.75rem;
}

#nexpro-self-check .nsc-lead,
#nexpro-self-check .nsc-note,
#nexpro-self-check .nsc-help {
	color: var(--nsc-muted);
	font-size: 0.95rem;
	margin: 0 0 1rem;
}

#nexpro-self-check .nsc-note {
	background: var(--nsc-bg);
	border-left: 4px solid var(--nsc-accent);
	border-radius: 0 var(--nsc-radius) var(--nsc-radius) 0;
	padding: 0.75rem 0.9rem;
}

/* ---------- Buttons ---------- */
#nexpro-self-check .nsc-btn {
	appearance: none;
	background: var(--nsc-white);
	border: 1px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	color: var(--nsc-navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	min-height: 48px;
	padding: 0.75rem 1.1rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	width: 100%;
}

#nexpro-self-check .nsc-btn:hover,
#nexpro-self-check .nsc-btn:focus-visible {
	border-color: var(--nsc-navy);
	outline: none;
}

#nexpro-self-check .nsc-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

#nexpro-self-check .nsc-btn--primary {
	background: var(--nsc-navy);
	border-color: var(--nsc-navy);
	color: var(--nsc-white);
}

#nexpro-self-check .nsc-btn--primary:hover,
#nexpro-self-check .nsc-btn--primary:focus-visible {
	background: var(--nsc-navy-soft);
	border-color: var(--nsc-navy-soft);
	color: var(--nsc-white);
}

#nexpro-self-check .nsc-btn--secondary {
	background: var(--nsc-white);
	border-color: var(--nsc-navy);
	color: var(--nsc-navy);
}

#nexpro-self-check a.nsc-btn {
	text-decoration: none;
}

#nexpro-self-check .nsc-actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* ---------- Category cards ---------- */
#nexpro-self-check .nsc-category-list {
	display: grid;
	gap: 0.75rem;
	margin: 1rem 0 0;
}

#nexpro-self-check .nsc-category {
	appearance: none;
	background: var(--nsc-white);
	border: 2px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	box-shadow: var(--nsc-shadow);
	color: var(--nsc-text);
	cursor: pointer;
	display: block;
	padding: 1rem 1rem 1rem 1.1rem;
	text-align: left;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	width: 100%;
}

#nexpro-self-check .nsc-category:hover,
#nexpro-self-check .nsc-category:focus-visible {
	border-color: var(--nsc-accent);
	outline: none;
}

#nexpro-self-check .nsc-category.is-selected {
	background: #eef8fc;
	border-color: var(--nsc-navy);
}

#nexpro-self-check .nsc-category__name {
	color: var(--nsc-navy);
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

#nexpro-self-check .nsc-category__desc {
	color: var(--nsc-muted);
	display: block;
	font-size: 0.88rem;
	line-height: 1.5;
}

/* ---------- Questions ---------- */
#nexpro-self-check .nsc-progress-wrap {
	margin-bottom: 1rem;
}

#nexpro-self-check .nsc-progress-label {
	color: var(--nsc-muted);
	font-size: 0.88rem;
	margin: 0 0 0.4rem;
}

#nexpro-self-check .nsc-progress-bar {
	background: var(--nsc-bg);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	width: 100%;
}

#nexpro-self-check .nsc-progress-bar__fill {
	background: var(--nsc-accent);
	border-radius: 999px;
	height: 100%;
	transition: width 0.2s ease;
	width: 0%;
}

#nexpro-self-check .nsc-current-category {
	color: var(--nsc-navy);
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

#nexpro-self-check .nsc-question-card {
	background: var(--nsc-bg);
	border: 1px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	padding: 1rem;
}

#nexpro-self-check .nsc-question-text {
	color: var(--nsc-text);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 1rem;
}

#nexpro-self-check .nsc-answers {
	display: grid;
	gap: 0.65rem;
}

#nexpro-self-check .nsc-answer {
	appearance: none;
	background: var(--nsc-white);
	border: 2px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	color: var(--nsc-navy);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	min-height: 48px;
	padding: 0.7rem 1rem;
	text-align: center;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	width: 100%;
}

#nexpro-self-check .nsc-answer:hover,
#nexpro-self-check .nsc-answer:focus-visible {
	border-color: var(--nsc-accent);
	outline: none;
}

#nexpro-self-check .nsc-answer.is-selected {
	background: var(--nsc-navy);
	border-color: var(--nsc-navy);
	color: var(--nsc-white);
}

/* ---------- Result ---------- */
#nexpro-self-check .nsc-result__badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 0.75rem;
	padding: 0.35rem 0.85rem;
}

#nexpro-self-check .nsc-result__badge.is-watch {
	background: #e8eef3;
	color: var(--nsc-navy);
}

#nexpro-self-check .nsc-result__badge.is-check {
	background: #fff4df;
	color: #8a5a00;
}

#nexpro-self-check .nsc-result__badge.is-consult {
	background: #fdeceb;
	color: #8a1f1a;
}

#nexpro-self-check .nsc-result__summary {
	font-size: 1.02rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

#nexpro-self-check .nsc-result__body {
	margin: 0 0 1rem;
}

#nexpro-self-check .nsc-result__scores {
	background: var(--nsc-bg);
	border: 1px solid var(--nsc-border);
	border-radius: var(--nsc-radius);
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
}

#nexpro-self-check .nsc-result__scores-title {
	color: var(--nsc-navy);
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

#nexpro-self-check .nsc-result__scores-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#nexpro-self-check .nsc-result__scores-list li {
	border-top: 1px solid var(--nsc-border);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
}

#nexpro-self-check .nsc-result__scores-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

#nexpro-self-check .nsc-result__cta-wrap {
	display: grid;
	gap: 0.75rem;
}

/* ---------- Tablet / PC ---------- */
@media (min-width: 768px) {
	#nexpro-self-check .nsc-section {
		padding: 1.75rem 1.75rem 2rem;
	}

	#nexpro-self-check .nsc-title {
		font-size: 1.6rem;
	}

	#nexpro-self-check .nsc-actions {
		grid-template-columns: 1fr 1fr;
	}

	#nexpro-self-check .nsc-actions--single {
		grid-template-columns: 1fr;
	}

	#nexpro-self-check .nsc-category-list {
		grid-template-columns: repeat(3, 1fr);
	}

	#nexpro-self-check .nsc-answers {
		grid-template-columns: repeat(3, 1fr);
	}

	#nexpro-self-check .nsc-result__cta-wrap {
		grid-template-columns: 1fr 1fr;
	}
}

/* ========================================
   結果画面だけ見やすく調整
   元のBOXデザインはそのまま維持
======================================== */

/* 点数欄は非表示 */
#nexpro-self-check .nsc-result__scores {
	display: none !important;
}

/* 結果バッジを少し大きく */
#nexpro-self-check .nsc-result__badge {
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1rem;
	margin-bottom: 1rem;
}

/* 青：経過観察 */
#nexpro-self-check .nsc-result__badge.is-watch {
	background: #e7f2fc;
	color: #15518a;
	border: 1px solid #b7d8f5;
}

/* 黄：点検推奨 */
#nexpro-self-check .nsc-result__badge.is-check {
	background: #fff4d8;
	color: #9a6100;
	border: 1px solid #f1d38c;
}

/* 赤：早めの相談 */
#nexpro-self-check .nsc-result__badge.is-consult {
	background: #fdebea;
	color: #b42318;
	border: 1px solid #f3b5b0;
}

/* 結果の一番重要な文章 */
#nexpro-self-check .nsc-result__summary {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.7;
	margin-bottom: 0.8rem;
}

/* 説明文 */
#nexpro-self-check .nsc-result__body {
	font-size: 1rem;
	line-height: 1.9;
	margin-bottom: 1.25rem;
}

/* ========================================
   結果画面の視認性アップ
======================================== */

#nexpro-self-check .nsc-result__badge {
	font-size: 1rem;
	font-weight: 700;
	padding: 0.55rem 1rem;
	margin-bottom: 1rem;
}

/* 結果の重要文 */
#nexpro-self-check .nsc-result__summary {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.7;
	margin-bottom: 0.9rem;
}

/* 結果タイトル */
#nexpro-self-check .nsc-result .nsc-title {
	font-size: 1.7rem;
	font-weight: 700;
}

/* 青：経過観察 */
#nexpro-self-check .nsc-result:has(.is-watch) .nsc-title {
	border-left-color: #3c91d4;
}

/* 黄：点検推奨 */
#nexpro-self-check .nsc-result:has(.is-check) .nsc-title {
	border-left-color: #e5a422;
}

/* 赤：要注意 */
#nexpro-self-check .nsc-result:has(.is-consult) .nsc-title {
	border-left-color: #d92d20;
}

@media (max-width: 767px) {
	#nexpro-self-check .nsc-result .nsc-title {
		font-size: 1.45rem;
	}

	#nexpro-self-check .nsc-result__summary {
		font-size: 1.05rem;
	}
}

/* ========================================
   スマホ：戻る 3 / 次へ・設問へ進む 7
======================================== */

@media (max-width: 767px) {

	#nexpro-self-check .nsc-actions {
		display: grid;
		grid-template-columns: 3fr 7fr;
		gap: 0.75rem;
		align-items: stretch;
	}

	#nexpro-self-check .nsc-actions .nsc-btn {
		width: 100%;
		min-width: 0;
	}

	/* 最初の「セルフチェックを始める」は1列のまま */
	#nexpro-self-check .nsc-actions--single {
		grid-template-columns: 1fr;
	}
}