@charset "UTF-8";
/* CSS Document */

:root {
  --text_margin: 20px;
  --list_margin: 30px;
  --title_margin: 50px;
  --block_margin: 100px;
  --section_margin: 160px;
  --p-margin: clamp(13px, 1.6vw, 15px);
  --small-font: clamp(12px, 1.5vw, 13px);
}

.pc_display {
  display: block;
}

.sp_display {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --text_margin: 13px;
    --list_margin: 20px;
    --title_margin: 35px;
    --block_margin: 50px;
    --section_margin: 80px;
  }
}

main {
  width: 100%;
  margin-top: calc(var(--title_margin) + 10px);
}

main p,
main li {
  font-size: clamp(13px, 1.7vw, 15px);
}

section {
  margin-bottom: var(--section_margin);
}


.container {
  width: 95%;
  padding-top: var(--title_margin);
  margin: 0 auto var(--block_margin) auto;
  display: flex;
  position: relative;
  max-width: 1300px;
}

.swiper-scrollbar-drag {
    background-color: rgba(176, 178, 175, .7176470588);
}

.container .swiper-scrollbar {
    top: 0;
    width: 4px;
    right: 0;
}

.allSlide {
  width: 54%;
  height: fit-content;
  margin: 0;
  display: flex;
  position: sticky;
  top: 101px;
}

#cushionSlider {
  width: 91%;
  height: fit-content;
  margin: 0;
  margin-right: 10px;
  aspect-ratio: 1/1;

}

#cushionSlider .swiper-slide {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
}

#cushionSlider .swiper-slide img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

#thumbsSlider {
  width: 9%;
}

#thumbsSlider::-webkit-scrollbar {
  display: none;
}

#thumbsSlider .swiper-wrapper {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

#thumbsSlider .swiper-slide {
  display: block;
  opacity: 0.4;
  width: auto;
  height: auto;
  aspect-ratio: 1/1;
  margin-bottom: 10px;
  /* Add flex-shrink: 0 to prevent slides from shrinking when many are present */
  flex-shrink: 0;
}

#thumbsSlider .swiper-slide:last-child {
  margin-bottom: 0px;
}

#thumbsSlider .swiper-slide-thumb-active {
  opacity: 1;
}

@media (max-width: 768px) {
  #cushionSlider {
    margin-right: 7px;

  }

  #thumbsSlider .swiper-slide {
    margin-bottom: 11px;
  }
}

/* 右側テキストエリア */
.right {
  margin-left: 50px;
  /*  max-width: 570px;*/
  width: 46%;
}

/* 商品名 */
.name {
  width: 100%;
  margin-bottom: var(--text_margin);

}

.name h1 {
  font-size: clamp(28px, 3.8vw, 43px);
  margin-bottom: var(--text_margin);
}

.name p {
  font-size: clamp(13px, 1.7vw, 15px);
}

.labelName {
  border: 1px solid #707070;
  padding: 5px 10px;
  width: 170px;
  display: flex;
  justify-content: center;
}

 .small-text {
    font-size: clamp(16px, 1.7vw, 18px); /* 「【旧仕様】」だけ小さく */
  }

/* 価格 */
.price_box {
  margin-bottom: var(--title_margin);
}

.price {
  font-size: clamp(17px, 1.7vw, 18px);
  display: flex;
  align-items: center;
}

.price span {
  font-size: clamp(23px, 3.8vw, 32px);
  margin-left: clamp(5px, 1vw, 7px);

}

.price_box strong {
  font-size: clamp(11px, 1.7vw, 13px);
}


/* 戻るボタン */
section.back_btn {
  width: 250px;
  margin: var(--section_margin) auto;
}

.base_btn.back {
  padding: 1.2em 2.5em;
}

.base_btn.back span {
  font-size: clamp(13px, 1.7vw, 15px);
}

.base_btn.back span::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: solid 1px #B0B2AF;
  border-left: solid 1px #B0B2AF;
  transform: rotate(-45deg);
  display: inline-block;
  margin-right: 10px;

}

@media screen and (max-width: 768px) {

  .name h1 {
    margin-top: var(--text_margin);
  }
	


  section.container {
    width: 95%;
    padding-top: var(--title_margin);
    margin: 0 auto var(--block_margin) auto;
    flex-direction: column;
  }

  .allSlide {
    width: 100%;
    margin-bottom: var(--title_margin);
    position: static;
  }

  .right {
    margin-left: 0px;
    width: 100%;
  }

  section.back_btn {
    width: 95%;
    margin: 0 auto var(--block_margin) auto;
  }

  #cushionSlider .swiper-slide img {
    height: 100%;
  }
}

/* おすすめ商品 */
.re_section {
  background-color: #EEF0F2;
  padding: var(--title_margin) 0;
}

.recommendation .title {
  width: 100%;
  text-align: center;
  padding-bottom: var(--title_margin);
}

.recommendation .title h2 {
  font-size: clamp(28px, 4.5vw, 45px);
  color: #afb2ae
}

.recommendation .swiper li {
  cursor: pointer;
  width: calc(100% / 5.3);
}

.recommendation .swiper li a {
  transition: opacity .45s;
}

.recommendation .swiper li a:hover {
  opacity: .4;
}

.recommendation .swiper li img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 678/525;
  margin-bottom: 15px;
}

.recommendation .swiper h5 {
  font-size: clamp(15px, 1.7vw, 16px);
  line-height: 1.2;
  margin-bottom: 5px;
}

.recommendation .swiper small {
  display: block;
  margin-bottom: 5px;
}

.recommendation .swiper small,
.recommendation .swiper small span {
  font-size: clamp(13px, 1.7vw, 14px);
  line-height: 1.2;
}

.recommendation .swiper .text_box {
  padding: 0 15px;
}

@media screen and (min-width: 769px) and (max-width: 1000px) {
  .recommendation .swiper li {
    width: calc(100% / 4.3);
  }
}

@media screen and (max-width: 768px) {
  .recommendation .swiper li {
    width: calc(100% / 2.3);
  }

  .pc_display {
    display: none;
  }

  .sp_display {
    display: block;
    padding-top: 20px;
  }
}


#thumbsSlider ul {
  display: flex;
    flex-direction: column; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; 
    min-height: 100%;

}

#thumbsSlider ul li img {
  width: 100%;
}

.cart_btn {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: #1c1c1c;
  transition: opacity .35s;
  z-index: 0;
}

.cart_btn::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: #B0B2AF;
  border: #1c1c1c solid 1px;
  opacity: 0;
  top: 0;
  left: 0;
  z-index: -1;
  transition: opacity .35s;
}

.cart_btn:hover::before {
  opacity: 1;
}

.cart_btn b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  transition: color .35s;
  height: 100%;
}

.cart_btn b img {
  margin-right: 10px;
}

.cart_btn button:disabled {
  pointer-events: none;
}

.cart_btn button:disabled:hover {
  opacity: 1;
}

.cart-fav-btns {
  position: fixed;
  z-index: 2;
  bottom: 70px;
  right: 3.5%;
  width: 220px;
  height: 45px;
}

.cart-fav-btns.end .cart_btn::before {
  content: none;
}

.cart-fav-btns form {
  display: contents;
}

@media (min-width: 1000px) {
  .cart-fav-btns {
    bottom: 80px;
    right: 40px;
    width: 220px;
    height: 45px;
    transform: none;
  }
}


.modal-body {
  width: 93%;
  height: auto;
  aspect-ratio: 1/1;
}

.modal-body img {
  height: 100%;
  object-fit: contain;
}

@media (min-width: 769px) {
  .modal-body {
    width: auto;
    height: 82%;
  }

}

.img_size {
  margin-top: 35px;
}

@media (min-width: 769px) {
  .img_size {
    margin-top: 15px;
  }
}

.specBox {
  margin-top: var(--title_margin);

  .specContent {
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--p-margin);
    padding: 15px;
    background: #fafaff;

    .modal_point button::before,
    .modal_point a::before {
      display: block;
      content: "";
      width: 17px;
      height: 17px;
      background: url(/images/common/icon_exclamation.svg) no-repeat center / contain;
      margin-right: 5px;
    }

    .modal_point {
      margin-top: var(--p-margin);
      text-decoration: underline;
    }

    .modal_point a {
      font-size: var(--small-font);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      transition: color .35s;
    }

    .tableArea {
      width: calc(50% - 10px);
      margin-right: 20px;

      &:last-child {
        margin-right: 0;
      }

      table {
        width: 100%;
        font-size: var(--small-font);
      }

      tbody {

        &:first-of-type th,
        &:first-of-type td {
          padding-top: 0;
        }

        &:last-child th,
        &:last-child td {
          padding-bottom: 0;
        }

        &:last-child tr {
          border-bottom: rgba(0, 0, 0, 0);
        }

        tr {
          border-bottom: 1px solid #EEF0F2;
        }

        th {
          text-align: start;
          padding: var(--p-margin) 0;
          padding-right: var(--p-margin);
          white-space: nowrap;

        }

        td {
          text-align: end;
          padding: var(--p-margin) 0
        }
      }
    }
  }

  .specTitle {
    border-bottom: 1px solid #EEF0F2;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  ul {
    margin-bottom: var(--list_margin);

    li {}
  }
}

.hanNyu {
  margin: var(--block_margin) auto 0;
  width: 250px;
}

.base_btn.forward span::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: solid 1px #B0B2AF;
  border-left: solid 1px #B0B2AF;
  transform: rotate(135deg);
  display: inline-block;
  margin-left: 10px;
}

.base_btn.forward {
  padding: 1.2em 2.5em;
}