@charset "utf-8";

:root {
  --color-sale_bg: #FFF;
  --color-sale_txt: #000;
  --color-price:#F00000;
}

/* sale */
.sale {
  background: var(--color-sale_bg);
  color: var(--color-sale_txt);
  position: relative;
  overflow: hidden;
}

.sale .inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 60px 40px;
  padding: 70px 7%;
}
@media (max-width: 2047px){
  .sale .inner {
    grid-template-columns: repeat(6, 1fr);
    gap: 50px 35px;
    padding: 60px 7%;
    }
}
@media (max-width: 1679px){
  .sale .inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 30px;
    padding: 50px 7%;
  }
}
@media (max-width: 1199px){
  .sale .inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 25px;
    padding: 45px 40px;
  }
}
@media (max-width: 991px){
  .sale .inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    padding: 40px 30px;
  }
}
@media (max-width: 575px){
  .sale .inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
    padding: 40px 15px;
  }
}

.sale_item {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  font-size: 15px;
  text-align: center;
  min-width: 0;
  /* overflow: hidden; */
}
@media (max-width: 991px){
  /* タブレットフォントサイズ  */
  .sale_item {
    font-size: 14px;
  }
}
@media (max-width: 575px){
  /* SPフォントサイズ  */
  .sale_item {
    font-size: 13px;
  }
}


.sale_item dl {
  margin-top: 8px;
}

.sale_item_swiper_wrap {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  margin-top: auto;
  margin-bottom: auto;
}

/* 左上SALEラベル */
/* .sale_item_swiper_wrap::after {
  content: "";
  width: 45%;
  height: 45%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: top / contain no-repeat url("../img/sale.svg");
  border-radius: 4px 0 0 0;
} */

.sale_item_swiper {
  width: 100%;
  overflow: hidden;
  /* position: relative; */
  background: #FFFFFF;
}

.sale_item_swiper .swiper-wrapper {
}

.sale_item_swiper .swiper-slide {
  transition: opacity 0.1s;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}
@media (min-width: 576px){
  /* PCボタン */
  .sale_item_swiper .swiper-slide:hover {
    opacity: 0.8;
    transition: opacity 0.2s;
  }
}
@media (max-width: 575px){
  /* SPボタン */
  .sale_item_swiper .swiper-slide:active {
    opacity: 0.8;
    transition: opacity 0.2s;
  }
}

.sale_item_swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sale_item .sale-item_name {
  font-weight: 700;

  /* 最大行数指定 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sale_item .sale-item_title {
  font-size: 90%;
  opacity: 0.7;

  /* 最大行数指定 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sale_item .sale-item_price {
  margin: 6px 0;
  line-height: 1.3;
  position: relative;
  display: grid;
  grid-template-areas:
    "A C"
    "B C";
  align-items: center;
  justify-content: center;
  gap: 0 3px;
}

.sale_item .sale-item_price .before {
  font-size: 90%;
  opacity: 0.4;
  position: relative;
  letter-spacing: 0.05em;
  grid-area: A;
  width: fit-content;
  margin: 0 auto;
}

.sale_item .sale-item_price .before::after {
  content: "";
  height: 1px;
  width: 100%;
  background-color: var(--color-sale_txt);
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}
    
.sale_item .sale-item_price .after {
  font-size: 150%;
  color: var(--color-price);
  letter-spacing: 0;
  grid-area: B;
}

.sale_item .sale-item_price .after .yen {
  font-size: 80%;
}

.sale_item .sale-item_price small {
  font-size: 10px;
}

.sale_item .sale-item_price .sale_icon {
  width: 38px;
  grid-area: C;
  margin-left: 18%;
  transform: scale(1.2);
}



/* swiperカスタム */
.sale .swiper-horizontal>.swiper-pagination-bullets, 
.sale .swiper-pagination-bullets.swiper-pagination-horizontal, 
.sale .swiper-pagination-custom, 
.sale .swiper-pagination-fraction {
  bottom: 10px;
  width: auto !important;
  pointer-events: none;
}

.sale .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.4;
}

.sale .swiper-pagination-bullet-active {
  opacity: 1;
  background: #FFFFFF;
}

.sale .swiper-button-next,
.sale .swiper-button-prev {
  position: absolute;
  outline: none;
  top: auto;
  bottom: 0;
  height: 28px;
  /* margin-bottom: 7px; */
}
@media (any-hover: hover) {
  .sale .swiper-button-next,
  .sale .swiper-button-prev {
    transition: opacity 0.1s;
  }
  .sale .swiper-button-next:hover,
  .sale .swiper-button-prev:hover {
    transition: opacity 0.2s;
    opacity: 0.7;
  }  
}
.sale .swiper-button-next:after,
.sale .swiper-button-prev:after {
  position: absolute;
  content: "";
  /* 空指定してデフォルトの矢印を消す */
  width: 0;
  height: 0;
  border-style: solid;
}
/* 次へ矢印をカスタマイズ */
.sale .swiper-button-next {
  right: 0px;
}
.sale .swiper-button-next::after {
  content: "";
  background: url("../img/sale/arrow_right.svg") no-repeat center;
  width:  50%;
  height: 50%;
}

/* 前へ矢印をカスタマイズ */
.sale .swiper-button-prev {
  left: 0px;
}
.sale .swiper-button-prev::after {
  content: "";
  background: url("../img/sale/arrow_left.svg") no-repeat center;
  width:  50%;
  height: 50%;
}



/* swiperメイン */
.sale_item_swiper_wrap {
  overflow: hidden;
}
.sale_item_swiper_wrap>a {
  position: relative;
  /* border-radius: 0 0 4px 4px; */
  border-radius: 4px;
  overflow: hidden;
}
/* .sale_item_swiper_wrap::before {
  content: "\2B05\a0スライドして中身を見る\a0\27A1";
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #00b3d6;
  color: #FFF;
  border-radius: 6px 6px 0 0;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
  margin-right: auto;
  letter-spacing: 0.05em;
} */
.sale_item_swiper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
  z-index: 5;
  pointer-events: none;
}
.sale_item_swiper {
  /* border-radius: 0 0 6px 6px; */
}
.sale_item_swiper .swiper-wrapper .swiper-slide:first-child {
  border-radius: 4px 0 0 4px;
}
.sale_item_swiper .swiper-wrapper .swiper-slide:last-child {
  border-radius: 0 4px 4px 0;
}

.sale_item .btn_wrap {
  display: none;
}

.sale_item_swiper_wrap form {
  z-index: 10;
  position: absolute;
  bottom: 30px;
  right:   5px;
  width:  44px;
  height: 44px;
  border-radius: 48px;
  overflow: hidden;
}
.sale_item_swiper_wrap form button {
  width:  100%;
  height: 100%;
  outline: 0;
  background: url("../img/sale/cart.svg"), rgba(0, 0, 0, 0.5);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  margin:  0;
  transition: all 0.1s;
}
@media (any-hover: hover) {
  .sale_item_swiper_wrap form button:hover {
    background: url("../img/sale/cart.svg"), #00b3d6;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s;
  }
}
@media (any-hover: none) {
  .sale_item_swiper_wrap form button:active {
    background: url("../img/sale/cart.svg"), #00b3d6;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s;
  }
}



/* swiperサムネイル */
.swiper-thumbnail {
  width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 575px) {
  .swiper-thumbnail {
    margin-top: 6px;
  }
}

.swiper-thumbnail .swiper-wrapper .swiper-slide {
  /* width: 25%; */
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  /* image-rendering: pixelated; */
}
.swiper-thumbnail .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (any-hover: hover) {
  .swiper-thumbnail .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) {
    cursor: pointer;
    transition: all 0.1s;
  }
  .swiper-thumbnail .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active):hover {
    opacity: 0.7;
    transition: all 0.2s;
  }
}
/* 選択されているサムネイルを透過 */
.swiper-slide-thumb-active {
  position: relative;
  /* opacity: .3; */
  filter: brightness(33%);
  /* border: solid 3px #00b3d6; */
}

.swiper-thumbnail .swiper-wrapper .swiper-slide:first-child {
  margin-left: auto;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
}
.swiper-thumbnail .swiper-wrapper .swiper-slide:last-child {
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}
.reverse .swiper-thumbnail .swiper-wrapper .swiper-slide:first-child {
  margin-left: 0;
}