@charset "UTF-8";
/* CSS Document */
* {
/*  outline: 1px solid #c00;*/
}
.first-text{
    width: 70%;
    margin-bottom: 30px;
}
.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: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.content { /*商品それぞれ*/
  list-style: none;
  transition: transform 1s;
  &:hover {
    transform: scale(1.05);
      img{
      box-shadow: 0 0 4px 2px rgba(150, 100, 0, .3);
      }
  }
}
.content.hide {
  display: none;
}
.content img {
  border-radius: 8px;
  object-fit: cover;
  transition: box-shadow 1s;
}
.content span, .item-area span {
  font-size: 13px;
  margin-left: 3px;
}
.flex {
  width: 100%;
  display: flex;
    align-items: flex-end;
    .tag{
        color: var(--sub-color);
        margin-left: 5px;
    }
}
@media (width <=750px) {
.first-text{
    width: 100%;
    margin:0 auto 30px;
}
  .contents {
  grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .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; /* 背景を切り取る */
  }
    .flex{
        display: block;
    }
}