@charset "UTF-8";

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

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

section.recentlyViewed .recent-item {
  width: 16%;
  margin: 0 5% 2% 0;
}

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 h2.section__title {
  font-size: 20px;
  padding: 0 0 30px 0;
}

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: 16px;
  margin: 0 0 15px;
  line-height: 150%;
  font-weight: bold;
}

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

section.recentlyViewed .recentlyViewed__inner {
  width: 1160px;
  margin: 0 auto;
  padding: 40px 0;
  /* border-top: solid 1px #DDD; */
}

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

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

section.recentlyViewed .discount-icon {
  background: #d90000;
  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;
}

/* スマートフォン専用サイト(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-image: url(/hpgen/smp/img/theme11/title_point.png), url(/hpgen/smp/img/theme11/title_bg.png);
  background-repeat: no-repeat, repeat-x;
  background-position: left top, left top;
  margin: 0 0 10px;
  padding: 14px 0 12px 10px;
  vertical-align: middle;
  text-align: left;
  font-weight: normal;
  font-size: 14px;
}

#page section.recentlyViewed .recent-item {
  width: auto;
  margin: 0 3% 0 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: 90%;
  margin: 0 auto;
  background: #FFF;
  padding: 10px;
}

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

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

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

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

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

@media screen and (max-width: 1160px) {
  section.recentlyViewed .recentlyViewed__inner {
    width: 100%;
  }
}

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

  section.recentlyViewed {
    overflow-x: hidden;
  }

  section.recentlyViewed .product__lists {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 50px 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%;
  }

  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: 20vw;
    display: block;
  }

  section.recentlyViewed .recentlyViewed__inner {
    padding: 20px 2% 0;
  }

  section.recentlyViewed {
    width: 100%;
    margin: 0 auto;
    /* padding: 0 2%; */
  }

  section.recentlyViewed h2.section__title {
    font-size: 16px;
    padding: 0 0 20px 0;
  }

  section.recentlyViewed p.item-name {
    font-size: 14.4px;
    margin: 0 0 15px;
    line-height: 150%;
    font-weight: bold;
  }

}

@media screen and (max-width: 480px) {
  section.recentlyViewed .recent-item a {
    width: 46vw;
    display: block;
  }
}


/* original */
section.recentlyViewed h2.section__title {
  font-family: "Noto Serif JP", "游明朝体", "YuMincho", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN W3", HiraMinProN-W3, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif !important;
  font-size: 160%;
  color: #222222;
  border: none;
  letter-spacing: 0.1em;
  padding: 0px 0 10px;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  section.recentlyViewed h2.section__title {
      font-size: 140%;
  }
}

/* 商品詳細ページ専用 */
.recentlyViewed-area section.recentlyViewed .recentlyViewed__inner {
  width: 900px;
}
.recentlyViewed-area section.recentlyViewed h2.section__title {
  font-size: 20px !important;
  line-height: 1.4;
  margin: 40px 0 10px !important;
}
@media screen and (max-width: 768px) {
  .recentlyViewed-area section.recentlyViewed .recentlyViewed__inner {
    width: 100%;
    padding: 20px 0 0;
  }
}
@media screen and (max-width: 480px) {
  article .recentlyViewed-area section.recentlyViewed .recentlyViewed__inner a:hover p {
    background-color: transparent;
  }
}

/* PCカート */
#EST_SPS_cart .recentlyViewed .recentlyViewed__inner {
  max-width: 1200px;
  margin: 0;
  padding: 100px 0 50px;
}
#EST_SPS_cart .recentlyViewed .recentlyViewed__inner h2.section__title {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", メイリオ, Meiryo, sans-serif !important;
  display: inline-block !important;
  font-weight: bold;
  margin: 35px 0 15px;
  border: none;
  font-size: 140%;
  color: #222222;
  border-bottom: 3px solid #222222;
  letter-spacing: 0.05em;
  padding: 0px 0 10px;
}
@media screen and (max-width: 768px) {
  #EST_SPS_cart section.recentlyViewed {
      width: 100vw;
      margin: 0 auto;
      padding: 0;
  }
}
@media screen and (max-width: 480px) {
  #EST_SPS_cart section.recentlyViewed .recentlyViewed__inner a:hover p {
    background-color: transparent;
  }
}