@charset "utf-8";

/* スライドショー */
#top_photo_wrap {
	overflow: hidden;
	width: 100%;
}

#top_photo {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

#top_photo_list {
	position: relative;
}

#top_photo_list .photo img {
	width: 100%;
	height: auto;
	vertical-align: top;
}

#top_photo_list .photo a {
	display: block;
	color: inherit;
	text-decoration: none;
}

#top_photo_list .photo span.photo_caption {
	display:none;
	background: #333333;
	color: #ffffff;
	padding: 5px 20px;
}

#top_photo_list .photo span.photo_caption:empty {
	padding: 0px;
}

#top_photo_list .photo span.photo_caption span {
	color: inherit !important;
}

/* ✅ コントロールボックス（前へ・停止/再生・次へを横並び） */
#top_photo_list .slide_control_box1 {
	position: absolute;
	bottom: 35px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

/* ✅ 前へ・次へボタン（色変更） */
#top_photo_list :is(button.slide_control_prev, button.slide_control_next) {
	position: relative;
	width: 20px;
	height: 20px;
	border: 1px solid #fbdc3e;
	background-color: #fbdc3e;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#top_photo_list :is(button.slide_control_prev, button.slide_control_next):hover {
	transform: scale(1.15);
}

#top_photo_list :where(button.slide_control_prev, button.slide_control_next)::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
}

#top_photo_list button.slide_control_prev::before {
	border-width: 4px 6px 4px 0;
	border-color: transparent #fbdc3e transparent transparent;  /* ✅ #fff → #fbdc3e */
	margin-right: 1px;
}

#top_photo_list button.slide_control_next::before {
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent #fbdc3e;  /* ✅ #fff → #fbdc3e */
	margin-left: 1px;
}

/* ✅ 停止/再生ボタン（色変更） */
#top_photo_list button.slide_control_stop,
#top_photo_list button.slide_control_play {
	position: relative;
	width: 20px;
	height: 20px;
	border: 1px solid #fbdc3e;
	background-color: #fbdc3e;
	color: #000;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	padding: 0;
}

#top_photo_list button.slide_control_stop:hover,
#top_photo_list button.slide_control_play:hover {
	transform: scale(1.15);
}

#top_photo_list button.slide_control_stop::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	background: #fbdc3e;  /* ✅ #fff → #fbdc3e */
}

#top_photo_list button.slide_control_play::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent #fbdc3e;  /* ✅ #fff → #fbdc3e */
	margin-left: 1px;
}

/* ✅ ページネーション（色変更） */
#top_photo_list .slide_pagination {
	position: absolute;
	bottom: 20px;
	z-index: 2;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
}

#top_photo_list .slide_pagination .swiper-pagination-bullet {
	width: 40px;
	height: 4px;
	margin: 0px;
	background: #fff;  /* ✅ 開いていないページは白 */
	opacity: 1;
	border-radius: 2px;
	transition: all 0.3s ease;
	cursor: pointer;
}

#top_photo_list .slide_pagination .swiper-pagination-bullet-active {
	background: #fbdc3e;  /* ✅ 開いているページは黄色 */
	height: 5px;
}

#top_photo_list .slide_pagination .swiper-pagination-bullet:hover {
	background: rgba(251, 220, 62, 0.8);  /* ✅ ホバー時は黄色の半透明 */
}

/* 広告スライド */
div#top_banner_2_list2 .swiper-wrapper {
	width: 100%;
	height: 300px;
}

:where(#top_banner_2_list, #top_banner_2_list2) .slide_control_box1 {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 5px;
}

:where(#top_banner_2_list, #top_banner_2_list2) .slide_control_box1 button {
	width: auto;
	height: 30px;
	border: none;
}

:where(#top_banner_2_list, #top_banner_2_list2) .slide_control_box1 button.is-active {
	display: none;
}

:where(#top_banner_2_list, #top_banner_2_list2) .slide_control_box1 .slide_pagination {
	margin-left: auto;
	margin-right: 0px;
	width: fit-content;
}

/* ==================================================
スマートフォン
================================================== */
@media screen and (max-width: 1080px) {
	/* スライドショー */
	#top_photo {
		width: 100%;
		margin: 15px 0 0;
		padding: 0 ;
	}
	
	/* スマホではコントロールボックスの位置を調整 */
	#top_photo_list .slide_control_box1 {
position:relative;
		bottom: 0;
		gap: 12px; 
	}
	
	/* スマホでもボタンサイズは同じ20px */
	#top_photo_list :is(button.slide_control_prev, button.slide_control_next) {
		width: 20px;
		height: 20px;
	}
	
	#top_photo_list button.slide_control_stop,
	#top_photo_list button.slide_control_play {
		width: 20px;
		height: 20px;
	}
	
	/* ページネーションの位置調整 */
	#top_photo_list .slide_pagination {
		bottom: 25px;
		gap: 6px;
	}
	
	#top_photo_list .slide_pagination .swiper-pagination-bullet {
		width: 30px;
		height: 3px;
	}
	
	#top_photo_list .slide_pagination .swiper-pagination-bullet-active {
		height: 4px;border:1px #000000 solid;
	}
}
/* ==================================================
スマートフォン ここまで
================================================== */