@charset "UTF-8";

/* 最近見た商品のレコメンド */

section.recentlyViewed .product__lists {
  display: flex;
  flex-wrap: wrap;
}

section.recentlyViewed .recent-item {
  width: 20%;
  margin: 0 0 2%;
  padding: 0 1rem;
}

section.recentlyViewed .recent-item:nth-child(5n) {
  margin: 0;
}

section.recentlyViewed p.item-img {
  margin: 0 0 10px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.recentlyViewed p.item-img img{
    min-height: 153px;
    object-fit: cover;
}

section.recentlyViewed h2.section__title {
  padding: 0;
  font-size: 1.75rem;
  position: relative;
  margin: 2rem 0 3rem;
  text-align: center;
}

section.recentlyViewed h2.section__title:after{
  background-color: #f4d800;
    position: absolute;
    bottom: -9px;
    left: 50%;
    width: 40px;
    height: 2px;
    content: '';
    -webkit-transition: width 0.35s cubic-bezier(0.39, 0.575, 0.565, 1) 0.45s;
    transition: width 0.35s cubic-bezier(0.39, 0.575, 0.565, 1) 0.45s;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}


section.recentlyViewed h2.section__title span {
  font-size: 75%;
  margin: 0 0 0 5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

section.recentlyViewed p.item-name {
  font-size: 15px;
  margin: 0 0 10px;
  line-height: 150%;
  font-weight: 500;
  text-align: left;
}

section.recentlyViewed p.item-price {
  display: flex;
  align-items: center;
  line-height: 150%;
  font-size: 12px;
  color: #F79800;
}

section.recentlyViewed .recentlyViewed__inner {
  width: 925px;
  margin: 0 auto;
  padding: 0;
}

section.recentlyViewed {
  padding: 40px 0;
  /* background: #f5f5f5; */
}

#EST_SPS_cart section.recentlyViewed {
    padding: 40px 0;
}

body:has(.ranking) section.recentlyViewed{
    padding-top: 1px;
}

section.recentlyViewed .selling_price {
  font-size: 16px;
}

section.recentlyViewed .selling_price span.tax-text{
    color: #837d74;
    font-size: 12px;
    margin: 0 0 0 2px;
}

section.recentlyViewed .discount-icon {
  background: #d90000;
  color: #fff;
  font-size: 11px;
  padding: 0px 5px;
  margin: 0 0 0 5px;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

section.recentlyViewed span.selling_price.discount-price {
  color: #D90000;
}

/* スマートフォン専用サイト(S-ホワイト調整) */

#page section.recentlyViewed .recentlyViewed__inner {
  width: auto;
  padding: 0 0 10px !important;
  background: url(/hpgen/smp/img/theme11/section_bg.png) !important;
}

#page section.recentlyViewed {
  width: auto;
  margin: 0 5px;
}

#page section.recentlyViewed h2.section__title {
  background-color: var(--kgn1);
  margin: 10px 0 0;
  padding: 14px 0 12px;
  vertical-align: middle;
  text-align: left;
  font-size: 14px;
  padding-left: 14px;
  font-weight: normal;
}
#page section.recentlyViewed h2.section__title:after{
    content: unset;
}

#page section.recentlyViewed .recent-item {
  width: auto;
  margin: 0 3% 0 0;
  padding: 0;
}

#page section.recentlyViewed .recent-item:nth-child(5n) {
  margin: 0 3% 0 0;
}

#page section.recentlyViewed .recent-item:last-child {
  margin: 0;
}

#page section.recentlyViewed .product__lists {
  width: 95%;
  margin: 13px auto 0;
  background: #FFF;
  padding: 10px;
}

#page section.recentlyViewed .recent-item a {
  color: #282828;
  text-decoration: none;
}

#page section.recentlyViewed p.item-name {
  margin: 0 0 5px;
}

#page section.recentlyViewed p.item-price {
  margin: 0;
}

#page section.recentlyViewed .recent-item a {
  width: 35vw;
}

#page #contents:has(#contents)+.recentlyViewed {
    display: none;
}

#page section.recentlyViewed p.item-name{
    font-size: 13px;
}

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

  section.recentlyViewed .product__lists {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 10px 0;
    display: -ms-flexbox;
    display: flex;
    width: 108%;
    flex-wrap: unset;
    margin: 0 0 0 -4%;
  }

  section.recentlyViewed .recent-item {
    width: auto;
    margin: 0 0 0 4%;
    padding: 0;
  }

  section.recentlyViewed .recent-item:nth-child(5n) {
    margin: 0 0 0 4%;
  }

  section.recentlyViewed .recent-item:last-child {
    margin: 0 4%;
  }

  section.recentlyViewed .recent-item a {
    width: 40vw;
    display: block;
  }

  section.recentlyViewed .recentlyViewed__inner {
    width: 100%;
    padding: 0;
  }

  section.recentlyViewed {
    width: 92%;
    margin: 0 auto;
    padding: 30px 0;
  }

  section.recentlyViewed h2.section__title {
    padding: 0;
    font-size: calc(1.3rem + .6vw);
    margin: 0 0 2rem;
  }

  section.recentlyViewed p.item-name {
    font-size: 14px;
    margin: 0 0 5px;
  }

  section.recentlyViewed .selling_price {
    font-size: 15px;
  }
  section.recentlyViewed p.item-img img{
    min-height: 156px;
  }
  section.recentlyViewed .selling_price span.tax-text {
    font-size: 11px;
}

section.recentlyViewed .discount-icon {
    font-size: 10px;
    border-radius: 2px;
    padding: 0 3px;
}

}