/*----------------------------------------------------
ナビゲーション
----------------------------------------------------*/
#header {
	height: auto;
	aspect-ratio: 1024/500;
}

.bg-slider {
	margin: 80px 0 0 0;
	width: 100vw;
	background-size: cover;
}

.vertical-text {
	width: auto;
	height: auto;
	z-index: -1;
	text-align: center;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-size: clamp(0.7rem, 2.3vw, 2rem);
	color: #333;
	background-color: #FFF;
	opacity: 0.5;
	/* 初期状態は透明 */
	position: absolute;
	transform: translateY(20px);
	/* 初期状態で少し下に */
	padding: 0 1em;
	margin: 0;
	top: 50%;
	left: 0%;
	animation: fadeIn 1.5s ease-out forwards;
	/* フェードインアニメーション */
}

/* フェードイン用のアニメーション定義 */
@keyframes fadeIn {
	0% {
		opacity: 0;
		/* 透明 */
		transform: translateY(10px);
		/* 少し下に */
	}

	100% {
		opacity: 0.8;
		/* 表示される */
		transform: translateY(0);
		/* 元の位置に */
	}
}

h2.vertical-text {
	font-weight: normal;
	color: #FFF;
	background-color: #006D4D;
	transform: none;
	top: 70%;
	left: 0%;

}

.top1,
.top1-2 {
	height: auto;
	top: 70%;
	left: 0%;
}


.top1-2 {
	top: 80%;
	left: 0px;
}

.top2,
.top3,
.top4,
.top5 {
	top: 80%;
	left: 0px;
	transform: none;
}

/* 期間限定固定バナー*/

#fixed-banner {
	position: fixed;
	top: 80px;
	right: 0px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	align-items: center;
	z-index: 1000;
	font-size: 1em;
	text-align: center;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	opacity: 90%;
}
@media print,
screen and (min-width:1024px) {
#fixed-banner {
	top:125px;
}
}
#fixed-banner:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	transform: translateY(-5px);	/* ホバー時に少し浮かせる */

}

#fixed-banner .banner-title {
	background-color: #33A6B8;
	color: #FFF;
	padding: 0.3em 0.7em;
}

#fixed-banner .banner-text {
	width: 100%;
	font-size: 1em;
	background-color: #FFF;
	color: #8D0087;
	margin: 3px;
}

.banner-link {
	background-color: #33A6B8;
	color: #FFF;
	/*padding: 2px 10px;*/
	padding: 2px 4px;
	border-radius: 5px;
	text-decoration: none;
	margin-bottom: 8px;
	font-size: 0.8em;
	transition: background-color 0.3s ease;
	width:100%;
}

.banner-link:hover {
	/*background-color: #33A6B8;*/
	color: #f9ffc4;
	/*box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
}

.close-btn {
	background: none;
	border: none;
	color: #FFF;
	font-size: 18px;
	cursor: pointer;
	position: absolute;
	top: 0px;
	right: 0px;
	font-weight: bold;
}

.close-btn:hover {
	color: #006D4D;
	transform: scale(1.2);
	/* ホバー時に少し拡大 */
}

.floating-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: clamp(4rem, 10vw, 10rem);
	height: clamp(4rem, 10vw, 10rem);
	top: 90px;
	left: 0px;
/*	background-color: #8D0087;*/
	background-color: #33A6B8;
	color: white;;
	color: white;
	font-size: clamp(0.6rem, 1.5vw, 1rem);
	text-decoration: none;
	border-radius: 50%;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
	position: absolute;
	animation: float 2s ease-in-out infinite;
	z-index: 10;

}

.floating-button:hover {
	opacity: 0.7;

}

@keyframes float {
	0% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-10px);
	}

	100% {
		transform: translateY(0px);
	}
}

/*----------------------------------------------------
学科
----------------------------------------------------*/
/* コンテナ全体の設定 */
.course {
	width: 90%;
	margin: 5%;
}

.course .title {
	width: 100%;
	padding-top: 1em;
	text-align: center;
	font-size: 2rem;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	color: #333;
	font-weight: normal;
}

/* 各ブロックのリンク設定 */
.course_block a {
	display: flex;
	/* Flexbox を使って横並びにする */
	align-items: center;
	/* 縦方向の中央揃え */
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 1em 0;
	padding: 0 5% 1em 0;
	border-bottom: 1px solid #CCC;
	color: #333;
	text-decoration: none;
	background: url(/life/2017/img/arrow_01.png) no-repeat right center;
	background-size: 7px 14px;
}
.course_block a:hover {
	opacity: 0.7;
	color: #006D4D;
}
.course_block a.lastchild {
	border-bottom: none;
}

/* 左側の写真設定 */
.course_block a>.photo {
	flex: 0 0 30%;
	/* 左側の写真部分を固定幅で指定 */
	margin: 0.2em 5% 0 0;
}

.course_block a>.photo img {
	width: 100%;
	/* 写真の横幅を100%にする */
	display: block;
	/* 不要な余白を防ぐ */
}

/* 右側のテキスト部分 */
.course_block a>.txt {
	flex: 1;
	/* 残りのスペースを埋める */
	display: flex;
	flex-direction: column;
	/* テキストを縦に並べる */
	justify-content: center;
	/* 縦方向で中央揃え */
	gap: 0.5em;
	/* h3 と p の間にスペースを追加 */
}

.course_block a>.txt>h3 {
	padding: 0;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-size: 1.5em;
	font-weight: normal;
	margin: 0;
}

.course_block a>.txt>p {
	font-size: 0.9em;
	line-height: 1.5;
	margin: 0;
	/* 不要な余白をリセット */
}

/*----------------------------------------------------
banner
----------------------------------------------------*/

.wrap_banner {
	width: 100%;
	background-color: #006D4D;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	padding: 1em 0;
}

/* リンクのスタイル */
.wrap_banner a {
	display: block;
	width: 100%;
	max-width: 800px;
}

.wrap_banner a:hover {
	box-shadow: 0 0 15px #33A6B8, 0 0 25px rgba(255, 204, 0, 0.6), 0 0 35px rgba(255, 204, 0, 0.3);
	color: #33A6B8; /* 輝く色 */
}
/* バナー画像 */
.wrap_banner img {
	width: 100%;
	height: auto;
	display: block;
}


/*----------------------------------------------------
リンク
----------------------------------------------------*/
/* コンテナ全体の設定 */
.links {
	width: 100%;
	margin: 0%;
	background-color: #CFE9E6;
	padding:0%;
}

.links h2.title {
	padding: 1em 0 1em ;
	text-align: center;
	font-size: 2rem;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-weight: normal;
	background: linear-gradient(90deg, #ffcdfc, #006D4D);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;

}

/* 各ブロックのリンク設定 */
.link_block a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 90%;
	margin: 0 5%;
	padding: 0;
	border-top: 1px solid #CCC;
	color: #333;
	text-decoration: none;
	background: url(/life/2017/img/arrow_01.png) no-repeat right center;
	background-size: 7px 14px;
}
.link_block:last-child{
	border-bottom: 1px solid #CCC;

}
.link_block a:hover {
	opacity: 0.7;
	color: #006D4D;
}
.link_block a.lastchild {
	border-bottom: none;
}

/* 左側の写真設定 */
.link_block a>.photo {
	flex: 0 0 40%;
	margin: 0.2em 5% 0 0;
	padding:1em 0;
}

.link_block a>.photo img {
	width: 100%;
	display: block;
	border-radius: 3%;

}

/* 右側のテキスト部分 */
.link_block a>.txt {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5em;
	/* h3 と p の間にスペースを追加 */
}

.link_block a>.txt>h3 {
	padding: 0;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-size: 1.2em;
	font-weight: normal;
	margin: 0;
}

.link_block a>.txt>p {
	font-size: 0.9em;
	line-height: 1.5;
	margin: 0;
	/* 不要な余白をリセット */
}

/*----------------------------------------------------
お知らせ
----------------------------------------------------*/
.topics {
	width: 100%;
	margin: 0 auto;
	padding: 2em 0;
	background-color: #F5FAF8;
}

.topics .title {
	letter-spacing: 3px;
	margin: 0;
	font-size: 2rem;
	font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-weight: normal;
	color: #006D4D;
	position: relative;
	padding: 1rem 0 0.5rem;
	margin-bottom: 0.5rem;
	text-align: center;

}

.topics .title::before {
	position: absolute;
	border-bottom: 1px solid #006D4D;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 70px;
	content: '';
}

.topics dl {
	display: block;
	width: 94%;
	margin: 2em auto;
}

.topics dl span {
	background-color: #33A6B8;
	color: #FFF;
	padding: 3px 1em;
	font-size: smaller;
}
.topics dl span.new-badge {
	background-color: #FFF;
	color: #33A6B8;
	padding: 0.1em 0.5em;
	margin-left:1em;
	font-size: 0.6em ;
	border:1px solid #33A6B8;
	font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.topics dl>dt {
	color: #33A6B8;
	font-size: large;
	font-family: 'Georgia', sans-serif;
}

.topics dl>dd {
	margin: 0 0 1em 0;
	padding: 0 0 0 25px;
	padding-bottom: 2em;
	border-bottom: 1px dotted #CCC;
}

.topics dl>dd a {
	color: #33A6B8;
	text-decoration: none;
}

.topics dl>dd a:hover {
	text-decoration: underline;
}


/***************************************@media screen and (min-width:768px)**************************************************/
@media print,
screen and (min-width:768px) {


	/*----------------------------------------------------
学科
----------------------------------------------------*/
	.course_block a {
		margin: 0;
		padding: 0 5% 0 2%;
		background: url(/life/2017/img/arrow_01.png) no-repeat right center;
		background-size: 10px 20px;
	}

	.course_block a>.photo {
		width: 23%;
	}

	.course_block a>.txt>h3 {
		padding: 1em 0 0.5em 0;
		font-size: 1.5em;
	}

	.link_block a {
		background-size: 10px 20px;
	}

	.link_block a>.photo {
		width: 23%;
	}

	.link_block a>.txt>h3 {
		padding: 1em 0 0.5em 0;
		font-size: 1.5em;
	}

	.top1,
	.top1-2 {
		height: auto;
		top: 25%;
		left: 12%;
		writing-mode: vertical-rl;
		padding: 1em 0;
	}

	.top1-2 {
		top: 35%;
		left: 7%;
	}
}

/***************************************@media screen and (min-width:1024px)**************************************************/
@media screen and (min-width:1024px) {

	/*----------------------------------------------------
header
----------------------------------------------------*/
	#header {
		height: auto;
		aspect-ratio: 1024/500
			/*		height: 600px;*/
	}

	.bg-slider {
		margin: 0 0 0 0;
	}


	/*----------------------------------------------------
学科
----------------------------------------------------*/
	.course {
		width: 100%;
		margin: 0 auto;
		display: flex;
		gap: 0;
		justify-content: space-between;
		/* 均等に配置 */
		align-items: stretch;
		/* 高さを揃える */
		padding: 1em 0 4em;
	}

	/* 各ブロックのスタイル */
	.course_block {
		flex: 1;
		/* 各ブロックが均等に幅を取る */
		min-width: 200px;
		max-width: 400px;
		display: flex;
		flex-direction: column;
		/* 縦に要素を配置 */
		overflow: hidden;
		/* はみ出しを防ぐ */
	}

	.course_block a {
		background: none;
		border: none;
		border-right: 1px solid #DDD;
		align-items: flex-start;
		/* 上に揃える */
	}

	.course_block a.lastchild {
		border-right: none;
	}

	.course_block a:hover {
		opacity: 0.7;
		color: #006D4D;
	}

	.course_block a>.photo {
		width: 80%;
		margin: 0.8em auto;
		float: none;
	}

	.course_block a>.txt {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		gap: 0.5em;
	}

	.course_block a>.txt>h3 {
		padding: 0;
		text-align: center;
		font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
		font-size: 1.7em;
		font-weight: normal;
		margin: 0;
	}

	.course_block a>.txt>p {
		display: block;
		width: 80%;
		margin: 0px auto;
		text-align: justify;
		text-justify: inter-ideograph;
		font-size: 0.9em;
		justify-content: flex-start;
		line-height: 1.9;
	}

	/* リンク部分のリセット */
	.course_block_a {
		text-decoration: none;
		color: inherit;
		display: flex;
		flex-direction: column;
		height: 100%;

	}

	/*----------------------------------------------------
	リンク
----------------------------------------------------*/
	.links {
		width: 100%;
		margin: 0 auto;
		display: flex;
		gap: 0;
		text-align: center;
		justify-content: space-between;
		align-items: stretch;
		padding: 1em 0 4em;
		flex-wrap: wrap; /* 要素が折り返せるようにする */
	}
	.links .title{
		font-size:2rem;
		width: 100%;
		margin-bottom:2rem;
		letter-spacing: 3px; /* 文字間を1px開ける */
	}
	/* 各ブロックのスタイル */
	.link_block {
		border-radius: 2%;
		flex: 1;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		background-color: #FFF;
		text-align: center;
		margin: 0 1em;
		padding:1em;
		box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
		transition: box-shadow 0.5s ease-in-out; 
	}

	.link_block a {
		background: none;
		border: none;
		align-items: flex-start;
		text-align: center;
		padding:0;
	}

	.link_block:has(a:hover) {
		opacity: 0.7;
		box-shadow: none;
		box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1);
	}
	.link_block a div {
		width: 100%;
		margin:0;
	}
	.link_block a .photo {
		width: 100%;
		float: none;
	}

	.link_block a>.txt {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		width: 100%;
	}

	.link_block a>.txt>h3 {
		padding: 0;
		margin: 1em 0 0;
		text-align: center;
		font-family: "Noto Serif JP", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
		font-size: 1.3em;
		font-weight: normal;
	}

	.link_block a>.txt>p {
		display: block;
		width: 80%;
		margin: 0px auto;
		text-align: justify;
		text-justify: inter-ideograph;
		font-size: 0.9em;
		justify-content: flex-start;
		line-height: 1.9;
	}

	/* リンク部分のリセット */
	.link_block_a {
		text-decoration: none;
		color: inherit;
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	/*----------------------------------------------------
お知らせ
----------------------------------------------------*/
	.topics {
		margin: 0;
		padding: 5em 0;
	}

	.topics dl {
		width: 992px;
		margin: 4em auto;
		padding: 0 15px;
	}

	#fixed-banner {
		font-size: 1.3em;

	}