@charset "UTF-8";

/*-------------------------------------------
タブリスト
-------------------------------------------*/
.tab-list {
  display: flex;
  justify-content: center;
}
.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: #80c5d6;
  color: #fff;
}
.tab-list li.active {
  background-color: #80c5d6;
  color: #fff;
}

/*-------------------------------------------
作品リスト
-------------------------------------------*/
.works-list {
  grid-template-columns: repeat(3 , 1fr);
  gap: 30px;
  display: none;
  padding: 50px;
  /* max-width: 1040px; */
  margin: 0 auto 6em;
}
.works-list li {
  overflow: hidden;
}
.works-list li img {
  transition: transform 0.6s ease;
  display: block;
  width: 100%;
  height: auto;
}
.works-list li:hover img {
  transform: scale(1.1);
}
.works-list.active {
  display: grid;
}
.works-list li {
  position: relative;
}
.works-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;
}
.works-list li:hover .info {
  opacity: 1;
}

/*-------------------------------------------
レスポンシブ
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .tab-list {
    margin-bottom: 10px;
  }
  .tab-list li {
    font-size: 10px;
    margin-right: 5px;
  }
  .works-list {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 60px;
    padding: 20px;
    gap: 20px;
  }
}