/* 同ページフォーム用CTAボタン */
.job-apply-btn{
  display: block;
  width: 300px;
  align-items: center;
  justify-content: center;
  background: var(--key-color);
  color: #111;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 64px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin:0 auto 60px;
  text-decoration: none;
}

/* 査定フォーム ---------------------------------------------------- */

.form{

  & .inner{
    max-width: 776px;

    & .inner_intro_text{
      padding-bottom: 40px;
      margin-bottom: 40px;
      border-bottom: 1px solid #fff;
    }

    /* 必須マークと説明 */
    & .required_text{
      text-align: right;
      font-size: 14px;
      margin-bottom: 32px;
      font-weight: bold;
      /* color: var(--key-color); */

      @media (max-width: 1024px) {
        display: none;
      }
    }

    & .required_circle{
      color: var(--key-color);
      font-size: 10px;
      margin-right: 8px;
      position: relative;
      top: -2px;
    }

    /* フォーム全体 */
    & form{
      margin: 0 auto;

      & dl{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 0 0 10px;
        padding: 0;

        @media (max-width: 1024px) {
          display: block;
        }
      }

      & dt{
        width: 170px;
        font-weight: 700;
        font-size: 16px;
        color: #111;
        padding: 16px 0;
        
        @media (max-width: 1024px) {
         padding: 0;
       }
     }

     & dd{
      flex: 1;
      margin: 0;
      padding: 16px 0;
    }

    /* input, select の共通スタイル */
    & input[type="text"],
    & input[type="tel"],
    & input[type="url"],
    & select,
    & textarea{
      width: 100%;
      font-size: 16px;
      padding: 16px 16px;
      border: 1px solid #ddd;
      border-radius: 6px;
      background: #fff;
      color: #333;
      appearance: none;
      outline: none;
      transition: border-color 0.2s ease;
      border: none;
      background: #f5f5f5;

      &:focus{
        border-color: #F8D679;
      }
    }

    & input[type="checkbox"]{
      padding: 16px 16px;
      border-radius: 6px;
      background: #F5F5F5;
      appearance: none;
      outline: none;
      position: relative;
      top: 10px;
      margin-right: 10px;

      &:checked{
        background: #609bed;
        position: relative;

        &::after{
          content: "✓";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -55%);
          color: #fff;
          font-size: 20px;
          font-weight: bold;
        }
      }
    }

    & .zip-mark{
      position: relative;

      & input{
        width: 188px;
        margin-bottom: 20px;

        @media (max-width: 640px) {
         margin-left: 30px;
       }
     }

     &::before{
      content: "〒";
      position: absolute;
      top:50%;
      left: -30px;
      transform: translateY(-50%);

      @media (max-width: 640px) {
       left: 0px;
     }
   }
 }

 /* セレクトボックスの見た目 */
 & select{
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
  cursor: pointer;
}

/* 送信ボタン */
& .form_submit_btn{
  text-align: center;
  margin-top: 40px;
  position: relative;


  &::after{
    position: absolute;
    content: "";
    display: inline-block;
    width: 30px;
    height: 12px;
    background: url(../img/top/icon-contact-arrow_r.svg) no-repeat center / contain;
    margin-left: 20px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  & input{
    display: block;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: var(--key-color);
    color: #111;
    font-weight: 700;
    font-size: 18px;
    padding: 22px 64px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;

    &:hover{
      opacity: 0.8;
    }

  }
}

& .privacy_check{
  margin-left: 160px;
  margin-bottom: 60px;

  @media (max-width: 1024px) {
    margin: 0;
  }

  a{
    color: #D14A03;
  }
}
}
}
}


/* confirmページ ---------------------------------------------------- */

.error_messe{
  color: red;
  font-weight: bold;
}

.confirm{
  padding: 100px 0;
  margin: 0 auto;
  text-align: center;
  line-height: 2;

  @media (max-width: 640px) {
    padding: 60px 20px;
  }

  & .inner{
    max-width: 914px;
  }
}
.formTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 0 0 1px #e5e5e5;
  margin:0 auto 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;

  & th,
  & td {
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
    padding: 20px;

    @media (max-width: 640px) {
      display: block;
    }
  }

  & th {
    width: 30%;
    background: #f7f7f7;
    font-weight: 600;
    text-align: center;

    @media (max-width: 640px) {
      width: 100%;
    }
  }

  & td {
    background: #fff;
    text-align: left;

    @media (max-width: 640px) {
      text-align: center;
    }
  }

  & tr:last-of-type th,
  & tr:last-of-type td {
    border-bottom: none;
  }

}

.confirm_btn{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  @media (max-width: 640px) {
    display: block;
  }
}

.form_btn{
  position: relative;
  width: 360px;

  @media (max-width: 640px) {
    width:100%;

    &:first-of-type{
      margin-bottom: 40px;
    }
  }

  & input{
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    background: var(--key-color);
    color: #111;
    font-weight: 700;
    font-size: 16px;
    padding: 18px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  &::before{
    position: absolute;
    content: "";
    display: inline-block;
    width: 22px;
    height: 8px;
    background: url(../img/top/icon-contact-arrow_r.svg) no-repeat center / contain;
    margin-left: 20px;
    top: calc(50% - 5px);
    right: 20px;

    &:hover{
      opacity: 0.8;
    }
  }

  &.back input{
    background: #F5F5F5;
  }

  &.back::before{
    right: auto;
    top: 50%;
    left: 0px;
    transform: translateY(-50%) rotate(180deg);
  }
}


/* thanksページ ---------------------------------------------------- */
.thanks{
  padding: 100px 0;
  margin: 0 auto;
  text-align: center;
  line-height: 2;

  @media (max-width: 640px) {
    padding: 60px 20px;
  }

  & figure{
    display: table;
    margin: 0 auto 40px;
  }

}


.backpage_btn{
  display: block;
  width: 360px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--key-color);
  color: #111;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 64px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;

  @media (max-width: 640px) {
    width: 100%;
  }

  &::before{
    position: absolute;
    content: "";
    display: inline-block;
    width: 22px;
    height: 8px;
    background: url(../img/top/icon-contact-arrow_r.svg) no-repeat center / contain;
    margin-left: 20px;
    top: 50%;
    left: 0px;
    transform: translateY(-50%) rotate(180deg);

    &:hover{
      opacity: 0.8;
    }
  }
}