/* カルーセル（Slick）とキャプションのスタイル */

/* カルーセルコンテナ */
.customstyle-carousel {
	margin: 30px 0;
	position: relative;
}

/* カルーセル内のfigure要素 */
.customstyle-carousel figure {
	margin: 0;
	padding: 0;
	text-align: center;
	outline: none;
}

/* Slickスライド */
.customstyle-carousel .slick-slide {
	outline: none;
}

.customstyle-carousel .slick-slide figure {
	margin: 0;
	padding: 0;
}

/* カルーセル内の画像 */
.customstyle-carousel figure img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* カルーセル内のキャプション */
.customstyle-carousel figcaption {
	font-size: 12px;
	color: #666;
	text-align: center;
	padding: 10px 20px;
	background-color: #f9f9f9;
	margin: 0;
	line-height: 1.6;
	min-height: 40px;
}

/* Slickの矢印ボタンの位置調整（キャプションがある場合） */
.customstyle-carousel .slick-prev,
.customstyle-carousel .slick-next {
	z-index: 100;
}

.customstyle-carousel .slick-prev {
	left: 10px;
}

.customstyle-carousel .slick-next {
	right: 10px;
}

/* Slickのドット（ページネーション）の位置調整 */
.customstyle-carousel .slick-dots {
	bottom: -30px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	.customstyle-carousel figcaption {
		font-size: 11px;
		padding: 8px 15px;
		min-height: 35px;
	}

	.customstyle-carousel .slick-prev {
		left: 5px;
	}

	.customstyle-carousel .slick-next {
		right: 5px;
	}
}
