/* style.css */
@charset;
.hero__wrapper {
	background-color: var(--main);
	position: relative;
	margin-block-start: 70px;
}
.hero {
	width: 86%;
	width: 100%;
	height: calc(100svh - 110px);
	z-index: 0;

	margin-inline: auto;
}
.hero::after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background: var(--dark);
	position: absolute;
	opacity: 0.1;
	top: 0;
	left: 0;
	z-index: 1;
}

.hero__logo {
	position: absolute;
	width: 90%;
	height: auto;
	top: 50%;
	left: 0;
	translate: 0% -50%;
	rotate: -3deg;
	z-index: 9996;
	pointer-events: none;
}
.hero__copy {
	position: absolute;
	width: 3%;
	height: auto;
	top: 50%;
	right: 2%;
	translate: 0% -50%;
	z-index: 9996;
}
.hero-next-event {
	width: 40%;
	max-width: 300px;
	position: absolute;
	bottom: -2%;
	right: 1%;
	z-index: 9996;
}
.hero-next-event a {
	text-decoration: none;
	color: white;
}
.hero-next-event__inner {
	background: var(--blue);
	border-radius: 999px;
	aspect-ratio: 1;
	width: 100%;
	height: 100%;
	text-align: center;
	display: grid;
	align-content: center;
	rotate: 0deg;
	transition: 0.3s;
	opacity: 0.9;
}
.hero-next-event__inner:hover {
	rotate: 3deg;
	opacity: 1;
}
.hero-next-event__desc {
	font-size: clamp(1.3rem, calc((100vw - 390px) * 0.013 + 1.3rem), 1.8rem);
	margin-bottom: 0.5em;
}
.hero-next-event__date {
	font-family: var(--en-font);
}
.hero-next-event__year {
	display: block;
	line-height: 1;
	margin-bottom: 0.2em;
	font-size: clamp(1.5rem, calc((100vw - 768px) * 0.03 + 1.5rem), 3rem);
}
.hero-next-event__month {
	font-size: clamp(3rem, calc((100vw - 390px) * 0.132 + 3rem), 8rem);
	line-height: 1;
}
.hero-next-event__month::after {
	content: '/';
}
.hero-next-event__day {
	font-size: clamp(3rem, calc((100vw - 390px) * 0.132 + 3rem), 8rem);
	line-height: 1;
}
.hero-next-event__sup {
	font-size: clamp(1.3rem, calc((100vw - 390px) * 0.013 + 1.3rem), 1.8rem);
	font-weight: 500;
}
.hero-next-event__person {
	position: absolute;
	width: auto;
	height: 90%;
	transform: translate(-60%, 5%);
	left: 0;
	bottom: 0;
}

@media screen and (min-width: 768px) {
	.hero__wrapper {
		margin-block-start: 110px;
	}
	.hero {
		width: 94%;
		width: 100%;
		height: max(560px, calc(100vh - 180px));
		max-height: 900px;
	}
	.hero__logo {
		position: absolute;
		width: 60%;
		min-width: 600px;
		height: auto;
		top: 50%;
		left: 2%;
		translate: 0% -50%;
		rotate: -3deg;
		z-index: 9996;
	}
	.hero__copy {
		position: absolute;
		width: 3%;
		height: auto;
		max-height: 540px;
		top: 50%;
		right: 0%;
		translate: 0% -50%;
		z-index: 9996;
	}
}
@media screen and (max-height: 500px) and (orientation: landscape) {
	.hero {
		width: 90%;
		min-height: 700px;
	}
	.hero__logo {
		width: 50%;
		min-width: auto;
	}
	.hero__copy {
		width: 2%;
		max-height: 340px;
	}
	.hero-next-event {
		width: 40%;
		max-width: 240px;
	}
}

.vegas-overlay,
.vegas-slide {
	z-index: 1;
}

.telop {
	background: var(--main);
	height: 40px;
	color: #fff;
	font-family: var(--en-font);
	text-transform: uppercase;
	font-size: 30px;
	line-height: 40px;
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
}
.telop a {
	color: white;
	transition: 0.3s;
	text-align: right;
}
.telop a:hover {
	color: #0058ff;
	font-size: 40px;
}
.telop__inner {
	display: inline-block;
	/* コンテンツが2倍になるので、translateXは-50%でOK */
	animation: marquee 10s linear infinite;
	width: 100%;
}

.telop__inner span {
	display: inline-block;
	padding-right: 2rem; /* 少しだけ余白をつける */
}

@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-100%);
	}
}
@media screen and (min-width: 768px) {
	.telop {
		height: 70px;
		line-height: 70px;
	}
}

.evacuation {
	margin: 0 auto;
	text-align: center;
}
.evacuation p {
	display: inline-block;
}

.concept {
	background-color: var(--main);
	height: 100%;
}
.concept__inner {
	position: relative;
	width: 100%;
	height: auto;
	display: grid;
	align-content: center;
	justify-content: center;
	gap: 60px;
	padding-block: 80px;
}
.concept__logo {
	position: relative;
	width: 80%;
	margin: 0 auto;
}
.concept__text {
	position: relative;
	top: 0%;
	width: 100%;
	color: #fff;
	margin-left: auto;
	margin-right: auto;
	line-height: 2.7;
	font-size: 1.4rem;

	font-weight: 600;
}
@media screen and (min-width: 768px) {
	.concept {
		height: 100%;
		min-height: 100svh;
	}
	.concept__inner {
		position: relative;
		width: 80%;
		height: 100%;
		display: grid;
		align-content: center;
		justify-content: center;
		padding-block: 0;
		gap: 0;
	}
	.concept__logo {
		position: relative;
		width: 80%;
		top: 10%;
		left: -5%;
		margin: 0;
	}
	.concept__text {
		position: relative;
		width: 60%;
		color: #fff;
		margin-left: auto;
		margin-right: 0;
		font-size: 1.8rem;
	}
}
@media screen and (max-height: 500px) and (orientation: landscape) {
	.concept {
		min-height: 0;
		height: 100%;
		padding-block: 0;
	}
}

/* ニュースエリア */
/* -----------------重要なのお知らせエリア----------------- */
.important-news .news__item {
	display: grid;
	gap: 1em;
	grid-template-columns: auto 1fr;
}
.important-news .news__cate {
	display: none;
}
.important-news .news__date {
	font-weight: 600;
}
/* -----------------通常のお知らせエリア----------------- */

.school-news__header {
}
.school-news__btns {
}
.school-news {
}

.school-news .news__item {
	border-bottom: 1px solid var(--black);
	padding-bottom: 16px;
	margin-bottom: 16px;
}
.school-news .news__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}
.school-news .news__date {
	font-family: var(--en-font);
	font-style: italic;
	font-size: 1.3em;
	color: var(--black);
}
.school-news .news__cate {
	background: var(--accent);
	font-size: 11px;
	padding: 2px 8px;
	color: var(--white);
	border-radius: 20px;
	position: relative;
	bottom: -1px;
}
/* 校長ブログ → 赤系 */
.school-news .news__cate--prinNewsFeed {
	background-color: var(--accent); /* 入れ替え後の通常色 */
	color: #fff;
}

/* 修学旅行 → 緑系 */
.school-news .news__cate--tripNewsFeed {
	background-color: #2fa553; /* 入れ替え後の通常色 */
	color: #fff;
}

.school-news .news__discription a {
	color: var(--text-light);
	display: block;
	text-decoration: none;
}
.school-news .news__discription a:hover {
	text-decoration: underline;
}

.news-area {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.news-area__body {
	width: 100%;
	padding: 0.5em 1em;
	border-radius: 8px;
	margin-inline: auto;
	background-color: #d0f2d3;
}
.news-area__img {
	aspect-ratio: 16 / 9;
	width: auto;
	height: auto;
	overflow: hidden;
	margin-inline: calc(50% - 50vw);
}
.news-area__img img {
	object-fit: cover;
}

@media screen and (min-width: 768px) {
	.news-area {
		display: block;
		flex-direction: row;
		gap: 40px;
		align-items: flex-end;
		width: 100%;
		position: relative;
	}
	.news-area__body {
		width: 80%;
		margin-inline: auto;
		padding: 6rem;
		border-radius: 100px;
		background-color: #d0f2d3;
	}
	.news-area__img {
		width: 35%;
		aspect-ratio: 3 / 4;
		border-radius: 999px 999px 0 0;
		height: auto;
		overflow: hidden;
		margin-inline: 0;
		position: absolute;
		top: 50%;
		transform: translateY(-20%);
		right: 0;
		z-index: 1;
	}
	.news-area__img img {
		object-fit: cover;
	}
}
.blog-news__wrapper {
	/* width: 100vw; */
	/* max-width: 100vw; */
	/* margin-left: calc(50% - 50vw); */
	/* margin-right: calc(50% - 50vw); */
}
.blog-news {
	display: grid;
	gap: 20px;
}
.blog-news__blogbtns {
	display: flex;
	gap: 1.4rem;
}
.blog-news__blogbtns .btn {
	min-height: auto;
}
.blog-news__blogbtns .btn a {
	padding: 1em;
	font-size: 0.9em;
	color: #fff;
}
.blog-news__blogbtns .btn {
	color: #fff; /* 文字色は全て白 */
	transition: background-color 0.25s ease; /* スムーズな色変化 */
}
/* 校長ブログ → 赤系 */
.blog-news__blogbtns .btn.--prinNewsFeed {
	background-color: var(--accent); /* ← 元hoverを通常に */
	color: #fff;
}
.blog-news__blogbtns .btn.--prinNewsFeed:hover {
	background-color: #e26b6b; /* ← 元通常をhoverに */
}

/* クラブ活動 → 緑系 */
.blog-news__blogbtns .btn.--tripNewsFeed {
	background-color: #2fa553; /* ← 元hoverを通常に */
	color: #fff;
}
.blog-news__blogbtns .btn.--tripNewsFeed:hover {
	background-color: #49d06e; /* ← 元通常をhoverに */
}

.blog-news__body {
	max-height: 400px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--main) transparent;
}
.blog-news__body::-webkt-scrollbar {
	width: 6px;
}
.blog-news__body::-webkit-scrollbar-track {
	background: transparent;
}
.blog-news__body::-webkit-scrollbar-thumb {
	background-color: var(--main);
	border: 2px solid transparent;
	background-clip: content-box;
}
.blog-news__body::-webkit-scrollbar-thumb:hover {
	background-color: var(--dark);
}

@media screen and (min-width: 768px) {
	.blog-news {
		display: grid;
		grid-template-columns: 250px 1fr;
		grid-template-rows: 1fr 1fr;
		grid-template-areas:
			'title feed'
			'btn feed';
		gap: 40px 80px;
	}
	.blog-news__title {
		grid-area: title;
		align-self: end;
	}
	.blog-news__body {
		grid-area: feed;
	}
	.blog-news__blogbtns {
		grid-area: btn;
	}
	.blog-news__blogbtns .btn a {
		padding: 0.5em;
		font-size: 0.9em;
	}
}

#home .open-school__wrapper {
	display: flex;
	flex-direction: column;
	/* align-items: center; */
}
#home .open-school__body {
	background-color: var(--blue);
	padding-block: 120px;
	padding-inline: 4%;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
}
.open-school__img {
	background-color: silver;
	background-image: url(./img/about/about-01@2200w.webp);
	background-size: cover;
	background-position: center;
	width: 100%;
	height: auto;
	position: relative;
	aspect-ratio: 1;
}

.person3 {
	display: block;
	width: clamp(90px, calc((100vw - 768px) * 2.033 + 90px), 190px);
	height: auto;
	position: absolute;
	bottom: -20px;
	right: 10px;
	pointer-events: none;
	z-index: 1;
}
.person4 {
	display: block;
	width: clamp(75px, calc((100vw - 768px) * 1.524 + 75px), 150px);
	height: auto;
	position: absolute;
	bottom: -20px;
	left: 20px;
	pointer-events: none;
	z-index: 1;
}

@media screen and (min-width: 768px) {
	#home .open-school__wrapper {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		height: min(80svh, 720px);
	}
	#home .open-school__body {
		padding-inline: 4%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 40px;
	}
	.open-school__img {
		width: 100%;
		height: auto;
		position: relative;
		aspect-ratio: auto;
	}
	.person3 {
		display: block;

		height: auto;
		position: absolute;
		bottom: -50px;
		right: 10px;
		pointer-events: none;
	}
	.person4 {
		display: block;
		height: auto;
		position: absolute;
		bottom: -50px;
		left: 50px;
		pointer-events: none;
	}
}

@media screen and (max-height: 500px) and (orientation: landscape) {
	#home .open-school__wrapper {
		min-height: 800px;
	}
}

#home .access__wrapper {
}

#home .access-gmap iframe {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
}
#home .accsess-info {
	padding: 80px 40px;
	color: #fff;
	position: relative;
}

@media screen and (min-width: 768px) {
	#home .access__wrapper {
		height: min(80svh, 720px);
		align-items: stretch;
	}
	#home .access-gmap {
		position: relative;
		flex: 1;
	}
	#home .access-gmap iframe {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		position: absolute;
		inset: 0;
	}

	#home .accsess-info {
		padding: 0 40px;
		text-align: center;
		flex: 0.9;
		min-width: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}
