@import "./common.css";
@import "./header.css";
@import "./footer.css";
@import "./carousel.css";

.wrapper .pc_nav .gnav ul li.gnav-works {
  background-size: 100% 2px;
}

.section.title {
  background: white;
  height: 188px;
  padding-top: 0;
  padding-bottom: 64px;
  margin-bottom: 0;
  .wrapper {
    background: white;
    h1 {
      padding-top: 64px;
      margin-bottom: 0;
      font-size: 2.6rem;
      font-weight: var(--font-weight-titleJP);
      & + p {
        margin-left: 1rem;
      }
    }
  }
}
.carousel {
  height: 718px;
  background: white;
  margin-bottom: 64px;

  .btn_circle {
    font-size: 1.2rem;
    &.btn_prev {
      width: 48px;
      &::before {
        content: "<";
      }
    }
    &.btn_next {
      width: 48px;
      &::before {
        content: ">";
      }
    }
  }
  .c-carousel__pager {
    bottom: -2rem;
    .c-carousel__pager-control {
      justify-content: center;
    }
  }
}
.article {
  margin-bottom: 96px;
  p {
    margin-bottom: 2.4rem;
    font-size: var(--font-size-normal);
    line-height: 2.2rem;
    color: var(--sub-color);
  }
  .text-left {
    text-align: left;
  }
  .text-center {
    text-align: center;
  }
  .text-right {
    text-align: right;
  }
}

.itemList {
  margin-bottom: 96px;
  .items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 48px;

    .item {
      display: block;
      width: auto;
      height: auto;
      max-width: 170px;
      overflow: hidden;
      cursor: pointer;

      img {
        width: 100%;
        height: auto;
        display: block;
        
        &:hover {
          transform: scale(1.05);
          transition: transform 0.2s ease;
        }
      }
    }
  }
}
.worksPager {
  .pager {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 16px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 96px;
  }
  .btn.btn_circle {
    position: relative;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    font-size: var(--font-size-normal);
    color: var(--main-color);
    background-color: var(--sub-color);
    border: none;
    &:hover {
      color: var(--sub-color);
      background-color: var(--sub-bg-color);
    }

    &.btn_next {
      &::before {
        content: ">";
        font-size: 2rem;
      }
    }
    &.btn_prev {
      &::before {
        content: "<";
        font-size: 2rem;
      }
    }
  }
}

@media (max-width: 780px) {
  .section.title {
    height: 152px;
    padding-top: 60px;
    .wrapper {
      .h1 {
        padding-top: 0;
        margin-bottom: 0px;
        img {
          width: 100%;
          height: auto;
        }
      }
    }
  }
  .carousel {
    height: 748px;
  }
  .c-carousel__main {
    margin-bottom: 20px;
  }
  .c-carousel__btns-control {
    display: none;
  }
  .c-carousel__pager {
    bottom: -2rem;
    .c-carousel__pager-control {
      justify-content: center;
      .btn_pager {
        width: 18px;
        height: 18px;
      }
    }
  }
  .itemList {
    .items {
      .item {
        width: 31%;
        max-width: none;

        img {
          width: 100%;
          transition: transform 0.2s ease;
        }

        &:hover img {
          transform: scale(1.1);
        }
      }
    }
  }
}
@media (max-width: 480px) {
  .section.title {
    height: 115px;
    padding: 30px 0;
    .wrapper {
      .h1 {
        padding-top: 0;
        margin-bottom: 0px;
        font-size: 2.4rem;

        img {
          width: 100%;
          height: auto;
        }
      }
    }
  }
  .section.carousel {
    height: 540px;
    padding: 0 40px;
  }
  .c-carousel__main {
    margin-bottom: 20px;
  }
  .c-carousel__main-item {
    height: 450px;
    img {
      width: 100%;
      height: auto;
    }
  }

  .itemList {
    .items {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;

      .item {
        width: 47%;
        max-width: none;
        height: auto;
        overflow: hidden;

        img {
          width: 100%;
          transition: transform 0.2s ease;
        }

        &:hover img {
          transform: scale(1.1);
        }
      }
    }
  }
}
