/* Business */
:root {
  --sp-breakpoint: 959px;
}

.works {
  z-index: 1;
  min-height: 50vh;
  position: relative;
  margin-bottom: 5rem;

  .title {
    font-size: var(--font-size-4xl);
    margin: 0;
    font-weight: 600;
    padding-bottom: 2rem;
  }
  .sub-title {
    display: block;
    width: 100%;
    color: #5E9CCB;
    font-family: "Zen Kaku Gothic New", serif;
    font-size: calc(var(--font-size-m) * 1.5);
  }
  .sub-title::before {
    content: "";
    display: inline-block;
    background-image: url(../../images/common/icon01.webp);
    /* background-size: cover; */
    background-repeat: no-repeat;
    width: 55px;
    height: 19px;
  }
  @media (min-width: 959px) {
    .container-inner {
      max-width: calc((100vw - var(--pc-width)) / 2 + var(--pc-width));
      margin-right: 0;
    }
  }
  .contents {
    gap: 1rem;
    .font-xl {
      padding-bottom: 1rem;
    }
    @media (min-width: 959px) {
      /* gap: 1rem; */
      .contents-left {
        width: 30%;
      }
      .contents-right {
        width: 70%;
        position: relative;
        min-height: 417px;
      }
    }
    @media (min-width: 959px) and (max-width: 1199px) {
      .contents-left {
        width: 40%;
      }
      .contents-right {
        width: 60%;
      }
    }

    @media screen and (max-width: 959px) {
      flex-direction: column;
      .contents-right {
        /* 5vw=sp表示時のpadding（全体100%の5%）　10px sp表示時のコンテンツに対するpadding */
        /* width: calc(100vw - 5vw - var(--sp-inner-p));  */
        width: calc(100vw - 5vw);
        margin-right: 0;
      }
    }
  }
  @media screen and (max-width: 959px) {
    .contents {
      flex-direction: column;
      gap: 0rem;
    }
  }

  .top-sentence {
    font-size: var(--font-size-l);
    font-weight: 500;
    padding-bottom: 0.5rem;
  }
  .sentence-detail {
    font-size: var(--font-size-m);
    line-height: 2rem;
  }

  .btn-area {
    /* margin: 0;
    margin-top: 30px; */
  }
  /* スライダー */
  .org-pagenation {
    height: 75px;
    margin-top: -95px;
  }
  @media (min-width: 1200px) {
    .org-pagenation {
      max-width: calc(30% - 2rem);
    }
  }
  /* @media (min-width: 600px) and (max-width: 1199px) {
    .org-pagenation {
      max-width: calc(40% - 2rem);
    }
  } */

  @media screen and (max-width: 1199px) {
    .org-pagenation {
      margin-top: 0.5rem;
      justify-content: space-between;
      gap: 1rem;
    }
  }
  .p-btn-area {
    align-items: center;
    gap: 2rem;
    .btn-circle-prev {
      cursor: pointer;
      border: 2px solid #000;
      border-radius: var(--radius-large);
      width: 60px;
      height: 60px;
      align-items: center;
      display: flex;
      justify-content: center;
      .org-swiper-button-prev {
        width: 25px;
        height: 40px;
      }
    }
    .btn-circle-next {
      cursor: pointer;
      border: 2px solid #000;
      border-radius: var(--radius-large);
      width: 60px;
      height: 60px;
      align-items: center;
      display: flex;
      justify-content: center;
      .org-swiper-button-next {
        width: 25px;
        height: 40px;
      }
    }
  }

  .swiper-pagination {
    position: static;
    width: auto;
    font-size: var(--font-size-2xl);
    letter-spacing: -2px;
  }
  @media (min-width: 959px) {
    .swiper-pagination {
      line-height: var(--font-size-2xl);
      letter-spacing: -4px;
    }
  }
  .swiper-pagination-current {
    font-size: var(--font-size-2xl);
    font-weight: bold;
  }
  .swiper-pagination-total {
    font-size: 49px;
    font-weight: bold;
  }
  @media screen and (max-width: 959px) {
    .swiper-pagination-current {
      font-size: 53px;
    }
    .swiper-pagination-total {
      font-size: calc(32px);
    }
  }
  .swiper-slide {
    img {
      filter: brightness(50%);
      position: absolute;
      z-index: -1;
    }
    .s-card-content {
      z-index: 1;
      color: #fff;
      width: 100%;
      height: 100%;
      position: relative;
      .title-block {
        position: absolute;
        top: 0;
        left: 0;
        font-size: var(--font-size-m) * 1.2;
        padding: 1rem;
        text-align: left;
        .s-number {
          font-weight: 500;
        }
        .s-title {
          font-weight: 300;
        }
      }
      .s-detail {
        position: absolute;
        bottom: 0;
        padding: 1rem;
        font-size: var(--font-size-s);
      }
    }
  }
  @media (min-width: 959px) {
    .pc-only {
      display: block;
    }
    .sp-only {
      display: none;
    }
  }
  @media screen and (max-width: 959px) {
    .pc-only {
      display: none;
    }
    .sp-only {
      display: block;
    }
  }

  .swiper {
    width: 100vw;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-radius: var(--img-border-radius); */
    overflow: hidden; /* 角丸内に画像を収める */
  }

  .swiper-slide a {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
  }

  .swiper-slide img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .swiper {
    width: calc(100% + (100vw - 1200px) / 2);
    height: 417px;
    margin: 20px auto;
  }
  @media (min-width: 651px) and (max-width: 1330px) {
    .swiper {
      width: calc(
        100% + (((100vw - 1200px) / 2) + 5vw)
      ); /*max-width1200pxによる右側余白 + padding(全体の5%)を足した分横幅を伸ばす */
      height: 360px;
    }
  }
  @media (min-width: 700px) and (max-width: 1199px) {
    .swiper {
      width: calc(
        100% + 5vw + var(--sp-inner-p)
      ); /* 5vw=sp表示時のpadding(100vwに対する5%）　10px=sp表示時のコンテンツに対するpadding(10px(仮）） */
      height: 360px;
    }
  }

  @media screen and (max-width: 700px) {
    .swiper {
      width: 100%;
      height: 300px;
    }
  }

  .btn-circle-prev:hover,
  .btn-circle-next:hover {
    opacity: 0.7;
  }

  @media screen and (max-width: 599px) {
    .s-title {
      font-size: 14px;
    }
  }
}
