@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

.np-section {
  margin: 60px auto 0;
}

.np-title-ja-en {
  margin-bottom: 15px;
}
.np-title-ja-en span {
  display: block;
  line-height: 1.2;
}
.np-title-ja-en .en {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: .375rem;
}
.np-title-ja-en .ja {
  font-size: 22px;
  letter-spacing: .05em;
  font-weight: 700;
}


.np-swiper-button-next,
.np-swiper-button-prev {
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  box-sizing: border-box;
  height: 40px;
  width: 40px;
  transition: .3s;
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-swiper-button-next {
  right: -20px;
}
.np-swiper-button-prev {
  left: -20px;
}
.np-swiper-button-next:after,
.np-swiper-button-prev:after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #000;
  transform: rotate(-45deg);
}
.np-swiper-button-next:after {
  border-style: none solid solid none;
  margin-left: -5px;
}
.np-swiper-button-prev:after {
  border-style: solid none none solid;
  margin-right: -5px;
}

.np-swiper-button-prev.swiper-button-disabled,
.np-swiper-button-next.swiper-button-disabled {
  cursor: auto;
  opacity: .35;
}
.np-swiper-button-prev:not(.swiper-button-disabled):hover,
.np-swiper-button-next:not(.swiper-button-disabled):hover {
  background-color: #000;
}
.np-swiper-button-prev:not(.swiper-button-disabled):hover::after,
.np-swiper-button-next:not(.swiper-button-disabled):hover::after {
  border-color: #fff;
}

.np-product-list {
  padding: 0 30px;
  position: relative;
}
.np-product-list .swiper-wrapper {
  height: auto;
}
.np-product-list .swiper-slide {
  width: calc(100% / 3);
}

.np-product-list .np-product {
  width: 100%;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  line-height: 1.25rem;
  padding: 7px;
  box-sizing: border-box;
  transition: opacity .3s;
}
.np-product-list .np-product:hover {
  opacity: 0.7;
}
.c-article__contents .np-product-list a.np-product {
  text-decoration: none;
  color: initial;
}

.np-product-list .np-product .img {
    aspect-ratio: 1/1;
    background: #fff;
    position: relative;
    width: 100%;
}

.np-product-list .np-product .img .rank {
    background-color: #000;
    color: #fff;
    font-family: "Roboto",sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 6px;
    top: -6px;
}


.np-product-list .np-product .img .rank:before {
    border-color: transparent #000;
    border-style: solid;
    width: 30px;
    border-width: 4px 15px;
    bottom: -4px;
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.np-product-list .np-product .img .rank.rank1 {
    background-color: #EFC974;
}

.np-product-list .np-product .img .rank.rank1:before {
    border-color: transparent #EFC974;
}

.np-product-list .np-product .img .rank.rank2 {
    background-color: #B8B8B8;
}

.np-product-list .np-product .img .rank.rank2:before {
    border-color: transparent #B8B8B8;
}

.np-product-list .np-product .img .rank.rank3 {
    background-color: #AE7363;
}

.np-product-list .np-product .img .rank.rank3:before {
    border-color: transparent #AE7363;
}

.np-product-list .np-product .img .ca-image {
  width: 100%;
  height: 100%;
}

.np-product-list .np-product .img .ca-image img {
    aspect-ratio: 1/1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.np-product-list .np-product .brand,
.np-product-list .np-product .sku {
  color: #999999;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 5px;
}
.np-product-list .np-product .text {
  margin-top: 5px;
}
.np-product-list .np-product .name {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-top: 5px;
}

.np-product-list .np-product .price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
}

.np-product-list .np-product .price .tax {
    font-size: 10px;
}


@media ( max-width : 768px ) {

  .np-section {
    margin-top: 40px;
  }

  .np-title-ja-en {
    margin-bottom: 10px;
  }
  .np-title-ja-en .ja {
    font-size: 18px;
  }
  .np-title-ja-en .en {
    font-size: 12px;
  }

  .np-product-list {
    padding: 0;
    margin-right: -5vw;
    margin-left: -5px;
  }
  .np-swiper-button-prev,
  .np-swiper-button-next {
    display: none;
  }

  .np-product-list .swiper-slide {
    width: calc(100% / 2.5);
  }

  .np-product-list .np-product {
    padding: 5px;
  }
  .np-product-list .np-product .img .rank {
    width: 26px;
    height: 26px;
    font-size: 15px;
    left: 5px;
    top: -5px;
  }
  .np-product-list .np-product .img .rank:before {
    width: 26px;
    border-width: 4px 13px;
    bottom: -4px;
  }


}