/* Water Heater DB - minimal styles (wh- prefix) */

.wh-contractors,
.wh-subsidy,
.wh-cta {
	margin: 1.25em 0;
}

.wh-contractor-list,
.wh-subsidy-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wh-contractor-card,
.wh-subsidy-card {
	margin: 0 0 0.85em;
	padding: 0.85em 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.wh-contractor-name,
.wh-subsidy-name,
.wh-cta-title {
	font-weight: 700;
	margin: 0 0 0.4em;
}

.wh-contractor-meta,
.wh-subsidy-meta,
.wh-subsidy-note,
.wh-subsidy-checked,
.wh-cta-lead,
.wh-empty {
	margin: 0.25em 0;
	line-height: 1.6;
}

.wh-label {
	display: inline-block;
	min-width: 5.5em;
	color: #555;
	font-size: 0.92em;
}

.wh-contractor-link,
.wh-subsidy-link {
	margin: 0.5em 0 0;
}

.wh-cta-buttons {
	margin-top: 0.75em;
}

.wh-cta-button-wrap {
	margin: 0.4em 0;
}

.wh-cta-button {
	display: inline-block;
	padding: 0.55em 1.1em;
	border: 1px solid #333;
	border-radius: 4px;
	text-decoration: none;
	color: #111;
	background: #f7f7f7;
}

.wh-cta-button:hover {
	background: #eee;
}

.wh-empty {
	color: #444;
}

.wh-emphasis-danger {
	color: #c62828;
	font-weight: 700;
}

/* 業者カード: PCは比較しやすい2列、スマホは読みやすい1列。 */
.wh-contractor-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1em;
}

.wh-contractor-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 1em;
	border-color: #d8dee5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(31, 45, 61, 0.06);
}

.wh-contractor-header {
	padding-bottom: 0.8em;
	border-bottom: 1px solid #edf0f2;
}

.wh-contractor-name {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.45;
}

.wh-contractor-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.65em;
}

.wh-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.32em 0.6em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.wh-status-badge--confirmed {
	border-color: #a8d8ba;
	background: #eaf7ef;
	color: #176b3a;
}

.wh-status-badge--confirmed span::before {
	content: "✓ ";
}

.wh-contractor-details {
	display: grid;
	gap: 0.65em;
	padding: 0.85em 0;
}

.wh-contractor-meta {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 0.65em;
	align-items: start;
	margin: 0;
}

.wh-contractor-meta .wh-label {
	min-width: 0;
	font-size: 0.82em;
	font-weight: 700;
	color: #697580;
}

.wh-contractor-meta .wh-value {
	min-width: 0;
}

.wh-manufacturer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.wh-manufacturer-tag {
	display: inline-block;
	padding: 0.25em 0.55em;
	border: 1px solid #d9e1e8;
	border-radius: 4px;
	background: #f7f9fb;
	font-size: 0.82em;
	line-height: 1.35;
}

.wh-contractor-footer {
	display: grid;
	gap: 0.7em;
	margin-top: auto;
	padding-top: 0.8em;
	border-top: 1px solid #edf0f2;
}

.wh-contractor-checked {
	margin: 0;
	color: #737d87;
	font-size: 0.78em;
}

.wh-official-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6em 0.9em;
	border: 1px solid #1676d2;
	border-radius: 6px;
	background: #1676d2;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.wh-official-button:hover,
.wh-official-button:focus-visible {
	background: #0f62b5;
	color: #fff;
	text-decoration: none;
}

@media (min-width: 681px) {
	.wh-contractor-card:nth-child(5):last-child {
		grid-column: 1 / -1;
		width: calc(50% - 0.5em);
		justify-self: center;
	}
}

/* 補助金カード */
.wh-subsidy-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1em;
}

.wh-subsidy-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 1em;
	border-color: #d9e1e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(31, 45, 61, 0.06);
}

.wh-subsidy-card:only-child {
	grid-column: 1 / -1;
}

.wh-subsidy-name {
	margin: 0;
	padding-bottom: 0.75em;
	border-bottom: 1px solid #edf0f2;
	font-size: 1.05em;
	line-height: 1.5;
}

.wh-subsidy-details {
	display: grid;
	gap: 0.8em;
	padding: 0.85em 0;
}

.wh-subsidy-amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45em 0.8em;
	margin: 0;
	padding: 0.7em 0.8em;
	border-radius: 6px;
	background: #fff8e6;
	color: #5e4a16;
}

.wh-subsidy-amount span {
	font-size: 0.8em;
	font-weight: 700;
}

.wh-subsidy-amount strong {
	font-size: 1.15em;
}

.wh-subsidy-condition {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 0.65em;
	align-items: start;
}

.wh-subsidy-condition .wh-label {
	min-width: 0;
	font-size: 0.82em;
	font-weight: 700;
	color: #697580;
}

.wh-subsidy-condition p {
	margin: 0;
}

.wh-subsidy-footer {
	display: grid;
	gap: 0.7em;
	margin-top: auto;
	padding-top: 0.8em;
	border-top: 1px solid #edf0f2;
}

.wh-subsidy-checked {
	margin: 0;
	color: #737d87;
	font-size: 0.78em;
}

.wh-subsidy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6em 0.9em;
	border: 1px solid #b87900;
	border-radius: 6px;
	background: #b87900;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.wh-subsidy-button:hover,
.wh-subsidy-button:focus-visible {
	background: #946100;
	color: #fff;
	text-decoration: none;
}

.wh-article-note {
	margin: 0.75em 0 1.5em;
	padding: 0.75em 1em;
	border-left: 3px solid #b8c2cc;
	background: #f7f8f9;
	color: #5f6872;
	font-size: 0.82em;
	line-height: 1.65;
}

.wh-article-note p,
.wh-article-note ul {
	margin-top: 0.35em;
	margin-bottom: 0.35em;
}

/* 記事内の重要期限・着工条件。通常の但し書きより目立たせる。 */
.wh-article-alert {
	margin: 1em 0 1.5em;
	padding: 0.9em 1em;
	border: 1px solid #e7c46a;
	border-left: 4px solid #c88700;
	border-radius: 6px;
	background: #fff9e8;
	color: #4f410f;
	line-height: 1.65;
}

.wh-article-alert--danger {
	border-color: #e2a3a3;
	border-left-color: #c62828;
	background: #fff3f3;
	color: #641b1b;
}

.wh-article-alert__title,
.wh-article-alert p,
.wh-article-alert ul {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

/* 申請手順をPC・スマホとも縦方向に追いやすくする。 */
.wh-article-steps {
	display: grid;
	gap: 0.75em;
	margin: 1em 0 1.5em;
	padding: 0;
	list-style: none;
	counter-reset: wh-step;
}

.wh-article-steps li {
	position: relative;
	min-height: 3.4em;
	padding: 0.8em 0.9em 0.8em 3.6em;
	border: 1px solid #d7e4f2;
	border-radius: 6px;
	background: #f8fbff;
	counter-increment: wh-step;
}

.wh-article-steps li::before {
	position: absolute;
	top: 0.75em;
	left: 0.8em;
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: #1976d2;
	color: #fff;
	font-weight: 700;
	content: counter(wh-step);
}

.wh-article-steps strong,
.wh-article-steps span {
	display: block;
}

.wh-article-steps span {
	margin-top: 0.25em;
	color: #53606c;
	font-size: 0.92em;
	line-height: 1.6;
}

/* メーカー機能を、長い本文に埋もれない比較カードとして表示する。 */
.wh-article-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85em;
	margin: 1em 0 1.5em;
}

.wh-article-card {
	min-width: 0;
	padding: 1em;
	border: 1px solid #d7e4f2;
	border-radius: 7px;
	background: #f8fbff;
}

.wh-article-card p {
	margin-top: 0.35em;
	margin-bottom: 0.35em;
	line-height: 1.65;
}

.wh-article-card__title {
	color: #146bb3;
	font-size: 1.04em;
}

@media (max-width: 680px) {
	.wh-contractor-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-contractor-card {
		padding: 0.9em;
	}

	.wh-contractor-meta {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3em;
	}

	.wh-official-button {
		width: 100%;
	}

	.wh-subsidy-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-subsidy-condition {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3em;
	}

	.wh-subsidy-button {
		width: 100%;
	}

	.wh-article-steps li {
		padding-left: 3.35em;
	}

	.wh-article-card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 自治体カテゴリー・内部リンク */
.wh-municipality-hub,
.wh-related-links,
.wh-area-directory,
.wh-municipality-hub *,
.wh-related-links *,
.wh-area-directory * {
	box-sizing: border-box;
}

.wh-municipality-hub {
	margin: 0 0 28px;
}

.wh-municipality-hub__lead {
	margin: 0 0 14px;
	font-size: 1.05rem;
	line-height: 1.85;
}

.wh-municipality-hub__lead strong {
	color: #c62828;
}

.wh-municipality-hub__notice {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-left: 4px solid #1687e8;
	border-radius: 6px;
	background: #f2f9ff;
	color: #52616e;
	font-size: .9rem;
}

.wh-municipality-hub__notice p {
	margin: 0;
}

.wh-municipality-hub__heading,
.wh-related-links__title {
	margin: 0 0 14px;
	color: #075fae;
	font-size: 1.18rem;
	font-weight: 700;
}

.wh-municipality-hub__nav ul,
.wh-related-links ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wh-municipality-hub__nav li,
.wh-related-links li {
	margin: 0;
}

.wh-municipality-hub__nav a,
.wh-related-links li a {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 11px 14px;
	border: 1px solid #cfe4f5;
	border-radius: 8px;
	background: #fff;
	color: #075fae;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.wh-municipality-hub__nav a:hover,
.wh-related-links li a:hover {
	border-color: #1687e8;
	background: #f2f9ff;
}

.wh-municipality-hub__nav a span {
	flex: 0 0 auto;
	margin-right: 9px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #1687e8;
	color: #fff;
	font-size: .72rem;
}

.wh-related-links {
	margin: 38px 0 12px;
	padding: 22px;
	border: 1px solid #cfe4f5;
	border-radius: 12px;
	background: #f7fbff;
}

.wh-related-links__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 16px;
	padding: 10px 18px;
	border-radius: 7px;
	background: #1687e8;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.wh-related-links__pending {
	display: block;
	margin-top: 14px;
	color: #657681;
	font-size: .88rem;
}

.wh-area-directory__lead {
	margin: 0 0 20px;
	line-height: 1.8;
}

.wh-area-directory-note {
	margin-top: 22px;
	padding: 14px 16px;
	border-radius: 7px;
	background: #f5f7f9;
	color: #5f6d78;
	font-size: .88rem;
}

.wh-area-directory__prefecture {
	margin: 0 0 10px;
	border: 1px solid #d6e5f0;
	border-radius: 9px;
	background: #fff;
}

.wh-area-directory__prefecture summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 12px 16px;
	cursor: pointer;
	color: #075fae;
	font-weight: 700;
}

.wh-area-directory__prefecture summary span {
	color: #657681;
	font-size: .82rem;
	font-weight: 400;
}

.wh-area-directory__prefecture ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 4px 16px 16px;
	list-style: none;
}

.wh-area-directory__prefecture li {
	margin: 0;
}

.wh-area-directory__prefecture a,
.wh-area-directory__prefecture li > span {
	display: block;
	padding: 9px 11px;
	border-radius: 6px;
	background: #f2f9ff;
	line-height: 1.45;
	text-decoration: none;
}

.wh-area-directory__prefecture li > span {
	color: #536471;
}

@media screen and (max-width: 600px) {
	.wh-municipality-hub__nav ul,
	.wh-related-links ul,
	.wh-area-directory__prefecture ul {
		grid-template-columns: 1fr;
	}

	.wh-related-links {
		padding: 17px 14px;
	}

	.wh-related-links__all {
		width: 100%;
	}
}
