label {
  font-weight: 700;
}
.form_wrapper {
  max-width: 880px;
  margin: 0 auto;
}
.form_inner h3 {
  font-size: 18px;
  text-align: left;
  margin: 40px 0 40px 24px;
  position: relative;
}
.form_inner h3::before {
  content: "";
  border-bottom: solid 1px #8993c3;
  width: 20px;
  display: block;
  top: 11px;
  left: -24px;
  position: absolute;
}
.form_content {
  line-height: 1.42857;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  position: relative;
}
.form_area {
  margin: 0 auto 80px;
}

.form_content p {
  font-weight: 600;
  margin-bottom: 10px;
  width: calc(261 / 1280 * 100vw);
  font-size: 16px;
  padding-top: 12.5px;
  text-align: left;
}
.red_tag {
  display: inline-block;
  width: 34px;
  height: 24px;
  line-height: 26px;
  border-radius: 4px;
  background-color: #d80202;
  color: #fff;
  font-weight: 700;
  text-align: center;
  margin-left: 6px;
  font-size: 12px;
  position: absolute;
  left: 25%;
}

.input_wrapper {
  position: relative;
  line-height: 1.42857;
  width: 69%;
}

.input_wrapper input,
.input_wrapper select,
.input_wrapper textarea {
  /* color: #dddddd; */
  /* display: block; */
  width: 100%;
  font-size: 16px;
  padding: 8px;
  background-color: #fff;
  border: 1px solid #dddddd;
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgb(0 0 0 / 10%) inset;
}
.input_wrapper input::placeholder {
  color: #e5e5e5;
}
.input_wrapper select {
  width: 80px;
  margin: 0 10px;
}
.input_wrapper select:first-of-type {
  margin: 0 10px 0 0;
}
.form_input_birthday {
  text-align: left;
}
.form_input_postalCode--box {
  text-align: left;
}
.form_input_postalCode--box input {
  width: 118px;
}

.form_input_prefecture {
  text-align: left;
}
.form_input_prefecture select {
  width: 163px;
}

.form_content_upload input {
  border: unset;
  box-shadow: none;
  padding:0;
  position: relative;
  width: 260px;
  display: block;
}
.form_content_upload .input_wrapper p {
  width: auto;
}
.form_content_upload .input_wrapper p {
 margin-bottom: 4px;
}

.form_content_upload .input_wrapper p:not(:first-of-type) {
  padding-top: 0;
}

.form_content_upload_pdf {
  background-color: #ebedf5;
  padding: 12px 15px;
}

.form_content_upload input::file-selector-button {
  background-color: #fff;
  border: #1e2a61 solid 1px;
 padding: 17px 15px;
  color: #1e2a61;
  font-size: 15px;
  font-weight: 700;
  width: 260px;
}
.form_content_upload input::before {
  content: "";
  background: url(../../../assets/img/research_grants/upload.png) no-repeat;
  width: 16px;
  height: 16px;
  display: block;
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 99;
  background-size: contain;
}

.form_content_upload a {
  color: #1e2a61;
  border-bottom: 1px solid #1e2a61;
}
.contact_bottom {
  text-align: center;
  padding-top: 40px;
}
.contact_bottom p {
  font-weight: 500;
}
.contact_bottom label {
  font-weight: 500;
}
.contact_bottom label a {
  text-decoration: underline;
  color: #1E2A61;
}

.scroll_box {
  border: 1px solid #dddddd;
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgb(0 0 0 / 10%) inset;
  overflow: auto;
  width: 550px;
  height: 200px;
  margin: 30px auto 30px;
  text-align: left;
  padding: 3%;
}
.form_btn {
  margin: 80px 0 0;
}
.submit_btn {
  position: relative;
  width: 260px;
  margin: 0 auto;
}
.submit_btn input {
  border-radius: 0;
  font-family: "Noto Sans JP";
  display: inline-block;
  transition: 0.1s;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background-color: #1e2a61;
  width: 260px;
  padding: 18px 0;
  margin: 0 auto;
  text-align: center;
  border: none;
  cursor: pointer;
  position: relative;
}
.submit_btn::after {
  content: "";
  position: absolute;
  bottom: 26px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
}
.back_btn::after {
  transform: rotate(-135deg);
  left: 16px;
}
@media screen and (max-width: 769px) {
  .content01 {
    margin-top: 50px;
  }
  .form_inner h3 {
    margin: 40px 0 20px 24px;
  }
  .form_content {
    display: block;
    margin-bottom: 20px;
  }
  .form_content p {
    width: auto;
    padding-top: 0;
  }
  .input_wrapper {
    width: 97%;
  }
  .red_tag {
    position: static;
    margin-left: 16px;
  }
  .input_wrapper select:first-of-type {
    width: 80px;
  }
  .input_wrapper select {
    width: 64px;
  }
  .form_input_prefecture select {
    width: 163px !important;
  }
  .c-sp {
    display: block;
  }
  .contact_bottom {
    padding-top: 30px;
  }
  .contact_bottom p {
    line-height: 1.5;
  }
  .scroll_box {
    width: 93%;
    margin: 20px auto 20px;
  }
  .form_btn {
    margin-top: 40px;
  }
}

/* =========================================================
confirm
========================================================= */
.content01_contact {
  text-align: center;
}
.contact_form {
  max-width: 880px;
  margin: 0 auto 80px;
}
.contact_form ul {
  margin-bottom: 20px;
}
.contact_form li {
  color: #d80202;
}
.contact_form li:before {
  content: "※";
}

.confirm_item {
  display: flex;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.confirm_label {
  width: 30%;
  font-weight: 700;
  color: #1e2a61;
}

.confirm_data {
  width: 70%;
}
.confirm_form {
  display: flex;
  justify-content: space-evenly;
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.confirm_form form {
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  #contact .contact_form {
    padding: 0 5%;
    margin: 40px auto 50px;
    font-size: 14px;
  }
  .contact_item {
    margin-bottom: 20px;
  }
  .confirm_item {
    padding: 20px 0;
    border-bottom: 2px solid #ebedf5;
  }
  .confirm_label {
    width: 100%;
    text-align: left;
  }
  .confirm_data {
    width: 100%;
  }
  .confirm_form form {
    margin-top: 20px;
  }
}

/* --------
send
----------*/
#contact .contact_form {
  max-width: 880px;
  margin: 64px auto 80px;
  padding: 0 5%;
}
@media screen and (max-width: 769px) {
  .content01_contact p {
    max-width: fit-content;
    margin: 0 auto;
    padding: 0 5%;
  }
  #contact .contact_form {
    padding: 0 5%;
    margin: 40px auto 50px;
    font-size: 14px;
  }
}
