/*====================================*/
/* html
/*====================================*/
html {
  scroll-padding-top: 100px;

  @media screen and (max-width: 767px) {
    scroll-padding-top: 64px;
  }
}

/*====================================*/
/* main
/*====================================*/
main {
  margin-top: 100px;

  @media screen and (max-width: 767px) {
    margin-top: 64px;
  }
}

/*====================================*/
/* header
/*====================================*/
.header {
  background-color: #fcf9f9;
}

.header__inner {
  @media screen and (max-width: 767px) {
    background-color: #fff;
    border-radius: 0 0 6px 6px;
  }
}

/*====================================*/
/* main-visual
/*====================================*/
.main-visual {
  padding-top: 15px;
  padding-bottom: 64px;
  background-color: #fcf9f9;

  @media screen and (max-width: 767px) {
    padding-top: 6px;
    padding-bottom: 0;
  }

  .main-visual__inner {
    width: calc(100% - 96px);
    margin: 0 auto 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-start;

    @media screen and (max-width: 767px) {
      width: calc(100% - 40px);
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
    }
  }

  .main-visual__images {
    width: calc(100% - 460px);
    height: 515px;
    padding: 45px 55px;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    align-items: flex-start;
    border-radius: 6px;
    overflow: hidden;
    position: relative;

    @media screen and (max-width: 767px) {
      width: 100%;
      height: 484px;
      padding: 20px 36px;
    }
  }

  .main-visual__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .main-visual__content {
    position: relative;
    z-index: 2;
  }

  .main-visual__title {
    font-size: 54px;
    line-height: 1.3em;
    color: #fff;

    @media screen and (max-width: 767px) {
      font-size: 30px;
      line-height: 1.5em;
    }
  }

  .main-visual__text {
    width: 560px;
    font-weight: 700;
    line-height: 2em;
    color: #fff;
    margin-top: 20px;

    @media screen and (max-width: 767px) {
      width: 100%;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.7em;
      margin-top: 16px;
    }
  }

  .main-visual__contents {
    width: 440px;

    @media screen and (max-width: 767px) {
      width: 100%;
      display: flex;
      flex-flow: column-reverse;
    }
  }

  .introduction {
    width: 100%;
    height: 305px;
    padding: 20px;
    background-color: var(--color-third);
    border-radius: 6px;
    position: relative;
    overflow: hidden;

    @media screen and (max-width: 767px) {
      height: auto;
      margin-top: 20px;
      padding: 20px 16px;
    }

    &::after {
      content: "";
      position: absolute;
      top: -10px;
      right: -25px;
      width: 264px;
      height: 278px;
      background-image: url(/images/index/main-signboard.png);
      background-repeat: no-repeat;
      background-size: 264px 278px;
      transform: rotate(-1deg);
      transform-origin: top right;
      pointer-events: none;
      z-index: 0;
    }


    .introduction__title {
      font-size: 30px;
      font-weight: 700;
      line-height: 1.5em;
      color: #fff;
      position: relative;
      z-index: 1;

      @media screen and (max-width: 767px) {
        font-size: 20px;
        font-weight: 500;
      }
    }

    .introduction__text {
      font-size: 14px;
      margin-top: 12px;
      color: #fff;
      position: relative;
      z-index: 1;
    }

    .introduction__link {
      margin-top: 10px;
      display: flex;
      flex-flow: row;
      justify-content: space-between;
      align-items: center;
      gap: 8px;

      @media screen and (max-width: 767px) {
        flex-flow: column;
        justify-content: center;
      }
    }

    .card {
      width: 200px;
      height: 73px;
      background-color: #fff;
      border-radius: 6px;
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
      z-index: 1;

      @media screen and (max-width: 767px) {
        width: 100%;
      }

      .card__title {
        font-size: 12px;
        line-height: 1em;
        color: #77778c;
      }

      .card__text {
        font-weight: 700;
        line-height: 1em;
        color: var(--color-primary);
        display: flex;
        flex-flow: row;
        justify-content: center;
        align-items: center;
        margin-top: 10px;

        img {
          width: 11.15px;
          height: 12.6px;
          display: block;
          margin-top: 2px;
          margin-left: 8px;
        }
      }
    }
  }

  .splide {
    width: 100%;
    margin-top: 20px;
    position: relative;

    @media screen and (max-width: 767px) {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
      align-items: center;
    }

    .banner {
      display: block;
      height: 190px;
      background-color: #77778c;
      overflow: hidden;
      border-radius: 6px;
      position: relative;

      @media screen and (max-width: 767px) {
        width: 100%;
        height: auto;
        aspect-ratio: 335 / 145;
      }

      .banner__image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .c-arrow {
        position: absolute;
        bottom: 20px;
        right: 20px;
      }
    }
  }

  .splide__pagination {
    justify-content: flex-end;
    position: absolute;
    bottom: -33px;
    right: 31px;
    padding: 0;

    @media screen and (max-width: 767px) {
      position: relative;
      top: 4px;
      bottom: unset;
      right: unset;
    }

    .splide__pagination__page {
      width: 7px;
      height: 7px;
      background-color: #d9d9d9;
      margin: 0 6px;
    }

    .splide__pagination__page.is-active {
      background-color: var(--color-primary);
      transform: scale(1);
    }
  }

  .splide-controls {
    position: absolute;
    bottom: -38px;
    right: 0;

    @media screen and (max-width: 767px) {
      position: relative;
      top: 4px;
      bottom: unset;
      right: unset;
      margin-top: 6px;
      margin-left: 8px;
    }

    button {
      width: 22px;
      height: 22px;
      display: block;

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

  .news {
    width: calc(100% - 96px);
    margin: 50px auto 0 auto;
    padding: 14px 14px 14px 32px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;

    @media screen and (max-width: 767px) {
      display: none;
    }

    .news__contents {
      width: calc(100% - 220px);
      display: flex;
      flex-flow: row;
      justify-content: flex-start;
      align-items: center;
    }

    .news__label {
      font-weight: 700px;
      color: #fff;
      margin-right: 16px;
      padding: 0 6px;
      background-color: var(--color-primary);
      border-radius: 8px;
    }

    .news__date {
      color: #a7a7b5;
      margin-right: 8px;
    }
  }
}

/*====================================*/
/* about
/*====================================*/
.about {
  width: 1310px;
  margin: 70px auto 0;
  padding: 120px 130px 100px;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  background-color: #FCF9F9;
  border-radius: 16px;
  position: relative;

  @media screen and (max-width: 767px) {
    width: calc(100% - 40px);
    margin: 40px auto 0;
    padding: 40px 20px;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
  }

  .about__title {
    width: 500px;
    font-size: 37px;
    line-height: 2em;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    position: relative;
    z-index: 5;

    @media screen and (max-width: 767px) {
      width: 100%;
      font-size: 20px;
      line-height: 1.8em;
      margin-top: 20px;
    }
  }

  .about__contents {
    width: 416px;
    position: relative;
    z-index: 5;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .about__text {
    margin-top: 42px;
    line-height: 1.9em;

    @media screen and (max-width: 767px) {
      font-size: 14px;
      margin-top: 8px;
    }
  }

  .c-primary-button {
    margin-top: 32px;

    @media screen and (max-width: 767px) {
      width: 100%;
      margin-top: 20px;
    }
  }

  .about__loop {
    width: 100%;
    height: 126px;
    display: flex;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;

    @media screen and (max-width: 767px) {
      height: 70px;
    }
  }

  .about__loop-text {
    padding-top: 65px;
    font-size: 182px;
    font-weight: 700;
    font-family: var(--font-en);
    color: #F3ECE7;
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;

    &:nth-child(odd) {
      animation: MoveLeft 60s -30s infinite linear;
    }

    &:nth-child(even) {
      animation: MoveLeft2 60s infinite linear;
    }

    @media screen and (max-width: 767px) {
      padding-top: 32px;
      font-size: 100px;
    }
  }
}

@keyframes MoveLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes MoveLeft2 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

/*====================================*/
/* service
/*====================================*/
.service {
  width: calc(100% - 200px);
  margin: 96px auto 0;
  padding-bottom: 96px;
  border-bottom: 1px solid #DFDFE4;

  @media screen and (max-width: 767px) {
    width: 100%;
    margin: 32px auto 0;
    padding-bottom: 64px;
  }

  .service__inner {
    width: 1060px;
    margin: 0 auto;

    @media screen and (max-width: 767px) {
      width: calc(100% - 40px);
    }
  }

  .c-head-first {
    margin-left: -32px;

    @media screen and (max-width: 767px) {
      margin-left: 0;
    }
  }

  .service__text {
    font-size: 20px;
    margin-top: 40px;

    @media screen and (max-width: 767px) {
      font-size: 16px;
      margin-top: 16px;
    }
  }

  .c-no-card {
    margin-top: 40px;

    @media screen and (max-width: 767px) {
      margin-top: 24px;
    }
  }
}

/*====================================*/
/* works
/*====================================*/
.works {
  width: 1060px;
  margin: 96px auto 0 auto;

  @media screen and (max-width: 767px) {
    width: calc(100% - 40px);
    margin: 64px auto 0 auto;
  }

  .c-image-card {
    margin-top: 40px;

    @media screen and (max-width: 767px) {
      margin-top: 24px;
    }
  }

  .c-primary-button {
    margin: 40px auto 0;

    @media screen and (max-width: 767px) {
      width: 100%;
      margin-top: 24px;
    }
  }
}

/*====================================*/
/* advice
/*====================================*/
.advice {
  width: 1060px;
  margin: 96px auto 0;

  @media screen and (max-width: 767px) {
    width: calc(100% - 40px);
    margin: 48px auto 0;
  }

  .advice__flex {
    margin-top: 40px;
    padding: 48px 60px;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background-color: #F9F4F2;
    background-image: url(../images/index/balance.svg);
    background-repeat: no-repeat;
    background-size: 500px 415px;
    background-position: bottom 13px right 43px;

    @media screen and (max-width: 767px) {
      margin-top: 16px;
      padding: 16px;
      flex-flow: column;
      background-size: 365px 300px;
      background-position: bottom 32px right -84px;
    }
  }

  .advice__visual {
    width: 380px;
    height: 380px;
    margin-right: 48px;
    flex-shrink: 0;

    @media screen and (max-width: 767px) {
      width: 100%;
      height: auto;
      aspect-ratio: 1/1;
      margin-right: 0;
    }
  }

  .advice__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .advice__contents {
    @media screen and (max-width: 767px) {
      margin-top: 20px;
    }
  }

  .advice__title {
    font-size: 30px;
    font-weight: 700;
    color: #002A80;

    @media screen and (max-width: 767px) {
      font-size: 24px;
    }
  }

  .advice__text {
    margin-top: 24px;

    @media screen and (max-width: 767px) {
      margin-top: 16px;
    }
  }

  .c-primary-button {
    margin-top: 24px;

    @media screen and (max-width: 767px) {
      width: 100%;
      margin-top: 20px;
    }
  }
}

/*====================================*/
/* interview
/*====================================*/
.interview {
  margin-top: 158px;
  padding: 96px 0 0 0;
  border-radius: 32px 32px 0 0;
  background-color: #FCF9F9;

  @media screen and (max-width: 767px) {
    margin-top: 40px;
    padding: 48px 0 0 0;
    border-radius: 24px 24px 0 0;
  }

  .interview__inner {
    width: 1060px;
    margin: 0 auto;

    @media screen and (max-width: 767px) {
      width: calc(100% - 40px);
    }
  }

  .c-image-card--2 {
    margin-top: 40px;

    @media screen and (max-width: 767px) {
      margin-top: 16px;
    }
  }

  .c-primary-button {
    width: 260px;
    margin: 40px auto 0;

    @media screen and (max-width: 767px) {
      width: 100%;
      margin: 24px auto 0;
    }
  }
}

/*====================================*/
/* info
/*====================================*/
.info {
  padding: 84px 0 130px;
  background-color: #FCF9F9;

  @media screen and (max-width: 767px) {
    padding: 64px 0 20px;
  }

  .info__flex {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: stretch;

    @media screen and (max-width: 767px) {
      width: calc(100% - 40px);
      flex-flow: column;
      justify-content: center;
      align-items: center;
    }
  }

  .info__contents {
    width: calc((100% - 48px)/2);
    padding: 40px 32px;
    border-radius: 6px;
    background-color: #fff;

    @media screen and (max-width: 767px) {
      width: 100%;
      padding: 40px 16px;
    }
  }

  .info__contents:nth-child(2) {
    @media screen and (max-width: 767px) {
      margin-top: 20px;
    }
  }

  .info__introduction-text {
    margin-top: 32px;

    @media screen and (max-width: 767px) {
      margin-top: 24px;
    }
  }

  .info__list {
    margin-top: 32px;

    @media screen and (max-width: 767px) {
      margin-top: 24px;
    }
  }

  .info__item {
    border-top: 1px solid #DFDFE4;
  }

  .info__item:last-child {
    border-bottom: 1px solid #DFDFE4;
  }

  .info__link {
    width: 100%;
    min-height: 70px;
    padding: 24px 8px;
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: flex-start;

    @media screen and (max-width: 767px) {
      padding: 12px;
      flex-flow: column;
    }
  }

  .info__date {
    font-size: 12px;
    color: #A7A7B5;
    margin-right: 8px;

    @media screen and (max-width: 767px) {
      margin-right: 4px;
    }
  }

  .info__text {
    font-size: 12px;
  }

  .info__pdf {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 4px;
    position: relative;
    top: -3px;
  }
}
