@charset "UTF-8";
/* CSS Document */
* {
/*    outline: 1px solid #c00;*/
}
.container {
  margin: auto;
}
/*ボタンの設定*/
.sort-button-area {
  width: 100%;
  overflow: scroll;
  background: white;
}
.buttons {
  display: flex;
/*  width: 650px;*/
  margin-bottom: 7px;
}
.sort-button { /*ソートボタンそれぞれ*/
  margin-right: 15px;
  padding: 5px 30px;
  background: #ddd;
  border-radius: 8px;
    border: none;
    p{
        width: 48px;
    }
}
.sort-button.active {
  background: var(--main-color);
  color: #fff;
}

/*商品一覧*/
.contents { /*商品のまとめ*/
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.content { /*商品それぞれ*/
  width: 300px;
  list-style: none;
  display: grid;
  justify-content: center;
  transition: transform 1s;
  .mid-text {
    margin-top: 8px;
  }
  &:hover {
    transform: scale(1.05);
    img {
      box-shadow: 0 0 4px 2px rgba(150, 100, 0, .3);
    }
  }
}
.content.hide {
  display: none;
}
.content img {
  width: 300px;
  aspect-ratio: 1 / 1;
  background: #aaa;
  border-radius: 8px;
  object-fit: cover;
  transition: box-shadow 1s;
}
.content span, .item-area span {
  font-size: 13px;
  margin-left: 3px;
}

 /*未入荷テキストの設定*/
.text {
  display: none;
}
.text.active {
  display: block;
  text-align: center;
  padding-block: 30px;
}
@media (width <=750px) {
  .contents {
    justify-content: center;
  }
    .content{
        width: 45%;
        img{
            width: auto;
        }
    }
  .sort-button-area::-webkit-scrollbar {
    width: 0;
    height: 8px;
  }
  .sort-button-area::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 8px;
    border-right: 1px solid transparent; /* 透明なボーダーをつける */
    border-left: 1px solid transparent; /* 透明なボーダーをつける */
    background-clip: padding-box; /* 背景を切り取る */
  }
  .sort-button-area::-webkit-scrollbar-track {
    background: #ddd; /* 背景色 */
    border-radius: 8px;
    border-right: 1px solid transparent; /* 透明なボーダーをつける */
    border-left: 1px solid transparent; /* 透明なボーダーをつける */
    background-clip: padding-box; /* 背景を切り取る */
  }
}