@charset "UTF-8";

/* ====================================================================
   最近見た商品のレコメンド（PC版 2列レイアウト・690px幅4列最適化）
==================================================================== */
section.recentlyViewed {
	/* padding: 10px; */
	width: 720px;
	clear: both;
	box-sizing: border-box;
	margin: 0 auto 35px;
}
section.recentlyViewed .recentlyViewed__inner {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	text-align: left;
}
section.recentlyViewed h2.section__title {
	padding: 13px 0px 12px;
	margin: 0 0 10px 0;
	color: #444;
	line-height: 100%;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	letter-spacing: .05em;
	background-color: #f6f0e3;
}
section.recentlyViewed .product__lists {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 100%;
}
section.recentlyViewed .recent-item {
	width: 23.5%; 
	margin-right: 2%;
	margin-bottom: 20px;
	box-sizing: border-box;
}
section.recentlyViewed .recent-item:nth-child(4n) {
	margin-right: 0;
}
section.recentlyViewed .recent-item a {
	display: block;
	color: #666666;
	text-decoration: none;
}
section.recentlyViewed .recent-item a:hover {
	color: #789F00;
	text-decoration: none;
}
section.recentlyViewed p.item-img {
	margin: 0 0 5px;
	padding: 0;
	background: #FFFFFF;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 150px; /* 【修正】100% から固定値に変更（要素の潰れ防止） */
}
section.recentlyViewed p.item-img img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	display: block;
}

/* 商品名 */
section.recentlyViewed p.item-name {
	font-size: 12px;
    margin: 0 0 4px 0;
    line-height: 140%;
    font-weight: 400;
    color: #664C3E;
}

/* 価格エリア */
section.recentlyViewed p.item-price {
	margin: 0;
	padding: 0;
	line-height: 140%;
	font-size: 16px;
	text-align: right;
	font-weight: bold;
}

/* 通常価格・セール価格（赤文字） */
section.recentlyViewed .selling_price,
section.recentlyViewed .special_price {
	color: #990000;
}

/* 定価（打ち消し線） */
section.recentlyViewed .fixed-price {
	font-size: 90%;
	color: #666666;
	text-decoration: line-through;
	margin-right: 8px;
}

/* PCカート用 */
#EST_SPS_cart section.recentlyViewed {
    width: 778px !important;
}

/* ====================================================================
   スマートフォン用メディアクエリ
==================================================================== */
/* スマートフォン専用サイト(S-ホワイト調整) */
body:has(#page) > section.recentlyViewed .recentlyViewed__inner {
	width: auto;
	padding: 0 0 10px !important;
	/* background: url(/hpgen/smp/img/theme11/section_bg.png) !important; */
}
body:has(#page) > section.recentlyViewed {
	width: auto;
	margin: 0;
}
body:has(#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;
	padding: 14px 0 12px 10px;
	vertical-align: middle;
	text-align: left;
	font-weight: normal;
	font-size: 14px;
	color: #000;
}
body:has(#page) > section.recentlyViewed .recent-item {
	width: auto;
	margin: 0 3% 0 0;
}
body:has(#page) > section.recentlyViewed .recent-item:nth-child(5n) {
	margin: 0 3% 0 0;
}
body:has(#page) > section.recentlyViewed .recent-item:last-child {
	margin: 0;
}
body:has(#page) > section.recentlyViewed .product__lists {
	width: 98%;
	margin: 0 auto;
	background: #FFF;
	padding: 5px 0 10px;
}
body:has(#page) > section.recentlyViewed .recent-item a {
	color: #282828;
	text-decoration: none;
}
body:has(#page) > section.recentlyViewed p.item-name {
	margin: 0;
}
body:has(#page) > section.recentlyViewed p.item-price {
	margin: 0;
}
body:has(#page) > section.recentlyViewed p.item-price .selling_price {
	color: #f0365e;
}
body:has(#page) > section.recentlyViewed .recent-item a {
	width: 40vw;
}
body:has(#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: flex;
	width: 108%;
	flex-wrap: unset;
	margin: 0 0 0 -4%;
}
section.recentlyViewed .recent-item {
	width: auto;
	margin: 0 0 0 4%;
}

/* 【削除】スマホ版での不要な :nth-child(5n) のマージン設定をクリア */
section.recentlyViewed .recent-item:last-child {
	margin-right: 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 5px;
}
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;
}

/* スマホ版の画像エリアの高さも、スマホ画面幅（40vw）に合わせて自動〜適正値に調整 */
section.recentlyViewed p.item-img {
	height: 40vw; 
}
}

/***************** Original *****************/


/* ====================================================================
   PC独自構築トップページ（index.htm用）
==================================================================== */
.main #top-recently_viewed {
	margin-top: -120px;
}
.main #top-recently_viewed section.recentlyViewed {
	width: 1200px;
}
.main #top-recently_viewed section.recentlyViewed p.item-img {
	width: 270px;
    height: 270px;
}
.main #top-recently_viewed section.recentlyViewed p.item-img img {
	min-width: 270px;
    min-height: 270px;
}
.main #top-recently_viewed section.recentlyViewed .recent-item {
	margin-right: 3.3%;
    max-width: 270px;
}
.main #top-recently_viewed section.recentlyViewed .recent-item:nth-child(4n) {
    margin-right: 0;
}
.main #top-recently_viewed section.recentlyViewed h2.section__title {
	display: block;
    background-color: #f6f0e3;
	color: #000;
	letter-spacing: .05em;
	font-size: 20px;
	padding: 17px 0;
	text-align: center;
	font-weight: 400;
}


/* ====================================================================
   smp独自構築トップページ（index.html用）
==================================================================== */
#top-recently_viewed_sp {
	margin-top: -20px;
}
#top-recently_viewed_sp section.recentlyViewed {
	width: 100%;
	padding: 0 0px 30px;
}
#top-recently_viewed_sp section.recentlyViewed .recentlyViewed__inner {
	padding: 0;
}
#top-recently_viewed_sp section.recentlyViewed .product__lists {
	padding: 0 0 20px 0;
	width: 92%;
	margin: 0 auto;
}
#top-recently_viewed_sp section.recentlyViewed h2.section__title {
	display: block;
    background-color: #f6f0e3;
	color: #000;
	letter-spacing: .05em;
	font-size: 22px;
    padding: 14px 0;
	text-align: center;
	font-weight: 400;
}