/* 物件スライダー フロント表示
   既存メイン画像の推奨サイズ 760×590 に合わせた比率。
   レイアウトは手組み・フォントサイズはem指定（篠原流ルール準拠） */

.yell-slider {
	width: 100%;
}

/* メイン表示部 */
.yell-slider__main {
	position: relative;
	overflow: hidden;
}
.yell-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.35s ease;
}
.yell-slider__slide {
	flex: 0 0 100%;
	margin: 0;
}
.yell-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 760 / 590; /* 縦横比を固定して切り替え時のガタつきを防ぐ */
	object-fit: cover;
}
.yell-slider__slide a {
	display: block;
}

/* 前後矢印 */
.yell-slider__arrow {
	position: absolute;
	top: 50%;
	margin-top: -1.4em;
	width: 2.8em;
	height: 2.8em;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	z-index: 2;
}
.yell-slider__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.7em;
	height: 0.7em;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}
.yell-slider__arrow--prev {
	left: 0.6em;
}
.yell-slider__arrow--prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}
.yell-slider__arrow--next {
	right: 0.6em;
}
.yell-slider__arrow--next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}
.yell-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* 枚数カウンター */
.yell-slider__counter {
	position: absolute;
	right: 0.6em;
	bottom: 0.5em;
	margin: 0;
	padding: 0.2em 0.7em;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 0.8em;
	border-radius: 1em;
	z-index: 2;
}

/* サムネイル一覧 */
.yell-slider__thumbs {
	display: flex;
	gap: 4px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.yell-slider__thumb {
	flex: 0 0 auto;
	width: 76px;
	margin: 0;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}
.yell-slider__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 76 / 59;
	object-fit: cover;
}
.yell-slider__thumb:hover,
.yell-slider__thumb.is-active {
	opacity: 1;
}
.yell-slider__thumb.is-active {
	outline: 2px solid #333;
	outline-offset: -2px;
}
