@charset "UTF-8";

#works {
  padding: 0;
  background: var(--gray);
  overflow: hidden;
}

#works .pageHeader::before {
  content: "WORKS";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(12rem, 20vw, 28rem);
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  pointer-events: none;
  white-space: nowrap;
}

.worksBody {
  padding: 5%;
  max-width: 120rem;
  margin: 0 auto;
}

.worksBody .lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 auto 3em;
  color: var(--black);
  text-align: center;
}

.tab-content {
  display: block;
}

.tab-content .worksList {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: flex-start;
}

#tab-contents-tokyo .worksList li,
#tab-contents-osaka .worksList li {
  width: calc(33.333% - 2rem);
}

#tab-live .worksList li {
  width: calc(25% - 2.25rem);
}

#tab-contents-tokyo .worksList,
#tab-contents-osaka .worksList,
#tab-live .worksList {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: flex-start;
}

.tabSection {
  margin-bottom: 4rem;
}

.tabNav {
  display: flex;
  gap: 1.5rem;
  border-bottom: none;
}

.tabBtn {
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.25em 2em;
  background: #e0e0e0;
  color: #999;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.tabBtn:hover {
  background: #d0d0d0;
  color: #666;
}

.tabBtn.active {
  background: var(--orange);
  color: var(--white);
}

.worksList {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

#tab-contents > li {
  flex: 1 0 calc(33.333% - 1.34em);
  max-width: calc(33.333% - 1.34em);
  margin: 0 calc(4em / 2) calc(3em) 0;
  background: var(--white);
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
}

#tab-contents > li:nth-child(3n) {
  margin-right: 0;
}

#tab-live > li {
  flex: 1 0 calc(25% - 1.5em);
  max-width: calc(25% - 1.5em);
  margin: 0 calc(6em / 3) calc(3em) 0;
  background: var(--white);
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
}

#tab-live > li:nth-child(4n) {
  margin-right: 0;
}

.worksList .thumb {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.worksList .thumb.ratio-16-9::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.worksList .thumb.ratio-a4::before {
  content: "";
  display: block;
  padding-top: 141.42%;
}

.worksList .thumb img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.worksList .cardBody {
  padding: 1rem 0 1.25rem;
}

.worksList .title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  text-align: left;
}

@media screen and (max-width: 999px) {
  .worksBody {
    padding: 10% 2rem;
  }

  .worksBody .lead {
    font-size: 14px;
    margin: 0 auto 1em;
  }

  .tabBtn {
    font-size: 14px;
    padding: 1em 0.5em;
    border-radius: 0.5rem;
  }
  .tabNav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  #tab-contents-tokyo .worksList li,
  #tab-contents-osaka .worksList li {
    width: calc(50% - 0.375rem);
  }

  #tab-live .worksList li {
    width: calc(50% - 0.375rem);
  }

  #tab-contents-tokyo .worksList,
  #tab-contents-osaka .worksList,
  #tab-live .worksList {
    gap: 0.75rem;
  }

  #tab-contents-tokyo > li,
  #tab-contents-osaka > li,
  #tab-live > li {
    flex: unset;
    max-width: unset;
    margin: 0;
  }

  #tab-contents-tokyo > li:nth-child(3n),
  #tab-contents-osaka > li:nth-child(3n),
  #tab-live > li:nth-child(4n),
  #tab-contents-tokyo > li:nth-child(2n),
  #tab-contents-osaka > li:nth-child(2n),
  #tab-live > li:nth-child(2n) {
    margin-right: 0;
  }

  .worksList .title {
    font-size: 1.4rem;
  }
}
