/* トップページ（改4のレイアウト） page-top.php から読む */

/* ---------- 見出し画像 ---------- */
#mv .kai4_mv_photo {
	position: relative;
	margin: 0;
}
#mv .kai4_mv_photo > img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 2;
	object-fit: cover;
	border-radius: 1rem;
}
#mv .kai4_mv_spec {
	position: absolute;
	top: 17%;
	right: 9%;
	width: 31.5%;
	z-index: 1;
}
#mv .kai4_mv_spec ul {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}
#mv .kai4_mv_spec li {
	width: 31.5%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 3px solid #fff;
	background: rgba(150, 146, 144, .62);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: bold;
	line-height: 1.25;
	font-size: clamp(11px, 1.55vw, 30px);
}
#mv .kai4_mv_spec li small {
	font-size: 1em;
}
#mv .kai4_mv_spec .warranty {
	display: block;
	width: 94%;
	margin: 6% 0 0 3%;
}
#mv .kai4_mv_spec .warranty img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

/* ---------- こだわり（灰色の背景） ---------- */
#top_top_concept.kai4_gray {
	background: #ececec;
	padding: 4rem 1rem 5rem;
	margin-top: 2rem;
}
#top_top_concept .concept_catch {
	display: inline-flex;
	align-items: center;
	text-align: left;
	font-family: inherit !important;
	font-weight: bold;
	font-size: 1.15rem;
	line-height: 1.7;
	margin: 0 0 2.5rem;
}
#top_top_concept .concept_catch::before,
#top_top_concept .concept_catch::after {
	font-size: 3.4rem;
	font-weight: 300;
	line-height: 1;
}
#top_top_concept .concept_catch::before {
	content: "{";
	margin-right: 1.2rem;
}
#top_top_concept .concept_catch::after {
	content: "}";
	margin-left: 1.2rem;
}
#top_top_concept .concept_lead {
	text-align: left;
	line-height: 1.9;
	margin-bottom: 4rem;
}
#top_top_concept .concept_list {
	padding: 0;
	margin: 0;
	list-style: none;
}
#top_top_concept .concept_list::after {
	content: "";
	display: block;
	clear: both;
}
#top_top_concept .concept_list li {
	margin-bottom: 4.5rem;
}
#top_top_concept .concept_list li:last-child {
	margin-bottom: 0;
}
#top_top_concept .concept_list h3 {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1.8rem;
}
#top_top_concept .concept_list h3 span {
	background: none;
	color: inherit;
	border-radius: 0;
	padding: 0 .6em 0 0;
	margin-right: .6em;
	border-right: 1px solid #333;
}
#top_top_concept .concept_list .half::after {
	content: "";
	display: block;
	clear: both;
}
#top_top_concept .concept_list .text {
	width: 46%;
	line-height: 1.9;
}
#top_top_concept .concept_list .img {
	width: 46%;
}
#top_top_concept .concept_list .img img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* ---------- 社長の節 ---------- */
#top_message.kai4_beige {
	background: #f5eae4;
	padding: 5rem 1rem;
}
#top_message .top_message_body {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}
#top_message .top_message_body .text {
	width: 50%;
	line-height: 1.9;
}
#top_message .top_message_body .text p {
	margin-bottom: 1.4rem;
}
#top_message .top_message_body .photo {
	width: 30%;
	margin: -1rem 6% 0 0;
}
#top_message .top_message_body .photo img {
	display: block;
	width: 100%;
	height: auto;
}
#top_message .more_link a {
	color: inherit;
}
#top_message #top_movie {
	margin-top: 3rem;
}
#top_message #top_movie .wide {
	padding: 0;
}

/* ---------- イベント（3 列・5 件） ---------- */
#top_concept .kai4_event_list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 4.5%;
	row-gap: 3rem;
	margin: 0;
	padding: 0 4.5%;
	list-style: none;
}
#top_concept .kai4_event_list a {
	display: block;
	color: inherit;
	text-decoration: none;
}
#top_concept .kai4_event_list figure {
	position: relative;
	margin: 0 0 .6rem;
	border-radius: 0;
	overflow: hidden;
}
#top_concept .kai4_event_list figure img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
#top_concept .kai4_event_list figure .end {
	position: absolute;
	top: .6rem;
	left: 0;
	width: 100%;
	padding: .3rem;
	background: #FEB40A;
	color: #fff;
	text-align: center;
	font-weight: bold;
	font-size: .8rem;
}
#top_concept .kai4_event_list .tags {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin-bottom: .5rem;
}
#top_concept .kai4_event_list .tags span {
	display: inline-block;
	font-size: .75rem;
	line-height: 1.5;
	padding: 0 .5rem;
	border: 1px solid #1a1a1a;
}
#top_concept .kai4_event_list .tags .cat {
	background: #1a1a1a;
	color: #fff;
}
#top_concept .kai4_event_list .tags .status {
	background: #fff;
	color: #555;
	border-color: #888;
}
#top_concept .kai4_event_list .date {
	font-size: .85rem;
	color: #555;
	margin-bottom: .6rem;
}
#top_concept .kai4_event_list h3 {
	font-size: 1rem;
	font-weight: bold;
	line-height: 1.5;
	padding: 0;
	margin: 0;
}

/* ---------- バナーの列 ---------- */
#kai4_banners {
	padding: 3rem 1rem 4rem;
}
#kai4_banners ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	row-gap: 1.5rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
#kai4_banners img {
	display: block;
	max-width: 100%;
	width: auto;
	height: 84px;
}
#kai4_banners .ecoair img {
	height: 48px;
}
#kai4_banners .warranty img,
#kai4_banners .studio img {
	height: 96px;
}

/* ---------- 1024px 前後 ---------- */
@media only screen and (max-width: 1100px) {
	#top_concept .kai4_event_list {
		padding: 0 1rem;
	}
}

/* ---------- スマートフォン ---------- */
@media only screen and (max-width: 768px) {
	#mv .kai4_mv_photo > img {
		border-radius: 0;
	}
	#mv .kai4_mv_spec {
		position: static;
		width: auto;
		padding: 1rem 15px 0;
	}
	#mv .kai4_mv_catch_sp {
		font-weight: bold;
		font-size: 1.1rem;
		text-align: center;
		margin: 0 0 .8rem;
	}
	#mv .kai4_mv_spec ul {
		justify-content: center;
		gap: 4%;
	}
	#mv .kai4_mv_spec li {
		width: 27%;
		font-size: 13px;
		background: #9a9592;
	}
	#mv .kai4_mv_spec .warranty {
		width: 80%;
		margin: 1rem auto 0;
	}
	#top_top_concept.kai4_gray {
		padding: 3rem 0;
		margin-top: 2rem;
	}
	#top_top_concept .concept_catch {
		font-size: 1rem;
	}
	#top_top_concept .concept_catch::before,
	#top_top_concept .concept_catch::after {
		font-size: 2.6rem;
	}
	#top_top_concept .concept_catch::before {
		margin-right: .8rem;
	}
	#top_top_concept .concept_catch::after {
		margin-left: .8rem;
	}
	#top_top_concept .concept_lead {
		margin-bottom: 2.5rem;
	}
	#top_top_concept .concept_list li {
		margin-bottom: 3rem;
	}
	#top_top_concept .concept_list .text,
	#top_top_concept .concept_list .img {
		width: 100% !important;
		float: none !important;
	}
	#top_top_concept .concept_list .img {
		margin-top: 1rem;
	}
	#top_message.kai4_beige {
		padding: 3rem 0;
	}
	#top_message .top_message_body {
		flex-direction: column-reverse;
		gap: 1.5rem;
	}
	#top_message .top_message_body .text {
		width: 100%;
	}
	#top_message .top_message_body .photo {
		width: 60%;
		margin: 0 auto;
	}
	#top_message #top_movie .wide {
		padding: 0;
		margin: 0;
	}
	#top_concept .kai4_event_list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1rem;
		row-gap: 2rem;
	}
	#top_concept .kai4_event_list h3 {
		font-size: .9rem;
	}
	#kai4_banners {
		padding: 2rem 15px 6rem;
	}
	#kai4_banners ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1rem;
		column-gap: 1rem;
	}
	#kai4_banners img,
	#kai4_banners .warranty img,
	#kai4_banners .studio img {
		height: auto;
		max-height: 60px;
	}
	#kai4_banners .ecoair img {
		max-height: 36px;
	}
}

/* ラインナップの SW のロゴ（枠付き） */
#top_lineup .detail.kai4_logo img {
	display: block;
	width: 100%;
	background: #fff;
	border: 1px solid #555;
}
@media only screen and (max-width: 768px) {
	#top_lineup .detail.kai4_logo img {
		float: none;
		margin-bottom: 1rem;
	}
}

/* 改5: 見出し画像の性能の丸と 60年無結露保証はスマホでは出さない */
@media only screen and (max-width: 768px) {
	#mv .kai4_mv_spec ul,
	#mv .kai4_mv_spec .warranty {
		display: none;
	}
}

/* 改5: イベント情報（見学クラウドに 1 件でもあれば見学クラウドだけ・0 件なら WordPress のイベント記事） */
#top_concept #top_kengaku_cloud {
	display: none;
}
#top_concept.has_kengaku #top_kengaku_cloud {
	display: block;
	margin-bottom: 2rem;
}
#top_concept.has_kengaku .kai4_event_list {
	display: none;
}

/* 改5: SW のロゴの下の文 */
#top_lineup .detail.kai4_logo p {
	margin-top: .5rem;
}
