@charset "UTF-8";

.common-title {
	display: flex;
	align-items: baseline;
	gap: 2.6rem;
	margin-bottom: 5.7rem;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	@media screen and (max-width: 767px) {
		gap: 1rem;
		margin-bottom: 4rem;
	}
}
.common-title.animate {
	opacity: 1;
	transform: translateY(0);
}
.common-title {
	.jp {
		font-style: normal;
		font-weight: 700;
		font-size: 4.2rem;
		line-height: 1;
		letter-spacing: 0.1em;
		color: #000000;
		@media screen and (max-width: 767px) {
			font-size: 2.2rem;
		}
	}
	.en {
		font-style: normal;
		font-weight: 700;
		font-size: 2.2rem;
		line-height: 1;
		letter-spacing: 0.08em;
		color: #1b8b4f;
		@media screen and (max-width: 767px) {
			font-size: 1.6rem;
		}
	}
}

#main-banner {
	padding-top: 6.4rem;
	width: 100%;
	position: relative;
	@media screen and (max-width: 767px) {
		padding-top: 0;
		display: flex;
		flex-direction: column;
	}
	.banner-text {
		padding-top: 2.7rem;
		@media screen and (max-width: 767px) {
			padding-top: 1.6rem;
		}
		.line1 {
			margin-bottom: 2.6rem;
			font-family: var(--zenkaku);
			font-style: normal;
			font-weight: 700;
			font-size: 3rem;
			line-height: 4.3rem;
			letter-spacing: 0.1em;
			color: #1b8b4f;
			@media screen and (max-width: 767px) {
				font-size: 1.8rem;
				line-height: 1;
				margin-bottom: 1rem;
			}
		}
		.line2 {
			font-family: var(--zenkaku);
			font-style: normal;
			font-weight: 900;
			font-size: 10.2rem;
			line-height: 14.8rem;
			letter-spacing: 0.1em;
			color: #000000;
			margin-bottom: 4.6rem;
			@media screen and (max-width: 767px) {
				margin-bottom: 2rem;
				font-size: 4rem;
				line-height: 5rem;
			}
		}
		.flex-boxes {
			display: flex;
			gap: 2.5rem;
			margin-bottom: 9rem;
			@media screen and (max-width: 767px) {
				/* gap: 1rem;
				margin-bottom: 6rem;
				justify-content: space-between; */
				display: none;
			}
			.box {
				width: 19.7rem;
				height: 19.7rem;
				background: #1b8b4f;
				display: flex;
				justify-content: center;
				align-items: center;
				font-family: var(--zenkaku);
				font-style: normal;
				font-weight: 700;
				font-size: 2.4rem;
				line-height: 3.5rem;
				text-align: center;
				letter-spacing: 0.1em;
				color: #ffffff;
				@media screen and (max-width: 767px) {
					width: 11rem;
					height: 11rem;
					font-size: 1.4rem;
					line-height: 1;
				}
			}
		}
	}
	.banner-img {
		position: absolute;
		top: 6.4rem;
		right: 0;
		z-index: 0;
		width: 124.8rem;
		height: auto;
		overflow: hidden;
		@media screen and (max-width: 767px) {
			position: relative;
			top: unset;
			right: unset;
			width: 100%;
		}
		& img {
			width: 100%;
			height: auto;
			-webkit-animation: smooth-panning-home 5s ease-out both;
			animation: smooth-panning-home 5s ease-out both;
		}
	}
}

/* ------------------------------------------- */
/* home banner animation */
/* ------------------------------------------- */
@keyframes smooth-panning-home {
	0% {
		-webkit-transform: scale(1) translateY(0);
		transform: scale(1) translateY(0);
		-webkit-transform-origin: 50% 84%;
		transform-origin: 50% 84%;
	}
	100% {
		-webkit-transform: scale(1.167) translateY(10px);
		transform: scale(1.167) translateY(10px);
		-webkit-transform-origin: bottom;
		transform-origin: bottom;
	}
}

#section2 {
	padding-top: 14.1rem;
	padding-bottom: 10.2rem;
	position: relative;
	@media screen and (max-width: 767px) {
		padding-top: 2.6rem;
		padding-bottom: 6rem;
	}
	&:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 111.4rem;
		height: 48rem;
		background: #f1f1f1;
		z-index: -1;
		@media screen and (min-width: 1921px) {
			width: 50%;
		}
		@media screen and (max-width: 767px) {
			width: 32.4rem;
			height: 38.2rem;
			top: -8.7rem;
		}
	}
	.flex-contents {
		display: flex;
		gap: 5.7rem;
		@media screen and (max-width: 767px) {
			flex-direction: column;
			gap: 3rem;
		}
		.gray-box-text {
			width: 70rem;
			font-style: normal;
			font-weight: 500;
			font-size: 2rem;
			line-height: 4.3rem;
			letter-spacing: 0.1em;
			color: #000000;
			@media screen and (max-width: 767px) {
				width: 100%;
				font-size: 1.4rem;
				line-height: 3rem;
			}
		}
		.strengths {
			padding-top: 2.2rem;
			@media screen and (max-width: 767px) {
				padding-top: 0;
			}
			.flex-row {
				display: flex;
				align-items: center;
				gap: 3rem;
				margin-bottom: 4rem;
				opacity: 0;
				transform: translateY(20px);
				transition: opacity 0.8s ease-out, transform 0.8s ease-out;
				@media screen and (max-width: 767px) {
					gap: 1rem;
					margin-bottom: 2rem;
				}
			}
			.flex-row.animate {
				opacity: 1;
				transform: translateY(0);
			}
			.flex-row:nth-child(1).animate {
				transition-delay: 0s;
			}
			.flex-row:nth-child(2) {
				margin-left: 2rem;
			}
			.flex-row:nth-child(2).animate {
				transition-delay: 0.2s;
			}
			.flex-row:nth-child(3) {
				margin-left: 4rem;
				margin-bottom: 0;
			}
			.flex-row:nth-child(3).animate {
				transition-delay: 0.4s;
			}
			.flex-row {
				.box {
					width: 9.1rem;
					height: 9.1rem;
					border: 0.3rem #000 solid;
					display: flex;
					justify-content: center;
					align-items: center;
					flex-direction: column;
					@media screen and (max-width: 767px) {
						width: 7rem;
						height: 7rem;
					}
					.line1 {
						font-style: normal;
						font-weight: 700;
						font-size: 1.6rem;
						line-height: 162%;
						display: flex;
						align-items: center;
						letter-spacing: 0.1em;
						color: #000000;
						@media screen and (max-width: 767px) {
							font-size: 1.4rem;
							line-height: 1.6;
						}
					}
					.num {
						font-family: var(--robo);
						font-style: normal;
						font-weight: 700;
						font-size: 2.8rem;
						line-height: 1;
						display: flex;
						align-items: center;
						text-align: center;
						color: #000000;
						@media screen and (max-width: 767px) {
							font-size: 1.8rem;
						}
					}
				}
				.description {
					font-style: normal;
					font-weight: 700;
					font-size: 2.6rem;
					line-height: 1;
					display: flex;
					align-items: center;
					letter-spacing: 0.1em;
					color: #000000;
					@media screen and (max-width: 767px) {
						font-size: 1.5rem;
						line-height: 1.6;
						flex: 1;
					}
				}
			}
		}
	}
}

#business {
	padding-bottom: 11rem;
	width: 100%;
	@media screen and (max-width: 767px) {
		padding-bottom: 6rem;
	}
	.flex-contents {
		width: 100%;
		display: flex;
		justify-content: space-between;
		gap: 3.3rem;
		margin-bottom: 6rem;
		@media screen and (max-width: 767px) {
			gap: 2rem;
			margin-bottom: 3rem;
			flex-direction: column;
		}
		.box {
			width: 45.8rem;
			border: #1b8b4f 0.3rem solid;
			background: #f0f0f0;
			position: relative;
			@media screen and (max-width: 767px) {
				width: 100%;
			}
			&:after {
				content: "";
				position: absolute;
				width: 3.3rem;
				height: 3.3rem;
				background: url("../img/top/box-icon.png") no-repeat center / contain;
				right: -0.2rem;
				bottom: -0.2rem;
				@media screen and (max-width: 767px) {
					width: 2.2rem;
					height: 2.2rem;
				}
			}
			.header {
				height: 6.2rem;
				width: 100%;
				background-color: #1b8b4f;
				display: flex;
				justify-content: center;
				align-items: center;
				font-style: normal;
				font-weight: 900;
				font-size: 2.6rem;
				line-height: 1;
				text-align: center;
				letter-spacing: 0.1em;
				color: #ffffff;
				@media screen and (max-width: 767px) {
					font-size: 1.6rem;
					height: 4.2rem;
				}
			}
			.main-contents {
				padding: 2rem 4.1rem 3rem;
				box-sizing: border-box;
				display: flex;
				flex-direction: column;
				align-items: center;
				width: 100%;
				@media screen and (max-width: 767px) {
					padding: 1.6rem 2rem 2rem;
				}
				.icon {
					width: 9.4rem;
					margin-bottom: 2rem;
					@media screen and (max-width: 767px) {
						width: 7rem;
						margin-bottom: 1.6rem;
					}
					& img {
						width: 100%;
						vertical-align: top;
					}
				}
				.description {
					font-style: normal;
					font-weight: 400;
					font-size: 1.6rem;
					line-height: 2.4rem;
					letter-spacing: 0.1em;
					color: #000000;
					padding-bottom: 2rem;
					border-bottom: #1b8b4f 0.2rem solid;
					margin-bottom: 2rem;
					@media screen and (max-width: 767px) {
						font-size: 1.4rem;
						line-height: 1.6;
						margin-bottom: 1.6rem;
						padding-bottom: 1.6rem;
					}
				}
				.green-text {
					font-style: normal;
					font-weight: 700;
					font-size: 1.8rem;
					line-height: 2.2rem;
					text-align: center;
					letter-spacing: 0.1em;
					color: #1b8b4f;
					@media screen and (max-width: 767px) {
						font-size: 1.4rem;
						line-height: 1.6;
					}
				}
			}
		}
	}
}

#about-kyoritsu {
	position: relative;
	background-color: #1b8b4f;
	@media screen and (max-width: 767px) {
		display: flex;
		flex-direction: column-reverse;
	}
	.flex-contents {
		min-height: 67.2rem;
		display: flex;
		@media screen and (max-width: 767px) {
			flex-direction: column-reverse;
			min-height: unset;
		}
		.green-box {
			width: 72rem;
			padding: 11rem 12rem 11rem 0;
			box-sizing: border-box;
			@media screen and (max-width: 767px) {
				width: 100%;
				padding: 2rem 0 6rem;
			}
			.title {
				margin-bottom: 3rem;
				font-style: normal;
				font-weight: 700;
				font-size: 2.8rem;
				line-height: 1;
				letter-spacing: 0.1em;
				color: #ffffff;
				@media screen and (max-width: 767px) {
					margin-bottom: 2rem;
					font-size: 1.8rem;
				}
			}
			.description {
				font-style: normal;
				font-weight: 500;
				font-size: 1.8rem;
				line-height: 3.8rem;
				letter-spacing: 0.1em;
				color: #ffffff;
				margin-bottom: 8rem;
				@media screen and (max-width: 767px) {
					font-size: 1.4rem;
					line-height: 1.6;
					margin-bottom: 3rem;
				}
			}
		}
	}
	.img-container {
		position: absolute;
		width: 44%;
		height: 100%;
		top: 0;
		right: 0;
		overflow: hidden;
		@media screen and (max-width: 767px) {
			position: relative;
			width: 100%;
			height: auto;
			right: unset;
		}
		& img {
			width: 100%;
			height: 100%;
			vertical-align: top;
			object-fit: cover;
		}
	}
}

#about {
	padding: 10rem 0;
	box-sizing: border-box;
	background-color: #ebebeb;
	@media screen and (max-width: 767px) {
		padding: 6rem 0;
	}
	.description {
		margin-bottom: 3rem;
		font-style: normal;
		font-weight: 500;
		font-size: 1.8rem;
		line-height: 2.8rem;
		letter-spacing: 0.1em;
		color: #000000;
		@media screen and (max-width: 767px) {
			margin-bottom: 2rem;
			font-size: 1.6rem;
			line-height: 1.6;
		}
	}
	.flex-contents {
		display: flex;
		justify-content: space-between;
		@media screen and (max-width: 767px) {
			flex-direction: column;
			gap: 2rem;
		}
		.box {
			width: 45.8rem;
			height: 24.4rem;
			display: flex;
			justify-content: center;
			align-items: center;
			transition: all 0.3s ease-in;
			overflow: hidden;
			position: relative;
			@media screen and (max-width: 767px) {
				width: 100%;
				height: 18rem;
			}
			&:before {
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-size: cover;
				background-position: center;
				transition: transform 0.3s ease-in;
				z-index: 0;
			}
			.box-text {
				display: flex;
				gap: 1.6rem;
				align-items: center;
				font-style: normal;
				font-weight: 900;
				font-size: 2.6rem;
				line-height: 1.2;
				text-align: center;
				letter-spacing: 0.1em;
				color: #ffffff;
				position: relative;
				z-index: 1;
				@media screen and (max-width: 767px) {
					gap: 1rem;
					font-size: 1.6rem;
				}
				& img {
					padding-top: 0.5rem;
					width: 0.9rem;
					vertical-align: top;
					@media screen and (max-width: 767px) {
						width: 0.6rem;
						padding-top: 0.2rem;
					}
				}
			}
			&:hover {
				&:before {
					transform: scale(1.1);
				}
			}
		}
		.box:nth-child(1):before {
			background: url("../img/top/about01.png") no-repeat center / cover;
		}
		.box:nth-child(2):before {
			background: url("../img/top/about02.png") no-repeat center / cover;
		}
		.box:nth-child(3):before {
			background: url("../img/top/about03.png") no-repeat center / cover;
		}
	}
}

#news {
	padding: 11rem 0 10rem;
	box-sizing: border-box;
	@media screen and (max-width: 767px) {
		padding: 6rem 0 6rem;
	}
}

#recruit-box {
	max-width: 112.9rem;
	margin: 0 auto 10rem;
	background-color: #1b8b4f;
	padding: 2.5rem 2.8rem 2.5rem 6.9rem;
	box-sizing: border-box;
	background: linear-gradient(180deg, #1c8c50 0%, #30af83 100%);
	@media screen and (max-width: 767px) {
		width: 100%;
		padding: 3rem 2rem;
	}
	.flex-contents {
		display: flex;
		align-items: center;
		justify-content: space-between;
		@media screen and (max-width: 767px) {
			flex-direction: column-reverse;
			align-items: flex-start;
		}
		.text-contents {
			.header {
				display: flex;
				align-items: baseline;
				gap: 1.6rem;
				margin-bottom: 2.8rem;
				@media screen and (max-width: 767px) {
					gap: 1rem;
					margin-bottom: 1.6rem;
				}
				.jp {
					font-style: normal;
					font-weight: 700;
					font-size: 4.4rem;
					line-height: 1;
					letter-spacing: 0.1em;
					color: #ffffff;
					@media screen and (max-width: 767px) {
						font-size: 2.2rem;
					}
				}
				.en {
					font-family: var(--obaby);
					font-style: normal;
					font-weight: 400;
					font-size: 4rem;
					line-height: 1;
					letter-spacing: 0.08em;
					color: #ffffff;
					@media screen and (max-width: 767px) {
						font-size: 1.6rem;
					}
				}
			}
			.description {
				margin-bottom: 5rem;
				font-style: normal;
				font-weight: 500;
				font-size: 2rem;
				line-height: 140%;
				letter-spacing: 0.1em;
				color: #ffffff;
				@media screen and (max-width: 767px) {
					font-size: 1.6rem;
					margin-bottom: 3rem;
				}
			}
			.recruit-btn {
				background-color: #ffffff;
				padding-left: 3.6rem;
				.text {
					font-style: normal;
					font-weight: 900;
					font-size: 1.8rem;
					line-height: 1;
					letter-spacing: 0.1em;
					color: #1b8b4f;
					@media screen and (max-width: 767px) {
						font-size: 1.6rem;
					}
				}
				& img {
					width: 1.5rem;
				}
			}
		}
		.img-contents {
			width: 52rem;
			height: 100%;
			overflow: hidden;
			@media screen and (max-width: 767px) {
				width: 100%;
				margin-bottom: 1.6rem;
			}
			& img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				vertical-align: top;
				transform: scale(1.02);
				transition: transform 0.5s ease-out;
			}
		}
	}
}

/* Fade in animation for strength boxes */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
