img {
  height: auto;
}

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

.three-keyWords {

  .mv_container {
    margin-inline: 5%;
    margin-top: -12.57%;
    padding: 4rem 4rem 0 4rem;
    text-align: center;
    position: relative;
    background-color: #fff;
    z-index: 2;
    color: #0F1C50;
  }

  .messagevisual {
    position: relative;
    background: url(../img/three-keywords/bg-mv.png) no-repeat center center / cover;
    padding: 6.944%;
  }

  .messagevisual__bg {
  }

  .messagevisual .title {
    color: #fff;
    text-align: center;
  }

  .messagevisual_title-en {
    font-size: 96px;
    font-weight: 100;
    font-size: clamp(3.6rem, 1.8864rem + 5.36vw, 9.6rem);
    letter-spacing: 0.04375em;
    font-family: "Lato", sans-serif;
    line-height: 1;
  }

  .messagevisual_title {
    font-size: clamp(1.4rem, 1rem + 1.25vw, 2.8rem);
    letter-spacing: 0.15em;
    line-height: 1.8;
    margin-top: 1.6rem;
  }

  .chapter_section {
    position: relative;
    padding-block: 12rem;
    overflow-x: hidden;
  }

  .chapter_section:first-of-type {
    padding-top: 22rem;
  }

  .chapter_bg-blue {
    display: inline-block;
    width: 94.117%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .chapter_inner {
    max-width: 1280px;
    padding-inline: 5%;
    margin-right: auto;
    margin-left: auto;
  }

  .chapter_contents {
    display: flex;
    align-items: flex-start;
    gap: 5.56%;
  }

  .chapter_details {
    flex: 1;
    padding-inline: 4.167% 5%;
    color: #0F1C50;
    position: relative;
  }

  .chapter_details_number {
    letter-spacing: 0.04375em;
    line-height: 1;
    font-size: clamp(12rem, 9.424rem + 6.43vw, 19.2rem);
    background: linear-gradient(270deg, #DDE3EF 0%, #EBF3FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
    font-family: "Lato", sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
  }

  .chapter_details_lead {
    font-size: clamp(2.8rem, 2.5712rem + 0.71vw, 3.6rem);
    letter-spacing: 0.10833em;
    font-weight: 400;
    position: relative;
    z-index: 2;
    line-height: 1.228;
  }

  .chapter_details_title {
    margin-top: 8rem;
    font-size: clamp(2rem, 1.8864rem + 0.36vw, 2.4rem);
    line-height: 2;
  }

  .chapter_details_text {
    line-height: 1.8;
    line-height: 2;
    margin-top: 4rem;
  }

  .chapter_images {
    flex: 0 1 51.3889%;
    /* margin-top: 5.556%; */
  }

  .chapter_images img {
    width: 100%;
  }

  .chapter_img {
    width: 100%;
  }


  .chapter02 .chapter_contents {
    flex-direction: row-reverse;
  }
  .chapter02 .chapter_details {
    padding-inline: 4.167% 0;
    margin-left: 5%;
  }
  
  .chapter03.chapter_section {
    padding-bottom: 16rem;
  }

  .for-sp {
    display: none;
  }

  .inview.fadeInup.active {
    animation: fadeInup .5s ease-out;
    animation-fill-mode: forwards;
  }

  @keyframes fadeInup {
      0% {
          transform: translateY(25px);
          opacity: 0
      }

      100% {
          transform: translateY(0px);
          opacity: 1
      }
  }

  @keyframes leftright_anim {
      0% {
          transform: translatex(-30px);
          opacity: 0
      }

      100% {
          transform: translateX(0px);
          opacity: 1
      }
  }

  @keyframes rightleft_anim {
      0% {
          transform: translatex(30px);
          opacity: 0
      }

      100% {
          transform: translateX(0px);
          opacity: 1
      }
  }

  @media screen and (max-width: 1520px) {
    .chapter_inner {
      margin-inline: 6.944%;
    }
  }

  @media screen and (max-width: 1000px) {
    .mv_container {
      padding: 4rem 2rem 0 2rem;
    }
    
    .chapter_section:first-of-type {
      padding-top: 0;
    }

    .chapter_contents {
      display: block;
    }

    .chapter_images {
      margin-top: 0;
    }

    .chapter_section {
      padding-block: 6.4rem;
    }
    
    .chapter_details {
      margin-top: 10rem;
    }

    .chapter02 .chapter_details {
      margin-left: 0;
    }

    .chapter_details_number {
      left: 5%;
    }

    .chapter_details_title {
      margin-top: 4rem;
    }

    .chapter_details,
    .chapter02 .chapter_details,
    .chapter04 .chapter_inner {
      padding-inline: 4%;
    }
    
    .chapter_inner {
      margin-inline: 4%;
    }

    .chapter_details_lead {
      padding-left: 5.4rem;
    }

    .for-sp {
      display: inline-block;
    }
  }
}

