@charset "utf-8";
/* style_slideshow.css */

/* スライドショー設定 */
.slideshow-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}

.slideshow-viewport {
	position: relative;
	width: 100%;
	/* 高さは設定フラグで制御 */
}

.slideshow-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.slide {
	min-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.slide-image-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f0f0f0;
}

.slide-image {
	display: block;
	max-width: 100%;
	height: auto;
}

/* フルワイドモード時 */
.slideshow-container.fullwidth-mode .slide-image {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* オリジナルサイズモード時 */
.slideshow-container.original-mode .slide-image {
	max-width: 100%;
	height: auto;
}

.slide-caption {
	width: 100%;
	padding: 10px;
	text-align: center;
	background-color: #fff;
	box-sizing: border-box;
}

.slide-caption-title {
	font-weight: bold;
	margin-bottom: 5px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

.slide-caption-text {
	font-size: 0.9em;
	color: #666;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
	/* max-height: 100px; */
	overflow-y: auto;
	text-align: left;
	padding: 5px;
}

/* ナビゲーションドット */
.slideshow-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 15px 0;
	background-color: #fff;
}

.nav-dot {
	font-size: 18px;
	cursor: pointer;
	user-select: none;
	color: #999;
}

.nav-dot:hover {
	color: #333;
}

.nav-dot.active {
	color: #333;
}

/* 前後ボタン */
.slideshow-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-100%);
	background: rgba(0, 0, 0, 0.4);
	color: white;
	border: none;
	border-radius: 25%;
	padding: 15px 10px;
	cursor: pointer;
	font-size: 18px;
	z-index: 10;
}

.slideshow-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.slideshow-btn.prev {
	left: 10px;
}

.slideshow-btn.next {
	right: 10px;
}

.slideshow-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* 閉じるボタン（下部固定） */
.close-btn-fixed {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #fff;
	padding: 10px;
	text-align: center;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

/* 右上×ボタン */
.close-btn-top {
	position: fixed;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	background-color: rgba(0, 0, 0, 0.4);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}

.close-btn-top:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* スマホ表示時のボタンサイズ拡大 */
@media screen and (max-width: 768px) {
	.close-btn-top {
		width: 60px;
		height: 60px;
		font-size: 36px;
		line-height: 52px;
		top: 15px;
		right: 15px;
	}

	.slideshow-btn {
		padding: 20px 25px 25px 25px;
		font-size: 42px;
	}
}

/* 下部ボタン用の余白 */
body#popBody {
	padding-bottom: 60px;
}
