@charset "utf-8";

/* ===================================
   トップページ専用スタイル
   =================================== */

/* メインイメージ */
#mainimg {
	clear: left;
	width: 100%;
	max-width: 1400px; /* 最大幅を制限 */
	margin: 0 auto 0px; /* 中央揃え */
	position: relative;
}

.slide1 {
	width: 100%;
	height: auto; /* 画像の縦横比を維持 */
	display: block;
	box-shadow: 0 10px 18px -10px rgba(0, 32, 91, 0.28);
	position: relative;
	z-index: 2;
}

/* メインイメージ下の区切り線 */
.hero-rule {
	border-top: 1px solid #d7dbe3;
	height: 0;
	width: 60%;
	max-width: 700px;
	margin: 22px auto 0;
}

/* ===================================
   News & スライドショー
   =================================== */
#new0 {
	display: flex;
	justify-content: space-between;
	height: 450px; /* vwではなく固定値に変更 */
	width: 100%;
	margin-top: 0px;
	gap: 20px;
}

#news {
	height: 150px;
	margin-top: 180px;
}

#new {
	position: relative;
	height: 100%;
	width: 50%;
	overflow-y: scroll;
	overflow-x: hidden;
	background: transparent;
	padding: 4px 16px 4px 0;
}

#new dl {
	padding-right: 0;
	width: 90%;
}

#new dt {
	float: left;
	width: 9em;
}

#new dd {
	padding-left: 0;
}

#new dd,
#new dt {
	font-size: 18px; /* 固定サイズ */
}

/* スライドショー */
.slide-show {
	width: 50%;
	position: relative;
	height: auto;
	overflow: hidden;
	border: 1px solid #e3e6ec;
	border-radius: 4px;
}

.slide-show img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 手動カルーセル用スライド画像（自動再生なし） */
.slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.slide-img.active {
	opacity: 1;
	pointer-events: auto;
}

/* 前へ・次へ矢印ボタン */
.slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.85);
	color: #00205B;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 5;
	padding: 0;
}

.slide-arrow:hover {
	background: #ffffff;
}

.slide-arrow.prev {
	left: 12px;
}

.slide-arrow.next {
	right: 12px;
}

/* 写真キャプション */
.slide-caption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	z-index: 4;
	pointer-events: none;
}

/* スライドインジケーター */
.slide-indicators {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.slide-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s;
}

.slide-indicator.active {
	background: rgba(255, 255, 255, 1);
}

.slide-indicator:hover {
	background: rgba(255, 255, 255, 0.8);
}

/* ===================================
   About Us & Dear Students
   =================================== */
.check {
	font-size: 18px; /* vwではなく固定値 */
	margin-left: 3%;
	margin-right: 3%;
	line-height: 1.7;
}

/* ===================================
   Information (ご案内)
   =================================== */
.container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.information,
.map {
	flex: 1;
	padding: 0 3%;
	min-width: 300px;
}

.information-table {
	width: 100%;
	border-collapse: collapse;
}

.information-table td {
	padding: 12px; /* vwではなく固定値 */
	border: 1px solid #ccc;
	font-size: 16px; /* vwではなく固定値 */
	word-break: break-word;
}

.map iframe {
	width: 100%;
	height: 450px;
	max-height: 50vh;
}

/* ===================================
   レスポンシブ - スマホのみ
   768px以下でのみレイアウト変更
   =================================== */
@media (max-width: 768px) {
	/* メインイメージ - スマホでメニューバーの下に表示 */
	#mainimg {
		margin-top: 60px; /* メニューバーの高さ分 */
		margin-bottom: -80px;
	}
	
	.slide1 {
		height: auto; /* 画像の縦横比を維持 */
	}

	/* News & スライドショー */
	#new0 {
		flex-direction: column;
		height: auto;
		gap: 20px;
	}

	#new {
		width: 100%;
		min-height: 300px;
		max-height: 350px;
		padding: 15px;  /* スマホ用に少し小さく */
	}

	#new dd,
	#new dt {
		font-size: 13px;
	}

	.slide-show {
		width: 100%;
		min-height: 300px;
		max-height: 350px;
	}

	/* テキスト */
	.check {
		font-size: 14px;
		line-height: 1.7;
		margin-left: 5%;
		margin-right: 5%;
	}

	/* Information */
	.container {
		flex-direction: column;
		align-items: center;
	}

	.information {
		width: 100%;
		margin-bottom: 20px;
	}

	.map {
		width: 100%;
	}

	.map iframe {
		width: 100%;
		height: 250px;
	}

	.information-table td {
		font-size: 12px;
		padding: 8px;
	}
}

/* ===================================
   PC・タブレット（769px以上）
   ズームしてもレイアウトは変わらない
   =================================== */
@media (min-width: 769px) {
	/* メインイメージ：画像の縦横比を維持 */
	#mainimg {
		margin-bottom: 0px;
	}

	.slide1 {
		height: auto; /* 画像の元サイズを維持 */
	}

	/* メニュー固定時のジャンプ防止
	   メニューが固定されると#menubarが通常フローから外れ、
	   直後にある#mainimgが上に詰まってしまうため、
	   その分をメインイメージ側で補正する。
	   （#contents側の補正はメインイメージが無いページ用のため、
	   HOMEページでは二重に効かないよう打ち消す） */
	body.is-fixed-menu #mainimg {
		margin-top: 105px;
	}

	body.is-fixed-menu #contents {
		margin-top: 0;
	}
	
	/* 固定レイアウトを維持 */
	#new0 {
		display: flex;
		flex-direction: row;
		height: 450px;
	}
	
	#new {
		width: 50%;
		height: 100%;
	}
	
	.slide-show {
		width: 50%;
		height: 100%;
	}
	
	/* フォントサイズも固定 */
	#new dd,
	#new dt {
		font-size: 18px;
	}
	
	.check {
		font-size: 18px;
	}
	
	.information-table td {
		font-size: 16px;
		padding: 12px;
	}
}