/* =========================================================
   YOKUCHI — CARBON BLOCK — HERO KALKULATOR
   ========================================================= */

body.page:has(.kan-hero--full) .site-content {
	padding-top: 0 !important;
}

body.page:has(.kan-hero--full) .site-main.ast-container,
body.page:has(.kan-hero--full) .content-area,
body.page:has(.kan-hero--full) .ast-article-single,
body.page:has(.kan-hero--full) .entry-content,
.site-content:has(.kan-hero--full),
.site-main:has(.kan-hero--full),
.content-area:has(.kan-hero--full),
article:has(.kan-hero--full),
.entry-content:has(.kan-hero--full) {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.kan-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	min-height: 540px;
	margin: 0;
	background: var(--kan-hero-bg) center bottom / cover no-repeat;
}

.kan-hero--full {
	width: 100vw;
	max-width: 100vw;
	margin-top: calc((var(--yokuchi-header-height, 94px) + 56px) * -1);
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

body.page:has(.kan-hero--full) .kan-hero--full {
	width: 100%;
	max-width: none;
	margin-top: 0;
	margin-right: 0;
	margin-left: 0;
}

body.page:not(.home):not(.front-page):not(.page-template-page-yokuchi-home):not(
		.page-template-page-blog
	):not(.page-template-page-blog-php):not(.yokuchi-blog-page)
	.entry-content
	> .kan-hero.alignfull,
body.page:not(.home):not(.front-page):not(.page-template-page-yokuchi-home):not(
		.page-template-page-blog
	):not(.page-template-page-blog-php):not(.yokuchi-blog-page)
	.entry-content
	.kan-hero.alignfull {
	width: 100% !important;
	max-width: none !important;
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.kan-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;
	min-height: 537px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 40px 40px;
	text-align: center;
}
/* 
.kan-hero__inner::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 86px;
	left: 50%;
	width: min(760px, 76vw);
	height: 270px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(246, 243, 240, 0.98) 0%, rgba(246, 243, 240, 0.88) 48%, rgba(246, 243, 240, 0) 74%);
} */

.kan-hero__title {
	margin: 0 !important;
	color: #1d1d1b;
	font-size: 28px !important;
	font-weight: 500 !important;
	letter-spacing: 9px !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
}

.kan-hero__line {
	display: block;
	width: 62px;
	height: 2px;
	margin: 28px 0 28px;
	background: #ec1d23;
}

.kan-hero__description {
	margin: 0;
	color: #6f6f6f;
	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 24px;
}

.kan-hero__description p {
	margin: 0;
}

@media (max-width: 1024px) {
	.kan-hero {
		min-height: 500px;
	}

	.kan-hero__inner {
		min-height: 500px;
		padding-top: 100px;
	}
}

@media (max-width: 600px) {
	.kan-hero {
		min-height: 440px;
		background-position: 28% bottom;
	}

	.kan-hero[style*='--kan-hero-mobile-bg'] {
		background:
			linear-gradient(
				90deg,
				rgba(244, 241, 238, 0) 0%,
				rgba(244, 241, 238, 0.86) 36%,
				rgba(244, 241, 238, 0.94) 64%,
				rgba(244, 241, 238, 0) 100%
			),
			var(--kan-hero-mobile-bg) center bottom / cover no-repeat;
	}

	.kan-hero__inner {
		min-height: 440px;
		padding: 70px 20px 30px;
	}

	.kan-hero__title {
		max-width: 290px;
		font-size: 21px !important;
		letter-spacing: 5px !important;
		line-height: 1.2 !important;
	}

	.kan-hero__line {
		margin: 24px 0 24px;
	}

	.kan-hero__description {
		font-size: 16px;
		line-height: 24px;
	}
}
