@charset "UTF-8";

.main {
  width: 100%;
  margin-top: 50px;
  border-top: 3px black solid;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.main2 {
  flex: 0 1 330px;
  min-width: 280px;
  /* border-right: 3px black solid; */
  margin-left: 10px;
}

.search {
  margin: 10px 0px 20px 10px;
}

.itemlist {
  padding: 10px 0px 20px 10px;
  flex: 1 1 600px;
  min-width: 300px;
  margin-right: 10px;
  border-left: 3px black solid;
}

.title h2,
.category p {
  margin: 20px 0 20px 0;
}

.text-search,
.money,
.btn,
.list-inner {
  margin-top: 20px;
}

.itemlist h2,
.itemlist p {
  margin: 10px 0 0 20px;
}

.text-search p,
.money p {
  margin-bottom: 10px;
}


.text-search input {
  width: 300px;
  height: 30px;
}


.btn-area {
  width: 300px;
  max-width: 100%;
}

.btn {
  width: 80px;
  height: 30px;
  font-family: serif;
}



/* h2部分装飾 */
.title h2,
.list h2,
.itemlist h2 {
  width: 300px;
  height: 40px;
  padding: 0.5em 1em;
  margin: 2em 0;
  color: #232323;
  background: rgb(211, 236, 236);
  border-left: solid 10px cadetblue;
  font-size: 30px;
}

.title h2,
.list h2,
.itemlist h2 {
  margin: 0;
  padding: 0;
}

/* 商品カテゴリー装飾 */

.list {
  margin-top: 50px;
}

.list-inner li {
    margin: 5px auto 0 0;
    padding: 0 10px 0 10px;
    font-size: 18px;
    display: block;
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 1em;
    box-sizing: border-box;
    border:1px solid white;
    color: #000000;
    transition: border 0.3s;
    cursor: pointer;
}

.list-inner .san {
    letter-spacing: 0;
}

.list-inner li::after{
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    margin-left: 35px;
    background:  url("../img/rightblack.png") no-repeat center center / contain;
}
.list-inner li:hover{
    border:1px solid rgb(105, 183, 197);
}


/* 商品出てくるところ */
.itemarea2 {
  /* width: 800px;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap; */

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px;
  width: 100%;
}

.itemlist p {
  text-align: right;
}


.imgarea {
  /* width: 230px;
  margin: 10px; */
  width: 100%;
  max-width: 250px;
  margin: auto;

}

.imgbox {
  width: 100%;
  height: 150px;
  text-align: center;
}


.imgbox img {
  height: 150px;
  transition: transform .6s ease;
  /* ゆっくり変化させる */
}

.imgbox:hover img {
  transform: scale(1.1);
  /* 拡大 */
}

.ext {
  margin-top: 20px;
  text-align: right;
  font-size: 18px;
  font-weight: bold;
  word-break: keep-all;
}

.itemprice {
  margin-top: 20px;
  text-align: right;
}

/* .itemprice,
::after {
  content: '';
  display: block;
  width: 53px;
  height: 2px;
  background-color: cadetblue;
  margin-top: 1px;
  margin-left: auto;
} */

@media (max-width: 900px) {
  
  .main2 {
    border-right: none;
  }
  .itemlist h2 {
    text-align: center;
  }
  .itemarea2 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}


/* 430px以下の時 */
@media (max-width: 430px) {
  .main {
    display: block;
    border-top: none;
    flex-direction: column;
  }

  .main2 {
    border: none;
  }


  .list-inner ul {
    display: flex;
    flex-direction: column;
  }

  .list-inner li {
    margin-left: 10px;
  }

  .itemlist,
  .list,
  .search form,
  .form {
    width: 400px;
  }

  .side {
    margin: 0;
  }

  .itemlist p {
    text-align: left;
  }

  .imgarea {
    width: 400px;
  }


  .itemprice {
    margin-top: 0;
    margin-right: 10px;
  }

  .imgbox img,
  .imgbox {
    width: 300px;
    height: 300px;
  }

  .ext,
  .itemprice {
    text-align: left;
    word-break: keep-all;
  }

  .itemprice::after {
    content: '';
    display: block;
    width: 300px;
    height: 3px;
    background-color: rgb(197, 196, 196);
    margin-top: 20px;
  }

  .footer ul {
    font-size: 12px;
  }


}