@charset "utf-8";
/*
Theme Name: workscss
*/
.wrapper {
  width: calc(100% - 20rem);
}
.works-wrapper {
  margin: auto;
  padding: 13% 4% 0;
  max-width: 150rem;
}
h2 {
  font-size: 5.6rem;
  color: #754d08;
  font-weight: 600;
  text-align: center;
  margin-bottom: 5.6rem;
}

.workslist {
  width: 100%;
}

.works-list_all {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.works-list_all,
.works-list_photo,
.works-list_motion,
.works-list_movie,
.works-list_logo {
  display: none;
}
.works-list.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.works-list.active .listworks {
  background-color: #fff;
  width: calc(50% - 1rem);
  margin: 0 0 2rem;
  aspect-ratio: 3/1;
  --aspect-ratio: 3/1;
  background-color: #fafbf2;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  opacity: 0;
}
@supports (aspect-ratio: 3/1) {
  .listworks {
    aspect-ratio: var(--aspect-ratio);
    padding-top: initial;
  }
}

.works-list.active .listworks a {
  transition: 0.4s;
}
.works-list.active .listworks:hover a {
  opacity: 0.6;
}
.works-list.active .listworks.blockIn:nth-of-type(1) {
  animation: activeAnime1 0.4s forwards;
}
@keyframes activeAnime1 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(2) {
  animation: activeAnime2 0.4s 0.1s forwards;
  transform: scale(1);
}
@keyframes activeAnime2 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks:nth-of-type(3).blockIn {
  animation: activeAnime2 0.4s 0.2s forwards;
}
@keyframes activeAnime3 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(4) {
  animation: activeAnime4 0.4s 0.3s forwards;
}
@keyframes activeAnime4 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(5) {
  animation: activeAnime5 0.4s 0.4s forwards;
}
@keyframes activeAnime5 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(6) {
  animation: activeAnime6 0.4s 0.5s forwards;
}
@keyframes activeAnime6 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(7) {
  animation: activeAnime7 0.4s 0.6s forwards;
}
@keyframes activeAnime7 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.works-list.active .listworks.blockIn:nth-of-type(8) {
  animation: activeAnime8 0.4s 0.7s forwards;
}
@keyframes activeAnime8 {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.works-list.active .listworks.blockIn:nth-of-type(9) {
  animation: activeAnime9 0.4s 0.8s forwards;
}
@keyframes activeAnime9 {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.works-list.active .listworks.blockIn {
  animation: blockAnime 0.4s forwards;
}
@keyframes blockAnime {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.listworks a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listworks a {
  width: 100%;
  height: 100%;
  display: block;
}

.works-btn {
  width: 100%;
  margin-bottom: 4.8rem;
  display: flex;
  text-align: center;
  justify-content: space-between;
  font-weight: bold;
}
.works-btn a {
  font-size: 1.4rem;
  font-weight: bold;
  width: calc(20% - 0.8rem);
  height: 5.6rem;
  line-height: 5.6rem;
  border-radius: 5.6rem;
  color: #fff;
  transition: 0.4s;
  background-color: #d7ae0a;
  border: 0.1rem solid #d7ae0a;
}
.tab_btn:hover {
  background-color: #fff;
  border: 0.1rem solid #d7ae0a;
  color: #d7ae0a;
}
.tab_btn.active {
  background-color: #fff;
  border: 0.1rem solid #d7ae0a;
  color: #d7ae0a;
}
@media screen and (max-width: 1040px) {
  .wrapper {
    width: calc(100% - 16rem);
  }
  .works-wrapper {
    margin: auto;
    padding: 20% 3% 0;
  }
  h2 {
    font-size: 5.6rem;
    color: #7f4600;
    font-weight: bold;
    text-align: center;

    margin-bottom: 6.4rem;
  }
  .works-btn {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .tab_btn {
    font-size: 1.3rem;
    font-weight: bold;
    flex-wrap: wrap;
    width: 32%;
    height: 4.4rem;
    line-height: 4.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
    background-color: #d7ae0a;
    transition: 0.4s;
  }
  .tab_btn:hover {
    background-color: #fff;
    border: 0.1rem solid #d7ae0a;
    color: #d7ae0a;
  }
  .tab_btn.active {
    background-color: #fff;
    border: 0.1rem solid #d7ae0a;
    color: #d7ae0a;
  }

  .works-list .active {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }
  .works-list .listworks {
    width: 100%;
    margin: 0 0 1.6rem;

    background-color: #000;
    flex-wrap: wrap;
  }
  .works-btn {
    width: 100%;
    margin-bottom: 3.2rem;
  }
}

@media screen and (max-width: 800px) {
  .wrapper {
    width: 100%;
  }
  .works-btn a:nth-of-type(1) {
    margin-right: 1.2rem;
  }
  .works-btn a:nth-of-type(3) {
    margin-left: 1.2rem;
  }
  .works-btn a:nth-of-type(4) {
    margin-right: 0.6rem;
  }
  .works-btn a:nth-of-type(5) {
    margin-left: 0.6rem;
  }
  .works-list .listworks {
    width: 100%;
    margin: 0 0 0.8rem;
    background-color: #000;
    flex-wrap: wrap;
  }
  .works-list.active {
    width: 100%;
    display: block;
  }
  .works-list.active .listworks {
    width: 100%;
  }
  .works-wrapper {
    margin: auto;
    padding: 18% 4% 0;
  }
  h2 {
    font-size: 5.6rem;
    margin-bottom: 4.8rem;
  }
  .works-btn {
    width: 100%;
    margin-bottom: 3.2rem;
    justify-content: center;
  }
  .works-btn a {
    font-size: 1.4rem;
    font-weight: bold;
    flex-wrap: wrap;
    width: calc(33% - 1rem);
    height: 5.2rem;
    line-height: 5.2rem;
    margin-bottom: 1.2rem;
  }
}
@media screen and (max-width: 520px) {
  h2 {
    font-size: 4rem;
    margin-bottom: 4.8rem;
  }

  .wrapper {
    width: 100%;
  }
  .works-wrapper {
    margin: auto;
    padding: 28% 4% 0;
  }
  .works-btn {
    width: 100%;
    margin-bottom: 2rem;
  }
  .works-btn a {
    font-size: 1.2rem;
    font-weight: bold;
    flex-wrap: wrap;
    width: calc(33% - 0.8rem);
    height: 4.4rem;
    line-height: 4.4rem;
    margin-bottom: 1.2rem;
  }
  .works-list.active .listworks {
    width: 100%;
    margin: 0 0 1.6rem;
    background-color: #fafbf2;
    flex-wrap: wrap;
  }
}
