@charset "UTF-8";

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

section.recentlyViewed .product__lists {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0 0;
}

section.recentlyViewed .recent-item {
  width: 22.75%;
  margin: 0 3% 2% 0;
}

section.recentlyViewed .recent-item a{
  transition: .2s;
}

section.recentlyViewed .recent-item a:hover{
  opacity: 0.8;
}

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

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

section.recentlyViewed p.item-img img{
    width: 100%;
}

section.recentlyViewed h2.section__title {
  padding: 0 0 30px 0;
  margin: 0 0 60px;
  padding-bottom: 20px;
  font-size: 24px;
  font-family: ten-mincho, serif;
  text-align: center;
  position: relative;
  line-height: inherit;
}

section.recentlyViewed h2.section__title::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 18px;
  background-size: auto;
  background-image: url(https://www.konbumura.co.jp/assets/images/common/ttl_footer-wave_long.svg);
  background-repeat: no-repeat;
}

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: normal;
  text-align: left;
}

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

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

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

section.recentlyViewed .selling_price {
  font-size: 14px;
  color: #F00;
}

section.recentlyViewed .discount-icon {
  background: #F00;
  color: #fff;
  font-size: 10px;
  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;
}

#page section.recentlyViewed{
    padding: 100px 0 0;
}

#page #recently_viewed.top-page+section.recentlyViewed{}

#page #recently_viewed.top-page+section.recentlyViewed .recentlyViewed__inner {
    width: 1054px;
}

#page #recently_viewed.top-page+section.recentlyViewed h2.section__title::after{
    background-size: 1140px;
}

#Detail section.recentlyViewed {
    padding: 80px 0 50px;
}

#Detail section.recentlyViewed .product__lists {
    margin: 60px 0 0;
}

#Detail section.recentlyViewed h2.section__title::after {
    bottom: -40px;
}

@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: 30px 0 0 -4%;
  }

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

  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 .recent-item a:hover p{
    background: unset;
  }

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

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

  article#Detail #main-column section.recentlyViewed h2.section__title {
    font-size: 20px;
    padding: 0 0 15px 0;
    margin: 0;
    text-align: left;
  }

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

  section.recentlyViewed .selling_price {
    font-size: 13px;
  }
  section.recentlyViewed h2.section__title::after {
    width: 100%;
    bottom: -20px;
    background-size: 250%;
  }
  #page section.recentlyViewed{
    padding: 30px 0 30px;
}
  section.recentlyViewed h2.section__title{
    font-size: 21px;
    padding: 0 0 15px 0;
    margin: 0;
}
#page #recently_viewed.top-page+section.recentlyViewed .recentlyViewed__inner {
    width: 100%;
}

#Detail section.recentlyViewed {
    padding: 30px 0;
}

#Detail section.recentlyViewed .product__lists {
    margin: 30px 0 0 -4%;
}

#Detail section.recentlyViewed h2.section__title::after {
    bottom: -20px;
}

}