/* 部分テンプレート(利用規約) */
.term_label {
	font-size: 14px;
	display: -webkit-box;
}
.term_label > a {
	color: #386f81;
}

.modal-open {
	.modal-scrollable {
		position: fixed;
		z-index: 100;
		overflow: hidden;
		height: 100%;
	}
	.modal::before {
		content: "";
		position: fixed;
		inset: 0;
		background: white;
		z-index: -1;
	}
	.modal {
		height: 100%;
		overflow-y: auto;
		margin-top: unset !important;
	}
}

/* ecforce側からAJAXで返されるモーダルのデザイン用CSS(Smartphone) */
@media screen and (max-width: 480px) {
	.modal-scrollable {
		position: fixed;
		top: 0;
	}
	.modal-scrollable .modal {
		padding: 20px 10%;
		overflow-y: scroll;
		max-height: 100vh;
	}
	.modal-scrollable .modal .modal-header {
		text-align: right;
	}
	.modal-scrollable .modal .modal-header .close {
		font-size: 30px;
	}
	.modal-scrollable .modal .modal-title {
		font-size: 18px;
		text-align: center;
		font-weight: bold;
	}
	.modal-scrollable .modal .modal-body {
		margin: 30px 0;
	}
	.modal-scrollable .modal .modal-body p {
		margin: 5px 0;
		font-size: 13px;
	}
	.modal-scrollable .modal .modal-body form {
		margin: 10px 0;
	}
	.modal-scrollable .modal .modal-body form .form-group {
		margin: 15px 0;
	}
	.modal-scrollable .modal .modal-body form label {
		font-size: 15px;
		font-weight: bold;
	}
	.modal-scrollable .modal .modal-body form input {
		border: solid 1px #ddd;
		font-size: 16px;
		width: 100%;
		padding: 10px;
		margin-top: 5px;
	}
	.modal-scrollable .modal .modal-body form a {
		background: #386f81;
		color: #fff;
		padding: 15px;
		width: 100%;
		display: block;
		text-align: center;
	}
	.modal-scrollable .modal .modal-body form a.disabled {
		background: #aaa;
		cursor: default;
	}
}

/* ecforce側からAJAXで返されるモーダルのデザイン用CSS(PC) */
@media screen and (min-width: 480px) {
	.modal-scrollable {
		position: fixed;
		top: 0;
	}
	.modal-scrollable .modal {
		padding: 60px 25%;
	}
	.modal-scrollable .modal .modal-header {
		text-align: right;
	}
	.modal-scrollable .modal .modal-header .close {
		font-size: 30px;
	}
	.modal-scrollable .modal .modal-title {
		font-size: 20px;
		text-align: center;
		font-weight: bold;
	}
	.modal-scrollable .modal .modal-body {
		margin: 30px 0;
	}
	.modal-scrollable .modal .modal-body p {
		margin: 5px 0;
	}
	.modal-scrollable .modal .modal-body form {
		margin: 10px 0;
	}
	.modal-scrollable .modal .modal-body form .form-group {
		margin: 20px 0;
	}
	.modal-scrollable .modal .modal-body form label {
		font-weight: bold;
	}
	.modal-scrollable .modal .modal-body form input {
		border: solid 1px #ddd;
		font-size: 16px;
		width: 100%;
		padding: 10px;
		margin-top: 5px;
	}
	.modal-scrollable .modal .modal-body form a {
		margin-top: 50px;
		background: #386f81;
		color: #fff;
		padding: 15px;
		width: 100%;
	}
	.modal-scrollable .modal .modal-body form a.disabled {
		background: #aaa;
		cursor: default;
	}
}

/* SKU画像項目用(smartphone) */
@media screen and (max-width: 480px) {
	.c-product_img {
		display: block;
	}
	#sub-images-view {
		max-width: 100%;
		display: block;
	}
	.img-wrap {
		width: 100%;
		max-height: 100%;
		align-items: center;
		padding: 0;
		list-style: none;
		display: flex;
	}
	.img-box {
		margin: 2px;
	}
	.img-thumbnail {
		width: 100% !important;
		pointer-events: auto;
	}
	.img-box:hover {
		opacity: 0.8;
	}
	.product-thumbnail {
		max-height: 125px;
		max-width: 125px;
	}
	#main-img {
		height: auto;
		object-fit: contain;
	}
}

/* SKU画像項目用(PC) */
@media screen and (min-width: 480px) {
	.c-product_img {
		display: flex;
		justify-content: space-around;
	}
	#sub-images-view {
		max-width: 15%;
		display: flex;
		flex-direction: column;
	}
	.img-wrap {
		width: 100%;
		max-height: 100%;
		align-items: center;
		padding: 0;
		list-style: none;
	}
	.img-wrap:nth-child(n + 2) {
		display: none;
	}
	.img-box {
		width: 100% !important;
		margin: 2px;
	}
	.img-thumbnail {
		width: 100% !important;
		pointer-events: auto;
	}
	.img-box:hover {
		opacity: 0.8;
	}
	.product-thumbnail {
		max-height: 125px;
		max-width: 125px;
	}
	#main-img {
		width: 70%;
		height: auto;
		object-fit: contain;
	}
}

.recommend_product_padding {
	padding-top: 80px;
	padding-bottom: 100px;
}

/* 商品規格: select -> radio UI */
#product-show-view #option_types .js-option-native-select {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

#product-show-view #option_types .c-option-radio-list {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	overflow-x: scroll 
}
#product-show-view #option_types .c-option-radio--image{
	min-width: 120px;
}

.c-product_info__form__variant.sortable{
	display: block;
}

.c-product_info__form__variant > div{
	display: block;
}

.c-product_info__form__variant > div > div{
	overflow-x: scroll;
}

/* 既存の `*:not(.c-color-palette)` 高さ指定の打ち消し */
#product-show-view .c-product_info__form__variant > div > div > .c-option-radio-list {
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: inherit;
}

#product-show-view #option_types .c-option-radio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0;
}

#product-show-view #option_types .c-option-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#product-show-view #option_types .c-option-radio--text .c-option-radio__text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid #d6dbe1;
	border-radius: 999px;
	background: #fff;
	color: #2c3540;
	font-size: 13px;
	line-height: 1.4;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#product-show-view #option_types .c-option-radio--text input[type="radio"]:checked + .c-option-radio__text {
	background: #2c3540;
	border-color: #2c3540;
	color: #fff;
}

#product-show-view #option_types .c-option-radio--image {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

#product-show-view #option_types .c-option-radio--image .c-option-radio__visual {
	display: inline-flex;
	border: 1px solid #d6dbe1;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#product-show-view #option_types .c-option-radio--image .c-option-radio__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#product-show-view #option_types .c-option-radio--image .c-option-radio__text {
	font-size: 12px;
	line-height: 1.4;
	color: #2c3540;
}

#product-show-view #option_types .c-option-radio--image input[type="radio"]:checked + .c-option-radio__visual {
	border-color: #2c3540;
	box-shadow: 0 0 0 1px #2c3540 inset;
}

	#product-show-view #option_types .c-option-radio--image .c-option-radio__visual {
		aspect-ratio: 54/72;
		width: 100%;
	}

@media screen and (max-width: 480px) {
	#product-show-view #option_types .c-option-radio-list {
		gap: 8px;
	}
	#product-show-view #option_types .c-option-radio--text .c-option-radio__text {
		min-width: 44px;
		min-height: 34px;
		padding: 6px 12px;
	}
}
