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

/*
【menu】
1.ランキングエリア用（javaScript連動）
2.検索枠（javaScript連動）
3.絞り込み条件表示エリア（javaScript連動）
*/

/*------------------------------
1.ランキングエリア用（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% - 40px ) / 5 );
	margin-right: 10px;
}
/*右端のマージンをゼロ設定*/
#item_ranking > div:nth-child( 5n ) {
	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); }
}


/*------------------------------
2.検索枠（javaScript連動）
------------------------------*/
.rank-search_wrapper{
	margin-bottom:30px;
	
	/*borderまでをwidthに含める*/
	-webkit-box-sizing: border-box; /* Webkit */
	-moz-box-sizing: border-box; /* Firefox */
	box-sizing: border-box; /* 標準 */
}
/*SP用*/
@media (max-width: 768px) {
	.rank-search_wrapper{
		position: -webkit-sticky; /* Safariに対応する */
		position: sticky; /* 要素を固定/解除する */
		top: 45px; /* 縦方向の閾値 */
		left: 0; /* 横方向の閾値 */
		z-index: 1;
	}
}

#form_wrapper{
	display: none; /*アコーディオン用初期非表示*/
}
/*開閉ボタン*/
.rank-search_open{
	position: relative;
	padding: 10px;
	color: #000;
	background: #fff;
	text-align: center;
	border:solid 1px #000;
	border-radius: 8px;
	cursor: pointer;
}
.rank-search_open.active{/* 開いている時 */
	background: #000;
	color: #fff;
	border-radius: 8px 8px 0 0;
}
.rank-search_open::before{/* 閉じている時/右の＋－表示 */
	content: "＋";
	position: absolute;
	right: 20px;
}
.rank-search_open.active::before{/* 開いている時/右の＋－表示 */
	content: "－";
}
/*虫眼鏡アイコン*/
.rank-search_icon{
	margin-left:0.5em;
}

/*中身*/
#form_wrapper{
	padding:20px;
	background: #eee;
	border-radius: 0 0 8px 8px;
}
#form_wrapper form{
	margin-block-end: 0;　/*formのデフォルトマージンリセット*/
}
/*セレクト*/
#search_form select{
	/*デフォルトスタイルリセット*/
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    border: 0;
    outline: none;
    padding: 0;
    background: transparent;
	
	/*スタイル再設定*/
	width:100%;
	line-height:1.8;
	padding:0.4em;
	font-size:0.9em;
	border:1px solid #ccc;
	margin-bottom:10px;
	background-color: #fff;
	cursor: pointer;
}
/*セレクト 矢印*/
#search_form .select_wrapper {
    position: relative;
    width: 100%;
	cursor: pointer;
}
#search_form .select_wrapper:after {
	content: '';
	width: 6px;
	height: 6px;
	border: 0;
	border-bottom: solid 2px #333;
	border-right: solid 2px #333;
	position: absolute;
	top: 60%;
	right: 10px;
	margin-top: -0.5em;
	transform: rotate(45deg);
}
@media (max-width: 768px) {
	#search_form .select_wrapper:after {
		top: 45%;
	}
}

/*submit＆リセットボタン*/
.button_wrapper{
	/*フレックスボックスの設定*/
	display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
	/*フレックスボックスの要素を左寄せ*/
	justify-content: center;
	align-items: center;
}
.button_wrapper div{
	width:49%;
}
/*ボタンデザイン*/
#search_form .button_wrapper input[type=submit],
#search_form .button_wrapper input[type=reset] {
	/*デフォルトリセット*/
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
	
	/*新規デザイン*/
	width:100%;
	border: solid 1px #000;
	text-align: center;
	padding:1em 0;
	font-size:0.9em;
	cursor: pointer;
	border-radius: 5px;
}
/*submit*/
#search_form .button_wrapper .submit{
	margin-left:1%;
}
#search_form .button_wrapper input[type=submit]{
	color:#fff;
	background-color: #75c9c7;
	border: solid 1px #75c9c7;
}
#search_form .button_wrapper input[type=submit]:hover{
	color:#fff;
	background-color: #000;
	border: solid 1px #000;
}
/*リセット*/
#search_form .button_wrapper .reset{
	margin-right:1%;
}
#search_form .button_wrapper input[type=reset]{
	color:#fff;
	background-color: #aaa;
	border: solid 1px #aaa;
}
#search_form .button_wrapper input[type=reset]:hover{
	color:#fff;
	background-color: #000;
	border: solid 1px #000;
}


/*SP用*/
@media (max-width: 768px) {
	.rank-search_wrapper{
		padding:4vw;
		width:100%;
		background-color: #eee;
	}
	#form_wrapper{
		background: #fff;
	}
}

/*PC用横一列*/
@media (min-width: 769px) {
	#search_form{
		/*フレックスボックスの設定*/
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		/*フレックスボックスの要素を左寄せ*/
		justify-content: center;
		align-items: center;
	}
	#search_form > div:nth-child(1),
	#search_form > div:nth-child(2){
		width:33%;
	}
	#search_form > div:nth-child(3){
		width:30%;
	}
	#search_form select{
		margin-bottom: 0;
	}
	#search_form .select_wrapper{
		margin-right:2%;
	}
	/*ボタン位置入れ替え*/
	#search_form .button_wrapper .submit{
		order: 1;
		margin-left:0%;
		margin-right:1%;
	}	
	#search_form .button_wrapper .reset{
		order: 2;
		margin-left:1%;
		margin-right:0%;
	}
}


/*------------------------------
3.絞り込み条件表示エリア（javaScript連動）
------------------------------*/


#ranking_search_terms{
	margin-bottom:10px;
	font-size:0.8em;
}
/*SP用*/
@media (max-width: 768px) {
	#ranking_search_terms{
		padding:0 4vw;
	}
}	
	
	