/*---------------------------------
商品一覧出力&ページネーション用CSS
---------------------------------*/

/* 共通 > 商品ページから引っ張ってきたグリッドレイアウト */
.item-fixity {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0 0 2rem 0 !important;
}

.item-fixity li {
  list-style: none !important;
  margin: 1%;
}

.item-fixity li img {
  width: 100%;
  margin-bottom: 0.6em;
  height: auto;
  border-radius: 15px;
}

.item-fixity article {
  display: block !important;
}

/* 共通 > 商品一覧の出力埋め込み > すべて見るボタン */
.item-fixty-all a {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(https://www.kyoei-bisou.co.jp/wp-content/themes/welcart_basic/images/item-fixty-all.jpg);
  width: 100%;
  text-align: center;
  display: block;
  border-radius: 6px;
  background-size: 100% 100%;
  padding-bottom: 42%;
}

.item-fixty-all a:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)),
    url(https://www.kyoei-bisou.co.jp/wp-content/themes/welcart_basic/images/item-fixty-all.jpg);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.2);
  background-size: 100% 100%;
  transition: 0.2s ease-in-out;
}

.item-fixty-all span {
  color: #fff;
  background: var(--main-color);
  box-shadow: 0 2px 0px rgba(0, 0, 0, 0.3);
  display: inline-block;
  border-radius: 50px;
  padding: 0.2em 0.8em;
}

.item-fixty-all span:hover {
  color: #fff;
  background: var(--sub-color);
  transition: 0.2s ease-in-out;
}

/* 共通（PC含む） */
.sub-child-term {
  margin-top: 1.4rem !important;
  display: block;
}

/* 共通 > カート内容のポップアップをスクロール */
#cart {
  overflow-y: auto;
}

/* 共通 > グリッド状レイアウト */
div.type-grid {
  padding: 0% !important;
}

.sub-child-term ul {
  display: flex;
  flex-wrap: wrap;
  /* PCは折り返し */
  gap: 0.5em;
  margin-top: 0.4rem !important;
}

.sub-child-term ul li {
  display: block;
  margin-top: 0.5em;
}

.sub-child-term ul li a {
  padding: 0.4rem 0.6rem;
  background: #eee;
  font-size: 92%;
  border-radius: 100px;
}

.sub-child-term ul li a:hover {
  background: #ddd;
}


/* スマホだけ横スクロール */
@media screen and (max-width: 768px) {
  .sub-child-term ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }
  .sub-child-term ul li {
    flex: 0 0 auto;
  }
}

/* 共通 > グリッド状レイアウト */
.cat-il.type-grid .itemimg img {
  border-radius: 5px;
}

/* 共通 > 関連タグ・カテゴリボタン */
#cf-similar small span a,
#cf-similar-post small span a,
#cf-similar-tag small span a {
  background: #fff;
  color: #555;
  border-radius: 100px;
  transition: 0.2s ease-in-out;
  border: 1px solid #555;
  padding: 3px 7px;
}

#cf-similar small span a:hover,
#cf-similar-post small span a:hover,
#cf-similar-tag small span a:hover {
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--main-color);
}

/* 共通 > 子要素から親要素へ(類似パンくず) */
.childtotop a {
  display: none;
}

.childtotop a:last-child {
  display: inline;
}

/* 共通 > タクソノミーに子要素を出力 */
.has_child {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.has_child li {
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #555;
  display: inline-block;
  padding: 3px 8px;
  text-decoration: none;
  margin: 2px;
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  transition: all 0.7s;
}

.no_child {
  display: none;
}

@media screen and (max-width:599px) {

  /* スマホ > グリッド状レイアウト */
  ul.recruit-genba,
  div.type-grid {
    margin: 0 2% !important;
  }

  /* スマホ > 商品一覧の出力埋め込み > アイテム一覧を並べるCSS */
  .item-fixity li {
    margin: 1% 1% 4% 1%;
    width: 48%;
    font-size: 88%;
  }

  /* スマホ > 商品一覧の出力埋め込み > すべて見るボタン */
  .item-fixty-all span {
    margin: 40% 0 0em 0;
    font-size: 92%;
  }

  .users-list ul {
    display: flex;
    padding: 1%;
    margin: 0;
    flex-wrap: wrap;
  }

  .users-list ul li {
    text-align: center;
    width: 30%;
    padding: 1%;
    list-style: none !important;
  }

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

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

  ul.recruit-genba,
  div.type-grid {
    margin: 2% !important;
  }

  /* タブレット > 商品詳細ページ > アイテム一覧を並べるCSS */
  .item-fixity li {
    margin: 1%;
    width: 18%;
  }

  /* タブレット > 商品一覧の出力埋め込み > すべて見るボタン */
  .item-fixty-all span {
    margin-top: 45%;
    font-size: 70%;
  }
}

@media screen and (min-width:960px) {

  /* ラップトップ > 商品詳細ページ > アイテム一覧を並べるCSS */
  .item-fixity li {
    margin: 1%;
    width: 18%;
  }

  /* ラップトップ > 商品一覧の出力埋め込み > すべて見るボタン */
  .item-fixty-all span {
    margin-top: 42%;
    font-size: 80%;
  }

  /* ラップトップ > カート内容のポップアップをスクロール */
  #cart {
    max-height: 400px;
  }

  /* ラップトップ > 全幅強制対応 */
  #main.two-column #content {
    width: 100% !important;
  }

  /* ラップトップ > グリッド状レイアウト */
  div.type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
  }

  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;
  }
}

@media screen and (min-width:1380px) {

  /* デスクトップ > グリッド状レイアウト */
  div.type-grid article {
    flex: 0 0 calc((100% - 15.5%) / 6) !important;
    max-width: calc((100% - 15.5%) / 6) !important;
  }
}

/* 共通 > ページネーションのカスタマイズ */
.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: var(--main-color);
    color: #fff;
}

/* ホバー */
.pagination_wrapper .page-numbers li a:hover {
    background: var(--main-color);
    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: var(--main-color);
    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%;}
}
}

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

@media screen and (min-width:960px) {
/* ラップトップ > カテゴリ > 類似タグ出力 */

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: var(--main-color) 1px solid;
}
#search-if select option {
    padding: 1%;
    line-height: 2em;
    height: 30px;
    position: relative;
    background: var(--main-color);
    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;
    }
}