@charset "utf-8";
/* CSS Document */

/*------------------------------
オートメーション：ランキングエリア用（javaScript連動）
------------------------------*/

/*リンクエリア：フレックスボックス*/
#item_ranking{
	/*フレックスボックスの設定*/
	display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
	/*フレックスボックスの要素を左寄せ*/
	justify-content: left;
	align-items: flex-start;
	
	text-align: left;
	margin-bottom: 2em;
}
#item_ranking > div {
	/*列数と間の余白の設定*/
	width: calc( ( 100% - 50px ) / 6 );
	margin-right: 10px;
}
/*右端のマージンをゼロ設定*/
#item_ranking > div:nth-child( 6n ) {
	margin-right: 0;
}
.ranking-item{
	padding-bottom:30px;
	font-size:0.8em;
}
.ranking-item img{
	width:100%;
}
.item-price.sale{
    color:red;
}
.tax-included{
    font-size:0.6em;
}
@media (max-width: 768px) {
	/*#item_ranking{
		padding:0 4vw;
	}*/
	#item_ranking > div {
		/*列数と間の余白の設定*/
		width: calc( ( 100% - 1vw ) / 2 );
		margin-right: 1vw;
	}
	/*#item_ranking > div:nth-child( 5n ) {
		margin-right: 1vw;
	}*/
	#item_ranking > div:nth-child( 2n ) {
		margin-right: 0;
	}
}

	
.ranking-item {
    position: relative;
}
.item-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 32px;
    height: 32px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 16px;
    text-align: center;
    color: #fff;
    line-height: 32px;
    font-size: 14px;
	
}
@media (max-width: 768px) {
    .item-rank{
        top: 4px;
        left: 4px;
        width: 24px;
        height: 24px;
        border-radius: 12px;
        line-height: 24px;
        
        font-size: 12px;
    }
}
/*色変更*/
#item_ranking .ranking-item:nth-child(1) .item-rank {
    background-color: #d8b923;
}
#item_ranking .ranking-item:nth-child(2) .item-rank {
    background-color: #86adad;
}
#item_ranking .ranking-item:nth-child(3) .item-rank {
    background-color: #c98c4d;
}

/*ローダーアニメーション*/
.ranking_loader {
    margin:4em auto;
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #333; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;

	position: absolute;
    left: calc(50% - 20px);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
