.outline-area {
  background: var(--color-white);
  @media (768px <= width) {
    padding-top: 112px;
    margin-top: -112px;
  }
  @media (width < 768px) {
    padding-top: 84px;
    margin-top: -84px;
  }
  .main-block {
    position: sticky;
    top: 0;
    background: var(--color-blue-base) url('../img/top/top-main-bg.webp') no-repeat center right;
    @media (768px <= width) {
      height: calc( 100vh - 112px );
      background-size: auto 112%;
    }
    @media (width < 768px) {
      height: calc( 100vh - 84px );
      background-position: bottom 40% center;
      background-size: 100% auto;
    }
    .news-block {
      color: #fff;
      position: absolute;
      z-index: 5;
      @media (768px <= width) {
        left: 8vw;
        bottom: 30px;
      }
      @media (width < 768px) {
        left: 20px;
        bottom: 20px;
        width: calc( 100% - 40px );
      }
    }
    .news-article a {
      display: flex;
      align-items: center;
      font-family: var(--font-en);
      gap: 10px 20px;
      @media (width < 768px) {
        flex-wrap: wrap;
      }
      .news-label {
        border-radius: 4px;
        padding: 4px 8px;
        background: #FFF;
        color: var(--color-blue-base, #3299BB);
        font-size: 1.4rem;
        font-weight: 600;
        line-height: 1.3;
        @media (width < 768px) {
          font-size: 1.3rem;
        }
      }
      time {
        font-size: 1.3rem;
        font-weight: 500;
      }
      .news-content {
        font-size: 1.3rem;
        @media (width < 768px) {
          width: 100%;
        }
      }
    }
  }
  .text-wrap {
    top: 0;
    z-index: 3;
    position: fixed;
    width: 100%;
    transition: all .4s;
    pointer-events: none;
    @media (768px <= width) {
      padding-top: 112px;
      position: sticky;
      top: 0;
      margin-top: -100vh;
      height: 100vh;
    }
    @media (width < 768px) {
      padding-top: 82px;
    }
    &.stopped {
      position: absolute;
    }
    .main-text {
      color: #FFF;
      font-weight: 600;
      letter-spacing: 3.4px;
      line-height: 1.4;
      @media (768px <= width) {
        max-width: 60%;
        font-size: 8rem;
        font-size: clamp(5rem, 5vw, 8rem);
        padding: 8vw;
      }
      @media (width < 768px) {
        font-size: 4rem;
        padding: 60px 24px;
      }
    }
  }
  .message-block {
    background: url('../img/top/top-lead-bg.webp') no-repeat;
    z-index: 2;
    position: sticky;
    top: 0;
    @media (768px <= width) {
      padding: 10px 0 100px;
    }
    @media (width < 768px) {
      padding: 360px 0 80px;
    }
    .message-text {
      margin-left: auto;
      position: relative;
      z-index: 10;
      @media (768px <= width) {
        width: 50%;
        padding-top: 200px;
      }
      @media (width < 768px) {
        width: 75%;
        margin-right: 5%;
      }
      p {
        color: #FFF;
        font-size: 1.6rem;
        font-weight: 600;
        line-height: 2.2;
        letter-spacing: 1.92px;
        @media (width < 768px) {
          font-size: 1.4rem;
        }
        + p {
          @media (768px <= width) {
            margin-top: 60px;
          }
          @media (width < 768px) {
            margin-top: 40px;
          }
        }
      }
      .btn {
        margin-top: 80px;
      }
    }
  }
}

section {
  .inner {
    width: 80%;
    margin: 0 auto;
    @media (768px <= width) {
      padding: 150px 0;
    }
    @media (width < 768px) {
      padding: 80px 0;
    }
  }
}

h2 {
  .en {
    font-size: 1.5rem;
  }
  .jp {
    font-size: 4rem;
    @media (width < 768px) {
      font-size: 3.2rem;
    }
  }
  + * {
    margin-top: 40px;
    @media (width < 768px) {
      margin-bottom: 30px;
    }
  }
}

@keyframes circle-animation {
  0% {
    transform:rotate(-60deg)
  }
  to {
    transform:rotate(-420deg)
  }
}

#service {
  position: relative;
  .bg-area {
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    inset: 0;
    .bg {
      position: absolute;
      animation: circle-animation 30s linear 1.74s infinite;
      top: 50%;
      translate: 0 -50%;
      @media (768px <= width) {
        width: 1400px;
        left: 30%;
      }
      @media (width < 768px) {
        top: 70%;
        width: 1000px;
        left: 20px;
      }
    }
    img {
      @media (768px <= width) {
        width: 1400px;
      }
      @media (width < 768px) {
        width: 1000px;
      }
    }
  }
  .inner {
    @media (768px <= width) {
      display: flex;
      align-items: flex-start;
    }
  }
  .text-area {
    @media (768px <= width) {
      width: 50%;
      position: sticky;
      top: 180px;
    }
    p {
      font-size: 1.4rem;
      line-height: 2;
    }
    .btn {
      @media (768px <= width) {
        margin-top: 60px;
      }
    }
  }
  .img-area {
    @media (768px <= width) {
      width: 50%;
    }
    @media (width < 768px) {
      margin-top: 60px;
    }
    .img-box {
      border-radius: 10px;
      position: relative;
      .num {
        position: absolute;
        right: 0;
        top: 0;
        background: #fff;
        padding: 5px 10px;
        font-size: 2.4rem;
        line-height: 1.2;
      }
      .text {
        margin-top: 10px;
        font-size: 2rem;
        @media (width < 768px) {
          font-size: 1.5rem;
        }
      }
      + .img-box {
        margin-top: 40px;
      }
      a {
        transition: all .4s;
        &:hover {
          opacity: .6;
        }
      }
    }
  }
}


#socialcontribution {
  background: #F5F5F5;
  .text-area {
    font-size: 1.4rem;
    line-height: 2;
    @media (768px <= width) {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: flex-end;
    }
    @media (width < 768px) {
      a {
        margin-top: 30px;
      }
    }
  }
  .link-area {
    margin-top: 60px;
    @media (768px <= width) {
      display: grid;
      grid-template-columns: repeat( 2, 1fr );
      gap: 40px;
    }
  }
  .link-box {
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 4px 4px 16px 0px rgba(0, 0, 0, 0.12);
    a {
      display: block;
      @media (768px <= width) {
        padding: 40px;
      }
      @media (width < 768px) {
        padding: 24px;
      }
      &:hover {
        .arrow-link__icon {
          transform: translateX(5px);
        }
      }
    }
    h3 {
      color: var(--color-blue-base);
      font-family: var(--font-en);
      span {
        font-size: 1.4rem;
      }
      .num {
        font-size: 2.4rem;
        margin-left: 10px;
        vertical-align: middle;
      }
    }
    .arrow-link {
      font-size: 1.9rem;
      line-height: 1.7;
      margin: 20px 0;
      @media (width < 768px) {
        font-size: 1.6rem;
      }
    }
    + .link-box {
      @media (width < 768px) {
        margin-top: 40px;
      }
    }
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

#recruit {
  background: url('../img/top/top-recruit-bg.webp') no-repeat center / cover;
  color: #fff;
  overflow: hidden;
  .inner {
    @media (768px <= width) {
      display: grid;
      grid-template-columns: 50% 240px;
      align-items: flex-start;
      justify-content: space-between;
      gap: 60px;
    }
  }
  p {
    font-size: 1.4rem;
    line-height: 2;
  }
  .scroll-wrap {
    overflow: hidden;
    width: 100%;
  }
  .scroll-text {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    width: 220%;
    position: relative;
    opacity: .7;
    @media (width < 768px) {
      width: 500%;
    }
  }
  .scroll-text p {
    display: block;
    animation: scroll-left 20s linear infinite;
  }
}

#news {
  background: var(--color-white);
  .inner {
    @media (768px <= width) {
      display: grid;
      grid-template-columns: 40% auto;
    }
  }
  .news-area {
    @media (width < 768px) {
      margin-top: 40px;
    }
  }
  .btn {
    white-space: nowrap;
    @media (768px <= width) {
      margin: 40px 0 0 auto;
    }
    @media (width < 768px) {
      margin-top: 40px;
    }
  }
}

.info-area {
  @media (768px <= width) {
    display: grid;
    grid-template-columns: 50% 50%;
  }
  a {
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    @media (768px <= width) {
      padding: 140px clamp( 10%, 8vw ,20%);
    }
    @media (width < 768px) {
      padding: 60px 30px;
    }
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      transition: all .4s;
    }
    &:hover {
      &::before {
        scale: 1.1;
      }
    }
    .text-box {
      @media (width < 768px) {
        padding-bottom: 40px;
      }
      .jp {
        @media (768px <= width) {
          font-size: 3.4rem;
        }
        @media (width < 768px) {
          font-size: 2.4rem;
        }
      }
    }
    &.arrow-link {
      grid-template-columns: auto clamp( 80px, 8vw, 98px);
      @media (width < 768px) {
        grid-template-columns: auto 64px;
        align-items: flex-end;
      }
    }
    .arrow-link__icon {
      @media (768px <= width) {
        width: clamp( 80px, 8vw, 98px);
        height: clamp( 80px, 8vw, 98px);
      }
      @media (width < 768px) {
        width: 64px;
        height: 64px;
      }
    }
  }
}

#company {
  a::before {
    background: url('../img/top/top-company-bg.webp') no-repeat center / cover;
  }
}

#contact {
  a::before {
    background: url('../img/top/top-contact-bg.webp') no-repeat center / cover;
  }
}
