

.product {
	display: grid;
}

.title,
.subtitle {
	line-height: 1.2;
}

.subtitle {
	font-size: 1.5rem;
  line-height: 1.5;
}

.lead p {
	line-height: 1.8;
}

.attribute {
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.price .bold {
	font-size: 16px;
	font-weight: bold;
}

.cover {
	position: relative;
	/*aspect-ratio: 1;*/
	margin-bottom: 2rem;
	overflow: hidden;
}

.cover:before {
	position: absolute;
	background-image: linear-gradient(225deg, rgba(255,255,255,0) 0%, rgba(0,0,0,.05) 100%);;
	content: "";
	pointer-events: none;
	z-index: 10;
}

.cover img,
.thumbnail img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .5s;
	width: 100%;
}

.thumbnails {
	overflow-x: auto;
}

.thumbnails .wrapper {
	display: grid;
	gap: .8rem;
	grid-template-rows: 1fr 1fr;
}

.thumbnail {
	aspect-ratio: 1;
	cursor: pointer;
}

.description {
	font-size: 14px;
	line-height: 1.8;
}

.attributes,
.attributes .item {
	display: flex;
	flex-direction: column;
}

.attributes {
	gap: 2.2rem;
}

.attributes .item {
	gap: .5rem;
}

.content .lead {
	margin: 0 0 20px;
}
.content hr {
	background-color: #C3C3C3;
	border: none;
	height: 1px;
	margin-top: 3rem;
	margin-bottom: 3rem;
	width: 100%;
}

.tips {
	font-size: 1.4rem;
	margin-top: 2rem;
	color: #666;
}

/* カート横幅調整 */
.cartjs_product_table table {
  width: 100% !important;
}

.cartjs_option td select {
	height: 40px !important;
}

.cartjs_cart_in input {
	width: 100% !important;
	border-radius: 0px !important;
	background-color: #BD271E !important;
}

.quantity,
.product-option {
	align-items: center;
	display: flex;
	gap: 1.6rem;
	font-size: 1.6rem;
}

.quantity {
	margin-bottom: 1.6rem;
}

.product-option .label {
	flex-shrink: 0;
}

.quantity-input {
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #C3C3C3;
	border-radius: 0;
	height: 4rem;
	opacity: .5;
	outline: none;
	text-align: center;
	width: 8rem;
}

.product-option select {
	border: 1px solid #C3C3C3;
	border-radius: 0;
	height: 4rem;
	opacity: .5;
	outline: none;
	width: 100%;
}

.add-to-cart {
	align-items: center;
	background-color: #BD271E;
	border: none;
	color: white;
	cursor: pointer;
	display: flex;
	font-size: 1.6rem;
	gap: 2.5rem;
	height: 7rem;
	justify-content: center;
	margin-top: 3rem;
	max-width: 100%;
	width: 100%;
}

.media {
	max-width: 100%;
}

.cover {
	user-select: none;
}

.cover-wrapper,
.product-gallery-lightbox-wrapper {
	position: relative;
	/*aspect-ratio: 1;*/
	height: 100%;
	/*overflow: hidden;*/
}

.cover-wrapper .cover-nav,
.product-gallery-lightbox-nav {
	position: absolute;
	top: calc(50% - 15px);
	cursor: pointer;
	height: 30px;
	width: 30px;
	z-index: 10;
}

.cover-wrapper .slick-prev,
.product-gallery-lightbox-nav.__left {
	left: 10px;
}

.cover-wrapper .slick-next,
.product-gallery-lightbox-nav.__right {
	right: 10px;
}

.slick-prev,
.slick-next {
	z-index: 100;
}

.slick-prev,
.slick-next {
	height: 35px;
	width: 35px;
}

.slick-prev:before,
.slick-next:before {
	color: black;
	font-size: 35px;
}

.slick-prev {
	left: 10px;
}

.slick-next {
	right: 10px;
}

.cover-item {
	aspect-ratio: 1;
	cursor: pointer;
}

.cover-item,
.product-gallery-lightbox-item {
	aspect-ratio: 1;
	display: block;
	width: 100%;
}

.product-gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	backdrop-filter: blur(50px);
	background-color: rgb(0,0,0,.5);
	user-select: none;
	z-index: 10000;
}

.product-gallery-lightbox[show] {
	transition: opacity .5s;
}

.product-gallery-lightbox:not([show]) {
	opacity: 0;
	pointer-events: none;
	transition: opacity .5s, visibility 0s .5s, z-index 0s .5s;
	visibility: hidden;
	z-index: -999;
}

.product-gallery-lightbox-wrapper {
	align-items: center;
	display: flex;
	justify-content: center;
	width: 100%;
}

.product-gallery-lightbox-main {
	position: relative;
	aspect-ratio: 1;
	max-height: calc(90%);
	max-width: calc(90%);
	overflow: hidden;
	width: 100%;
}

.product-gallery-lightbox-nav {
	top: calc(50% - 20px);
	height: 40px;
	width: 40px;
}

.product-gallery-lightbox-nav.__left {
	left: 10px;
}

.product-gallery-lightbox-nav.__right {
	right: 10px;
}

.product-gallery-lightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	align-items: center;
	background-color: white;
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	width: 50px;
	z-index: 10;
}

.product-gallery-lightbox-close-icon {
	height: 20px;
	width: 20px;
}

@media (min-width: 768px) {
	.sp-only {
		display: none !important;
	}

	.product {
		gap: 6rem;
		grid-template-columns: 48.64864865% 41.44144144%;
		padding-top: 8.3rem;
	}

	.subtitle {
		margin-bottom: 1.0rem;
	}

	.title {
		font-size: 3rem;
		margin-bottom: 1.5rem;
	}

	.attribute {
		font-size: 20px;
	}

	.price .bold {
    font-size: 18px;
	}

	.description {
		font-size: 15px;
	}

	.cover:before {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.thumbnails .wrapper {
		gap: .8rem;
	}

	.thumbnails .wrapper:not(.__one_row) {
		grid-template-columns: repeat(auto-fill, calc((100% - ((var(--num) - 1) * .8rem)) / var(--num)));
		width: calc(100% / 4 * var(--num));
	}

	.thumbnails .wrapper.__one_row {
		grid-template-columns: repeat(auto-fill, calc((100% - 3 * .8rem) / 4));
		width: 100%;
	}

	.add-to-cart {
		width: 34rem;
	}


	.cartjs_box {
		padding: 0 0 20px !important;
	}

}

@media (max-width: 767px) {
	.pc-only {
		display: none !important;
	}

	.product {
		gap: 2rem;
		padding-top: 5rem;
	}

	.subtitle {
		margin-bottom: 1.2rem;
	}

	.title {
		font-size: 2.4rem;
	}

	.cover {
		margin-bottom: 2rem;
		/* padding-left: 2rem;
		padding-right: 2rem;
		padding-bottom: 2rem; */
	}

	.cover:before {
		/* top: 2rem;
		left: 2rem;
		right: 2rem;
		bottom: 2rem; */
	}

	.thumbnails {
		margin-bottom: 1rem;
	}

	.thumbnails .wrapper {
		gap: .5rem;
	}

	.thumbnails .wrapper:not(.__one_row) {
		grid-template-columns: repeat(auto-fill, calc((100% - ((var(--num) - 1) * .5rem)) / var(--num)));
		width: calc(100% / 4 * var(--num));
	}

	.thumbnails .wrapper.__one_row {
		grid-template-columns: repeat(auto-fill, calc((100% - 3 * .5rem) / 4));
		width: 100%;
	}

	.thumbnail {
		width: 8.6rem;
	}
}
