@charset "UTF-8";

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #fff;
}

header {
  margin-bottom: 0px;
}

main {
  width: 100%;
  background: #fff;
  margin-bottom: 10px;
  position: static;
}

main .inner {
  margin-top: 35px;
  position: relative;
}

main h1 {
  font-size: 2rem;
  font-weight: 600;
  position: absolute;
  left: 10px;
  top: -5px;
  border-bottom: 1px solid #ccc;
  width: 90%;
  margin-left: 5%;
  padding-left: 45px;
}

/* ---- button ---- */

.button-group {
  border-radius: 0;
  margin-left: 4px;
  margin-bottom: 30px;
  /* border: 1px solid #ccc; */
  padding: 5px;
}

.button {
  margin: 0;
  border: none;
  padding: 3px 6px 3px 12px;
  background: #f9fdff;
  border-radius: 0px;
  color: #222;
  font-family: sans-serif;
  font-size: 12px;
  cursor: pointer;
  width: 143px;
  text-align: left;
}

.button:hover {
  background-color: #eaf3f9;
  /* text-shadow: 0 1px hsla(0, 0%, 100%, 0.5); */
  color: #222;
}

.button:active,
.button.is-checked {
  background-color: #eaf3f9;
}



/* 検索項目　コンテナはfilters　 */
.filters {
  display: flex;
  justify-content: center;
  margin-left: 13%;
}

.ui-group {
  display: block;
}

.ui-group h3 {
  padding-left: 20px;
  font-size: 16px;
  font-weight: 600;
}

/* ---- isotope 検索対象 ---- */

.grid {
  background: #fff;
  width: 1024px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: 3%;
}

.grid:nth-child(5) {
  margin-right: 0;
}

.item {
  width: 18%;
  height: 250px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 20px;
  margin-right: 1%;
  position: relative;
}

.item p {
  font-size: 1.45rem;
  text-align: left;
  padding: 0;
  line-height: 1.4;
}

.item p.kubun {
  font-weight: 600;
  padding: 6px 0 0 3px;
}

.item p.zai {
  padding-left: 56px;
  position: relative;
}

.item p.zai:before {
  content: "線材：";
  position: absolute;
  top: 0;
  left: 10px;
}

.item p.kei {
  padding-left: 56px;
  position: relative;
}

.item p.kei:before {
  content: "線径：";
  position: absolute;
  top: 0;
  left: 10px;
}

.item .detail {
  /* position: relative; */
}

.item .detail:after {
  /* content: url(../images/detail.jpg); */
  content: ">>詳細";
  font-family: sans-serif;
  font-size: 90%;
  position: absolute;
  /* top: 10px;
  right: -1px; */
  bottom: 0px;
  right: -50px;
  display: block;
  width: 110px;
  height: 22px;
  color: rgb(18, 18, 92);
}

/* 詳細ぺージが無いアイテムには何も表示しない
.item .no_detail {
  position: relative;
} */

.item .no_detail:after {
  content: url(../images/no_detail.jpg);
  position: absolute;
  top: 4px;
  right: 1px;
}

/* ----　フィルター解除の小さい文字　 */
.small_block {
  display: block;
  font-size: 55%;
  position: absolute;
  left: 156px;
  top: 47px;
  font-family: sans-serif;
  font-weight: normal;
}




/* ================　ここからスマホ対応　=== */

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

  * {
    box-sizing: border-box;
    /* outline: 1px solid #F00; */
  }

  body {
    overflow-x: hidden;

  }

  main {
    width: 100%;
    padding: 0;
    margin-top: 110px;
  }

  main .inner {
    margin: 0px 0px 0px 0px;
    /* padding-left: 4%; */
  }

  #filter main h1 {
    width: 90%;
    text-align: left;
    line-height: 1;
    /* font-size: 97%; */
    margin: 0px 0px 0px 0px;
    padding-left: 10%;
  }

  .button-group {
    width: 100%;
  }

  .filters {
    display: flex;
    justify-content: space-between;
    width: 92%;
    margin: 0 0 0 5%;
  }

  .filters .group1 button {
    /* width: 100%; */
    margin-right: -6px;
  }

  .filters .group2 button {
    width: 100px;
    margin-right: -6px;
  }

  .filters .group3 button {
    width: 100px;
    /* margin:0 2px; */
  }

  .ui-group {
    margin-top: 12px;
    padding-top: 30px;
    width: 90%;
    /* display: flex;
    justify-content: space-between; */
  }

  .ui-group h3 {
    font-size: 1.4rem;
  }

  .grid {
    width: 100%;
    margin-left: 5%;
  }

  .grid:nth-child(odd) {
    margin-right: 2%;
  }

  /* .grid:nth-child(even) {
    margin-right: 0;
  } */

  .item {
    width: 45%;
    height: 230px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 20px;
    margin-right: 2.5%;
  }


  /* ----　フィルター解除の小さい文字　 */
  .small_block {
    /* display: block; */
    font-size: 54%;
    /* position: absolute;
    left: 226px;
    top: 10px; */
    font-family: sans-serif;
    font-weight: normal;
    margin-left: 27%;
    margin-top: -36px;
  }


}