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

/* 通常購入／定期購入スイッチ：色だけ変更 */
.c-product_info__co_selling__nav__list a {
  background-color: #f8f8f8;
  color: #555;
}

.c-product_info__co_selling__nav__list.active a {
  background-color: #222535; /* アクティブ背景色 */
  color: #fff; /* アクティブ文字色 */
}

/* 商品詳細本文内の「利用規約」リンクだけ下線 */
#product-description a[href*="/shop/policies/terms"]{
  text-decoration: underline !important;
  text-underline-offset: .15em;
}

/* 画像を浮かせる白グラデ＋角丸 */
.p-product_content__inner .c-product_img__item {
  position: relative;
  overflow: visible !important;         /* グローがはみ出せるように */
}

/* メイン画像 */
.p-product_content__inner .c-product_img__image {
  position: relative;
  z-index: 1;                            /* グローの上に表示 */
  border-radius: 16px;                   /* お好みで 12–24px に */
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.08)); /* うっすら影で浮遊感 */
}

/* 画像の外側に白いラジアルグラデ（グロー） */
.p-product_content__inner .c-product_img__item::after {
  content: "";
  position: absolute;
  inset: -6%;                            /* 画像よりひと回り大きく */
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;                   /* 画像角丸より少し大きめ */
  /* 中央は白→外側で透明になるグラデ */
  background: radial-gradient(ellipse at center,
              rgba(255,255,255,0.95) 0%,
              rgba(255,255,255,0.65) 50%,
              rgba(255,255,255,0) 75%);
  filter: blur(2px);                     /* ふんわり感の調整 */
}

/* サムネイルも同様に（少し弱め） */
.p-product_content__inner .c-product_img__slider--thumbnail .c-product_img__item::after {
  inset: -8%;
  background: radial-gradient(ellipse at center,
              rgba(255,255,255,0.85) 0%,
              rgba(255,255,255,0.5) 50%,
              rgba(255,255,255,0) 75%);
}
.p-product_content__inner .c-product_img__slider--thumbnail .c-product_img__image {
  border-radius: 12px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.06));
}
