/* 後でstyle.cssで共通化 */
.lower-section {
  padding: 6.5rem 2.5rem 10rem;
}

@media (width < 768px) {
  .lower-section {
    padding: 4.5rem 0 7.5rem;
  }
}
/* */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem;

  & .sub-headline {
    text-align: left;
  }
}

.flow-container {
  display: flex;
  flex-direction: column;
  gap: 104px;
}

.flow-content {
  width: 100%;
  max-width: 56.25rem;
  margin: 0 auto;
  text-align: center;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.flow-item {
  display: flex;
  border: solid 1px #cccccc;
  border-radius: .5rem;
  position: relative;

  &::after {
    content: "";
    display: block;
    width: 28px;
    height: 35px;
    background: url('/assets/images/flow/down_arrow.svg') no-repeat center center;
    background-size: 100% 100%;
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    margin: auto;
  }

  &:last-child {
    &::after {
      display: none;
    }
  }
}

.flow-item-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28.8889%;
  padding: 1.25rem 0;
  background: #f2f2f2;
  flex-shrink: 0;
  border-radius: .3rem 0 0 .3rem;

  .flow-item-headline {
    color: #333;
  }
}

.flow-item-headline {
  line-height: 1.6;
  text-align: center;
  & span {
    display: block;
    font-size: 1rem;
  }
}

.flow-item-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: stretch;
  padding: 2rem 3rem 2rem 3.37rem;
  text-align: left;
}

.flow-item-list {
  flex: 1;
  & li {
    display: flex;
    align-items: flex-start;
    padding: .75rem 0;
    gap: 1rem;
    counter-increment: number;
    position: relative;
    border-bottom: 1px dashed #ccc;
    align-items: center;

    &:first-child {
      padding-top: 0;
    }
    &:last-child {
      padding-bottom: 0;
      border-bottom: none;
    }

    & .link {
      display: inline-flex;
      align-items: center;
      gap: .25rem;
      font-size: 0.8125rem;
      color: #0055AD;
      text-decoration: underline;
      margin-left: 1.56rem;
      &::after {
        content: "";
        display: block;
        width: .625rem;
        height: .625rem;
        background-image: url(/assets/images/common/arrow-btn.svg);
        background-repeat: no-repeat, no-repeat;
        background-position: center;
        background-size: 100% 100%;
      }
      &:hover {
        text-decoration: none;
      }
    }

    & .link-btn {
      padding: 0.375rem 0.75rem 0.375rem 1.5rem;
      margin: 0 0 0 auto;
      flex-shrink: 0;
      &::after {
        content: "";
        display: block;
        width: 1rem;
        height: 1rem;
      }
    }
  }
}

.flow-item-content {
  display: flex;
  flex-direction: column;
  gap: .62rem;
}

.flow-item-title {
  display: flex;
  font-size: 1.125rem;
  &::before {
    content: counter(number)". ";
    padding-right: 8px;
  }
}

.movie {
  line-height: 0;
  & iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.movie + .cta-btn {
  margin-top: 60px;
}

.movie + .cta-btn.external-link {
  color: #fff;

  &::after {
    background-image: url(../images/common/arrow-up-right-from-square-white.svg);
  }
}

.flow-manual-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16rem;
  padding: 1rem 2.5rem;
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  border-color: #fff;
  background: #343B8B;
  color: #fff;
  transition: .3s;
  &::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-image: url(../images/common/arrow-up-right-from-square-white.svg);
    background-size: 100% 100%;
    transition: .3s;
  }
}

@media (width < 768px) {

  .flow-container {
    gap: 72px;
  }

  .flow-list {
    gap: 4.06rem;
  }

  .flow-item {
    flex-direction: column;
    &::after {
      width: 2.0625rem;
      height: 1.75rem;
      bottom: -2.75rem;
    }
  }

  .flow-item-head {
    width: 100%;
    padding: .69rem 0;
    border-radius: .3rem .3rem 0 0;
  }

  .flow-item-headline {
    font-size: 1rem;
     & span {
      font-size: 0.875rem;
     }
  }

  .flow-item-body {
    padding: 2rem 1.5rem;
  }

  .flow-item-list {
    & li {
      flex-wrap: wrap;
      align-items: center;
      gap: 1.5rem 0;
      padding: 1.5rem 0;

      & .link {
        display: inline-block;
        margin: 0;

        &::after {
          display: inline-block;
          width: 0.8rem;
          height: 0.8rem;
        }
      }
    }
  }

  .flow-item-title {
    font-size: 1rem;
  }

  .flow-movie {
    margin-top: 4.5rem;
  }
}

.trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 70.5rem;
  margin: 0 auto;
  padding: 4.5rem 0;
  background: url(/assets/images/flow/bg_trial_pc.svg), linear-gradient(90deg, #343b8b 10.83%, #8945B4 94.62%);
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0.5rem;
  color: #fff;
}

.trial-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin: 0 0 3.5rem;
}

.trial-headline {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

#trial_select_area {
  scroll-margin-top: 120px;
}

.trial-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: underline;

  &:hover{
    text-decoration: none;
  }
  
  &::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background: url('data:image/svg+xml;utf-8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 3L10.5 8L5.5 13" stroke="%23fff" stroke-linecap="round"/></svg>') no-repeat center center;
    background-size: 100% 100%;
  }
}

.trial-btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0 0 1.5rem;

  & li {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 18.75rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
  }
}

.trial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  transition: .3s;
  &::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat, no-repeat;
    background-position: center;
    transition: .3s;
  }
}

.login-btn {
  border: 1px solid #EAE2F9;
  background: #fff;
  color: #343B8B;
  &::after {
    background-image: url(/assets/images/common/arrow-btn.svg);
  }
}

.register-btn {
  border: 1px solid #402C5E;
  background: #402C5E;
  &::after {
    background-image: url('data:image/svg+xml;utf-8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 3L10.5 8L5.5 13" stroke="%23fff" stroke-linecap="round"/></svg>');
  }
}

.trial-note {
  display: flex;
  font-size: 0.8125rem;
  &::before {
    content: "※";
  }
}


.trial-btn {
  &:hover {
    text-decoration: none;
  }
}

.login-btn {
  &:hover {
    background-color: #EAE2F9;
    border-color: #fff;
    opacity: 0.7;
  }
}
.register-btn {
  &:hover {
    background-color: #2E1F44;
    border: 1px solid #AA9FC0;
    color: #fff;
  }
}


@media (width < 768px) {
  .trial {
    width: auto;
    padding: 4.5rem 2rem;
    margin: 0 -1.5rem;
    background-image: url(../images/flow/bg_trial_sp.svg), linear-gradient(90deg, #343b8b 10.83%, #8945B4 94.62%);
    border-radius: 0;
  }

  .trial-headline {
    font-size: 1.375rem;
    line-height: 1.6;
  }

  .trial-btns {
    flex-direction: column;
    gap: 3rem;
    & li {
      width: 100%;
      max-width: 16.375rem;
      gap: .75rem;
      width: 100%;
      font-size: 0.875rem;
      font-weight: 400;
      line-height: 1.8;
    }
  }

  .trial-btn {
    font-size: 1rem;
  }
}
