@charset "UTF-8";

.tab-list {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 40px;
}

.tab-list li {
  width: 100%;
  max-width: 150px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: solid 1px #1f1f1f;
  border-left: solid 1px #1f1f1f;
  border-right: solid 1px #1f1f1f;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.tab-list li:last-child {
  margin-right: 0;
}

.tab-list li:hover {
  background-color: #1f1f1f;
  color: #fff;
}

.tab-list li.active {
  background-color: #1f1f1f;
  color: #fff;
}

.products-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 120px;
  display: none;
}

.products-list.active {
  display: grid;
}

.products-list li {
  position: relative;
}

.products-list li .info {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.6s ease;
}

.products-list li:hover .info {
  opacity: 1;
}

.products-list li .info .name {
  font-size: 18px;
  margin-bottom: 5px;
}

.products-list li .info .price {
  font-size: 14px;
}

/*-------------------------------------------
タブレット
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  .products-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .tab-list {
    margin-bottom: 10px;
  }

  .tab-list li {
    font-size: 10px;
    margin-right: 5px;
  }

  .products-list {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 60px;
  }
}