/* style.css */
@charset "utf-8";

body#home {
	position: relative;
}
body#home::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 33%;
	max-width: 600px;
	height: 100%;
	background: url('./img/bg-noise-right.png') repeat-y;
	background-size: 100% auto;
	opacity: 0.3; /* 透明度で強さ調整 */
	pointer-events: none; /* クリックに干渉しない */
	z-index: -1;
}

.hero__wrapper {
	position: relative;
	/* background: linear-gradient(var(--main-light) 0%, var(--main) 90%); */
	/* background: linear-gradient(to right, transparent 70%, var(--main) 70%); */
	margin-top: 70px;
	overflow-x: hidden;
	padding-bottom: 40px;

	z-index: auto;
}
.hero__wrapper::before {
	content: '';
	display: block;
	width: calc(100% - 200px);

	height: 500px;
	background-color: var(--main);
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
}
.hero__inner {
	/* rotate: -2deg; */
	position: relative;
}
.hero {
	width: 90%;
	height: calc(100svh - 70px);
	position: relative;
	z-index: 0;
	margin-top: 0px;
	margin-inline: auto;
	overflow: hidden;
}
.hero::after {
	content: '';
	display: block;
	width: auto;
	height: 100%;
	background: var(--main);
	position: absolute;
	opacity: 0.2;
	top: 0;
	left: 0;
	z-index: 1;
}
.hero__logos {
	display: block;
	width: auto;
	height: clamp(350px, 60vh, 500px);
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(1%, -50%) rotate(-2deg);
	z-index: 2;
}
.bannar-area {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	position: relative;
	z-index: auto;
	max-width: 1100px;
	margin-top: 40px;
	margin-inline: auto;
	padding-inline: 14px;
}
.bannar-area > div {
	flex: 0 1 calc((100% - 8px * 1) / 2);
}
@media (min-width: 768px) {
	.bannar-area > div {
		flex: 0 1 calc((100% - 8px * 4) / 5);
	}
}

@media (min-width: 768px) {
	.hero__wrapper {
		margin-top: 70px;
	}
	.hero__wrapper::before {
		width: calc(100% - 260px);
		height: 500px;
	}
	.hero {
		height: clamp(350px, 80vh, 720px);
		height: calc(100svh - 70px);
		width: 96%;
		width: 100%;
		position: relative;
	}
	.hero__logos {
		display: block;
		width: 52%;
		/* max-width: 730px; */
		height: auto;
		position: absolute;
		top: 48%;
		left: 2%;
		z-index: 2;
		transform: translate(0, -50%) rotate(-2deg);
	}
	.bannar-area {
		margin-top: 60px;
	}
}

.vegas-overlay,
.vegas-slide {
	z-index: 1;
}

/* コンテンツインデックス */
.contents-index {
	position: relative;
}
.contents-index::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	inset: 0 -4% -80px -4%;
	display: block;
	background-image: linear-gradient(to bottom right, transparent 50%, #ffffff 50%);
	background-size: 100% 25%;
	background-repeat: repeat-y;
	transform: skewY(-3deg);
}
@media (min-width: 768px) {
	.contents-index::before {
		inset: 0 -100px -80px -100px;
		display: block;
		background-size: 100% 50%;
	}
}
.contents-index__group {
	position: relative;
}

.contents-index__group__body {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(3, auto);
	grid-template-areas:
		'title'
		'image'
		'submenu';
	/* border: 1px solid var(--black); */
	gap: 0px;
	position: relative;
	padding-top: 12vw;
}
.contents-index__group__body::before {
	content: '';
	display: block;
	aspect-ratio: 1.78 / 1;
	width: 100%;
	max-width: 500px;
	height: auto;
	/* background-image: url(./img/common/cloud1@1100w.png); */
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(33%, 0);
	opacity: 0.5;
}
.contents-index__group:nth-child(even) .contents-index__group__body::before {
	right: auto;
	left: 0;
	transform: translate(-33%, 0);
}

.contents-index__title {
	grid-area: title;
	position: relative;
	display: block;
	width: fit-content;
	font-size: 2em;
	font-weight: 600;
	font-family: var(--jp-font);
	margin-inline: 0 auto;
}
.contents-index__title span {
	background-color: var(--main);
	color: #fff;
	padding: 0 0.3em 0.1em;
}
.contents-index__title::before {
	content: attr(data-en);
	white-space: pre-line;
	display: block;
	flex-direction: column;
	align-items: center;
	width: fit-content;
	line-height: 1;
	font-family: var(--en-font);
	font-weight: 700;
	text-transform: capitalize;
	font-size: 1.8em;
	color: var(--main);
	margin-bottom: 8px;
}

.contents-index .submenu {
	grid-area: submenu;
	position: relative;
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 8px;
}
.contents-index .submenu > li {
	border-bottom: 1px dashed silver;
}
.contents-index .submenu > li a {
	color: var(--main);
}
.contents-index .submenu > li a:hover {
	color: var(--black);
}
.contents-index__image {
	grid-area: image;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	transform: skewY(-4deg);
	position: relative;
	box-shadow: 10px 15px 0 rgba(0, 0, 0, 0.2);
	/* border: 1px solid #333333; */
}
.contents-index__image::after {
	content: '';
	display: block;
	inset: -40px 0;
	position: absolute;
	background-image: url(./img/hero/pc/DSC05834.webp);
	background-size: cover;
	background-position: center;
	transform: skewY(4deg);
}
.submenu-group--about .contents-index__image::after {
	background-image: url(./img/hero/pc/DSC05460.webp);
}
.submenu-group--education .contents-index__image::after {
	background-image: url(./img/hero/pc/DSC05415.webp);
}
.submenu-group--career .contents-index__image::after {
	background-image: url(./img/hero/pc/DSC07359.webp);
}
.submenu-group--school-life .contents-index__image::after {
	background-image: url(./img/hero/pc/DSC02536.webp);
}
.submenu-group--future-students .contents-index__image::after {
	background-image: url(./img/hero/pc/DSC02615.webp);
}

@media (min-width: 768px) {
	.contents-index__group__body {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		grid-template-areas:
			'image title'
			'image submenu';
		/* border: 1px solid var(--black); */
		gap: 20px 50px;
		padding-top: 9vw;
		align-content: center;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body {
		grid-template-areas:
			'title image'
			'submenu image';
	}
	.contents-index__group__body::before {
		top: 50%;
		transform: translate(45%, -50%);
		opacity: 0.5;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body::before {
		right: auto;
		left: 0;
		transform: translate(-45%, -50%);
	}
	.contents-index__title {
		align-self: end;
	}
	.contents-index__image {
		transform-origin: top right;
	}
	.contents-index__group:nth-child(even) .contents-index__image {
		transform-origin: top left;
	}
	.contents-index .submenu {
		grid-area: submenu;
		position: relative;
		align-self: start;
		margin-top: 0px;
		gap: 8px 2px;
	}
}
@media (min-width: 1024px) {
	.content-index__wrapper {
		max-width: 1720px;
	}
	.contents-index__group__body::before {
		top: 0;
		transform: translate(55%, -35%);
		opacity: 1;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body::before {
		right: auto;
		left: 0;
		transform: translate(-55%, -60%);
	}
	.contents-index__group__body {
		display: grid;
		grid-template-columns: 1fr 350px;
		grid-template-rows: auto 1fr;
		gap: 32px 5%;
		padding-top: 4vw;
		align-content: center;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body {
		grid-template-columns: 350px 1fr;
		grid-template-rows: 1fr 1fr;
	}
	.contents-index__group:nth-child(odd) .contents-index__group__body {
		/* left: -50px; */
		grid-template-rows: auto auto;
		padding-right: 0;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body {
		/* right: -50px; */
		padding-left: 0;
		padding-top: 6vw;
	}
	.contents-index__image {
		aspect-ratio: 16 / 9;
	}
	.contents-index .submenu {
		grid-area: submenu;
		position: relative;
		align-self: start;

		flex-direction: column;
	}
}
@media (min-width: 1200px) {
	.contents-index__group:nth-child(odd) .contents-index__group__body {
		padding-right: 10%;
	}
	.contents-index__group:nth-child(even) .contents-index__group__body {
		padding-left: 10%;
	}
}

