/* stylelint-disable no-descending-specificity, selector-class-pattern, selector-pseudo-element-colon-notation, selector-not-notation */

/* *****************************
Product
***************************** */

.p-product {
  margin-bottom: 90px;
}

/* form */

.p-product select {
  box-sizing: border-box;
  height: 40px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #bfbfbf;
}

.p-product input[type='text'] {
  box-sizing: border-box;
  height: 40px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #bfbfbf;
}

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

@media screen and (width <= 1030px) {
  .p-product-main {
    display: block;
  }
}

.p-product-img {
  width: 530px;
}

@media screen and (width <= 1030px) {
  .p-product-img {
    width: auto;
    margin-bottom: 45px;
  }
}

@media screen and (width <= 767px) {
  .p-product-img {
    width: auto;
    margin-right: -20px;
    margin-left: -20px;
  }
}

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

@media screen and (width <= 1030px) {
  .p-product-img__main {
    width: 530px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media screen and (width <= 767px) {
  .p-product-img__main {
    width: auto;
  }
}

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

@media screen and (width <= 767px) {
  .p-product-img__main-item {
    text-align: center;
  }
}

.p-product-img__main-item::before {
  display: block;
  padding-top: 100%;
  content: '';
}

.p-product-img__main-item a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.p-product-img__main-item img {
  position: absolute;
  inset: 0;
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  text-align: center;
}

.p-product-thumb-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-right: -4px;
  margin-left: -4px;
}

@media screen and (width <= 1030px) {
  .p-product-thumb-list {
    flex-wrap: nowrap;
    margin-right: 0;
    margin-left: 0;
  }
}

.p-product-thumb-list__item {
  box-sizing: border-box;
  width: 20%;
  padding-right: 4px;
  padding-left: 4px;
  margin-bottom: 8px;
  transition: all .3s cubic-bezier(.25, .46, .45, .94);
}

@media screen and (width <= 1030px) {
  .p-product-thumb-list__item {
    width: 90px;
    padding-right: 0;
    padding-left: 0;
    margin-right: 5px;
  }
}

@media screen and (width <= 767px) {
  .p-product-thumb-list__item {
    width: 60px;
    margin-right: 5px;
  }
}

.p-product-thumb-list__item:hover, .p-product-thumb-list__item.is-current {
  cursor: pointer;
  opacity: .7;
}

@media screen and (width <= 1030px) {
  .p-product-thumb-list__item img {
    width: 90px;
  }
}

@media screen and (width <= 767px) {
  .p-product-thumb-list__item img {
    width: 60px;
  }
}

.p-product-thumb-list__img {
  /* overflow用 */
  position: relative;
  text-align: center;
}

@media screen and (width <= 1030px) {
  .p-product-thumb-list__img {
    width: 90px;
  }
}

@media screen and (width <= 767px) {
  .p-product-thumb-list__img {
    width: 60px;
    text-align: center;
  }
}

.p-product-thumb-list__img::before {
  display: block;
  padding-top: 100%;
  content: '';
}

.p-product-thumb-list__img img {
  position: absolute;
  inset: 0;
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  text-align: center;
}

/* 商品画像 slider */

.p-product-img__main .slick-track {
  margin-right: 0;
  margin-left: 0;
}

.p-product-img__main .slick-prev, .p-product-img__main .slick-next {
  top: 50%;
  z-index: 1;
  width: 30px;
  height: 30px;
  transition: all .4s ease;
}

@media screen and (width <= 767px) {
  .p-product-img__main .slick-prev, .p-product-img__main .slick-next {
    width: 45px;
    height: 45px;
  }
}

.p-product-img__main .slick-prev::before, .p-product-img__main .slick-next::before {
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 1;
  width: 15px;
  height: 15px;
  content: '';
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  transition: all .4s ease;
}

@media screen and (width <= 767px) {
  .p-product-img__main .slick-prev::before, .p-product-img__main .slick-next::before {
    top: 15px;
  }
}

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

@media screen and (width <= 767px) {
  .p-product-img__main .slick-prev {
    left: 0;
  }
}

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

@media screen and (width <= 767px) {
  .p-product-img__main .slick-prev::before {
    left: 17px;
  }
}

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

@media screen and (width <= 767px) {
  .p-product-img__main .slick-next {
    right: 0;
  }
}

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

@media screen and (width <= 767px) {
  .p-product-img__main .slick-next::before {
    left: 13px;
  }
}

/***** 商品情報 *****/

.p-product-info {
  width: 410px;
}

@media screen and (width <= 1030px) {
  .p-product-info {
    width: auto;
  }
}

.p-product-info__ttl {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
}

@media screen and (width <= 767px) {
  .p-product-info__ttl {
    font-size: 21px;
  }
}

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

.p-product-info__id {
  margin: 0;
}

@media screen and (width <= 767px) {
  .p-product-info__id {
    margin-top: 5px;
    font-size: 10px;
  }
}

.p-product-price {
  margin-top: 20px;
  margin-bottom: 20px;
}

.p-product-price__sell {
  font-size: 18px;
}

.p-product-price__normal {
  font-size: 14px;
}

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

.p-product-price__list-price {
  font-size: 14px;
}

@media screen and (width <= 767px) {
  .p-product-price__list-price {
    font-size: 12px;
  }
}

/* オプション table */

.p-product-option-tbl {
  margin-top: 30px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.p-product-option-tbl table {
  width: 100%;
  margin-bottom: 0;
  border-right: 0;
  border-left: 0;
}

.p-product-option-tbl table div {
  display: inline-block !important;
}

.p-product-option-tbl th {
  min-width: 100px;
}

.p-product-option-tbl th, .p-product-option-tbl td {
  padding: 12px 5px;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: 0;
}

.p-product-option-tbl label {
  display: inline-block !important;
  margin-bottom: 0;
  margin-left: 5px;
}

.p-product-option-tbl input {
  margin-top: 0;
}

/* オプション select */

.p-product-option-select {
  margin-top: 30px;
  margin-bottom: 30px;
}

.p-product-option-select__box {
  margin-top: 15px;
}

.p-product-option-select__ttl {
  margin-bottom: 5px;
  font-weight: bold;
}

/* 名入れ */

.p-product-name {
  margin-top: 30px;
  margin-bottom: 30px;
}

.p-product-name__box {
  margin-top: 15px;
}

.p-product-name__ttl {
  margin-bottom: 5px;
  font-weight: bold;
}

.p-product-name__body input {
  width: 100%;
}

/* 数量 */

.p-product-form-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.p-product-form-stock__input {
  display: flex;
  align-items: center;
}

.p-product-form-stock__input input {
  width: 60px;
}

.p-product-form-stock__unit {
  margin-left: 10px;
}

.p-product-form-stock__stock {
  margin-left: 25px;
}

/* ボタン */

.p-product-form-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

@media screen and (width <= 1030px) {
  .p-product-form-btn__cart {
    flex: 1;
    width: auto;
  }
}

.p-product-form-btn__favorite {
  width: 50px;
}

.p-product-form-btn__favorite-btn {
  display: inline-block;
  padding: 0;
  margin-top: 22px;
  margin-left: 22px;
  color: #d8d8d8;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: all .3s cubic-bezier(.25, .46, .45, .94);
}

.p-product-form-btn__favorite-btn.is-added {
  color: #000;
}

.p-product-form-btn__favorite-btn svg {
  width: 25px;
  height: 25px;
  fill: currentcolor;
}

.p-product-form__error-message {
  margin-top: 15px;
  color: #DB5656;
}

/* SNS */

.p-product-sns-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.p-product-sns-list__item {
  margin-right: 20px;
}

/* link */

.p-product-link-list {
  margin-top: 40px;
}

.p-product-link-list__item {
  margin-bottom: 5px;
}

@media screen and (width <= 767px) {
  .p-product-link-list__item {
    margin-bottom: 30px;
  }
}

/***** 商品詳細 *****/

.p-product__ttl {
  margin-top: 0;
  margin-bottom: 35px;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: .3em;
}

@media screen and (width <= 767px) {
  .p-product__ttl {
    margin-bottom: 30px;
    font-size: 18px;
  }
}

.p-product-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 75px;
}

@media screen and (width <= 1030px) {
  .p-product-detail {
    display: block;
  }
}

.p-product-explain {
  width: 410px;
}

@media screen and (width <= 1030px) {
  .p-product-explain {
    width: auto;
    margin-bottom: 60px;
  }
}

.p-product-explain__body {
  line-height: 2;
}

.p-product-other {
  order: -1;
  width: 530px;
}

@media screen and (width <= 1030px) {
  .p-product-other {
    width: auto;
  }
}

/* おすすめ商品 */

.p-product-recommend-list {
  display: flex;
  flex-wrap: wrap;
  margin-right: -20px;
  margin-bottom: 90px;
  margin-left: -20px;
}

@media screen and (width <= 767px) {
  .p-product-recommend-list {
    margin-right: -5px;
    margin-bottom: 60px;
    margin-left: -5px;
  }
}

.p-product-recommend-list__item {
  box-sizing: border-box;
  width: 33.3333%;
  padding-right: 20px;
  padding-left: 20px;
  word-break: break-all;
}

@media screen and (width <= 767px) {
  .p-product-recommend-list__item {
    padding-right: 5px;
    padding-left: 5px;
  }
}

.p-product-recommend-list__img {
  position: relative;
  margin-bottom: 30px;
  text-align: center;
}

@media screen and (width <= 767px) {
  .p-product-recommend-list__img {
    margin-bottom: 5px;
    text-align: center;
  }
}

.p-product-recommend-list__img::before {
  display: block;
  padding-top: 100%;
  content: '';
}

.p-product-recommend-list__img a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.p-product-recommend-list__img img {
  position: absolute;
  inset: 0;
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  text-align: center;
}

.p-product-recommend-list__price {
  margin-top: 15px;
  font-size: 12px;
  color: #909090;
}

@media screen and (width <= 767px) {
  .p-product-recommend-list__price {
    margin-top: 0;
  }
}

.p-product-recommend-list__price.is-strikethrough {
  margin-top: 0;
  text-decoration: line-through;
}

.p-product-recommend-list__expl {
  margin-top: 15px;
  font-size: 12px;
}

/* レビュー */

.p-product-review {
  margin-bottom: 60px;
}

.p-product-review__item {
  box-sizing: border-box;
  padding: 40px;
  margin-bottom: 30px;
  background: #f8f8f8;
}

@media screen and (width <= 767px) {
  .p-product-review__item {
    padding: 20px;
  }
}

.p-product-review__heading {
  margin-bottom: 15px;
}

.p-product-review__ttl {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.p-product-review-info {
  margin-top: 10px;
  margin-bottom: 10px;
}

.p-product-review-info__item {
  display: inline-block;
  font-size: 12px;
}

.p-product-review-info__item.is-type {
  margin-right: 35px;
}

.p-product-review__img {
  margin-bottom: 15px;
  text-align: center;
}

.p-product-review__body {
  margin-top: 15px;
  line-height: 2;
}

.p-product-review__rates {
  display: flex;
  flex-wrap: wrap;
}

.p-product-review__rate {
  width: 18px;
  height: 18px;
  vertical-align: -.3em;
  fill: currentcolor;
  fill: #d8d8d8;
}

.p-product-review__rate.is-color {
  fill: #000;
}

/* レビュー 返信 */

.p-product-review-reply {
  box-sizing: border-box;
  padding: 15px 0;
  margin-top: 30px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.p-product-review-reply__ttl {
  font-weight: bold;
}

.p-product-review-reply__body {
  font-size: 12px;
}

.p-product-review-reply__date {
  font-size: 12px;
}

.p-product-review__btn {
  margin-top: 45px;
  text-align: center;
}

@media screen and (width <= 767px) {
  .p-product-review__btn {
    margin-top: 30px;
  }
}

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

/*
Custom CSS
*/

body .p-product {
  margin-bottom: 0;
}

body .p-product-detail {
  margin-top: 2em;
}

body .p-product__ttl {
  font-weight: normal;
  letter-spacing: 0;
}

body .p-product-link-list {
  padding-top: 1em;
  border-top: 1px solid #000;
}

.item-tags {
  padding-top: 2em;
  font-size: 13px;
  color: #999;
}

@media screen and (width <= 1030px) {
  .p-product-img {
    margin-bottom: 0;
  }
}

@media screen and (width <= 767px) {
  .p-product-link-list__item {
    margin-bottom: 10px;
  }
}
