@charset "utf-8";

/* wanser-site_Ver.3.html の購入ページをecforce上で再現するページ専用CSS */
#product-show-view.wt-purchase-page {
  --wt-primary: #4b7b70;
  --wt-primary-deep: #345c53;
  --wt-primary-pale: #e7efec;
  --wt-surface: #ffffff;
  --wt-text: #333333;
  --wt-muted: #838383;
  --wt-line: rgba(51, 51, 51, 0.14);
  --wt-input-line: rgba(51, 51, 51, 0.24);
  --wt-font: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --wt-ui-font: Montserrat, "Helvetica Neue", Arial, sans-serif;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--wt-text);
  background: var(--wt-surface);
  font: 16px/1.9 var(--wt-font);
  letter-spacing: .04em;
}

#product-show-view.wt-purchase-page,
#product-show-view.wt-purchase-page *,
#product-show-view.wt-purchase-page *::before,
#product-show-view.wt-purchase-page *::after { box-sizing: border-box; }

#product-show-view.wt-purchase-page > #add_product_async_view {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#product-show-view.wt-purchase-page .wt-purchase-row {
  width: 100%;
  min-height: 70vh;
  margin: 0 !important;
  padding: 96px 0 !important;
  background: var(--wt-surface);
}

#product-show-view.wt-purchase-page .p-product_content {
  width: min(calc(100% - 128px), 1160px) !important;
  margin-inline: auto !important;
}

#product-show-view.wt-purchase-page .p-product_content__breadcrumbs {
  display: none !important;
}

#product-show-view.wt-purchase-page .wt-purchase-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--wt-primary-deep) !important;
  font: 400 16px/1.9 var(--wt-font) !important;
  text-decoration: none !important;
}

#product-show-view.wt-purchase-page .wt-purchase-back::before {
  content: "←";
  font-family: var(--wt-ui-font);
}

#product-show-view.wt-purchase-page .p-product_content__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr) !important;
  align-items: start !important;
  gap: clamp(36px, 6vw, 72px) !important;
  width: 100%;
  margin: 0 !important;
}

/* 商品写真 */
#product-show-view.wt-purchase-page .p-product_content__inner__img {
  position: sticky;
  top: calc(var(--wt-fixed-header-height, 80px) + 24px);
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

#product-show-view.wt-purchase-page .c-product_img {
  display: block !important;
  width: 100% !important;
}

#product-show-view.wt-purchase-page .c-product_img__slider--main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wt-primary-pale);
}

#product-show-view.wt-purchase-page .c-product_img__slider--main .splide__track,
#product-show-view.wt-purchase-page .c-product_img__slider--main .splide__list,
#product-show-view.wt-purchase-page .c-product_img__slider--main .c-product_img__item {
  height: 100% !important;
}

#product-show-view.wt-purchase-page .c-product_img__list,
#product-show-view.wt-purchase-page .c-product_img__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#product-show-view.wt-purchase-page .c-product_img__slider--main .c-product_img__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center;
}

#product-show-view.wt-purchase-page .c-product_img__slider--main .splide__arrow {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255, 255, 255, .8) !important;
  border-radius: 50% !important;
  background: rgba(52, 92, 83, .78) !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

#product-show-view.wt-purchase-page .c-product_img__slider--main .splide__arrow--prev { left: 16px !important; }
#product-show-view.wt-purchase-page .c-product_img__slider--main .splide__arrow--next { right: 16px !important; }

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail {
  margin-top: 18px;
}

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail .splide__track {
  overflow: visible;
}

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail .c-product_img__list {
  display: flex !important;
  justify-content: center;
  gap: 9px;
  transform: none !important;
}

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail .c-product_img__item {
  flex: 0 0 10px !important;
  width: 10px !important;
  height: 10px !important;
  overflow: hidden;
  border: 1px solid var(--wt-primary) !important;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail .c-product_img__item.is-active {
  background: var(--wt-primary);
}

#product-show-view.wt-purchase-page .c-product_img__slider--thumbnail .c-product_img__image {
  display: none !important;
}

/* 購入パネル */
#product-show-view.wt-purchase-page .p-product_content__inner__info {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

#product-show-view.wt-purchase-page .c-product_info {
  padding: clamp(26px, 4vw, 42px) !important;
  border: 1px solid var(--wt-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

#product-show-view.wt-purchase-page #add-shop-cart-form {
  display: flex;
  flex-direction: column;
}

#product-show-view.wt-purchase-page #product-category {
  order: 1;
  margin: 0 0 8px !important;
  color: var(--wt-primary) !important;
  font: 400 14px/1.9 var(--wt-font) !important;
}

#product-show-view.wt-purchase-page #product-name {
  order: 2;
  margin: 0 0 18px !important;
  color: var(--wt-text) !important;
  font: 600 36px/1.4 var(--wt-font) !important;
  letter-spacing: .04em;
}

#product-show-view.wt-purchase-page #product-description {
  order: 3;
  margin: 0 0 30px !important;
  color: #5c5c5c !important;
  font: 400 16px/1.9 var(--wt-font) !important;
}

#product-show-view.wt-purchase-page #product-description p {
  margin: 0 !important;
}

#product-show-view.wt-purchase-page .c-product_info__badge { order: 4; }
#product-show-view.wt-purchase-page .wt-purchase-fieldset,
#product-show-view.wt-purchase-page .c-product_info__form__subsdetail__input__inputwrap { order: 5; }
#product-show-view.wt-purchase-page #option_types { order: 6; }
#product-show-view.wt-purchase-page #quantity-group { order: 7; }
#product-show-view.wt-purchase-page #price-group { order: 8; }
#product-show-view.wt-purchase-page .js-product__add-cart { order: 9; }

#product-show-view.wt-purchase-page .c-product_info__review,
#product-show-view.wt-purchase-page .c-product_info__point,
#product-show-view.wt-purchase-page .c-product_info__campaign-container,
#product-show-view.wt-purchase-page .c-product_info__favorite,
#product-show-view.wt-purchase-page .c-product_info__sns,
#product-show-view.wt-purchase-page .c-product_info__share,
#product-show-view.wt-purchase-page .c-product_info__form__stock_items,
#product-show-view.wt-purchase-page #maker {
  display: none !important;
}

/* ハグキスマイルの購入方法 */
#product-show-view.wt-purchase-page .wt-purchase-fieldset {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#product-show-view.wt-purchase-page .wt-purchase-legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--wt-text);
  font: 600 20px/1.9 var(--wt-font);
  text-align: left;
}

#product-show-view.wt-purchase-page .wt-purchase-methods {
  display: grid;
  gap: 12px;
}

#product-show-view.wt-purchase-page .wt-purchase-method {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--wt-input-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--wt-text) !important;
  text-align: left !important;
  cursor: pointer;
}

#product-show-view.wt-purchase-page .wt-purchase-method:has(input:checked) {
  border-color: var(--wt-primary) !important;
  background: var(--wt-primary-pale) !important;
}

#product-show-view.wt-purchase-page .wt-purchase-method > input[type="radio"] {
  position: static !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 4px 0 0 !important;
  opacity: 1 !important;
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  appearance: auto !important;
  accent-color: var(--wt-primary);
}

#product-show-view.wt-purchase-page .wt-purchase-method > .frame { display: none !important; }

#product-show-view.wt-purchase-page .wt-purchase-method__body {
  display: block !important;
  min-width: 0;
  color: var(--wt-text) !important;
  white-space: normal;
}

#product-show-view.wt-purchase-page .wt-purchase-method__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

#product-show-view.wt-purchase-page .wt-purchase-method__title {
  font: 600 18px/1.9 var(--wt-font);
}

#product-show-view.wt-purchase-page .wt-purchase-method__price {
  color: var(--wt-primary-deep);
  font: 600 20px/1.9 var(--wt-font);
  white-space: nowrap;
}

#product-show-view.wt-purchase-page .wt-purchase-method__note {
  display: block;
  margin-top: 6px;
  color: #666;
  font: 400 14px/1.9 var(--wt-font);
}

#product-show-view.wt-purchase-page .wt-purchase-method__detail {
  display: block;
  margin-top: 4px;
  color: var(--wt-muted);
  font: 400 12px/1.9 var(--wt-font);
}

/* 併売商品複数設定が有効な場合も、理想HTMLと同じ購入カードへ整える。 */
#product-show-view.wt-purchase-page .wt-product-info--haguki-multiple > #add-shop-cart-form #price-group,
#product-show-view.wt-purchase-page .wt-product-info--haguki-multiple > #add-shop-cart-form #quantity-group,
#product-show-view.wt-purchase-page .wt-product-info--haguki-multiple > #add-shop-cart-form .js-product__add-cart,
#product-show-view.wt-purchase-page .wt-product-info--haguki-multiple > #add-shop-cart-form #btn-stock-waiting-list {
  display: none !important;
}

#product-show-view.wt-purchase-page .wt-multi-purchase {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__form[hidden] { display: none !important; }

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--wt-line);
  border-bottom: 1px solid var(--wt-line);
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-row[hidden] {
  display: none !important;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-label {
  color: var(--wt-text);
  font: 600 20px/1.9 var(--wt-font);
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control {
  display: grid;
  grid-template-columns: 54px 64px 54px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--wt-input-line);
  border-radius: 8px;
  background: #fff;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control button,
#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control input {
  height: 54px;
  margin: 0 !important;
  border: 0 !important;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control button {
  display: grid;
  padding: 0;
  background: var(--wt-surface);
  color: var(--wt-text);
  cursor: pointer;
  place-items: center;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control button:disabled {
  color: #aaa;
  cursor: not-allowed;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control input {
  width: 100%;
  padding: 0;
  background: #fff;
  color: var(--wt-text);
  font: 600 18px/1 var(--wt-font-ui);
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control input::-webkit-inner-spin-button,
#product-show-view.wt-purchase-page .wt-multi-purchase__quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__total-label {
  color: var(--wt-text);
  font: 600 18px/1.9 var(--wt-font);
}

#product-show-view.wt-purchase-page .wt-multi-purchase__total-price {
  color: var(--wt-primary-deep);
  font: 600 30px/1 var(--wt-font);
  text-align: right;
}

#product-show-view.wt-purchase-page .wt-multi-purchase__total-tax {
  font-size: 12px;
  font-weight: 400;
}

#product-show-view.wt-purchase-page #wt-multi-purchase-submit {
  display: block !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 15px 24px !important;
  border: 1px solid var(--wt-primary) !important;
  border-radius: 8px !important;
  background: var(--wt-primary) !important;
  color: #fff !important;
  font: 600 18px/1 var(--wt-font) !important;
  letter-spacing: .04em;
  cursor: pointer;
}

#product-show-view.wt-purchase-page #wt-multi-purchase-submit:hover {
  border-color: var(--wt-primary-deep) !important;
  background: var(--wt-primary-deep) !important;
}

/* ecforce標準の数量UIは隠し、単品購入時は上の専用数量UIを表示する。 */
#product-show-view.wt-purchase-page #quantity-group {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* 合計 */
#product-show-view.wt-purchase-page #price-group {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
}

#product-show-view.wt-purchase-page #price-group::before {
  content: "合計";
  color: var(--wt-text);
  font: 600 18px/1.9 var(--wt-font);
}

#product-show-view.wt-purchase-page #product-price-content,
#product-show-view.wt-purchase-page #product-price-content * {
  color: var(--wt-primary-deep) !important;
  font-family: var(--wt-font) !important;
}

#product-show-view.wt-purchase-page #product-price-content {
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: right;
}

#product-show-view.wt-purchase-page #product-price-content .sales_price_include_tax,
#product-show-view.wt-purchase-page #product-price-content .sales_price-include-tax,
#product-show-view.wt-purchase-page #product-price-content .price_include_tax {
  font-size: 30px !important;
  font-weight: 600 !important;
}

#product-show-view.wt-purchase-page #product-price-content .sales_price_include_tax::after,
#product-show-view.wt-purchase-page #product-price-content .sales_price-include-tax::after,
#product-show-view.wt-purchase-page #product-price-content .price_include_tax::after {
  content: " （税込）";
  font-size: 12px;
  font-weight: 400;
}

/* カート */
#product-show-view.wt-purchase-page .js-product__add-cart,
#product-show-view.wt-purchase-page .c-product_info__form__buttons {
  width: 100%;
  margin: 0;
}

#product-show-view.wt-purchase-page #btn-add {
  position: relative;
  display: block !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 15px 24px !important;
  border: 1px solid var(--wt-primary) !important;
  border-radius: 8px !important;
  background: var(--wt-primary) !important;
  color: #fff !important;
  font: 600 18px/1 var(--wt-font) !important;
  letter-spacing: .04em;
  cursor: pointer;
}

#product-show-view.wt-purchase-page #btn-add:hover {
  border-color: var(--wt-primary-deep) !important;
  background: var(--wt-primary-deep) !important;
}

#product-show-view.wt-purchase-page .js-floating-add-cart-button__floating { z-index: 80; }
#product-show-view.wt-purchase-page .js-custom-container { background: #fff; }

@media (max-width: 960px) {
  #product-show-view.wt-purchase-page .p-product_content {
    width: min(calc(100% - 80px), 1160px) !important;
  }

  #product-show-view.wt-purchase-page .wt-purchase-row { padding-block: 76px !important; }

  #product-show-view.wt-purchase-page .p-product_content__inner {
    grid-template-columns: 1fr !important;
  }

  #product-show-view.wt-purchase-page .p-product_content__inner__img { position: static; }
}

@media (max-width: 680px) {
  #product-show-view.wt-purchase-page .p-product_content {
    width: calc(100% - 40px) !important;
  }

  #product-show-view.wt-purchase-page .wt-purchase-row {
    padding: 34px 0 64px !important;
  }

  #product-show-view.wt-purchase-page .wt-purchase-back { margin-bottom: 20px; }
  #product-show-view.wt-purchase-page .c-product_info {
    padding: 24px 20px !important;
  }
  #product-show-view.wt-purchase-page #product-name { font-size: 32px !important; }
  #product-show-view.wt-purchase-page .wt-purchase-method__head { display: block; }

  #product-show-view.wt-purchase-page .wt-purchase-method__price {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  #product-show-view.wt-purchase-page #product-price-content .sales_price_include_tax,
  #product-show-view.wt-purchase-page #product-price-content .sales_price-include-tax,
  #product-show-view.wt-purchase-page #product-price-content .price_include_tax {
    font-size: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-show-view.wt-purchase-page *,
  #product-show-view.wt-purchase-page *::before,
  #product-show-view.wt-purchase-page *::after {
    transition-duration: .01ms !important;
  }
}
