/*------------------------------------------------------------------------------
 body
 ------------------------------------------------------------------------------*/
html, body {
	overflow: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	color: #fff;
	background-color: #0b0b0b;
}

/*------------------------------------------------------------------------------
 gallery
 ------------------------------------------------------------------------------*/
.gallery-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

/* カウンター */
#gallery-counter {
	z-index: 9999;
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 5px 10px;
	font-family: sans-serif;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.5px;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 4px;
	pointer-events: none; /* クリック操作を透過 */
}

/* メイン画像スライダー */
#main-slider {
	flex: 1;
	width: 100%;
	min-height: 0; /* Flexboxのバグ防止 */
}
#main-slider .splide__track {
	height: 100% !important;
}
#main-slider .splide__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #000;
}
#main-slider .splide__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain; 
}

/* 左右矢印 */
#main-slider .splide__arrow {
	background: rgba(0, 0, 0, 0.4);
	width: 3em;
	height: 3em;
}
#main-slider .splide__arrow svg {
	fill: #fff;
}

/*------------------------------------------------------------------------------
 テーマ選択カルーセル
 ------------------------------------------------------------------------------*/
.theme-slider-wrapper {
	box-sizing: border-box;
	height: 60px;
	width: 100%;
	background: #161616;
	border-top: 1px solid #2d2d2d;
}
#theme-slider {
	height: 60px !important; /* 高さを強制 */
}
#theme-slider .splide__track {
	height: 60px !important; /* トラックの高さを強制 */
}
#theme-slider .splide__list {
	height: 60px !important;
}
#theme-slider .splide__slide {
	box-sizing: border-box;
	width: 150px !important; /* 固定 */
	height: 60px !important; /* 固定 */
	padding: 0 10px;

	font-weight: bold;
	color: #888;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
	cursor: pointer;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

/* タイトル */
#theme-slider .splide__slide .grav_title {
	width: 100%;
	line-height: 1.25;
	font-size: 10.5px;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
}

/* 枚数 */
#theme-slider .splide__slide .grav_count {
	margin-top: 1px;
	font-size: 9px;
	color: #666;
	white-space: nowrap;
}

/* アクティブ時 */
#theme-slider .splide__slide.is-active {
	color: #fff;
	background: #222;
	border-bottom-color: #007bff;
}
#theme-slider .splide__slide.is-active .grav_title {
	color: #fff;
}
#theme-slider .splide__slide.is-active .grav_count {
	color: #aaa;
}
