@charset "UTF-8";

/* ====================================================================
   最近見た商品のレコメンド（PC版 2列レイアウト・690px幅4列最適化）
==================================================================== */
section.recentlyViewed {
	padding: 10px;
	width: 680px;
	clear: both;
	box-sizing: border-box;
	margin: 0 auto;
}
section.recentlyViewed .recentlyViewed__inner {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	text-align: left;
}
section.recentlyViewed h2.section__title {
	padding: 8px 0px 8px 7px;
	margin: 0 0 20px 0;
	color: #333;
	line-height: 100%;
	font-size: 110%;
	font-weight: bold;
	letter-spacing: 0.2em;
	background: #e6dcbc;
}
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: 100%;
	margin: 0;
	line-height: 140%;
	font-weight: bold;
	color: #333;
}

/* 価格エリア */
section.recentlyViewed p.item-price {
	margin: 0;
	padding: 0;
	line-height: 140%;
	font-size: 100%;
	text-align: left;
}

/* 通常価格・セール価格（赤文字） */
section.recentlyViewed .selling_price,
section.recentlyViewed .special_price {
	color: #FF0000;
}

/* 定価（打ち消し線） */
section.recentlyViewed .fixed-price {
	font-size: 90%;
	color: #666666;
	text-decoration: line-through;
	margin-right: 8px;
}

/* ====================================================================
   スマートフォン用メディアクエリ
   ==================================================================== */
/* スマートフォン専用サイト(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;
}
#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;
	color: #333;
}
#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: 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 *****************/
section.recentlyViewed h2.section__title {
	padding: 8px 0px 8px 7px;
	margin: 0 0 20px 0;
    width: auto;
    color: #5B2E00;
    line-height: 100%;
    font-size: 12px;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.1em;
    background: #e6dcbc url(https://www.estore-test86.com/hpgen/HPB/theme/img/title_bar01.gif) repeat-x;
}
section.recentlyViewed p.item-name {
    color: #5B2E00;
}
#page section.recentlyViewed p.item-name {
	color: #333;
	font-weight: normal;
}