/*---------------------------------
固定ページ専用CSS
---------------------------------*/

/* 共通 > ページネーションのカスタマイズ */
.pagination_wrapper {
    text-align: center;
}

.pagination_wrapper .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination_wrapper .page-numbers li {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.pagination_wrapper .page-numbers li a,
.pagination_wrapper .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    min-width: 40px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;
    background: transparent;
    color: #111;

    font-size: 16px;
    line-height: 1;
    text-decoration: none;

    box-sizing: border-box;
    transition: 0.2s ease-in-out;
}

/* 現在ページ */
.pagination_wrapper .page-numbers li span.current {
    background: #1d2975;
    color: #fff;
}

/* ホバー */
.pagination_wrapper .page-numbers li a:hover {
    background: #1d2975;
    color: #fff;
    text-decoration: none;
}

/* dots */
.pagination_wrapper .page-numbers li span.dots {
    background: transparent;
    color: #111;
}

/* 前後ボタン */
.pagination_wrapper .page-numbers li a.prev,
.pagination_wrapper .page-numbers li a.next {
    background: transparent;
    color: #111;
    border: none;
}

/* 前後ボタン hover */
.pagination_wrapper .page-numbers li a.prev:hover,
.pagination_wrapper .page-numbers li a.next:hover {
    background: #1d2975;
    color: #fff;
}

/* 共通 > タグ一覧出力 */
#cat-tag ul{display:flex !important;flex-wrap:wrap;margin:0.4em 0 1.2em 0;}
#cat-tag li{display:flex-box !important;margin:0.2em;}
#cat-tag li a:hover{background:#1d2975;color:#fff;text-decoration:none;}

/* 共通 > アーカイブ > 特価商品の絞り込み */
#cat-tag-bargain{text-align:center;font-size:16px;}
#cat-tag-bargain ul{display:flex;justify-content:center;margin:1em 0;flex-wrap:wrap;}
#cat-tag-bargain ul li{display:flex-box;margin:0.2em;}
#cat-tag-bargain ul li a{background: #fff;color: #555;border-radius: 100px;transition: 0.2s ease-in-out;border: 1px solid #555;padding:3px 7px;}
#cat-tag-bargain ul li a:hover{background:#1d2975;color:#fff;text-decoration:none;border: 1px solid #1d2975;}
#cat-tag-bargain ul li.out-tag a{background:none;color:#1d2975;}
#cat-tag-bargain ul li select{padding:4px 24px 4px 8px;border-radius:4px;margin:-4px 4px 0 2px !important;}
#cat-tag-bargain ul li option{background:#1d2975;color:#fff;}

/* 共通 > ページおくり機能の下余白調節 */
.pagination_wrapper{margin-bottom:2em;}

.other-tag{background:#eee;border:1px solid #ccc;padding:0.4em 0.6em;border-radius:4px;line-height:1.7em;margin-bottom:0.4em;}
.other-tag h2{border-bottom:1px solid #ccc;padding:0.4em 0;margin-bottom:0.4em;}

.type-grid img{border-radius:5px;}

@media screen and (max-width:599px) {
div.type-grid{margin:3%;}

/* スマホ > カテゴリ > 類似タグ出力 */
#cat-tag ul{display:flex;flex-wrap:wrap;}
#cat-tag ul li{display:flex-box;margin:0.4rem;}
#cat-tag,
#cat-relation
{margin:1em 0 2em 0;}
#cat-tag h4,
#cat-relation h4
{margin:1em 0 1em 0;}
}

@media screen and (min-width: 600px) and (max-width: 959px) { 
div.type-grid{margin:3%;}
/* タブレット > カテゴリ > 類似タグ出力 */
#cat-tag ul{display:flex;flex-wrap:wrap;}
#cat-tag ul li{display:flex-box;margin:0.4rem;}
#cat-tag,
#cat-relation
{margin:1em 0 2em 0;}
#cat-tag h4,
#cat-relation h4
{margin:1em 0 1em 0;}
}

@media screen and (min-width:960px) {
/* ラップトップ > カテゴリ > 類似タグ出力 */
#cat-tag ul{display:flex;flex-wrap:wrap;}
#cat-tag ul li{display:flex-box;margin:0.4rem;}
#cat-tag,
#cat-relation
{margin:1em 0 2em 0;}
#cat-tag h4,
#cat-relation h4
{margin:1em 0 1em 0;}

div.type-grid{display:flex;flex-wrap:wrap;gap:3%;}
div.type-grid article{float:none !important;flex: 0 0 calc((100% - 14%) / 5) !important;max-width: calc((100% - 14%) / 5) !important;
margin:0 !important;box-sizing:border-box;}

/* ラップトップ > 2カラムレイアウトをフル表示に */
#main.two-column #content {width: 100% !important;}
}

@media screen and (min-width:1380px) {
div.type-grid article{float:none !important;flex: 0 0 calc((100% - 15.5%) / 6) !important;max-width: calc((100% - 15.5%) / 6) !important;}
}
.cat-il.type-grid .itemimg img {border-radius:5px;}

/* 共用 > 検索結果 > ○○をお探しですか？ */
#search-if {
    padding: 0;
    border-radius: 4px;
    text-align: center;
    animation-name: BottomUp;
    animation-duration: 1.6s;
	overflow:hidden;
	display:block;
	bottom:0;
	background:#ebebff;
}
#search-if small {
    color: #999;
}
#search-if ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#search-if li {
    line-height: 200%;
    margin: 0.5%;
}
#search-if li a {
    display: block;
    padding: 0.2em 0;
}
#search-if select {
    border: none;
    border-radius: 4px;
    position: relative;
    border: #9ea7e1 1px solid;
}
#search-if select:hover {
    border: #1d2975 1px solid;
}
#search-if select option {
    padding: 1%;
    line-height: 2em;
    height: 30px;
    position: relative;
    background: #1d2975;
    color: #fff;
}

@media screen and (max-width: 599px) {
	#search-if {
        padding: 1em 0 0.4em 0;
    }
	
    /* スマホ > 検索結果 > ○○をお探しですか？ */
    #search-if small {
        display: block;
    }
    #search-if h3 {
        font-size: 105%;
        text-align: center;
    }
    #search-if ul {
        margin: 1% 0;
    }
    #search-if li {
        padding: 1%;
        width: 48%;
        font-size: 88%;
    }
    #search-if li select {
        width: 100%;
    }
    #search-if li:last-child {
        text-align: center;
    }

    /* スマホ > カート内容のポップアップをスクロール */
    #cart {
        max-height: 320px;
        overflow-y: auto;
    }
}

@media screen and (min-width: 600px) and (max-width: 959px) { 

.page-header{display:block;overflow:hidden;}

    /* タブレット > 検索結果 > ○○をお探しですか？ */
    #search-if {
        padding: 1em 0 0.4em 0 !important;
    }
    #search-if h3 {
        font-size: 141%;
    }
    #search-if ul {
        margin: 1% 0;
    }

    /* タブレット > カート内容のポップアップをスクロール */
    #cart {
        max-height: 400px;
        overflow-y: auto;
    }
	
	#page-header{display:block;}
}

@media screen and (min-width: 960px) {
    /* ラップトップ > 検索結果 > ○○をお探しですか？ */
	
	#search-if {
		text-align:center;
    padding: 0;
    border-radius: 4px;
    text-align: center;
    animation-name: BottomUp;
    animation-duration: 1.6s;
	overflow:hidden;
	position:fixed;
	display:block;
	bottom:10px;
	z-index:9999;
	width:80%;
	justify-content:center;
}

    #search-if {
        padding: 1em 0 0.4em 0;display:flex;
    }
    #search-if small {
        font-size: 100%;
    }
		#search-if h3 {
			font-size: 141%;display:flex;padding:1.3% 0.4%;
		}
    #search-if ul {
        margin: 1% 0;display:flex;    justify-content: flex-start;gap: 12px;
    }
	
	  #search-if li {
    display: block;
    margin: 0;
    white-space: nowrap;
  }


    /* ラップトップ > カート内容のポップアップをスクロール */
    #cart {
        max-height: 400px;
        overflow-y: auto;
    }
	
	#main.two-column #content {
        width: 100% !important;
    }
}