/* 部分テンプレート(利用規約) */
.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;
	}
}

/* AJAXモーダルの画面表示共通。印刷には適用しない。 */
@media screen {
	.modal-scrollable {
		position: fixed;
		top: 0;
	}
	.modal-scrollable .modal .modal-header {
		text-align: right;
	}
	.modal-scrollable .modal .modal-header .close {
		font-size: 30px;
	}
	.modal-scrollable .modal .modal-title {
		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 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 {
		background: #386f81;
		color: #fff;
		padding: 15px;
		width: 100%;
	}
	.modal-scrollable .modal .modal-body form a.disabled {
		background: #aaa;
		cursor: default;
	}
}

/* 480pxでは両方の条件が成立する既存仕様を維持（PC側を後に置く）。 */
@media screen and (max-width: 480px) {
	.modal-scrollable .modal {
		padding: 20px 10%;
		overflow-y: scroll;
		max-height: 100vh;
	}
	.modal-scrollable .modal .modal-title {
		font-size: 18px;
	}
	.modal-scrollable .modal .modal-body p {
		font-size: 13px;
	}
	.modal-scrollable .modal .modal-body form .form-group {
		margin: 15px 0;
	}
	.modal-scrollable .modal .modal-body form label {
		font-size: 15px;
	}
	.modal-scrollable .modal .modal-body form a {
		display: block;
		text-align: center;
	}
}

@media screen and (min-width: 480px) {
	.modal-scrollable .modal {
		padding: 60px 25%;
	}
	.modal-scrollable .modal .modal-title {
		font-size: 20px;
	}
	.modal-scrollable .modal .modal-body form .form-group {
		margin: 20px 0;
	}
	.modal-scrollable .modal .modal-body form a {
		margin-top: 50px;
	}
}

/* SKU画像の画面表示共通。配置だけを下のブレークポイントで切り替える。 */
@media screen {
	.img-wrap {
		width: 100%;
		max-height: 100%;
		align-items: center;
		padding: 0;
		list-style: none;
	}
	.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画像項目用(smartphone) */
@media screen and (max-width: 480px) {
	.c-product_img {
		display: block;
	}
	#sub-images-view {
		max-width: 100%;
		display: block;
	}
	.img-wrap {
		display: flex;
	}
}

/* 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:nth-child(n + 2) {
		display: none;
	}
	.img-box {
		width: 100% !important;
	}
	#main-img {
		width: 70%;
	}
}

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

/* 商品詳細だけに適用。購入処理・数量・売り切れ状態は変更しない。 */
#product-show-view .hana-umaka-purchase .buy-button {
	display: block;
	width: 100%;
	min-height: 52px;
	margin-top: 20px;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: #a81e18;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .04em;
	text-align: center;
	opacity: 1;
	transition: background-color .2s ease, border-color .2s ease;
}

#product-show-view .hana-umaka-purchase .buy-button:hover:not(:disabled):not([aria-disabled="true"]),
#product-show-view .hana-umaka-purchase .buy-button:focus-visible:not(:disabled):not([aria-disabled="true"]) {
	background: #861813;
	opacity: 1;
}

#product-show-view .hana-umaka-purchase .buy-button:focus-visible {
	outline: 2px solid #a81e18;
	outline-offset: 3px;
}

#product-show-view .hana-umaka-purchase .buy-button:disabled,
#product-show-view .hana-umaka-purchase .buy-button[aria-disabled="true"] {
	background: #b8b1aa;
	cursor: not-allowed;
	opacity: 1;
}

#product-show-view .hana-umaka-trial-guide {
	margin-top: 44px;
}

#product-show-view .hana-product-review-note {
	margin: 0 0 16px;
	color: #625c57;
	font-size: 13px;
	line-height: 1.8;
	letter-spacing: 0;
}

@media screen and (max-width: 767px) {
	#product-show-view .hana-umaka-trial-guide {
		margin-top: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#product-show-view .hana-umaka-purchase .buy-button {
		transition: none;
	}
}
