/* PCでは非表示 */
.p-entry-product-images .splide__pagination {
	display: none !important;
}

/* スマホでは表示 */
@media (max-width: 767px) {
	.p-entry-product-images .splide__pagination {
		display: flex !important;
		justify-content: center;
		margin-top: 12px;
	}
}

/* 画像全体ラッパー */
#js-entry-product-images.p-entry-product-images {
	display: block !important;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* メイン画像側 */
#js-entry-product-images .p-entry-product-images--main {
	display: block !important;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-bottom: 36px !important;
}

/* メイン画像トラック */
#js-entry-product-images .p-entry-product-images--main-track,
#js-entry-product-images .splide__track {
	max-width: 100%;
	overflow: hidden;
}

/* サムネイル全体 */
.my-product-thumbs {
	display: block !important;
	position: relative;
	clear: both;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 8px !important;
	z-index: 2;
	overflow: hidden;
}

/* サムネイルリスト */
.my-product-thumbs__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 0 8px 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

/* 各サムネイル */
.my-product-thumbs__item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

/* サムネイルボタン */
.my-product-thumbs__button {
	display: block;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	padding: 0;
	border: 1px solid #d9d9d9;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	opacity: 0.85;
}

.my-product-thumbs__button:hover {
	opacity: 1;
	border-color: #888;
}

.my-product-thumbs__button.is-active {
	opacity: 1;
	border: 2px solid #111;
}

/* サムネイル画像 */
.my-product-thumbs__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

/* スクロールバー */
.my-product-thumbs__list::-webkit-scrollbar {
	height: 6px;
}

.my-product-thumbs__list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 999px;
}

/* Flexレイアウト崩れ対策 */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.p-entry-product-images {
	min-width: 0;
}

/* スマホ */
@media (max-width: 767px) {
	#js-entry-product-images .p-entry-product-images--main {
		margin-bottom: 24px !important;
	}

	.my-product-thumbs {
		margin-top: 6px !important;
	}

	.my-product-thumbs__list {
		gap: 8px;
		padding-bottom: 8px;
	}

	.my-product-thumbs__button {
		width: 60px;
		height: 60px;
		flex: 0 0 60px;
	}
}

@media (max-width: 767px) {
	.my-product-thumbs {
		display: none !important;
	}
}

@media (max-width: 767px) {

	.splide__pagination__page {
		width: 6px;
		height: 6px;
		background: #ccc;
		opacity: 1;
		margin: 0 4px;
	}

	.splide__pagination__page.is-active {
		background: #111;
		transform: scale(1.2);
	}
}


/* 自前矢印 */
#js-entry-product-images-slider {
	position: relative;
}

.my-product-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	z-index: 30;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	padding: 0;
}

.my-product-arrow--prev {
	left: 12px;
}

.my-product-arrow--next {
	right: 12px;
}

.my-product-arrow:hover {
	background: #fff;
	border-color: #999;
}

@media (max-width: 767px) {
	.my-product-arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.my-product-arrow--prev {
		left: 8px;
	}

	.my-product-arrow--next {
		right: 8px;
	}
}

.my-product-arrow {
	transition: opacity 0.2s ease;
}
@media (max-width: 767px) {
	.my-product-arrow {
		display: none !important;
	}
}