/* CSS Document */
@import url("reset.css");
@import url("swiper-bundle.min.css");
@import url("common.css");

section{ padding: 50px 0;}

h2{
	margin: 30px 0;
	color: var(--main-color);
	font-weight: 400;
	font-size: 2.6rem;
	line-height: 1.3;
}

.more{ text-align: right;}
.link_btn{ background-color: inherit !important;}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	h2{ font-size: 1.7rem;}
	section{ padding: 20px 0;}
}


/* header
---------------------------------------------------------- */
header{ background-color: inherit;}
header.scrolled{
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* container
---------------------------------------------------------- */
.container{ margin-top: 0 ;}


/* main_visual
---------------------------------------------------------- */
.main_visual{
	position: relative;
	height: 100vh;
	max-height: 860px;
	overflow: hidden;
}
.main_visual::after{
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -20%;
	z-index: 1;
	width: 120%;
	height: 80%;
	margin: auto 0;
	background: url(../img/top/mv_bg.svg) no-repeat center / contain;
	opacity: 0.5;
}

.mv_txt{
	position: absolute;
	top: 50%;
	right: 36%;
	transform: translate(0%, -50%);
	height: auto;
	z-index: 3;
	margin: auto;
	font-size: 2.2rem;
	font-weight: 700;
}

.mv_main_txt{ width: 100%;}
.mv_main_txt img{
	filter:
	drop-shadow(0 0 5px #fff)
	drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}
.start_from202604{
	margin-top: 30px;
	max-width: 160px;
}

/* --- 【追加】Swiper共通設定 --- */
.mv_swiper {
	position: absolute;
	z-index: 2;
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}
.mv_swiper .swiper-wrapper {
	height: 100%;
	/* 滑らかに動き出し、後半にかけて非常に長い時間をかけてゆっくりと着地するイージング */
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important; 
}

.mv_swiper .swiper-slide {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.mv_swiper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv_r{
	right: 0;
	bottom: 0;
	width: 34%;
	height: 55%;
	border-radius: 50px 0 0 50px;
	line-height: 0;
}

.mv_l{
	left: -8%;
	top: 100px;
	width: 52%;
	height: calc(90% - 160px);
	border-radius: 0 50px 50px 0;
	line-height: 0;
}

.pickup{
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 3;
	width: 900px;
	max-width: 100%;
	flex-wrap: nowrap;
	background-color: var(--main-color);
	border-radius: 0 3rem 3rem 0;
	color: #fff;
}
.pu_tit{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20%;
	padding: 10px;
	font-size: 0.9rem;
	text-align: center;
}
.pu_tit::after{
	content: '';
	position: absolute;
	top: 20%;
	bottom: 0;
	right: 0;
	width: 1px;
	height: 60%;
	background-color: rgba(255, 255, 255, 1);
}

/* 外枠（親要素）も80pxに合わせる */
.pu_txt {
	width: 80%;
	overflow: hidden;
	height: 80px; /* ← 60pxから80pxに変更 */
	font-size: 0.9rem;
	line-height: 1.4;
}

/* ラッパーに「height: 100%」を明示して、高さの連鎖を作る */
.pu_txt .swiper-wrapper {
	flex-direction: column !important;
	height: 100% !important; /* ← これを追加することで、子要素の 100% が効くようになります */
}

/* スライドを100%にして、親の80pxにジャストフィットさせる */
.pu_txt .swiper-slide {
	padding: 0 2rem;
	display: flex;
	align-items: center;
	height: 100% !important; /* ← テキストの高さに縮まず、綺麗に80pxになります */
	box-sizing: border-box;
}
.pu_txt a{
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}
.pu_txt .date{ margin: 0 10px 0 0;}

.limit_text {
	display: -webkit-box;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.pu_txt .swiper-wrapper { flex-direction: column !important;}

@media screen and (max-width: 768px) {
	.main_visual{ height: calc(100vh - 80px);}
	.main_visual::after{
		height: 70%;
		background-size: cover;
		background-position: right 10% center;
	}
	.mv_l{
		top: 60px;
		width: 100%;
		height: 50%;
		right: -20%;
		border-radius: 0 0 30px 0;
	}
	.mv_r{
		width: 50%;
		height: 30%;
		bottom: 20px;
		border-radius: 30px 0 0 30px;
	}
	.mv_txt{
		left: 20px;
		top: auto;
		bottom: -20px;
		font-size: 1.8rem;
		white-space: nowrap;
		padding: 30px;
		background-color: #ffffffd8;
		border-radius: 20px;
	}
	.start_from202604{ max-width: 140px;}
	.pickup{
		width: 95%;
		bottom: 0;
	}
	.pu_tit{
		width: 18%;
		padding: 10px;
		font-size: 0.7rem;
	}
	.pu_txt .swiper-slide { padding: 0 15px;}
}


/* news
---------------------------------------------------------- */
.news_inner{
	justify-content: space-between;
}

.news_menu{
	width: 200px;
	margin: 0;
	font-size: 0.8rem;
	flex-direction: column;
}
.news_menu li{
	margin: 5px 0;
	list-style: none;
}
.news_menu li a{ text-decoration: none;}
.news_menu li.here a,
.news_menu li a:hover{ color: var(--sec-color);}
.news_menu li.here a::before,
.news_menu li a:hover::before{
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 5px 0 0;
	background-color: var(--sec-color);
	border-radius: 50%;
	vertical-align: middle;
}

.news_list{
	width: calc(100% - 220px);
	display: none;
}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	.news_menu,.news_list{ width: 100%;}
	.news_menu{
		margin-bottom: 20px;
		padding: 10px;
		flex-direction: row;
		background-color: var(--bg-color);
	}
	.news_menu li{ padding-right: 1rem;}
}


/* topics
---------------------------------------------------------- */
.topics{
	position: relative;
	padding: 50px 0 100px;
}
.topics::after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 90%;
	height: 100%;
	background: linear-gradient(0deg, #E6EFFF 5%, #EFFFF9 100%);
}

.topics_inner{
	max-width: none;
	padding: 0 var(--width_res);
}

.topics_h2{
	margin: 0 0 30px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
}
.topics_h2 h2,
.topics_h2 .more{ margin: 0;}

.topics .swiper{
	position: relative;
	z-index: 900;
}

.topics .swiper_arrow{
	position: absolute;
	top: calc(50% - 30px);
	left: 0;
	z-index: 800;
	width: 100vw;
}
.topics .swiper-button-prev,
.topics .swiper-button-next{
	position: absolute;
	width: 60px;
	height: 60px;
	cursor: pointer;
}
.topics .swiper-button-prev{ left: 20px;}
.topics .swiper-button-next{ right: 20px;}
.topics .swiper-button-prev::after,
.topics .swiper-button-next::after{
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	border-top: 2px solid var(--main-color);
	border-right: 2px solid var(--main-color);
}
.topics .swiper-button-prev::after {
	transform: rotate(225deg); /* くの字の向きに調整 */
}
.topics .swiper-button-next::after {
	transform: rotate(45deg); /* くの字の向きに調整 */
}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	.topics{ padding: 20px 0 30px;}
	.topics_inner{ padding: 0 20px;}
	.topics_h2 h2{ font-size: 1.2rem;}
	.topics .swiper_arrow{ top: calc(50% - 12px);}
	.topics .swiper-button-prev,
	.topics .swiper-button-next,
	.topics .swiper-button-prev::after,
	.topics .swiper-button-next::after{
		width: 24px;
		height: 24px;
	}
	.topics .swiper-button-prev{ left: 10px;}
	.topics .swiper-button-next{ right: 10px;}
}


/* programs
---------------------------------------------------------- */
.programs{
	position: relative;
	overflow: hidden;
	padding: 100px 0;
}
.programs::after{
	content: '';
	position: absolute;
	top: 0;
	right: -10%;
	z-index: -1;
	width: 60%;
	height: 100%;
	/* background: url(../img/top/programs_bg.png) no-repeat top left / contain; */
}

.programs_menu{ line-height: 0;}

.programs_li{
	display: flex;
	width: 100%;
}

.programs_menu .p_tit{
	margin: 0 0 -20% 0;
	flex-direction: row-reverse;
}
.programs_menu .p_tit h2{
	width: 40%;
	font-size: 2.0rem;
	font-weight: 600;
	line-height: 1.6;
}
.programs_menu .p_tit .en{
	color: var(--primary-text-color);
	font-size: 0.8rem;
	font-weight: 400;
}

.programs_li{
	position: relative;
	pointer-events: none;
}
.programs_li.p_li1{
	z-index: 2;
	padding-left: 8%;
}
.programs_li.p_li2{
	z-index: 1;
	margin: -5% 0 -25%;
	flex-direction: row-reverse;
}
.programs_li a{
	position: relative;
	overflow: hidden;
	width: 49%;
	background-color: #fff;
	text-decoration: none;
	pointer-events: auto;
}
.programs_li.p_li1 a{ border-radius: 30px;}
.programs_li.p_li2 a{ border-radius: 30px 0 0 30px;}
.programs_li.p_li3 a{ border-radius: 0 30px 30px 0;}

.programs_img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.programs_txt{
	position: absolute;
	z-index: 100;
	bottom: 10%;
	padding: 30px;
	background-color: #ffffffe8;
	text-align: center;
	line-height: 1.2;
}
.programs_li:nth-child(odd) .programs_txt{
	left: 0;
	border-radius: 0 30px 30px 0;
}
.programs_li:nth-child(even) .programs_txt{
	right: 0;
	border-radius: 30px 0 0 30px;
}

.programs_txt p{ margin: 5px 0;}
.pro_eng{
	color: var(--main-color);
	font-size: 0.8rem;
}
.pro_course{
	background: linear-gradient(90deg, #1DAAAA 0%, #498667 100%);
	border-radius: 3rem;
	color: #fff;
	font-size: 1.1rem;
}
.pro_tit{
	color: var(--primary-text-color);
	font-size: 1.6rem;
}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	/* .programs全体の調整 */
	.programs {
		padding: 50px 0;
	}
	.programs::after {
		width: 100%;
		right: 0;
		opacity: 0.2; /* スマホでは背景が文字の邪魔をしないよう、さらに薄く調整 */
	}

	.programs_menu {
		display: flex;
		flex-direction: column; /* 縦並び（1カラム）に変更 */
		padding: 0 20px; /* 左右に20pxの余白を追加 */
		line-height: normal; /* line-heightをリセット */
	}

	/* タイトル部分（.p_tit）の崩れ・余白リセット */
	.programs_menu .p_tit {
		margin: 0 0 20px 0;
		flex-direction: row; /* PC版のrow-reverseをリセット */
	}
	.programs_menu .p_tit h2 {
		width: 100%;
		font-size: 1.8rem;
		line-height: 1.4;
		text-align: center;
	}

	/* 各カード要素（.programs_li）のリセット */
	.programs_li {
		width: 100%;
		padding-left: 0 !important; /* PC版の左余白をリセット */
		margin: 0 0 20px 0 !important; /* カード同士の縦の隙間 */
		flex-direction: row !important; /* PC版の重なり・反転をリセット */
	}
	.programs_li:last-child {
		margin-bottom: 0 !important; /* 最後のカードの下マージンを消去 */
	}

	/* aタグ（カード本体）を横幅いっぱいにし、角丸を四方すべて統一 */
	.programs_li a {
		width: 100%;
		border-radius: 20px !important;
	}

	/* スライダー画像の角丸もカードに合わせて丸める */
	.programs_img {
		border-radius: 20px;
	}

	/* テキスト部分（.programs_txt）をスマホ用に最適化 */
	.programs_txt {
		position: relative;
		bottom: auto;
		left: auto !important;
		right: auto !important;
		width: 100%;
		padding: 15px 10px;
		background-color: rgba(255, 255, 255, 0.9); /* 白背景を若干透過させて画像を透けさせる */
		border-radius: 0 0 20px 20px !important; /* 下部のみ角丸（カードにフィット） */
	}

	/* テキスト要素のフォントサイズと余白の微調整 */
	.programs_txt p {
		margin: 3px 0;
	}

	.pro_course {
		padding: 2px 10px;
		display: inline-block;
	}
}


/* visitor
---------------------------------------------------------- */
.visitor{
	position: relative;
	overflow: hidden;
	background : var(--main-color);
}
.visitor::after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	background: url(../img/top/visitor_bg.png) no-repeat center / cover;
	opacity: 0.5;
	filter: blur(1px);
}
.visitor_inner{
	position: relative;
	z-index: 1;
	max-width: none;
}

.visitor h2{
	color: #fff;
	text-align: center;
}

.visitor_menu{
	justify-content: center;
	width: 100%;
	margin: 30px auto;
	line-height: 1.4;
}
.visitor_menu li{
	width: calc(100% / 4);
	margin: 0;
	padding: 5px;
	list-style: none;
	text-align: center;
}
.visitor_menu li a{
	display: block;
	color: #fff;
	text-decoration: none;
}
.visitor_menu li img{
	display: block;
	width: 100%;
	margin: 0 auto 10px;
	border-radius: 10px;
}

.visitor .search_bar{
	width: 800px;
	max-width: 100%;
	margin: auto;
}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	.visitor{ padding: 20px 0;}
	.visitor_menu li{
		width: 48%;
		margin: 10px 0;
		font-size: 0.9rem;
	}
	.visitor .search_bar{ width: 100%;}
	.visitor .search_bar .submit{ background-color: #fff;}
}