@charset "utf-8";
:root {
  --req-gray: #69819e;
  --req-lightgray: #b4c0ce;
}


section:not(.sibling-links) {
  padding-block: 60px;
  @media screen and (max-width: 768px) {
    padding-block: 40px ;
  }
}

.content-outer {
  max-width: 1080px;
  margin-block: 128px;
  margin-inline: auto;
  padding-inline: 40px;
  @media screen and (max-width: 768px) {
    margin-block: 50px 80px;
    padding-inline: 24px;
  }
}

#message {

  @media screen and (max-width: 768px) {
    &.lowerPage .fv .fv-img::before {
      background-image: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.4));
    }
  }

  .fv-heading {
    position: absolute;
    top: 58.5%;
    translate: 0 -50%;
    z-index: 5;
    @media screen and (max-width: 560px) {
      top: 12.5%;
      /* top: 67.5%; */
    }

    .fv-info {
      display: flex;
      flex-direction: column;
    }

    .fv-head {
      position: relative;
      font-size: clamp(1.3rem, 3vw, 4rem);
      font-weight: 700;
      padding-right: 48px;
      color: var(--blue);
      line-height: 1;
      margin-bottom: 48px;
      @media screen and (max-width: 560px) {
        font-size: 7.79945cqw;
        margin-bottom: 10px;
      }

      span {
        display: block;
      }
    }

    .text {
      font-size: clamp(1.2rem, 2vw, 1.6rem);
      @media screen and (max-width: 768px) {
        font-size: 1.6rem;
      }
    }

    .name {
      font-weight: 700;
      font-size: clamp(1.2rem, 3vw, 2.4rem);
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
    }
  }

  .intro {
    max-width: 880px;
    padding-inline: 40px;
    margin-inline: auto;
    font-size: 1.6rem;
    line-height: 2;
    text-align: justify;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
      padding: 0;
    }
  }

}



#requirements {

  &.lowerPage .fv .fv-heading {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }

  .sec-outline,
  .sec-flow {
    padding-inline: 5.18cqw;
    @media screen and (max-width: 768px) {
      padding: 0;
    }
  }

  .sec-heading {
    width: 100%;
    height: 64px;
    border-radius: 24px 24px 0 0;
    background: var(--req-lightgray);
    display: grid;
    place-content: center;
    @media screen and (max-width: 768px) {
      height: 48px;
      border-radius: 20px;
    }
    .head {
      font-size: 2.4rem;
      color: var(--white);
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
    }
  }


  .sec-outline {
    .outline {
      margin-top: 60px;
      padding-inline: 4cqw;
      @media screen and (max-width: 768px) {
        padding: 0;
        margin-top: 24px;
      }
    }

    .outline-list {
      position: relative;
      display: flex;
      gap: 60px;
      &::before {
        content: "" ;
        position: absolute;
        bottom: -30px;
        left: 0;
        width: 100%;
        height: 1px;
        background: var(--req-gray);
        z-index: 1;
      }
      @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 16px;
      }

      + .outline-list  {
        margin-top: 60px;
      }
    }

    .outline-term {
      width: 100px;
      font-size: 2rem;
      color: var(--req-gray);
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
    }

    .outline-description {
      flex: 1;
      font-size: 1.6rem;
      line-height: 2;
      text-align: justify;
      @media screen and (max-width: 768px) {
        font-size: 1.4rem;
      }
    }

    .bold {
      font-weight: 700;
    }
    .mt {
      margin-top: 16px;
    }
  }


  .sec-flow {
    container-type: inline-size;
    /* margin-top: 116px; */
    @media screen and (max-width: 768px) {
      margin-top: 80px;
    }

    .sec-heading .head {
      font-size: clamp(1.8rem, 2vw, 2.4rem);
    }

    .flow-list {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 40px;
      margin-top: 64px;
      @media screen and (max-width: 768px) {
        grid-template-columns:initial;
        gap: 0;
        margin-top: 48px;
      }
    }

    .flow-item {
      position: relative;
      height: 100%;
      box-sizing: border-box;

      &:not(:last-of-type) .flow-item__info::before, 
      &:not(:last-of-type) .flow-item__info::after {
        content: "";
        position: absolute;
        top: 50%;
        translate: 0 -50%;
        @media screen and (max-width: 768px) {
          display: none;
        }
      } 
      &:not(:last-of-type) .flow-item__info::before {
        right: -16px;
        width: 16px;
        height: 30px;
        background: var(--black);
      }
      &:not(:last-of-type) .flow-item__info::after {
        right: -31px;
        width: 0;
        height: 0;
        border-style: solid;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-left: 15px solid var(--black);
        border-right: 0;
      }

      @media screen and (max-width: 768px) {

        &:last-of-type .flow-item__caption {
          padding-left: 0;
        }

        &:not(:last-of-type) .flow-item__caption::before, 
        &:not(:last-of-type) .flow-item__caption::after {
          content: "";
          position: absolute;
        } 
        &:not(:last-of-type) .flow-item__caption::before {
          left: 32px;
          top: -16px;
          width: 32px;
          height: 100%;
          background: var(--black);
        }
        &:not(:last-of-type) .flow-item__caption::after {
          left: 32px;
          bottom: 0;
          width: 0;
          height: 0;
          border-style: solid;
          border-right: 16px solid transparent;
          border-left: 16px solid transparent;
          border-top: 16px solid var(--black);
          border-bottom: 0;
        }
      }
    }

    .flow-item__info {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 256px;
      background: var(--req-lightgray);
      border-radius: 24px;
      padding: 16px;
      @media screen and (max-width: 768px) {
        min-height: 144px;
      }
    }

    .flow-item__step {
      position: absolute;
      top: 16px;
      left: 16px;
      font-family: var(--font-roboto);
      font-weight: 500;
      font-size: clamp(1.8rem, 2vw, 2.4rem);
      color: var(--white);
      @media screen and (max-width: 768px) {
        font-size: 2rem;
      }
    }

    .flow-item__text {
      margin-block: auto;
      font-size: clamp(1.3rem, 1.5vw, 2rem);
      @media screen and (max-width: 768px) {
        margin: auto;
      }
    }

    .flow-item__caption {
      position: relative;
      font-size: clamp(1.2rem, 1.5vw, 1.6rem);
      margin-top: 16px;
      line-height: 1.75;
      text-align: justify;
      @media screen and (max-width: 768px) {
        padding-left: 88px;
        padding-bottom: 24px;
        font-size: 1.6rem;
      }
    }
  }
}


#faq {
  
  &.lowerPage .fv .fv-heading {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }

  .faq-ac {
    padding-inline: 60px;
    margin-inline: auto;
    @media screen and (max-width: 768px) {
      padding: 0;
    }

    + .faq-ac  {
      margin-top: 16px;
    }
  }

  .faq-ac__item {
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: var(--blue-light);
  }

  .faq-ac__head {
    position: relative;
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    padding-right: 64px;
    padding-left: 20px;
    cursor: pointer;
    box-sizing: border-box;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
      padding-left: 0;
      padding-right: 40px;
    }
    &::before,
    &::after {
      content: "";
      position: absolute;
      width: 16px;
      height: 1px;
      background: var(--black);
      top: 50%;
      right: 10px;
      translate: 0 -50%;
      transition: ease .3s rotate;
      z-index: 1;
    }
    &::after {
      rotate: 90deg;
    }

    &.-open {
      &::after {
        rotate: 0deg;
      }
    }
  }

  .faq-ac__body {
    width: 100%;
    background: #fff;
    margin-inline: auto;
    border-radius: 12px;
    overflow: hidden;
    
    /* 初期状態 */
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    
    padding: 0; 

    &.-open {
      opacity: 1;
      visibility: visible;
      margin-top: 24px;
    }

    p {
      font-size: 1.6rem;
      font-weight: 400;
      line-height: 2;
      padding: 24px; 
      margin: 0;

      @media screen and (max-width: 768px) {
        font-size: 1.4rem;
        padding: 16px;
      }
    }
  }

}

.lowerPage .fv .fv-heading span {
  width: max-content;
}

.lowerPage .fv .fv-img::before {
  background-image: initial;
}