@charset "utf-8";

.p-history-main {
	position: relative;
	margin-top: 32px;
	@media (max-width: 768px) {
		margin-top: 14px;
	}
}
.p-history-main__bg {
	position: sticky;
	top: 0;
	right: 0;
	width: 100%;
	height: 100vh;
	background-color: #000;
}
.image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	background-size: cover;
	background-position: center center;
	animation: image-switch-animation 18s infinite;
}

.image:nth-of-type(1) {
	animation-delay: 0s;
}

.image:nth-of-type(2) {
	animation-delay: 6s;
}

.image:nth-of-type(3) {
	animation-delay: 12s;
}

@keyframes image-switch-animation {
	0% {
		opacity: 0;
	}
	15% {
		opacity: 1;
	}
	33% {
		opacity: 1;
	}
	48% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.p-history-main__inner {
	position: relative;
	z-index: 1;
	padding-left: 11vw;
	padding-right: 10vw;
	margin-top: -60vh;
	padding-bottom: 400px;
	@media (max-width: 768px) {
		margin-top: -86vh;
		padding: 0 3vw 100px 7vw;
		display: flex;
		flex-direction: column;
		gap: 30px;
	}
}

.p-history-main__text {
	h2 {
		color: #fff;
		font-size: 40px;
		font-weight: 400;
		letter-spacing: 0.15em;
		margin-bottom: 90px;
		line-height: 2;
		@media (max-width: 768px) {
			font-size: clamp(
				20px,
				calc(8.549618320610687px + 3.0534351145038165vw),
				32px
			);
			margin-bottom: 40px;
		}
	}
	p {
		margin-bottom: 40px;
		color: #fff;
		letter-spacing: 0.15em;
		line-height: 2.4;
		@media (max-width: 768px) {
			font-size: 14px;
			margin-bottom: 30px;
		}
		.sp-only {
			display: none;
			@media (max-width: 768px) {
				display: block;
			}
		}
	}
	.is-en {
		margin-top: 100px;
		width: 29vw;
		@media (max-width: 768px) {
			margin-top: 80px;
			width: 60vw;
		}
	}
}

.p-history-main__img {
	width: 35vw;
	aspect-ratio: 70 / 41;
	position: absolute;
	right: 8vw;
	bottom: 12vw;
	@media (max-width: 768px) {
		position: relative;
		right: auto;
		bottom: auto;
		width: 76vw;
	}
}

.p-history-block01-slide {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	@media (max-width: 768px) {
		top: 22%;
	}
}

.p-history-block01-slide__track {
	display: flex;
	width: max-content;
	animation: loop-scroll 56s linear infinite;
}

.p-history-block01-slide__img {
	width: 30vw;
	height: 100%;
	aspect-ratio: 117 / 92;
	object-fit: cover;
	flex-shrink: 0;
	@media (max-width: 768px) {
		width: 50vw;
	}
}

@keyframes loop-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.p-history-block01 {
}

.p-history-block01__title {
	margin-bottom: -20px;
	position: relative;
	z-index: 1;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto -30px;
	h2 {
		background-color: #fff;
		width: fit-content;
		padding: 20px 50px;
		@media (max-width: 768px) {
			padding: 10px 30px;
		}
	}
}

.p-history-contents {
	background: rgba(255, 255, 255, 0.7);
	position: relative;
	z-index: 1;
	backdrop-filter: blur(10px);
	padding: 260px 6vw;
	padding: 260px 0;
	@media (max-width: 768px) {
		padding: 120px 0 120px;
		backdrop-filter: blur(5px);
	}
}

.p-history-contents__inner {
	max-width: 1200px;
	max-width: none;
	width: 100%;
	margin: auto;
	position: relative;
	width: fit-content;
	margin-left: 20.5vw;
	@media (max-width: 768px) {
		margin-left: 15px;
	}
}

.p-history-contents__bg {
	background-image: url(../img/history/mater.svg);
	background-repeat: repeat-y;
	background-size: contain;
	height: 100%;
	width: 10px;
	position: absolute;
	left: 0;
	top: 0;
}

.p-history-contents-box01 {
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 1;
	margin-bottom: 180px;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 5vw;
	@media (max-width: 768px) {
		margin-bottom: 100px;
	}
	.is-left {
		width: 18%;
		display: flex;
		gap: 20px;
		position: sticky;
		top: 120px;
		left: 0;
		@media (max-width: 768px) {
			gap: 12px;
			flex-direction: column;
			width: 21%;
			top: 100px;
		}
		.is-num {
			background-color: #fff;
			padding: 0 10px;
			font-size: 20px;
			display: flex;
			align-items: center;
			height: 34px;
			justify-content: center;
			@media (max-width: 768px) {
				font-size: 13px;
				height: 22px;
				justify-content: flex-start;
				width: fit-content;
			}
		}
		p {
			font-size: clamp(80px, calc(44px + 4vw), 120px);
			writing-mode: vertical-rl;
			text-orientation: upright;
			letter-spacing: 0.8vw;
			@media (max-width: 768px) {
				font-size: clamp(
					40px,
					calc(19.00763358778626px + 5.597964376590331vw),
					62px
				);
				margin-left: 10px;
			}
		}
	}
	.is-right {
		width: 70%;
		padding-top: 15vw;
		padding-top: 0;
		width: 100%;
		@media (max-width: 768px) {
			padding-top: 10vw;
			width: 74%;
		}
		.is-img {
			width: 100%;
			margin-bottom: 60px;
			margin-bottom: 0;
			@media (max-width: 768px) {
				margin-bottom: 30px;
				margin-bottom: 0;
			}
			img {
				width: 100%;
				@media (max-width: 768px) {
					height: 180px;
					object-fit: cover;
				}
			}
		}
		h3 {
			font-size: 32px;
			margin-bottom: 50px;
			font-weight: 400;
			letter-spacing: 0.15em;
			padding-right: 18.2vw;
			width: fit-content;
			background-color: #000;
			color: #fff;
			padding: 8px 20px;
			margin-top: -30px;
			margin-left: 50px;
			position: relative;
			@media (max-width: 768px) {
				font-size: clamp(
					18px,
					calc(4.641221374045802px + 3.5623409669211195vw),
					32px
				);
				margin-bottom: 36px;
				letter-spacing: 0.1em;
				padding-right: 20px;
				margin-bottom: 24px;
				padding: 8px 20px;
				margin-right: 20px;
				margin-left: 10px;
				margin-top: -20px;
			}
			br{
				display: none;
				@media (max-width: 768px) {
					display: block;
				}
			}
		}
		p {
			margin-bottom: 40px;
			line-height: 2.2;
			padding-right: 18.2vw;
			box-sizing: border-box;
			margin-left: 50px;
			@media (max-width: 768px) {
				font-size: 14px;
				line-height: 2;
				margin-bottom: 24px;
				padding-right: 20px;
				margin-left: 10px;
			}
			&:last-child {
				margin-bottom: 0;
			}
		}
	}
}

.p-history-block02 {
	padding: 8vw 12vw;
}

.l-floating {
	position: fixed;
	bottom: 30px;
	right: 100px;
	z-index: 100;
	@media (max-width: 768px) {
		width: 100%;
		right: 0;
		display: flex;
		justify-content: flex-end;
		bottom: 70px;
		margin: 0 10px;
	}
}

.l-floating-btn {
	background: rgba(11, 56, 116, 0.8);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 200px;
	width: 360px;
	height: 70px;
	color: #fff;
	font-size: 18px;
	transition: all 0.3s ease;
	@media (max-width: 768px) {
		width: fit-content;
		padding: 0 30px;
		font-size: 14px;
		height: 50px;
	}
	&:hover {
		background: rgb(2, 30, 67);
	}
}

.p-history-dummy {
	width: 100%;
	height: 100%;
	aspect-ratio: 96 / 23;
	@media (max-width: 768px) {
		aspect-ratio: 375 / 148;
	}
}
