/* f = FACILITYページ */
.f-intro {
	display:flex;
	max-width:1200px;
	margin:70px auto 0;
	align-items:center;
	gap:80px;
}

.f-intro-img {
	width:613px;
	flex:0 0 auto;
}

.f-intro-text {
	width:550px;
}

.f-intro-text h2 {
	margin:0 0 30px;
	font-size:28px;
	line-height:1.65;
}

.f-intro-text p,
.f-detail p,
.f-reverse p,
.f-machine p,
.f-quality-head p {
	margin:0;
	font-size:16px;
	line-height:1.95;
}

.f-equipment {
	max-width:1200px;
	margin:120px auto 0;
}

.f-details {
	display:flex;
	margin-top:70px;
	flex-direction:column;
	gap:70px;
}

.f-detail,
.f-reverse {
	display:flex;
	align-items:center;
	gap:50px;
}

.f-detail img,
.f-reverse img {
	width:550px;
	flex:0 0 auto;
}

.f-detail > div,
.f-reverse > div {
	min-width:0;
	flex:1 1 auto;
}

.f-detail h3,
.f-reverse h3,
.f-machine h3 {
	margin:0 0 18px;
	font-size:26px;
}

.f-machines {
	display:grid;
	margin-top:80px;
	grid-template-columns:repeat(3, 1fr);
	gap:45px;
}

.f-machine {
	border-radius:10px;
	background:#fff;
	padding-top:20px;
	padding-bottom:30px;
}

.f-photo {
	width:330px;
	margin:0 auto;
	height:auto;
	object-fit:cover;
	border-radius:5px;
}

.f-machine h3 {
	margin-top:20px;
	margin-bottom:12px;
	text-align:center;
	font-size:18px;
}

.f-machine p {
	width:320px;
	margin:0 auto;
	text-align:justify;
	text-justify:inter-ideograph;
}

.f-quality {
	margin-top:130px;
}

.f-quality-head {
	max-width:900px;
	margin:0 auto;
	text-align:center;
}

.f-quality-head h2 {
	margin:0 0 28px;
	color:#642;
	font-size:34px;
	letter-spacing:.08em;
}

.f-slider {
	position:relative;
	height:362px;
	margin-top:70px;
	overflow:hidden;
}

.f-stage {
	position:relative;
	width:100%;
	height:100%;
}

.f-slide {
	position:absolute;
	top:0;
	width:44%;
	height:100%;
	margin:0;
	opacity:.25;
	transition:left .65s ease, right .65s ease, width .65s ease, opacity .65s ease, transform .65s ease;
}

.f-slide img {
	width:100%;
	height:100%;
	object-fit:cover;
}

.f-slide[data-state="active"] {
	z-index:2;
	left:50%;
	width:578px;
	opacity:1;
	transform:translateX(-50%);
}

.f-slide[data-state="prev"] {
	left:-30px;
}

.f-slide[data-state="next"] {
	right:-30px;
}

.f-prev,
.f-next {
	position:absolute;
	z-index:3;
	top:50%;
	display:flex;
	width:74px;
	height:74px;
	padding:0 0 8px;
	border:0;
	align-items:center;
	justify-content:center;
	border-radius:50%;
	transform:translateY(-50%);
	background:#642;
	color:#fff;
	font-family:serif;
	font-size:50px;
	cursor:pointer;
}

.f-prev {
	left:calc(50% - 400px);
}

.f-next {
	right:calc(50% - 400px);
}

@media (max-width: 767px) {
	.f-intro {
		display:flex;
		width:100%;
		margin-top:-20vw;
		flex-direction:column;
		gap:8vw;
	}

	.f-intro-img {
		width:100vw;
	}

	.f-intro-text {
		width:100%;
		padding:0 5vw;
	}

	.f-intro-text h2 {
		margin-bottom:5vw;
		font-size:5vw;
		line-height:1.6;
	}

	.f-intro-text p,
	.f-detail p,
	.f-reverse p,
	.f-machine p,
	.f-quality-head p {
		font-size:3.6vw;
		line-height:1.95;
		text-align:justify;
		text-justify:inter-ideograph;
	}

	.f-equipment {
		width:auto;
		margin:20vw 5vw 0;
	}

	.f-details {
		margin-top:10vw;
		gap:15vw;
	}

	.f-detail,
	.f-reverse {
		flex-direction:column;
		gap:5vw;
	}

	.f-detail img,
	.f-reverse img {
		width:100%;
	}

	.f-reverse > div {
		order:2;
	}

	.f-reverse img {
		order:1;
	}

	.f-detail h3,
	.f-reverse h3,
	.f-machine h3 {
		margin-bottom:4vw;
		font-size:5vw;
	}

	.f-machines {
		display:grid;
		margin-top:10vw;
		grid-template-columns:1fr;
		gap:8vw;
		padding-top:5vw;
		padding-bottom:5vw;
	}

	.f-photo {
		width:90%;
		margin:0 auto;
		height:auto;
		border-radius:2vw;
	}

	.f-machine h3 {
		margin-top:5vw;
	}

	.f-machine p {
		width:90%;
		margin:0 auto;
	}

	.f-quality {
		margin-top:15vw;
	}

	.f-quality-head {
		padding:0 5vw;
	}

	.f-quality-head h2 {
		margin-bottom:7vw;
		font-size:6vw;
	}

	.f-slider {
		height:56vw;
		margin-top:10vw;
	}

	.f-slide,
	.f-slide[data-state="active"] {
		top:0;
		right:auto;
		left:50%;
		display:none;
		width:90vw;
		height:56vw;
		opacity:1;
		transform:translateX(-50%);
	}

	.f-slide[data-state="active"] {
		display:block;
	}

	.f-prev,
	.f-next {
		width:12vw;
		height:12vw;
		padding-bottom:2vw;
		font-size:9vw;
	}

	.f-prev {
		left:3vw;
	}

	.f-next {
		right:3vw;
	}
}
