form {
  max-width: 800px;
  margin: 0 auto;
}
.form_wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.form_item {
  display: flex;
  align-items: flex-start;
  gap: 0 40px;
}
.form_item:not(:last-child) {
  margin-bottom: 20px;
}
.confirm .form_item {
  padding: 0;
  align-items: center;
}

.form_item .element_box {
  padding: 0;
}

/* head_box */

.form_item .head_box {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  padding-top: 17px;
}
.confirm .form_item .head_box {
  padding: 0;
}

/* 必須 */
.form_item .head_box p.must {
  padding-left: 10px;
}

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

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

.input_wrap {
  width: 100%;
}
.pt {
  padding-top: 17px;
}
.mt {
  margin-top: 23px;
}
.double_text_input_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.radio_wrapper {
  padding-top: 1px;
  input {
    border-radius: 50%;
    width: 18px;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    margin-right: 16px;
    flex: none;
    position: relative;
    cursor: pointer;
  }
}
input[type="radio"]::before {
  content: "";
  display: block;
  width: 80%;
  aspect-ratio: 1 / 1;
  background-color: var(--color4);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s;
}
input[type="radio"]:checked::before {
  opacity: 1;
}
.radio_label {
  display: flex;
  margin-top: 8px;
  cursor: pointer;
  align-items: center;
}

/* submitボタン */
.submit_btn_wrapper {
  margin-inline: auto;
  position: relative;
  margin-top: 30px;
}
.conf {
  width: 47%;
  margin: 80px auto 30px;
  a {
    color: #4883DB;
  }
}
.submit_btn {
  cursor: pointer;
  background-color: transparent;
  transition: .3s;
}

.confirm .submit_btn {
  margin-top: 80px;
}
@media screen and (max-width: 768px) {
  .submit_btn {
    margin-top: 60px;
  }
}

/* テキストボックス用スタイル */
.input_item.text {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 3px;
}

.input_item.half {
  width: 48%;
}
/* テキストエリア用スタイル */
.input_item.textarea {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  min-height: 200px;
  resize: none;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid #aaa;
  border-radius: 3px;
}

input[type="text"],textarea {
  font-size: 16px;
  color: #333;
}
input::placeholder,textarea::placeholder {
  color: #bbb;
}

.form_item .select {
  padding: 16px;
  width: 100%;
  border-radius: 3px;
  font-size: 16px;
}

.agree_wrap {
  display: flex;
  align-items: center;
  margin-top: 22px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.agree .errors {
  text-align: center;
}

.form_agree {
  background-color: #fff;
  width: 18px;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  margin-right: 11px;
  position: relative;
  cursor: pointer;
}

.form_agree::before {
  opacity: 0;
  visibility: hidden;
  content: "";
  display: block;
  background-image: url(../icon_check.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}

.form_agree:checked::before {
  opacity: 1;
  visibility: visible;
}

.form_agree:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.form_agree:disabled + label {
  cursor: not-allowed;
  opacity: 0.5;
}

.agree_txt {
  cursor: pointer;
  flex: 1;
}

.agree_txt a {
  color: #fff;
  border-bottom: 1px solid #fff;
}
.agree_txt a:hover {
  color: var(--color4);
  border-bottom-color: var(--color4);
}

/* ====================================================================================================== */
/* レスポンシブ */
/* ====================================================================================================== */
@media screen and (max-width: 1024px) {
  form {
    width: 100%;
    padding: 0 5%;
  }
  .submit_btn::after {
    width: calc(100% - 8px);
  }

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

  .form_item:not(:first-child) {
    margin-top: 0;
  }

  .head_box {
    width: 100%;
    padding: 15px 0px;
  }

  .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;
  }

  .form_item .head_box {
    width: 100%;
  }
  .form_item .head_box p.must {
    margin-left: 0;
    margin-right: 0;
  }
  .conf,.submit_btn {
    width: 100%;
  }
  .head_box .f18 {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  form {
    padding: 0;
  }
  .submit_btn {
    margin-top: 40px;
  }
}
