.khc-custom-page > .site,
body.khc-custom-page .site.grid-container,
body.khc-custom-page #page,
body.khc-custom-page #primary,
body.khc-custom-page #main {
	max-width: none;
	margin: 0;
	padding: 0;
}

body.khc-custom-page .site-header,
body.khc-custom-page .site-footer,
body.khc-custom-page .site-info {
	display: none;
}

.khc-detail {
	background: #ffffff;
	color: #191919;
}

.khc-detail--disaster .khc-detail__hero,
.khc-detail--disaster .khc-detail__back {
	background: #b39428;
}

.khc-detail--disaster .khc-detail__body {
	background: #f8f2dc;
}

.khc-detail--disaster .khc-detail__lead,
.khc-detail--disaster .khc-detail__resource {
	background: #fffaf0;
}

.khc-detail--disaster .khc-detail__lead,
.khc-detail--disaster .khc-detail__section h3 {
	border-left-color: #b39428;
}

.khc-detail--disaster .khc-detail__link-list a {
	background: #fffaf0;
	border-left-color: #b39428;
	color: #6f5718;
}

.khc-detail--disaster .khc-detail__link-list a::after {
	color: #b39428;
}

.khc-detail--disaster .khc-detail__section[id] {
	scroll-margin-top: calc(100px + var(--wp-admin--admin-bar--height, 0px));
}

.khc-detail__breadcrumb {
	border-top: 1px solid #dddddd;
	border-bottom: 1px solid #dddddd;
	font-size: 14px;
}

.khc-detail__breadcrumb .khc-container {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	overflow-x: auto;
	white-space: nowrap;
}

.khc-detail__breadcrumb a {
	color: #f47d2f;
	text-decoration: none;
}

.khc-detail__hero {
	background: #f47d2f;
	color: #ffffff;
	padding: 48px 0;
}

.khc-detail__hero .khc-container {
	display: flex;
	align-items: center;
	gap: 24px;
}

.khc-detail__hero p {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 500;
	flex: 0 0 auto;
}

.khc-detail__hero h1 {
	margin: 0;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.45;
}

.khc-detail__body {
	background: #fff1e8;
	padding: 72px 0 88px;
}

.khc-detail__content {
	max-width: 1120px;
	margin-inline: auto;
	padding: 48px;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.khc-detail__content h2 {
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid #777777;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.5;
}

.khc-detail__content p,
.khc-detail__content li {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
}

.khc-detail--housing-information .khc-detail__simple-copy,
.khc-detail--housing-information .khc-detail__simple-links {
	max-width: 920px;
	margin-right: auto;
	margin-left: auto;
}

.khc-detail__back {
	display: inline-flex;
	margin-top: 32px;
	padding: 14px 24px;
	background: #f47d2f;
	border-radius: 999px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.khc-detail a.khc-detail__back,
.khc-detail a.khc-detail__back:visited,
.khc-detail a.khc-detail__back:hover,
.khc-detail a.khc-detail__back:focus {
	color: #ffffff !important;
}

@media (max-width: 780px) {
	.khc-detail__hero {
		padding: 30px 0;
	}

	.khc-detail__hero .khc-container {
		gap: 14px;
	}

	.khc-detail__hero p {
		width: 48px;
		height: 48px;
		font-size: 14px;
	}

	.khc-detail__hero h1 {
		font-size: 24px;
	}

	.khc-detail__body {
		padding: 40px 0 56px;
	}

	.khc-detail__content {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.khc-detail__content h2 {
		font-size: 24px;
	}

	.khc-detail__content p,
	.khc-detail__content li {
		font-size: 18px;
	}
}

.khc-detail__lead {
	margin-bottom: 48px;
	padding: 30px 34px;
	background: #fff6f0;
	border-left: 6px solid #f47d2f;
}

.khc-detail__lead p:first-child {
	margin-top: 0;
}

.khc-detail__lead p:last-child {
	margin-bottom: 0;
}

.khc-detail__section + .khc-detail__section {
	margin-top: 56px;
}

.khc-project-diagram { margin: 32px 0 20px; }
.khc-project-diagram img { display: block; width: 100%; max-width: 1024px; height: auto; margin: auto; }
.khc-project-diagram figcaption { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #525252; }
.khc-project-item { margin-top: 36px; }
.khc-project-item h4, #kasei-project h4 { margin: 0 0 20px; font-size: 21px; line-height: 1.7; }
.khc-project-item h4, #kasei-project h4 { font-weight: 700; }
.khc-project-item__type { display: inline; margin-left: 0.4em; font-size: 0.9em; }
.khc-project-item__count { display: inline-block; margin: 0 0 0 0.6em; padding: 2px 12px; border-radius: 4px; background: #f1f4f8; font-size: 0.9em; white-space: nowrap; vertical-align: baseline; }
.khc-detail--disaster .khc-detail__simple-copy + .khc-detail__section { margin-top: 40px; }

.khc-detail__section h3 {
	margin: 0 0 24px;
	padding-left: 18px;
	border-left: 5px solid #f47d2f;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.5;
}

.khc-detail__resource-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.khc-detail__resource {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 140px;
	padding: 22px 24px;
	background: #fff6f0;
	border: 1px solid #f2d2bd;
	color: #191919;
	text-decoration: none;
}

a.khc-detail__resource:hover {
	border-color: #f47d2f;
	transform: translateY(-2px);
}

.khc-detail__resource > span,
.khc-detail__resource small {
	font-size: 14px;
	font-weight: 400;
}

.khc-detail__resource > span {
	color: #d65f13;
}

.khc-detail__resource strong {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
}

.khc-detail__resource--pending {
	background: #f7f7f7;
	border-color: #dddddd;
}

.khc-detail__link-list {
	display: grid;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.khc-detail__link-list li {
	margin: 0;
}

.khc-detail__link-list a,
.khc-detail__feature-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 56px 18px 20px;
	background: #fff6f0;
	border: 1px solid #f2d2bd;
	color: #191919;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	text-decoration: none;
}

.khc-detail__link-list a {
	justify-content: space-between;
	padding: 16px 54px 16px 18px;
	border: 0;
	border-left: 4px solid #f47d2f;
	color: #8b3e0e;
	font-weight: 600;
	line-height: 1.5;
}

.khc-detail__link-list a::after {
	content: "→";
	position: absolute;
	right: 18px;
	color: #f47d2f;
	font-size: 22px;
	font-weight: 500;
}

.khc-detail__feature-link {
	display: grid;
	grid-template-columns: auto 1fr auto;
	margin-top: 24px;
}

.khc-detail__feature-link > span:first-child {
	color: #d65f13;
	font-size: 14px;
}

.khc-detail__feature-link strong {
	font-size: 19px;
	font-weight: 600;
}

.khc-detail__feature-link > span:last-child {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: #f47d2f;
	border-radius: 50%;
	color: #ffffff;
}

.khc-detail__notice {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 18px 22px;
	background: #f7f7f7;
	border-left: 4px solid #aaaaaa;
}

.khc-detail__notice strong,
.khc-detail__notice span {
	font-size: 17px;
}

.khc-detail__simple-copy {
	max-width: 1040px;
}

.khc-detail__simple-copy p {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
}

.khc-detail__simple-copy p:last-child {
	margin-bottom: 0;
}

.khc-detail__inline-link {
	color: #214484;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.khc-detail__inline-link:hover {
	color: #f47d2f;
}

.khc-detail__simple-links {
	display: grid;
	gap: 10px;
	max-width: 1040px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.khc-detail__simple-links li {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
}

.khc-detail__simple-links a {
	position: relative;
	display: block;
	padding: 16px 54px 16px 18px;
	background: #fff6f0;
	border-left: 4px solid #f47d2f;
	color: #8b3e0e;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.khc-detail__simple-links a::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 18px;
	color: #f47d2f;
	font-size: 22px;
	transform: translateY(-50%);
}

.khc-detail__simple-links a:hover {
	color: #f47d2f;
}

.khc-detail__simple-links .khc-detail__link-label {
	padding: 24px 4px 8px;
	border-bottom: 0;
	font-size: 16px;
	font-weight: 600;
}

@media (max-width: 780px) {
	.khc-detail__lead {
		margin-bottom: 36px;
		padding: 22px 20px;
	}

	.khc-detail__section + .khc-detail__section {
		margin-top: 42px;
	}

	.khc-detail__section h3 {
		font-size: 22px;
	}

	.khc-detail__resource-list {
		grid-template-columns: 1fr;
	}

	.khc-detail__resource {
		min-height: 0;
	}

	.khc-detail__link-list a,
	.khc-detail__feature-link {
		font-size: 17px;
	}

	.khc-detail__feature-link {
		grid-template-columns: 1fr auto;
	}

	.khc-detail__feature-link > span:first-child {
		grid-column: 1 / -1;
	}

	.khc-detail__notice {
		align-items: flex-start;
		flex-direction: column;
	}

	.khc-detail__simple-copy p {
		font-size: 18px;
		line-height: 1.6;
	}

	.khc-detail__simple-links {
		margin-top: 36px;
	}

	.khc-detail__simple-links a {
		padding-top: 16px;
		padding-bottom: 16px;
		font-size: 17px;
	}
}
