.hero_wrapper {
  overflow: hidden;
  background: var(--green-light);

  .hero {
    position: relative;
    max-width: calc(1440 / var(--base) * 100vw);
    margin: 0 auto;

    .hero__hex {
      position: absolute;
      pointer-events: none;

      &.hero__hex--left {
        top: 0;
        left: 0;
        width: calc(516 / var(--base) * 100vw);
        height: calc(683.5 / var(--base) * 100vw);
        background: url("../img/ball_bg_pc_1.png") center / cover no-repeat;
      }

      &.hero__hex--right {
        bottom: calc(38.9 / var(--base) * 100vw);
        right: 0;
        width: calc(496 / var(--base) * 100vw);
        height: calc(737.5 / var(--base) * 100vw);
        background: url("../img/ball_bg_pc_2.png") center / cover no-repeat;
      }
    }

    .hero__inner {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: calc(1065 / var(--base) * 100vw);
      margin: 0 auto;
      padding: calc(30 / var(--base) * 100vw) 0 calc(112.07 / var(--base) * 100vw);

      .hero__illust {
        width: calc(1065 / var(--base) * 100vw);
        border-radius: calc(90 / var(--base) * 100vw);
        opacity: 0.9;
      }

      .hero__copy {
        position: relative;
        z-index: 1;
        width: calc(648 / var(--base) * 100vw);
        margin-top: calc(-163 / var(--base) * 100vw);
        margin-left: calc(79 / var(--base) * 100vw);

        .hero__title {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          gap: calc(12.73 / var(--base) * 100vw);
          margin-bottom: calc(38 / var(--base) * 100vw);

          span {
            display: inline-block;
            color: #000;
            background: var(--white);
            font-family: var(--font-serif);
            font-size: calc(68.31 / var(--base) * 100vw);
            font-weight: 700;
            letter-spacing: calc(1.01 / var(--base) * 100vw);
            line-height: calc(100.19 / var(--base) * 100vw);
            padding: 0 calc(18 / var(--base) * 100vw);
            white-space: nowrap;
          }
        }

        .hero__text {
          display: grid;
          gap: calc(23 / var(--base) * 100vw);
          margin-bottom: calc(23 / var(--base) * 100vw);

          p {
            /* color: var(--navy); */
            color: #000;
            font-family: var(--font-serif);
            font-size: calc(21 / var(--base) * 100vw);
            font-weight: 600;
            line-height: 220%;
            letter-spacing: 3.8%;
          }
        }
      }
    }
  }
}

.service {
  background: var(--white);
  padding-bottom: calc(124.8 / var(--base) * 100vw);

  .service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-content: center;
    gap: 0;
    margin-top: calc(48 / var(--base) * 100vw);

    .service-card {
      position: relative;
      min-height: calc(256.59 / var(--base) * 100vw);
      background: #3c686b;

      .service-card__num {
        position: absolute;
        top: calc(-46 / var(--base) * 100vw);
        left: calc(16 / var(--base) * 100vw);
        z-index: 2;
        color: var(--green);
        font-family: var(--font-en);
        font-size: calc(72 / var(--base) * 100vw);
        font-style: italic;
        font-weight: 400;
        letter-spacing: calc(0.8 / var(--base) * 100vw);
        line-height: calc(72 / var(--base) * 100vw);
      }

      .service-card__inner {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .service-card__body {
          display: grid;
          position: absolute;
          inset: 0;
          place-content: center;
          justify-items: center;
          gap: calc(3.51 / var(--base) * 100vw);
          padding: calc(28 / var(--base) * 100vw);
          color: var(--white);
          text-align: center;

          p {
            color: var(--green);
            font-family: var(--font-en);
            font-size: calc(13.6 / var(--base) * 100vw);
            font-weight: 700;
            letter-spacing: calc(0.8 / var(--base) * 100vw);
            line-height: calc(19 / var(--base) * 100vw);
          }

          h3 {
            font-family: var(--font-serif);
            font-size: calc(20 / var(--base) * 100vw);
            font-weight: 700;
            letter-spacing: calc(0.8 / var(--base) * 100vw);
            line-height: calc(28 / var(--base) * 100vw);
          }

          span {
            font-family: var(--font-sans);
            margin-top: calc(6.08 / var(--base) * 100vw);
            font-size: calc(12.8 / var(--base) * 100vw);
            font-weight: 400;
            letter-spacing: calc(0.8 / var(--base) * 100vw);
            line-height: calc(23 / var(--base) * 100vw);
          }
        }

        i {
          position: absolute;
          right: calc(12 / var(--base) * 100vw);
          bottom: calc(12 / var(--base) * 100vw);
          width: calc(12 / var(--base) * 100vw);
          height: calc(12 / var(--base) * 100vw);
          border-radius: calc(999 / var(--base) * 100vw);
          background: var(--white);
          -webkit-transition: .25s ease-out;
          transition: .25s ease-out;
        }

        &:hover i {
          bottom: 0;
          right: 0;
          opacity: 0.2;
          -webkit-transition: scale(100);
          transform: scale(100);
        }
      }
    }
  }
}

.cases {
  display: grid;
  min-height: calc(433.86 / var(--base) * 100vw);
  align-items: center;
  background: var(--bg-cases);

  .container {
    display: grid;
    justify-items: center;
  }

  .cases__lead {
    margin: calc(48 / var(--base) * 100vw) 0 calc(28.8 / var(--base) * 100vw);
  }
}

.media {
  .container {
    display: grid;
    justify-items: center;
  }

  .media__lead {
    margin-bottom: calc(48 / var(--base) * 100vw);
  }

  .post-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, calc(416.66 / var(--base) * 100vw));
    place-content: center;
    gap: calc(15 / var(--base) * 100vw);
    margin-bottom: calc(48 / var(--base) * 100vw);

    .post-card {
      display: grid;
      background: var(--white);
      border-radius: calc(10 / var(--base) * 100vw);
      overflow: hidden;

      .post-card__thumb {
        overflow: hidden;

        img {
          aspect-ratio: 416.66 / 236;
          object-fit: cover;
        }
      }

      .post-card__inner {
        display: grid;
        gap: calc(21 / var(--base) * 100vw);
        padding: calc(30 / var(--base) * 100vw);

        time {
          color: var(--green);
          font-family: var(--font-serif);
          font-size: calc(12 / var(--base) * 100vw);
          font-weight: 400;
          letter-spacing: 8%;
          line-height: 180%;
        }

        h3 {
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
          text-overflow: ellipsis;
          color: var(--black);
          font-family: var(--font-serif);
          font-size: calc(18 / var(--base) * 100vw);
          font-weight: 700;
          letter-spacing: 4%;
          line-height: 180%;
        }

        ul {
          display: flex;
          flex-wrap: wrap;
          gap: calc(4 / var(--base) * 100vw);

          li {
            height: calc(29.25 / var(--base) * 100vw);
            padding: calc(1.89 / var(--base) * 100vw) calc(14.4 / var(--base) * 100vw) calc(2.36 / var(--base) * 100vw);
            border-radius: calc(5 / var(--base) * 100vw);
            color: var(--white);
            background: var(--green);
            font-size: calc(13.6 / var(--base) * 100vw);
            font-weight: 700;
            letter-spacing: calc(0.8 / var(--base) * 100vw);
            line-height: calc(24.48 / var(--base) * 100vw);
          }
        }

        .post-card__more {
          display: inline-flex;
          align-items: center;
          justify-self: end;
          gap: calc(10 / var(--base) * 100vw);
          color: var(--text-black);
          font-size: calc(13.6 / var(--base) * 100vw);
          font-weight: 700;
          letter-spacing: calc(0.8 / var(--base) * 100vw);
          line-height: calc(24.48 / var(--base) * 100vw);

          .media__arrow {
            display: block;
            width: calc(6 / var(--base) * 100vw);
            height: calc(6 / var(--base) * 100vw);
            border-top: calc(1 / var(--base) * 100vw) solid var(--green);
            border-right: calc(1 / var(--base) * 100vw) solid var(--green);
            transform: translateY(calc(1.5 / var(--base) * 100vw)) rotate(45deg);
          }
        }
      }
    }
  }

}

@media (max-width: 768px) {
  .hero_wrapper {

    .hero {
      max-width: 100%;

      .hero__hex {
        &.hero__hex--left {
          display: none;
        }

        &.hero__hex--right {
          top: calc(283 / var(--base) * 100vw);
          right: 0;
          width: calc(272 / var(--base) * 100vw);
          height: calc(370 / var(--base) * 100vw);
          background: url("../img/ball_bg_sp.png") center / cover no-repeat;
        }
      }

      .hero__inner {
        width: 100%;
        padding: calc(20 / var(--base) * 100vw) 0 calc(40 / var(--base) * 100vw);

        .hero__illust {
          width: 100%;
          height: calc(254.93 / var(--base) * 100vw);
          border-radius: 0;
          object-fit: cover;
          object-position: center top;
        }

        .hero__copy {
          position: relative;
          z-index: 1;
          width: 100%;
          margin-top: calc(-40 / var(--base) * 100vw);
          margin-left: 0;
          padding: 0 calc(24 / var(--base) * 100vw);

          .hero__title {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: calc(6.64 / var(--base) * 100vw);
            margin-bottom: calc(32.8 / var(--base) * 100vw);

            span {
              display: inline-block;
              /* color: var(--navy); */
              color: #000;
              background: var(--white);
              font-family: var(--font-serif);
              font-size: calc(35.66 / var(--base) * 100vw);
              font-weight: 700;
              letter-spacing: calc(0.53 / var(--base) * 100vw);
              line-height: calc(50.3 / var(--base) * 100vw);
              padding: 0 calc(10 / var(--base) * 100vw);
              white-space: nowrap;
            }
          }

          .hero__text {
            display: grid;
            gap: calc(23 / var(--base) * 100vw);
            margin-bottom: calc(23 / var(--base) * 100vw);

            p {
              /* color: var(--navy); */
              font-family: var(--font-serif);
              font-size: calc(16 / var(--base) * 100vw);
              font-weight: 600;
              line-height: 220%;
              letter-spacing: 3.8%;
            }
          }
        }
      }
    }
  }

  .service {
    padding-bottom: calc(93.23 / var(--base) * 100vw);

    .service_lead {
      margin-top: calc(42.39 / var(--base) * 100vw);
    }

    .service-list {
      grid-template-columns: 1fr;
      gap: calc(28.8 / var(--base) * 100vw);
      width: 100%;
      margin-top: calc(42.39 / var(--base) * 100vw);

      .service-card {
        min-height: calc(191.13 / var(--base) * 100vw);

        .service-card__inner {

          .service-card__body {
            gap: calc(3.51 / var(--base) * 100vw);
            padding: calc(24 / var(--base) * 100vw);

            p {
              font-size: calc(13.6 / var(--base) * 100vw);
              font-weight: 700;
              letter-spacing: calc(0.8 / var(--base) * 100vw);
              line-height: calc(19 / var(--base) * 100vw);
            }

            h3 {
              font-size: calc(20 / var(--base) * 100vw);
              font-weight: 700;
              letter-spacing: calc(0.8 / var(--base) * 100vw);
              line-height: calc(28 / var(--base) * 100vw);
            }

            span {
              margin-top: calc(6.09 / var(--base) * 100vw);
              font-size: calc(12.8 / var(--base) * 100vw);
              font-weight: 400;
              letter-spacing: calc(0.8 / var(--base) * 100vw);
              line-height: calc(23 / var(--base) * 100vw);
            }
          }
        }
      }
    }
  }

  .cases {
    min-height: calc(388.7 / var(--base) * 100vw);

    .cases__lead {
      margin: calc(41.79 / var(--base) * 100vw) 0 calc(28.8 / var(--base) * 100vw);
    }
  }

  .media {
    .media__lead {
      margin-top: calc(41.79 / var(--base) * 100vw);
      margin-bottom: calc(42.4 / var(--base) * 100vw);
      text-align: left;
    }

    .post-list {
      width: 100%;
      display: grid;
      grid-template-columns: 1fr;
      gap: calc(8 / var(--base) * 100vw);
      margin-bottom: calc(42.4 / var(--base) * 100vw);

      .post-card {
        display: grid;
        background: var(--white);
        border-radius: calc(10 / var(--base) * 100vw);
        overflow: hidden;

        .post-card__thumb {

          img {
            aspect-ratio: 317.4 / 184;
          }
        }

        .post-card__inner {
          display: grid;
          gap: calc(13 / var(--base) * 100vw);
          padding: calc(20 / var(--base) * 100vw);

          h3 {
            font-size: calc(16 / var(--base) * 100vw);
          }

          ul {
            li {
              height: calc(29 / var(--base) * 100vw);
              padding: calc(2 / var(--base) * 100vw) calc(10 / var(--base) * 100vw);
              border-radius: calc(5 / var(--base) * 100vw);
              color: var(--white);
              background: var(--green);
              font-size: calc(12 / var(--base) * 100vw);
              font-weight: 700;
              letter-spacing: calc(0.8 / var(--base) * 100vw);
              line-height: calc(24.48 / var(--base) * 100vw);
            }
          }

          .post-card__more {
            display: inline-flex;
            align-items: center;
            justify-self: end;
            gap: calc(10 / var(--base) * 100vw);
            color: var(--text-black);
            font-size: calc(13 / var(--base) * 100vw);
            font-weight: 700;
            letter-spacing: calc(0.8 / var(--base) * 100vw);
            line-height: calc(24.48 / var(--base) * 100vw);

            .media__arrow {
              display: block;
              width: calc(6 / var(--base) * 100vw);
              height: calc(6 / var(--base) * 100vw);
              border-top: calc(1 / var(--base) * 100vw) solid var(--green);
              border-right: calc(1 / var(--base) * 100vw) solid var(--green);
              transform: rotate(45deg);
            }
          }
        }
      }
    }

  }

}

/* 2026/07/14 修正 */
@media (min-width: 769px) and (max-height: 59vw) {
  .hero_wrapper {
    .hero {
      .hero__inner {
        --hero-title-bottom-gap: 24px;
        --hero-inner-padding-top: calc(30 / var(--base) * 100vw);
        --hero-illust-original-height: calc(622 / var(--base) * 100vw);
        --hero-copy-overlap: calc(163 / var(--base) * 100vw);
        --hero-title-height: calc(326 / var(--base) * 100vw);

        --hero-illust-sticky-height: calc(100svh - var(--hero-title-bottom-gap) - var(--hero-inner-padding-top) - var(--hero-title-height) + var(--hero-copy-overlap));

        .hero__illust {
          height: min(var(--hero-illust-original-height),
              var(--hero-illust-sticky-height));
          object-fit: cover;
          object-position: center center;
        }

        .hero__copy {
          margin-top: calc(-1 * var(--hero-copy-overlap));
        }
      }
    }
  }
}

.hero_wrapper {
  position: relative;

  .hero__scroll {
    position: absolute;
    right: calc(60 / var(--base) * 100vw);
    top: calc(660 / var(--base) * 100vw);
    z-index: 3;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: calc(13 / var(--base) * 100vw);
    width: calc(56 / var(--base) * 100vw);
    /* color: var(--navy); */
    color: #000;
    text-decoration: none;
  }

  .hero__scroll-text {
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    font-size: calc(14 / var(--base) * 100vw);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 14%;
  }

  .hero__scroll-bar {
    position: relative;
    display: block;
    width: calc(2 / var(--base) * 100vw);
    height: calc(84 / var(--base) * 100vw);
    overflow: hidden;
    background: var(--white);
  }

  .hero__scroll-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: var(--navy); */
    background: #000;
    animation: hero-scroll-bar 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
  }
}


@keyframes hero-scroll-bar {
  0% {
    transform: translateY(-100%);
  }

  45%,
  55% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}




@media (max-width: 768px) {
  .hero_wrapper {
    .hero__scroll {
      right: calc(16 / 390 * 100vw);
      width: calc(32 / 390 * 100vw);
      gap: calc(14 / 390 * 100vw);
      top: calc(294 / var(--base) * 100vw);
      align-items: center;
    }

    .hero__scroll-text {
      font-size: calc(14 / 390 * 100vw);
    }

    .hero__scroll-bar {
      width: calc(3 / 390 * 100vw);
      height: calc(96 / 390 * 100vw);
    }
  }
}

@media (min-width: 769px) and (max-height: 61vw) {
  .hero_wrapper {
    .hero__scroll {
      top: min(calc(660 / var(--base) * 100vw),
          calc(100svh - calc(220 / var(--base) * 100vw)));
    }
  }
}