@charset "UTF-8";
/*------------------------------
  エントリー（入力 /entry/ ・確認 /entry/confirm/ ・完了 /entry/thanks/）
------------------------------*/

.page-entry {
  position: relative;
  &::before{
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, var(--white) 0% 80%, transparent 100%);
  }
  .subpage-mv{
    isolation: isolate;
    &::before{
      display: none;
    }
  }
  .form{
    padding-inline: 5rem;
    max-width: 120rem;
    padding-block: 4rem 6rem;
    margin-inline: auto;
    isolation: isolate;
    @media screen and (max-width: 768px) {
      max-width: none;
      width: 100%;
      padding-block: 0 1rem;
      padding-inline: 0;
    }

    .state{
      display: flex;
      justify-content: center;
      align-items: center;
      column-gap: 1rem;
      margin-inline: 10rem;
      @media screen and (max-width: 768px) {
        column-gap: 0.5rem;
        margin-inline: 0;
        justify-content: space-between;
      }
      .step{
        width: 26rem;
        height: 8rem;
        background-color: #e1e4e6;
        color: var(--main);
        display: flex;
        justify-content: center;
        align-items: center;
        padding-block: 0.8rem;
        font-weight: 500;
        @media screen and (max-width: 768px) {
          height: 4.4rem;
        }
        &.current{
          background-color: var(--main);
          color: #fff;
          .num{
            border-color: #fff;
          }
        }
      }
      .ja{
        text-align: center;
        font-size: max(1.8rem,13px);
        font-weight: 500;
        @media screen and (max-width: 768px) {
          width: 6.5rem;
          font-size: 1.1rem;
        }
      }
      .arrow{
        transform: scaleX(0.4);
        font-size: 4rem;
        color: var(--main);
        width: fit-content;;
        @media screen and (max-width: 768px) {
          font-size: 1.2rem;
        }
      }
    }
    .form-container{
      margin-top: 7rem;
      @media screen and (max-width: 768px) {
        margin-top: 3rem;
      }
      .form-row{
        border-bottom: #e1e4e6 solid max(0.1rem, 1px);
        display: grid;
        grid-template-columns: max(25rem,160px) 1fr;
        padding: 4rem;
        @media screen and (max-width: 768px) {
          display: block;
          padding: 2.5rem 0;
        }
      }
      dt{
        display: flex;
        column-gap: 1.6rem;
        @media screen and (max-width: 768px) {
          align-items: center;
          column-gap: 0.8rem;
        }
        label,
        legend{
          font-size: max(1.8rem,14px);
          font-weight: 600;
          line-height: 1.333;
          color: var(--main);
          @media screen and (max-width: 768px) {
            font-size: 1.5rem;
          }
          span{
            font-size: 0.77em;
            font-feature-settings: "palt";
          }
        }
        &> span{
          display: grid;
          place-content: center;
          background-color: #edf2f5;
          color: var(--main);
          width: max(4rem,28px);
          height: max(2.4rem,20px);
          font-size: max(1.2rem,10px);
          font-weight: 600;
          @media screen and (max-width: 768px) {
            height: 1.8rem;
            font-size: 1rem;
            width: 3rem;
          }
          &.required{
            background-color: var(--main);
            color: #fff;
          }
        }
      }
      dd{
        @media screen and (max-width: 768px) {
          margin-top: 1.5rem;
        }
        input,textarea,select{
          font-size: max(1.6rem,13px);
        }
        input{
          height: max(5rem,36px);
          width: 100%;
          border: unset;
          outline: unset;
          background-color: #edf2f5;
          border: #e1e4e6 solid max(0.1rem, 1px);
          padding-inline: 1rem;
          @media screen and (max-width: 768px) {
            height: 4.4rem;
            font-size: 1.4rem;
          }
        }
        textarea{
          width: 100%;
          border: unset;
          outline: unset;
          background-color: #edf2f5;
          border: #e1e4e6 solid max(0.1rem, 1px);
          padding-inline: 1rem;
          padding-block: 1rem;
          @media screen and (max-width: 768px) {
            font-size: 1.4rem;
          }
        }
        .caption{
          color: #a0a0af;
          font-size: max(1.4rem,11px);
          margin-top: 1rem;
          @media screen and (max-width: 768px) {
            font-size: 1.2rem;
          }
        }
        &.birth-wrap{
          display: flex;
          column-gap: 2rem;
          align-items: center;
          @media screen and (max-width: 768px) {
            column-gap: 1rem;
          }
          select{
            height: max(5rem,36px);
            width: 14rem;
            border: unset;
            outline: unset;
            background-color: #edf2f5;
            border: #e1e4e6 solid max(0.1rem, 1px);
            padding-inline: 1rem;
            @media screen and (max-width: 768px) {
              height: 4.4rem;
              width: 8rem;
            }
          }
          label{
            font-size: max(1.8rem,14px);
            @media screen and (max-width: 768px) {
              font-size: 1.4rem;
            }
          }
        }
        &:not(:is(.birth-wrap)){
          select{
            height: max(5rem,36px);
            width: 53.8rem;
            border: unset;
            outline: unset;
            background-color: #edf2f5;
            border: #e1e4e6 solid max(0.1rem, 1px);
            padding-inline: 1rem;
            @media screen and (max-width: 768px) {
              height: 4.4rem;
              width: 100%;
              font-size: 1.4rem;
            }
          }
        }
      }
    }
  }
  .form-send{
    margin-top: 2rem;
    padding-bottom: 10rem;
    isolation: isolate;
    @media screen and (max-width: 768px) {
      margin-top: 4rem;
      padding-bottom: 6rem;
    }
    .agreement-note{
      font-size: max(1.6rem,13px);
      line-height: 1.6;
      text-align: center;
      margin-bottom: 2rem;
      @media screen and (max-width: 768px) {
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 3rem;
      }
      a{
        color: #0056a9;
        text-decoration: underline;
        &::before{
          content: "";
          display: inline-block;
          vertical-align: middle;
          margin-bottom: 0.1em;
          margin-right: 0.1em;
          width: 0.9em;
          aspect-ratio: 1;
          background-color: currentColor;
          mask-image: url(../image/common/external.svg);
          mask-position: center;
          mask-size: contain;
        }
        @media (any-hover: hover) {
          &:hover{
            opacity: 0.5;
          }

        }
      }
    }
    .agreement{
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: max(1.6rem,13px);
      @media screen and (max-width: 768px) {
        justify-content: flex-start;
        font-size: 1.6rem;
      }
      input{
        height: 1.1em;
        width: 1.1em;
        border: unset;
        outline: unset;
        background-color: #edf2f5;
        border: #e1e4e6 solid max(0.1rem, 1px);
        margin-right: 1rem;
        @media screen and (max-width: 768px) {
          height: 2rem;
          width: 2rem;
          margin-right: 0.8rem;
        }
      }
    }
    .to-confirm{
      display: grid;
      place-content: center;
      width: 44rem;
      height: max(8rem,50px);
      box-sizing: border-box;
      border-radius: 100vmax;
      margin-inline: auto;
      margin-top: 9rem;
      @media screen and (max-width: 768px) {
        margin-top: 6rem;
        width: 100%;
        height: 8rem;
        padding-inline: 3rem 2.5rem;
      }
      .ja{
        font-size: max(2.1rem,14px);
        font-weight: 700;
        text-align: center;
        @media screen and (max-width: 768px) {
          font-size: 1.8rem;
        }
      }
    }
  }
}

/*==============================
  確認画面・完了画面（テーマ側で追加）
==============================*/
/* ハニーポット（人には見せない） */
.tousan-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.page-entry {
  .form-errors {
    margin-top: 4rem;
    padding: 2.5rem 3rem;
    border: max(0.1rem, 1px) solid #c0392b;
    background-color: #fdf3f2;
    color: #c0392b;
    @media screen and (max-width: 768px) {
      margin-inline: 1.5rem;
      padding: 2rem;
    }
    .form-errors-title {
      font-size: max(1.6rem, 13px);
      font-weight: 600;
      line-height: 1.6;
    }
    ul {
      margin-top: 1.5rem;
      li {
        font-size: max(1.4rem, 12px);
        line-height: 1.8;
        &::before {
          content: "・";
        }
      }
    }
  }

  .confirm-note {
    margin-top: 4rem;
    @media screen and (max-width: 768px) {
      margin-inline: 1.5rem;
    }
  }

  .confirm-value {
    font-size: max(1.6rem, 13px);
    line-height: 1.75;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
    }
  }

  .confirm-actions {
    display: flex;
    justify-content: center;
    gap: 4rem;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 0;
    }
    .to-confirm {
      width: 100%;
      margin-top: 6rem;
      @media screen and (max-width: 768px) {
        margin-top: 3rem;
      }
      &.back {
        --main: #0056a9;
      }
    }
    form {
      width: 44rem;
      @media screen and (max-width: 768px) {
        width: 100%;
      }
    }
  }

  &.-confirm,
  &.-thanks {
    .form-container {
      .form-row {
        padding-block: 3rem;
      }
    }
  }

  .thanks-message {
    margin-top: 8rem;
    text-align: center;
    padding-bottom: 4rem;
    @media screen and (max-width: 768px) {
      margin-top: 5rem;
      padding-inline: 1.5rem;
    }
    .thanks-title {
      font-size: max(2.4rem, 18px);
      font-weight: 700;
      color: var(--main);
      line-height: 1.6;
      margin-bottom: 3rem;
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
    }
    .btn-wrap {
      display: flex;
      justify-content: center;
      margin-top: 6rem;
    }
  }
}
