/* ----------------------------------------------
  メインビジュアル全体設定
---------------------------------------------- */
#main-visual {
	display: flex;
	width: 100%;
	margin-bottom: 5rem;
	position: relative;
}

@media screen and (max-width: 768px) {
	#main-visual {
		margin-bottom: 2rem;
	}
}
/* メインビジュアル内の画像エリア */
#main-img-wrap {
	width: 90%;
}
/* スライド用のラッパー */
.bg-slide {
	position: relative;
	width: 100%;
	height: 780px;
	overflow: hidden;
}
/* スライドする各画像 */
.bg-slide img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 780px;
	object-fit: cover;
	border-top-left-radius: 10rem;
	opacity: 0;
	transition: opacity 1s ease;
}
/* 表示中のスライド画像 */
.bg-slide img.active {
	opacity: 1;
	z-index: 2;
}
/* ----------------------------------------------
  メインビジュアル内：テキストエリア（縦書き→横書き）
---------------------------------------------- */
#main-text {
	width: 10%;
	padding: 5% 5% 0 10%;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: clamp(1rem, 1.5vh, 4rem);
	line-height: 1.6;
	letter-spacing: 0.3rem;
	color: #d06b54;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
body.loaded #main-text {
	opacity: 1;
	transform: translateY(0);
}
/* ----------------------------------------------
  メインビジュアル内：最新情報のお知らせボックス
---------------------------------------------- */
.news-overlay {
	position: absolute;
	bottom: 50px;
	right: 10px;
	background: rgba(255, 255, 255, 0.9);
	padding: 1rem 2rem;
	font-size: 0.9rem;
	border-radius: 2px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
	z-index: 10;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.news-overlay p {
	margin: 0;
}
body.loaded .news-overlay {
	opacity: 1;
	transform: translateY(0);
}
.news-text .label {
	display: inline;
}
/* ----------------------------------------------
  スマホ表示対応（max-width: 768px）
---------------------------------------------- */
@media screen and (max-width: 768px) {
	#main-visual {
		flex-direction: column;
		align-items: center;
		height: auto;
		position: relative;
	}
	#main-img-wrap {
		width: 100%;
		aspect-ratio: 1 / 1;
		height: auto;
	}
	.bg-slide {
		width: 100%;
		height: 100%;
		position: relative;
		overflow: hidden; /* ← はみ出た画像をカット */
	}
	.bg-slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
		position: absolute;
		top: 0;
		left: 0;
		border-top-left-radius: 0;
	}
	#main-text {
		width: 100%;
		height: 5rem;
		padding: 1rem;
		margin-bottom: 1rem;
		writing-mode: horizontal-tb;
		text-orientation: initial;
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: center;
		transform: translateY(0);
	}
	#main-text h1 {
		font-size: clamp(1rem, 0.7vw, 5rem);
		letter-spacing: 0.1rem;
	}
	.news-overlay {
		position: static; /* ← 絶対配置やめる！ */
		margin-top: 1rem;
		transform: none; /* アニメーション効果も無効化（必要なら） */
		opacity: 1;       /* モバイルでは最初から表示してOKならこれ */
		font-size: 0.8rem;
		box-shadow: none;
	}
	.news-text .label {
		display: block;
	}
}