@charset "utf-8";

/* ヒーローエリア */
.hero__wrapper {
	position: relative;
	height: 100%;
	width: 100%;
	margin-inline: auto;
	padding: 8px;
}
.hero {
	position: relative;
	width: 100%;
	height: 80dvh;
	max-height: 800px;
	border-radius: 0;
	overflow: hidden;
	margin-bottom: 8px;
	background-color: var(--sub);
}
.bg-swiper,
.bg-swiper .swiper-slide {
	width: 100%;
	height: 100%;
}
.bg-swiper,
.bg-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.bg-swiper .swiper-slide {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero__catch {
	position: absolute;
	width: 38%;
	height: auto;
	top: 5%;
	left: 5%;
	z-index: 10;
}
.hero__catch .fudemoji {
	filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.7));
}

@media screen and (min-width: 600px) {
	.hero {
		min-height: 750px;
		max-height: 900px;
	}
	.hero__catch {
		position: absolute;
		width: 30%;
		max-width: 365px;
		height: auto;
		top: 50%;
		left: 2%;
		transform: translateY(-50%);
		z-index: 10;
	}
}

/* -----------------冒頭ナビエリア----------------- */
.hero-nav {
}
.hero-nav__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.hero-nav__item {
	display: flex;
	height: 180px;
	justify-content: center;
	flex-direction: column;
	background: var(--main);
	color: #fff;
	padding: 2em;
	border-radius: 0;
	text-decoration: none;
	transition: all 0.3s;
}
.hero-nav__item:hover {
	background: #ccc;
}
.hero-nav__en {
	display: block;
	font-size: clamp(2.2rem, calc((100vw - 900px) * 0.027 + 2.2rem), 5rem);
	font-family: var(--en-font);
	line-height: 1.2;
	font-weight: 400;
}
.hero-nav__ja {
	font-size: clamp(1.2rem, calc((100vw - 900px) * 0.01 + 1.2rem), 2.2rem);
	line-height: 1.2;
	opacity: 0.85;
}
:where(.hero-nav__item.--about, .hero-nav__item.--applicants) {
	grid-column: 1 / -1;
}
.hero-nav__item.--about {
	background: url(./img/illust/building1.png), var(--main);
	background-size: 50%;
	background-position: right 10px bottom;
	background-repeat: no-repeat;
}
.hero-nav__item.--about:hover {
	background-size: 55%;
}
.hero-nav__item.--schoollife {
	background: url('./img/DSC00611.jpg');
	background-size: auto 100%;
	background-position: center;
}
.hero-nav__item.--schoollife:hover {
	background-size: auto 110%;
}
.hero-nav__item.--clubs {
	background-color: var(--main);
	background-image: url('./img/DSC01816.jpg');
	background-size: auto 100%;
	background-position: center;
}
.hero-nav__item.--clubs:hover {
	background-size: auto 110%;
}
.hero-nav__item.--applicants {
	background-color: var(--blue);
	background-image: url('./img/for-junior.png');
	background-size: 35% auto;
	background-position: bottom right;
	background-repeat: no-repeat;
}
.hero-nav__item.--applicants:hover {
	background-size: 37% auto;
}
.hero-nav__item.--comunity {
	background-color: var(--yellow);
}
.hero-nav__item.--alumni {
	background-color: var(--green);
}
@media screen and (min-width: 1025px) {
	.hero-nav {
	}
	.hero-nav__grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(3, 240px);
		gap: 8px;
	}
	.hero-nav__item {
		height: auto;
	}
	.hero-nav__item.--about {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}
	.hero-nav__item.--schoollife {
		grid-column: 3 / 4;
		grid-row: 1 / 2;
	}
	.hero-nav__item.--clubs {
		grid-column: 4 / 5;
		grid-row: 1 / 2;
	}
	.hero-nav__item.--applicants {
		grid-column: 3 / 5;
		grid-row: 2 / 3;
	}
	.hero-nav__item.--comunity {
		grid-column: 1 / 3;
		grid-row: 3 / 4;
	}
	.hero-nav__item.--alumni {
		grid-column: 3 / 5;
		grid-row: 3 / 4;
	}
}

.home-access__wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background-color: var(--sub);
	border-radius: 20px 20px 0 0;
}
.home-access__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
}
.home-access__gmap {
	flex: 2;
}
.home-access__walking1 {
	display: block;
	width: clamp(88px, calc((100vw - 900px) * 0.706 + 88px), 160px);
	height: auto;
	position: absolute;
	z-index: 5;
	bottom: 0;
	right: 0;
}
.train_way {
	position: absolute;
	width: 100%;
	height: 100px;
	left: 0;
	bottom: 0;
}
.train_way img {
	width: 300px;
	max-width: 100%;
	height: auto;
	display: block;
	position: absolute;
	bottom: 0;
	animation: train 17s infinite ease-in-out;
}
@keyframes train {
	0% {
		left: -300px;
	}
	40% {
		left: 70%;
	}
	60% {
		left: 70%;
	}
	100% {
		left: 120%;
	}
}
@media screen and (min-width: 900px) {
	.home-access__wrapper {
		display: flex;
		flex-direction: row;
		gap: 40px;
		background-color: var(--sub);
		border-radius: 40px 40px 0 0;
	}
	.home-access__info {
		/* container-type: inline-size; */
		width: 50%;
	}
	.home-access__walking1 {
		display: block;

		height: auto;
		position: absolute;
		z-index: 5;
		bottom: 0;
		right: 0;
		transform: translate(30%, 40%);
	}
}
