@charset "UTF-8";

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

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

/* 下層ページもTOPページと同じ「最近見た商品」レイアウトに統一 */
body section.recentlyViewed,
body #page section.recentlyViewed{
  width:100%!important;
  margin:0!important;
  padding:70px 40px 76px!important;
  background:#f4f0e7!important;
  color:#31251e;
  font-family:"Noto Sans JP",sans-serif
}
body section.recentlyViewed .recentlyViewed__inner,
body #page section.recentlyViewed .recentlyViewed__inner{
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  background:none!important
}
body section.recentlyViewed h2.section__title,
body #page section.recentlyViewed h2.section__title{
  margin:0 0 36px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:#31251e!important;
  font-family:"Shippori Mincho",serif!important;
  font-size:30px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:.08em!important
}
body section.recentlyViewed h2.section__title::before,
body #page section.recentlyViewed h2.section__title::before{
  content:"HISTORY";
  display:block;
  margin-bottom:5px;
  color:#8b7355;
  font-family:"Noto Sans JP",sans-serif;
  font-size:16px;
  font-weight:500;
  letter-spacing:.2em
}
body section.recentlyViewed .product__lists,
body #page section.recentlyViewed .product__lists{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:22px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important
}
body section.recentlyViewed .recent-item,
body section.recentlyViewed .recent-item:nth-child(5n),
body #page section.recentlyViewed .recent-item,
body #page section.recentlyViewed .recent-item:nth-child(5n){
  display:block!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important
}
body section.recentlyViewed .recent-item a,
body #page section.recentlyViewed .recent-item a{
  display:block!important;
  width:auto!important;
  color:inherit!important;
  text-decoration:none!important
}
body section.recentlyViewed p.item-img,
body #page section.recentlyViewed p.item-img{
  display:flex!important;
  width:100%!important;
  aspect-ratio:1/1;
  align-items:center;
  justify-content:center;
  margin:0 0 14px!important;
  padding:0!important;
  overflow:hidden;
  background:#fff!important
}
body section.recentlyViewed p.item-img img,
body #page section.recentlyViewed p.item-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}
body section.recentlyViewed p.item-name,
body #page section.recentlyViewed p.item-name{
  margin:0 0 5px!important;
  color:#31251e;
  font-family:"Shippori Mincho",serif;
  font-size: 20px!important;
  font-weight:500!important;
  line-height:1.5!important
}
body section.recentlyViewed p.item-price,
body #page section.recentlyViewed p.item-price{
  display:flex;
  align-items:center;
  margin:0!important;
  font-size:11px!important;
  line-height:1.5!important
}
body section.recentlyViewed .selling_price,
body #page section.recentlyViewed .selling_price{font-size: 17px!important;}
body section.recentlyViewed .item-tax,
body #page section.recentlyViewed .item-tax{font-size:12px!important;font-weight:400}

@media screen and (max-width:767px){
  body section.recentlyViewed .selling_price, body #page section.recentlyViewed .selling_price{
    font-size: 14px !important;
}
  body section.recentlyViewed,
  body #page section.recentlyViewed{padding:52px 20px 58px!important}
  body section.recentlyViewed h2.section__title,
  body #page section.recentlyViewed h2.section__title{margin-bottom:25px!important;font-size:23px!important}
  body section.recentlyViewed .product__lists,
  body #page section.recentlyViewed .product__lists{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
  body section.recentlyViewed .recent-item:nth-child(n+3),
  body #page section.recentlyViewed .recent-item:nth-child(n+3){display:none!important}
  body section.recentlyViewed p.item-name,
  body #page section.recentlyViewed p.item-name{font-size:11px!important}
}

/* cobon TOP design */
body.cb-top-page section.recentlyViewed{width:100%;margin:0;padding:70px 40px 76px;background:#f4f0e7;color:#31251e;font-family:"Noto Sans JP",sans-serif}
body.cb-top-page section.recentlyViewed .recentlyViewed__inner{width:100%;max-width:1280px;margin:auto;padding:0;border:0}
body.cb-top-page section.recentlyViewed h2.section__title{margin:0 0 36px;padding:0;border:0;background:none;color:#31251e;font-family:"Shippori Mincho",serif;font-size:30px;font-weight:500;line-height:1.4;letter-spacing:.08em}
body.cb-top-page section.recentlyViewed h2.section__title:before{content:"HISTORY";display:block;margin-bottom:5px;color: #8B7355;font-size: 16px;font-weight: 500;letter-spacing:.2em;font-family: "Noto Sans JP", sans-serif;}
body.cb-top-page section.recentlyViewed .product__lists{display:grid;grid-template-columns: repeat(4,minmax(0,1fr));gap: 22px;width:100%;margin:0;padding:0;overflow:visible}
body.cb-top-page section.recentlyViewed .recent-item,body.cb-top-page section.recentlyViewed .recent-item:nth-child(5n){width:auto;margin:0;min-width:0}
body.cb-top-page section.recentlyViewed .recent-item a{display:block;width:auto;color:inherit;text-decoration:none}
body.cb-top-page section.recentlyViewed p.item-img{width:100%;margin:0 0 14px;padding:0;background:#fff;aspect-ratio:1;overflow:hidden}
body.cb-top-page section.recentlyViewed p.item-img img{display:block;width:100%;height:100%;object-fit:contain}
body.cb-top-page section.recentlyViewed p.item-name{/* min-height:3em; */margin:0 0 5px;line-height:1.5;font-family: "Shippori Mincho", serif;font-size: 18px;font-weight: 500;}
body.cb-top-page section.recentlyViewed p.item-price{margin:0;font-size:11px;line-height:1.5}
body.cb-top-page section.recentlyViewed .selling_price{font-size: 17px;}
body.cb-top-page section.recentlyViewed .item-tax{font-size:12px;font-weight:400}
@media screen and (max-width:767px){body.cb-top-page section.recentlyViewed{width:100%;margin:0;padding:52px 20px 58px}body.cb-top-page section.recentlyViewed h2.section__title{margin-bottom:25px;font-size:23px}body.cb-top-page section.recentlyViewed .product__lists{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;overflow:visible}body.cb-top-page section.recentlyViewed .recent-item:nth-child(n+3){display:none}body.cb-top-page section.recentlyViewed .recent-item a{width:auto}body.cb-top-page section.recentlyViewed p.item-name{font-size: 16px !important;}}

section.recentlyViewed .recent-item {
  width: 18%;
  margin: 0 2.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: 14px;
  margin: 0 0 5px;
  line-height: 150%;
  font-weight: bold;
}

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

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

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

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

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: 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%;
  }

  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: 20px 0 0;
  }

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

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

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

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

}

/* 2026-10-23: 下層ページもトップと同じ文字サイズ */
body section.recentlyViewed p.item-name,body #page section.recentlyViewed p.item-name{font-size:18px!important;line-height:1.5!important}
body section.recentlyViewed .selling_price{font-size:17px!important}
body section.recentlyViewed .item-tax{font-size:12px!important}
@media(max-width:767px){body section.recentlyViewed p.item-name,body #page section.recentlyViewed p.item-name{font-size:16px!important}}

/* Mobile history: two cards in view, up to five cards in one scrollable row. */
@media (min-width:768px) {
  body section.recentlyViewed .recent-item:nth-child(n+5),
  body #page section.recentlyViewed .recent-item:nth-child(n+5) {display:none!important}
}
@media (max-width:767px) {
  body section.recentlyViewed .product__lists,
  body #page section.recentlyViewed .product__lists {
    grid-template-columns:none!important;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 15px) / 2);
    gap:15px!important;
    max-width:100%;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    padding-bottom:12px!important;
  }
  body section.recentlyViewed .recent-item:nth-child(n+3),
  body #page section.recentlyViewed .recent-item:nth-child(n+3) {display:block!important}
  body section.recentlyViewed .recent-item {scroll-snap-align:start}
}
