/* ==================================================
	通常製品ページ
================================================== */

/* ----------------------------------------
	レイアウト調整
---------------------------------------- */

@media screen and (max-width: 767px) {
	.product_main_v2 .product_detail {
		padding-top: 0;
	}
	.product_main_v2 .product_main_slider {
		width: 100vw;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}
	.product_main_v2 .product_main_slider + div {
		padding-top: 20px;
	}
}

@media screen and (min-width: 768px) {
	.product_main_v2 .product_main_inner {
		display: block;
	}
	.product_main_v2 .product_detail {
		display: flex;
		justify-content: space-between;
		width: 100%;
		padding-top: 0;
	}
	.product_main_v2 .product_detail > div {
		width: 49%;
	}
	.product_main_v2 .product_main_slider + div {
		padding-top: 30px;
	}
}

@media screen and (min-width: 1024px) {
	.product_main_v2 .product_detail > div {
		width: 480px;
	}
	.product_main_v2 .product_main_slider + div {
		padding-top: 50px;
	}
}



/* ----------------------------------------
	product_gallery_v2--product_main
---------------------------------------- */

.product_gallery_v2--product_main img {
	height: auto;
}





/* ==================================================
	特殊製品ページ
================================================== */

/* ----------------------------------------
	レイアウト調整
---------------------------------------- */

@media screen and (min-width: 1024px) {
	#for_product_gallery_v2 {
		height: 510px;
	}
	#for_product_gallery_v2 .main_comments {
		left: auto;
		right: 0;
	}
}



/* ----------------------------------------
	main_product_img_slider
---------------------------------------- */

.main_product_img_slider {
	display: none;
	margin: 0 -2px;
}
.main_product_img_slider.slick-initialized {
	display: block;
}
* + .main_product_img_slider {
	margin-top: 15px;
}
.main_product_img_slider .slick-slide {
	padding: 0 2px;
}
.main_product_img_slider a {
	display: block;
}
.main_product_img_slider img {
	padding: 5px;
	background: #fff;
}

@media screen and (min-width: 1024px) {
	.main_product_img {
		width: 561px;
	}
}



/* ----------------------------------------
	main_product_img
---------------------------------------- */

.main_product_img img {
	height: auto;
}





/* ==================================================
	modal : product_gallery_v2
================================================== */

.product_gallery_v2 {
	overflow: hidden;
	position: fixed;
	top: 0;
	left: 0;
	transform: translateY(-100%);
	opacity: 0;
	z-index: 999;
	width: 100%;
	height: 100dvh;
	background: #fff;
}
.product_gallery_v2.product_gallery_v2--show {
	transform: none;
	opacity: 1;
}
.product_gallery_v2--container {
	overflow-y: auto;
	height: 100%;
}

@media screen and (min-width: 1024px) {
	.product_gallery_v2--content {
		display: grid;
		grid-template-columns: calc(100vw - 314px) 314px;
	}
}



/* ----------------------------------------
	close
---------------------------------------- */

.product_gallery_v2--close {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	width: 32px;
	height: 32px;
	border: 1px solid #2c3038;
	border-radius: 50%;
}
.product_gallery_v2--close::after {
	content: "";
	width: 16px;
	height: 16px;
	background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m9.41 8 4.29-4.29a1 1 0 0 0-1.41-1.41L8 6.59 3.71 2.3A1 1 0 0 0 2.3 3.71L6.59 8 2.3 12.29a1 1 0 0 0 0 1.41 1 1 0 0 0 .7.3 1 1 0 0 0 .7-.29L8 9.41l4.29 4.29a1 1 0 0 0 .71.3 1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.41Z"></path></svg>');
}



/* ----------------------------------------
	right
---------------------------------------- */

@media screen and (max-width: 1023px) {
	.product_gallery_v2--name,
	.product_gallery_v2--price {
		display: none;
	}
}

@media screen and (min-width: 1024px) {
	.product_gallery_v2--right {
		padding: 60px 28px 28px;
		text-align: left;
	}
	.product_gallery_v2--name {
		font-size: 20px;
		line-height: 1.2;
	}
	.product_gallery_v2--price {
		margin-top: 5px;
	}
	#product_gallery_v2 .product_gallery_v2--price .price {
		margin-top: 0;
		color: #d7410b;
	}
	#product_gallery_v2 .product_gallery_v2--price .price::before {
		content: none;
	}
}



/* ----------------------------------------
	bxSlider - main
---------------------------------------- */

.product_gallery_v2 .bx-wrapper {
	margin: 0;
	border: none;
	box-shadow: none;
}
.product_gallery_v2--left .bx-viewport {
	height: 100% !important;
}
.product_gallery_v2--left .bx-wrapper .bx-controls-direction a {
	display: flex !important;
	justify-content: center;
	align-items: center;
	top: auto;
	bottom: 10px;
	width: 56px;
	height: 56px;
	font-size: 0;
	background: #f4f4f4;
}
.product_gallery_v2--left .bx-wrapper .bx-prev {
	left: 50%;
}
.product_gallery_v2--left .bx-wrapper .bx-next {
	right: calc(50% - 112px);
}
.product_gallery_v2--left .bx-wrapper .bx-prev::before,
.product_gallery_v2--left .bx-wrapper .bx-next::before {
	content: "";
	transition: .2s;
	width: 20px;
	height: 20px;
}
.product_gallery_v2--left .bx-wrapper .bx-prev:hover::before,
.product_gallery_v2--left .bx-wrapper .bx-next:hover::before {
	transform: scale(1.7);
}
.product_gallery_v2--left .bx-wrapper .bx-prev::before {
	background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.5 16a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L8.91 10l4.3-4.29a1 1 0 1 0-1.42-1.42l-5 5a1 1 0 0 0 0 1.42l5 5a1 1 0 0 0 .71.29"></path></svg>');
}
.product_gallery_v2--left .bx-wrapper .bx-next::before {
	background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.5 16a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42l4.3-4.29-4.3-4.29a1 1 0 1 1 1.42-1.42l5 5a1 1 0 0 1 0 1.42l-5 5a1 1 0 0 1-.71.29"></path></svg>');
}



/* ----------------------------------------
	bxSlider - thumb
---------------------------------------- */

.product_gallery_v2--thumb a {
	transition: .25s;
	opacity: .3;
	border: 1px solid #ccc;
}
.product_gallery_v2--thumb a img {
	width: 100%;
	height: auto;
}
.product_gallery_v2--thumb a.active,
.product_gallery_v2--thumb a:hover img {
	opacity: 1;
}

@media screen and (max-width: 1023px) {
	.product_gallery_v2--thumb {
		overflow-x: scroll;
		display: flex;
		gap: 10px;
		-webkit-overflow-scrolling: touch;
		padding: 10px;
	}
	.product_gallery_v2--thumb a {
		display: flex;
		align-items: center;
		width: 100px;
		height: 90px;
		padding: 5px;
	}
}

@media screen and (min-width: 1024px) {
	.product_gallery_v2--thumb {
		overflow-y: auto;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin-top: 20px;
	}
	.product_gallery_v2--thumb a {
		display: block;
		padding: 10px 5px;
	}

	/* scrollbar -------------------- */
	.product_gallery_v2--thumb::-webkit-scrollbar {
		width: 14px;
	}
	.product_gallery_v2--thumb::-webkit-scrollbar-thumb {
		cursor: pointer;
		background: #ddd;
		background-clip: padding-box;
		border-right: 4px solid transparent;
		border-left: 4px solid transparent;
		border-radius: 6px;
	}
	.product_gallery_v2--thumb::-webkit-scrollbar-track {
		margin: 2px 4px;
		background: transparent;
	}
	/* Firefox */
	@-moz-document url-prefix() {
		.product_gallery_v2--thumb {
			scrollbar-color: #ddd transparent;
		}
	}
}



/* ----------------------------------------
	Zoomer
---------------------------------------- */

.product_gallery_v2 .zoomer {
	height: calc(100dvh - 110px);
	background: none;
}
.product_gallery_v2 .zoomer .zoomer-holder {
	box-shadow: none;
}
.product_gallery_v2 .zoomer .zoomer-controls-bottom {
	left: calc(50% - 112px);
	margin: 0;
}
.product_gallery_v2 .zoomer .zoomer-controls {
	width: calc(56px * 4);
	padding: 0;
	background: #f4f4f4;
	border-radius: 0;
	box-shadow: none;
}
.product_gallery_v2 .zoomer .zoomer-controls [class^="zoomer-zoom-"] {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 56px;
	height: 56px;
	font-size: 0;
	border-radius: 0;
}
.product_gallery_v2 .zoomer .zoomer-controls [class^="zoomer-zoom-"]::after {
	content: "";
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 40px 40px;
}
.product_gallery_v2 .zoomer .zoomer-controls .zoomer-zoom-out::after {
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="m32.71 31.29-8-8a10 10 0 1 0-1.42 1.42l8 8a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42M9 17a8 8 0 1 1 8 8 8 8 0 0 1-8-8m13 1H12a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2"></path></svg>');
}
.product_gallery_v2 .zoomer .zoomer-controls .zoomer-zoom-in::after {
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="m32.71 31.29-8-8a10 10 0 1 0-1.42 1.42l8 8a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42M9 17a8 8 0 1 1 8 8 8 8 0 0 1-8-8m14 0a1 1 0 0 1-1 1h-4v4a1 1 0 0 1-2 0v-4h-4a1 1 0 0 1 0-2h4v-4a1 1 0 0 1 2 0v4h4a1 1 0 0 1 1 1"></path></svg>');
}
.product_gallery_v2 .zoomer .zoomer-controls span:hover {
	background: #e2e2e2;
}

@media screen and (min-width: 1024px) {
	.product_gallery_v2 .zoomer {
		height: 100vh;
	}
}
