.form_wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 220px 144px;
  p.text {
    font-weight: 400;
    text-align: center;
    line-height: 1.75;
  }
  form {
    margin-top: 56px;
  }
  &.confirm {
    form {
      margin-top: 0;
      .form_item {
        padding-top: 32px;
        border-bottom: 1px solid #aaa;
        &:first-child {
          padding-top: 0;
        }
        &:last-child {
          border-bottom: none;
        }
      }
    }
  }
}
@media screen and (max-width: 1440px) {
  .form_wrap {
    padding: 120px 8vw 144px;
  }
}
@media screen and (max-width: 1024px) {
  .form_wrap {
    padding: 80px 4vw 80px;
  }
}

.form_item .element_box {
  padding: 16px 0 32px;
}

.form_item:nth-child(5) .element_box,
.form_item:last-child .element_box {
  padding-bottom: 0;
}

/* head_box */
.form_item .head_box {
  display: flex;
  align-items: center;
}

/* 必須 */
.form_item .head_box p.must {
  margin-left: 13px;
  font-size: 12px;
  color: #FF0D0D;
}
@media screen and (max-width: 768px) {
  .form_item .head_box p.must {
    font-size: 16px;
  }
}

/* エラー文 */
.form_item .element_box p.errors {
  color: #dc0000;
  margin-top: 5px;
}

/* element_box */
.element_box {
  border-left: unset;
  border-right: unset;
}

.input_wrap {
  width: 100%;
}
.double_text_input_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* submitボタン */
.submit_btn_wrapper p {
  margin-top: 56px;
  text-align: center;
  line-height: 1.5;
  a {
    color: #0A4DFB;
  }
}
.submit_btn {
  width: 380px;
  min-width: 200px;
  padding: 16px 20px;
  background-color: #4F4F4F;
  text-align: center;
  display: block;
  margin: 30px auto 0;
  cursor: pointer;
  transition: all 0.5s;
  color: #ffffff;
  font-size: 16px;
}

.submit_btn:hover {
  opacity: 0.8;
}

/* テキストボックス用スタイル */
.input_item.text {
  width: 100%;
  padding: 15px;
  border: 1px solid #C9C9C9;
  width: 100%;
  font-size: 16px;
}

.input_item.half {
  width: 48%;
}
/* テキストエリア用スタイル */
.input_item.textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #C9C9C9;
  max-height: 270px;
  min-height: 240px;
  font-size: 16px;
  resize: none;
}

.form_agree {
  margin: 10% auto 4%;
  width: fit-content;
  cursor: pointer;
  line-height: 1.5;
}
.form_agree a {
  text-decoration: underline;
  margin-right: -0.25rem;
}
.form_agree span {
  cursor: pointer;
  white-space: nowrap;
  margin-left: 1rem;
}
.form_agree label {
  display: flex;
  align-items: center;
}
.form_agree input[type=checkbox] {
  padding-left: 22px;
  display: block;
  padding: 0;
}
.form_agree .errors {
  color: #dc0000;
  margin-top: 5px;
  text-align: center;
}

form input[type=checkbox],
form input[type=radio] {
  cursor: pointer;
  padding-left: 30px; /*label手前にチェックボックス用の余白を開ける*/
  vertical-align: middle;
  position: relative;
  width: 1rem;
  height: 1rem;
}
form input[type=checkbox]::before,
form input[type=checkbox]::after,
form input[type=radio]::before,
form input[type=radio]::after {
  content: "";
  display: block;
  position: absolute;
}
form input[type=checkbox]::before,
form input[type=radio]::before {
  background-color: #fff;
  border-radius: 0%;
  border: 1px solid #333;
  width: 1rem;
  height: 1rem;
  transform: translateY(-45%);
  top: 50%;
  left: -5px;
}
form input[type=checkbox]::after,
form input[type=radio]::after {
  border-bottom: 2px solid #333;
  border-left: 2px solid #333;
  opacity: 0;
  height: 0.25rem;
  width: 0.5rem;
  transform: translate(0, -50%) rotate(-45deg);
  left: -1px;
  top: 0.5rem;
}
form input[type=checkbox]:checked::after,
form input[type=radio]:checked::after {
  opacity: 1; /*チェック後表示*/
}

.form_wrap .privacy_section {
  width: 100%;
  height: 240px;
  overflow: scroll;
  padding: 4% 3.6%;
  margin-top: 6.2%;
  border: 1px solid #C9C9C9;
}
.form_wrap .privacy_section .head_container {
  margin-bottom: 5%;
}
.form_wrap .privacy_section .content_head {
  background-color: #383D41;
  color: #fff;
  padding: 16px 30px;
  margin: 0 0 2.4%;
}
.form_wrap .privacy_section .content_wrapper {
  margin-bottom: 4%;
}
.form_wrap .privacy_section .last_sec {
  margin-top: 8%;
  text-align: right;
  line-height: 1.5;
}
.form_wrap .privacy_section .last_sec .enactment {
  margin-bottom: 20px;
}

/* ====================================================================================================== */
/* レスポンシブ */
/* ====================================================================================================== */

@media screen and (max-width: 768px) {
  .form_item {
    flex-direction: column;
  }

  .form_item:first-child .head_box {
    border-top: unset;
  }

  .form_item:first-child .element_box {
    border-top: unset;
  }

  .element_box {
    width: 100%;
    padding: 20px 0px;
  }

  .input_item.text {
    padding: 12px;
  }
}

.back_btn {
  width: 380px;
  min-width: 200px;
  margin: auto;
  margin-top: 30px;
}

.back_btn a {
  padding: 16px;
  background-color: #D5D5D5;
  text-align: center;
  display: block;
  cursor: pointer;
  transition: all 0.5s;
  padding: 16px 20px;
}
@media screen and (max-width: 480px) {
  .submit_btn {
    width: 100%;
  }
  .back_btn {
    width: 100%;
  }
  .form_wrap .privacy_section .head_container {
    margin-bottom: 35px;
  }
  .form_wrap .privacy_section .content_wrapper {
    margin-bottom: 40px;
  }
  .form_wrap .privacy_section .content_head {
    background-color: #383D41;
    color: #fff;
    padding: 10px 10px;
    margin: 0 0 14px;
    font-size: 16px;
  }
}
