/******************************/
/* Product */
/******************************/
.p-product-container {
  padding: 32px 0;
}
@media screen and (max-width: 1200px) {
  .p-product-container {
    padding: 0;
  }
  .p-product {
    margin-top: 32px;
    margin-bottom: 32px;
  }
}
@media screen and (max-width: 767px) {
  .p-product-container {
    padding: 0;
  }
}

/* form */
.p-product select,
.p-product input[type=text] {
  box-sizing: border-box;
  height: 38px;
  border: 1px solid #A9A8A3;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0,.71,.6,1);
}

.p-product select {
  padding: 8px 8px 8px 16px;
}

.p-product input[type=text] {
  padding: 8px 16px;
  width: 100%;
}

.p-product select:hover,
.p-product input[type=text]:hover,
.p-product select:focus,
.p-product input[type=text]:focus {
  border: 1px solid #121212;
}

.p-product-main {
  display: flex;
  justify-content: space-between;
}

.p-product-img {
  width: 640px;
  margin-right: 64px;
  box-sizing: border-box;
}

.p-product-img__main {
  text-align: center;
}

.p-product-img__main-item {
  position: relative;
  text-align: center;
}
.p-product-img__main-item:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.p-product-img__main-item a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.p-product-img__main-item img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.p-product-thumb-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}
.p-product-thumb-list__item {
  width: 20%;
  box-sizing: border-box;
  padding: 4px;
  margin-right: 4px;
  border: 1px solid transparent;
  transition: all 0.6s cubic-bezier(0,.71,.6,1);
}

.p-product-thumb-list__item:hover,
.p-product-thumb-list__item.is-current {
  border: 1px solid #A9A8A3;
  cursor: pointer;
}

.p-product-thumb-list__img {
  /* overflow用 */
  position: relative;
  text-align: center;
}
.p-product-thumb-list__img:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.p-product-thumb-list__img img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
/* 商品画像 slider */
.p-product-img__main .slick-track {
  margin-left: 0;
  margin-right: 0;
}
.p-product-img__main .slick-prev, .p-product-img__main .slick-next {
  top: 50%;
  width: 32px;
  height: 32px;
  transition: all 0.4s ease;
  z-index: 1;
}

.p-product-img__main .slick-prev:before,
.p-product-img__main .slick-next:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  width: 16px;
  height: 16px;
  border-left: 1px solid #121212;
  border-top: 1px solid #121212;
  transition: all 0.4s ease;
  z-index: 1;
}

.p-product-img__main .slick-prev {
  left: 15px;
}

.p-product-img__main .slick-prev:before {
  transform: rotate(-45deg);
}

.p-product-img__main .slick-next {
  right: 15px;
}

.p-product-img__main .slick-next:before {
  left: 4px;
  transform: rotate(135deg);
}

@media screen and (max-width: 1200px) {
  .p-product-main {
    flex-direction: column;
    display: block;
  }
  .p-product-img {
    width: auto;
    margin: 0 auto;
  }
  .p-product-img__main {
    margin-left: auto;
    margin-right: auto;
  }
  .p-product-thumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
  }
  .p-product-thumb-list__item {
    width: 98px;
  }
  .p-product-thumb-list__img {
    width: 100%;
    text-align: center;
  }
}
@media screen and (max-width: 767px) {
  .p-product-img {
    width: auto;
  }
  .p-product-thumb-list__item {
    width: 68px;
  }
  .p-product-img__main .slick-prev,
  .p-product-img__main .slick-next {
    width: 44px;
    height: 44px;
  }
  .p-product-img__main .slick-prev:before,
  .p-product-img__main .slick-next:before {
    top: 14px;
  }
  .p-product-img__main .slick-prev {
    left: 0px;
  }
  .p-product-img__main .slick-prev:before {
    left: 17px;
  }
  .p-product-img__main .slick-next {
    right: 0px;
  }
  .p-product-img__main .slick-next:before {
    left: 13px;
  }
}

/***** 商品情報 *****/
.p-product-info {
  width: 100%;
  box-sizing: border-box;
}

.p-product-info__head {
  padding: 0 0 24px;
}

@media screen and (max-width: 1200px) {
  .p-product-info {
    width: auto;
  }
  .p-product-info__head {
    padding: 8px 0;
  }
}
.p-product-info__ttl {
  font-family: "Lato", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  font-size: 1.4em;
  font-weight: bold;
}

.p-product-info__ttl img {
  vertical-align: middle;
}

.p-product-price {
  margin: 16px 0;
  font-size: 1.4em;
  font-weight: bold;
}

.p-product-price__unit {
  color: #797874;
  font-size: 14px;
  font-weight: normal;
}

.p-product-stock {
  color: #797874;
  font-size: 12px;
}

@media screen and (max-width: 1200px) {
  .p-product-info__ttl {
    font-size: 16px;
    font-weight: normal;
    text-align: center;
  }

  .p-product-price {
    margin: 8px 0;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
  }

  .p-product-price__unit {
    font-size: 10px;
  }
  .p-product-stock {
    margin: 16px auto;
    text-align: center;
  }
}

/* オプション select */
.p-product-option-select {
  margin-bottom: 16px;
}
.p-product-option-select__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 8px 0;
}
.p-product-option-select__ttl {
  font-size: 12px;
  color: #797874;
}

/* 数量 */
.p-product-form-stock__input {
  display: flex;
  align-items: center;
}
.p-product-form-stock__unit {
  margin-left: 4px;
}

/* ボタン */
.p-product-form-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 16px 0;

}
.p-product-form-btn__cart {
  width: 100%;
}

.p-product-form-stock__input,
.product_cart_select {
  width: 24%;
}

@media screen and (max-width: 1200px) {
  .p-product-form:not(.is-soldout) {
    padding: 16px 0;
    border-top: 1px solid #F2F1EB;
    border-bottom: 1px solid #F2F1EB;
  }
  .p-product-form-btn {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10000;
    box-sizing: border-box;
    border-top: 1px solid #F2F1EB;
    padding: 16px;
    margin: 0;
    background: rgba(255,255,255,0.96);
  }
}
@media screen and (max-width: 767px) {
  .p-product-form-btn {
    padding: 8px;
  }
  .p-product-option-select__ttl {
    flex: 1;
  }
  .p-product-form-stock__input,
  .product_cart_select {
    width: auto;
    flex: 1;
  }
}
.p-product-form-btn__favorite {
  width: 50px;
}
.p-product-form-btn__favorite-btn {
  display: inline-block;
  margin-top: 22px;
  margin-left: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8d8d8;
  cursor: pointer;
  text-align: center;
  transition: all 0.6s cubic-bezier(0,.71,.6,1);
}
.p-product-form-btn__favorite-btn.is-added {
  color: #000000;
}
.p-product-form-btn__favorite-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.p-product-form__error-message {
  color: #DB5656;
  margin-top: 15px;
}

/***** 商品詳細 *****/
.p-product-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 32px;
}

.p-product-explain {
  width: 100%;
}

.p-product-explain__txt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 18;
  height: calc(1em * 1.6 * 18);
  overflow: hidden;
  margin-bottom: 24px;
  line-height: 1.6;
}

.p-product-explain__txt.is-show {
  -webkit-line-clamp: unset;
  height: auto;
  overflow: auto;
}

@media screen and (max-width: 1200px) {
  .p-product-detail {
    display: block;
    padding: 24px 0;
  }
  .p-product-explain {
    width: auto;
  }
}

@media screen and (max-width: 767px) {
  .p-product-explain__txt {
    font-size: 12px;
  }
}

/* ヘルプリンク */
.p-product-link-list__item {
  border-bottom: 1px solid #F2F1EB;
}

.p-product-link-list__item:first-child {
  border-top: 1px solid #F2F1EB;
}

.p-product-link-list__item a {
  display: block;
  padding: 16px 0;
  font-size: 12px;
}

/* おすすめ商品 */
.p-product-other .c-favorite-list__item:nth-child(n + 9) {
  display: none;
}

.input-prepend.input-append input {
  font-size: 24px;
  padding-top: 11px;
  padding-bottom: 11px;
  width: 100px;
  text-align: right;
}

/* その他の商品*/
.p-product-other {
  width: 1200px;
  box-sizing: border-box;
  padding: 32px 0;
}

.p-product-other-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.p-product-other-list .c-item-list__item:nth-child(n + 10) {
  display: none;
}

@media screen and (max-width: 1200px) {
  .p-product-other {
    width: auto
  }
}

@media screen and (max-width: 767px) {
  .p-product-other-list .c-item-list__item:nth-child(n + 9) {
    display: none;
  }
}

/* 最近見た商品 */
.p-product-container .p-checked {
  padding: 32px 0;
  border-top: none;
}

/* 戻るボタン */
.p-product-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  padding: 64px 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.p-product-footer .c-btn::before,
.p-product-footer .c-btn::after {
  display: none;
}

@media screen and (max-width: 1200px) {
  .p-product-footer {
    width: 100%;
  }
}
