.breadcrumb {
  top: 90px;
}

img {
  width: 100%;
}

.product-detail {
  position: relative;
  padding: 157px 20px 100px;
}

.product-slider {
  margin: 0 auto;
  max-width: 400px;
}

.product-slider__gallery {
  position: relative;
  width: 234px;
  margin: 18px auto 0;
}

.product-slider__image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto;
}

.product-slider__image img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.product-slider__thumbnail {
  width: 70px;
  height: 70px;
  aspect-ratio: 1;
  margin-right: 12px;
  cursor: pointer;
}

.product-slider__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-arrow {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
  background-image: url(../img/common/pagination.svg);
  background-size: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

.prev-arrow {
  left: max(-48px, min(-30px, calc(-48px - 50vw + 180px)));
  transform: translateY(-50%) scaleX(-1);
}

.next-arrow {
  right: max(-48px, min(-30px, calc(-48px - 50vw + 180px)));
}

.product-info {
  margin: 25px auto 0;
  max-width: 500px;
}

.product-info__title {
  font-size: 24px;
  line-height: 35px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  border-bottom: 1px solid #999999;
  padding-bottom: 10px;
}

.product-info__title span {
  display: inline-block;
}

.product-info__price {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 35px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  padding-top: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #999999;
  padding-bottom: 10px;
}

.product-info__price span {
  font-size: 18px;
  line-height: 28px;
}

.product-info__comment {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: normal;
  border-bottom: 1px solid #999999;
  padding-bottom: 10px;
}

.product-detail__item {
  display: flex;
  align-items: center;
}

.product-detail__item {
  margin-bottom: 30px;
  font-size: 14px;
}

.product-info__quantity {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #999999;
}

label[for="quantity"] {
  font-size: 13px;
  margin-right: 46px;
  font-weight: 500;
}

select {
  text-transform: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none;
}

/** input/スピンボタンのラップ要素 **/
.quantity-input {
  position: relative;
  width: 103px;
  height: 35px;
  border: 1px solid #999999;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

/** デフォルトのスピンボタンを隠す **/
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/** input要素 **/
.quantity-input input {
  width: 33.33%;
  height: 100%;
  text-align: center;
  background-color: #fff;
  font-weight: 600;
}

.quantity-input .quantity-change {
  width: 33.33%;
  height: 100%;
  font-size: 20px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  user-select: none;
  background-color: #e1e0e0;
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-weight: 300;
}

/** 減算のスピンボタン要素 **/
.quantity-input .quantity-down {
  border-right: #999999 1px solid;
  font-size: 25px;
  padding-bottom: 1px;
}

/** 加算のスピンボタン要素 **/
.quantity-input .quantity-up {
  right: 0;
  border-left: #999999 1px solid;
  font-size: 18px;
}

.product-detail__info__color .form__input.quantity {
  max-width: 244px;
  width: 100%;
}

.common-button {
  font-family: "Zen Old Mincho", sans-serif;
}

.common-button--cart::before {
  content: "";
  background-image: url("../img/product-detail/cart__btn__icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 21px;
  height: 21px;
  margin-right: 4px;
}

.common-button {
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.21);
}

.common-button--cart {
  margin-bottom: 20px;
}

.common-button--favorite {
  background-color: #737373;
  margin-top: 16px;
  color: #ffffff;
}

.common-button--favorite::after {
  display: none;
}

.common-button--favorite::before {
  content: "";
  position: relative;
  display: inline-block;
  background-image: url("../img/product-detail/product-like.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 17px;
  height: 17px;
  right: auto;
  margin-right: 1px;
}

.product-description {
  margin: 100px auto 0;
  max-width: 600px;
}

.product__title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 50px;
}

.product-description__item {
  margin-top: 50px;
}

.product-description__subtitle {
  font-size: 22px;
  line-height: 32px;
  color: #870101;
  margin-bottom: 15px;
  font-weight: 900;
}

.product-description__ordered {
  list-style-type: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-description__image {
  width: 100%;
  aspect-ratio: 335 / 335;
  margin-bottom: 24px;
  object-fit: cover;
}

.product-description__detail:last-child {
  margin-top: 20px;
}

.product-description__detail-title {
  font-size: 16px;
  line-height: 28px;
}

.product-description__detail-note {
  font-size: 16px;
  line-height: 28px;
}

.product-description__detail-note--annotation {
  font-size: 14px;
  line-height: 24px;
}

.product-description__detail-note--red {
  font-size: 16px;
  line-height: 28px;
  color: #870101;
  font-weight: 500;
  margin-top: 2px;
}

.product-specification {
  margin: 20px auto 0;
  max-width: 600px;
  filter: drop-shadow(0px 0px 9px rgba(0, 0, 0, 0.09));
}

.product-specification__item {
  padding: 10px 20px;
}

.product-specification__item:nth-child(odd) {
  background-color: #f8f8f8;
}

.product-specification__item:nth-child(even) {
  background-color: #fff;
}

.product-specification__title,
.product-specification__text {
  font-size: 14px;
  line-height: 26px;
  color: #1a1819;
}

.related-products {
  margin: 100px auto 0;
}

/* .related-products__list {
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 15px;
  row-gap: 40px;
  justify-content: center;
} */

.related-products__list {
  margin: 50px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* justify-content: center; */
}



.related-products__item {
  padding-bottom: 20px;
  width: calc((100% - 15px) / 2);
}

@media (min-width: 600px) {

  /* .related-products__list {
    grid-template-columns: auto auto auto;
    column-gap: 24px;
  } */
  .related-products__list {
    /* grid-template-columns: auto auto auto; */
    gap: 24px;
  }

  .related-products__item {
    padding-bottom: 20px;
    width: calc((100% - 48px) / 3);
  }
}

.related-products__item a {
  color: #1a1819;
}

.related-products__img-wrap {
  position: relative;
}

.related-products__img {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.related-products .product-item__like {
  width: clamp(12px, 3.2vw, 17px);
  height: clamp(12px, 3.2vw, 17px);
  background-size: contain;
  display: none;
}

.related-products__fav {
  position: absolute;
  width: 12px;
  height: 12px;
  background-image: url(../img/product-detail/product-like.svg);
  background-size: cover;
  background-color: transparent;
  right: 17px;
  bottom: 17px;
}

.related-products__name {
  font-size: 20px;
  line-height: 30px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #9e9e9e;
}

.related-products__desc {
  font-size: 14px;
  line-height: 26px;
  margin-top: 5px;
}

.related-products__price {
  font-size: 14px;
  text-align: right;
  margin-top: 15px;
}

.product-set-select__info {
  margin: 24px auto 0;
  max-width: min(1166px, max(730px, calc(1166px + 100vw - 1842px)));
}

.product-set-select__info p {
  font-size: 12px;
}

.product-set-select__info-item:first-child span {
  font-size: 18px;
  font-weight: 600;
}

.product-set-select__info-item:last-child {
  margin-top: 8px;
}

.product-set-select__info-item:last-child span {
  color: #af0101;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.product-set-select .product__title {
  margin-top: 50px;
  line-height: 35px;
  letter-spacing: -0.25px;
  margin-bottom: 0;
}

.product-set-select__notice {
  color: #af0101;
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
  margin: 1px auto 0;
  max-width: min(1166px, max(730px, calc(1166px + 100vw - 1842px)));
}

.product-set-select__list {
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
  row-gap: 40px;
  justify-content: center;
}

@media (min-width: 600px) {
  .product-set-select__list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.product-set-select__image-wrap {
  position: relative;
}

.product-set-select__fav {
  position: absolute;
  width: 12px;
  height: 12px;
  background-image: url(../img/product-detail/product-like.svg);
  background-size: cover;
  background-color: transparent;
  right: 17px;
  bottom: 17px;
}

.product-set-select__image {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-set-select__name {
  color: #1a1819;
  font-size: 20px;
  line-height: 30px;
  margin-top: 20px;
}

.product-set-select__quantity select {
  width: 100%;
  padding: 13px 10px;
  border: 1px solid #999999;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  background-image: url(../img/common/select-arrow.svg);
  background-size: 12px 8px;
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-color: #fff;
  margin-top: 5px;
}

/*  */
.product-item__category__wrap {
  text-align: center;
}

.product-item__category {
  min-width: 180px;
  max-width: 100%;
  text-align: center;
  padding: 6px;
  line-height: 1.4;
  background-color: #fff;
  border: 1px solid #1A1819;
  margin: 0 auto;
  margin-bottom: 30px;
  display: inline-block;
  font-weight: 600;

}


@media screen and (min-width: 768px) {
  .product-detail {
    padding-top: 170px;
    padding-bottom: 150px;
  }

  .product-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: min(65px, max(30px, calc(65px + 50vw - 500px)));
    justify-content: center;
    max-width: min(1166px, max(750px, calc(1166px + 100vw - 1782px)));
    margin: 0 auto;
  }

  .product-set-select__fav {
    width: 17px;
    height: 17px;
  }

  .product-slider {
    width: 44.3vw;
    margin: 0;
  }

  .product-slider__gallery {
    width: min(330px, 31.5vw);
    margin: 21px auto 0;
  }

  .product-slider__thumbnail {
    width: calc((min(330px, 31.5vw) - 30px) / 3);
    height: calc((min(330px, 31.5vw) - 30px) / 3);
    margin-right: 15px;
  }

  .prev-arrow {
    left: max(-40px, min(-30px, calc(-40px - 50vw + 500px)));
  }

  .next-arrow {
    right: max(-40px, min(-30px, calc(-40px - 50vw + 500px)));
  }

  .product-info {
    position: relative;
    margin: 0;
    width: 48%;
  }

  .product-info__title {
    font-size: 25px;
    line-height: 36px;
    padding-bottom: 15px;
  }

  .product-info__price {
    font-size: 25px;
    line-height: 35px;
    padding-top: 13px;
    padding-bottom: 15px;
  }

  label[for="quantity"] {
    font-size: 14px;
    margin-right: 10px;
  }

  .common-button {
    max-width: 285px;
  }

  .common-button--cart {
    margin-top: 29px;
    margin-bottom: 22px;
    margin-left: 0;
  }

  .common-button--favorite {
    margin-left: 0;
  }

  .common-button--favorite:hover {
    background-color: #9a9a9a;
  }

  .related-products__fav {
    width: 17px;
    height: 17px;
  }

  @media (max-width: 840px) {
    .common-button--cart a {
      padding-right: 30px;
    }
  }

  .product-info__comment {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .product-set-select__info {
    margin-top: 16px;
  }

  .product-description {
    margin: 150px auto 0;
    max-width: 752px;
  }

  .product__title {
    font-size: 35px;
    margin-bottom: 70px;

    font-weight: 800;
  }

  .product-description__image {
    width: 100%;
    aspect-ratio: 752 / 752;
    margin-bottom: 20px;
  }

  .product-description__item {
    margin-top: 70px;
  }

  .product-description__ordered {
    gap: 25px;
  }

  .product-description__detail {
    display: flex;
    flex-direction: row;
    max-width: 730px;
  }

  .product-description__detail-title {
    min-width: 112px;
    margin-right: 45px;
    white-space: nowrap;
  }

  .product-description__detail:last-child {
    margin-top: 24px;
  }

  .product-specification {
    margin: 36px auto 0;
    max-width: 752px;
  }

  .related-products {
    margin: 150px auto 0;
  }

  /* .related-products__list {
    margin: 70px auto 0;
    column-gap: min(50px, max(24px, calc(50px + 50vw - 500px)));
    row-gap: 50px;
    max-width: min(1166px, max(730px, calc(1166px + 100vw - 1842px)));
  } */
  .related-products__list {
    max-width: 730px;
    gap: 50px;
  }

  .related-products__item {
    padding-bottom: 0px;
    width: calc((100% - 100px)/3);
  }

  .product-set-select {
    margin: 0 auto;
    max-width: min(965px, max(730px, calc(965px + 100vw - 1625px)));
  }

  .product-set-select__list {
    margin: 70px auto 0;
    column-gap: min(50px, max(24px, calc(50px + 50vw - 500px)));
    row-gap: 50px;
  }

  .product-set-select .product__title {
    margin-top: 100px;
    text-align: left;
    font-size: 25px;
    line-height: 36px;
  }

  .product-set-select__list {
    margin: 40px auto 0;
  }

  .product-set-select__name {
    line-height: 34px;
    margin-top: 10px;
  }

  .product-set-select__quantity select {
    margin-top: 3px;
  }

  .product-specification__item {
    display: flex;
    padding: 10px 30px;
  }

  .product-specification__title {
    min-width: 126px;
  }

  .product-description__detail-note--red {
    margin-top: 0px;
  }

  /*  */
  .product-item__category__wrap {
    text-align: center;
  }

  .product-item__category {
    min-width: 180px;
    max-width: 100%;
    text-align: center;
    padding: 6px;
    line-height: 1.4;
    background-color: #fff;
    border: 1px solid #1A1819;
    margin: 0 auto;
    margin-bottom: 50px;
    display: inline-block;
    font-weight: 600;

  }

}