@charset "UTF-8";

/* ▼ スライダー
----------------------------------------*/
#mainVisual {
	width: 100%;
	margin: 0 auto;
	position: relative;
}

#mainVisual .catch {
	position: absolute;
	top: 54%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.slider {
	display: none;
	pointer-events: none;
}

.slick-dotted.slick-slider {
	margin-bottom: 0;
}

.slider.slick-initialized {
	display: block;
}

.slick-dots,
.slick-dots li button:before,
.slick-next:before,
.slick-prev:before {
	display: none !important;
}

.slider {
	width: 50%;
}

.slider-wrapper {
	position: relative;
	width: 800px;
	height: 400px;
	overflow: hidden;
}

.slider-bg img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slider-front {
	position: relative;
	z-index: 2;
}

.slider-front img {
	width: 100%;
	display: block;
}

#mainVisual .catch div {
	width: 50%;
	max-width: 287px;
	margin: 0 auto 30px;
}

#mainVisual .catch p {
	background-color: #fff;
	font-size: 26px;
	padding: 2vh 2vw;
	line-height: 1;
}

/* ▼ リード文
----------------------------------------*/
#section1 {
	padding: 80px 0;
}

#section1 .lead {
	font-size: 30px;
}

#section1 .detail {
	max-width: 1080px;
	margin-bottom: 80px;
}

/* ▼ 宮本建設の二本柱
----------------------------------------*/
#section2 .container ul {
	margin-bottom: 100px;
}

#section2 .container ul li {
	width: 45%;
	height: 42vh;
	max-height: 428px;
}

#section2 .container ul li a {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(../img/top/hashira-komin.png);
	background-size: cover;
	color: #fff;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#section2 .container ul li:last-child a {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/top/hashira-genndai.png);
}

#section2 .container ul li a h3 {
	position: relative;
	font-size: 26px;
	padding-bottom: 30px;
	font-weight: normal;
	letter-spacing: 0.1em;
}

#section2 .container ul li a h3::before {
	content: "";
	position: absolute;
	width: 92px;
	height: 2px;
	background-color: #fff;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
}

#section2 .container ul li a p {
	width: 80%;
}

/* ▼ 施工実績
----------------------------------------*/
.scroll-infinity {
	margin-bottom: 80px;
}

@keyframes infinity-scroll-left {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-100%);
	}
}

.scroll-infinity__wrap {
	display: flex;
	overflow: hidden;
}

.scroll-infinity__list {
	display: flex;
	list-style: none;
	padding: 0
}

.scroll-infinity__list--left {
	animation: infinity-scroll-left 60s infinite linear 0.5s both;
}

.scroll-infinity__item {
	width: calc(100vw / 3);
	margin: 0 3vw;
}

.scroll-infinity__item>img {
	width: 100%;
}

.scroll-infinity__item span {
	display: block;
	padding: 30px 20px;
}

/* ▼▼▼ 480px〜768px
======================================================*/
@media screen and (max-width: 768px) {


	/* ▼ スライダー
	----------------------------------------*/
	#mainVisual {
		margin: 50px auto 20px;
		position: relative;
	}

	.slider {
		width: 100%;
		line-height: 0;
	}

	#mainVisual .catch {
		top: 46%;
	}

	#mainVisual .catch div {
		margin: 0 auto 10px;
	}

	#mainVisual .catch p {
		font-size: 20px;
		text-align: center;
		line-height: 1.4;
	}

	#section1 {
		padding: 20px 20px 70px;
	}

	#section1 .lead {
		font-size: 22px;
	}

	#section1 .detail {
		margin-bottom: 70px;
	}

	#section2 .container ul {
		margin-bottom: 100px;
	}

	#section2 .container ul li {
		width: 100%;
		height: 40vh;
		margin-bottom: 10px;
	}

	#section2 .container ul li a h3 {
		font-size: 20px;
		padding-bottom: 30px;
	}

	#section2 .container ul li a h3::before {
		width: 52px;
		height: 1px;
	}

	.scroll-infinity {
		margin-bottom: 80px;
	}

	.scroll-infinity__item {
		width: calc(100vw / 2);
		margin: 0 2vw;
	}
}