@charset "utf-8";

#contact_form {
  margin: 150px 50px 10%;
}
h2 {
  text-align: center;
}
#contact_form img {
  width: 90%;
}
.info {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1em;
  letter-spacing: 0.02em;
  line-height: 1.75;
}
#field-item,
.c-form,
.form-item {
  max-width: 700px;
  margin: 0 auto;
}
.form-item,
.c-form__item {
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
}
.c-form__label,
.c-form__input {
  padding: 10px;
}
#field-item {
  width: 55%;
  margin: 0;
}
.option__input,
.c-form__label {
  width: 90%;
}
#field-item,
.c-form__input {
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f7f3f1;
  border-radius: 4px;
  border: none;
}
#field-item:focus-visible,
.c-form__input:focus-visible {
  outline: #fff auto 1px;
}
.c-form__required {
  color: #fff;
  font-size: small;
  background-color: #a6b8c2;
  border-radius: 4px;
  padding: 5px 5px;
  margin: 0 18px 0 0;
}
textarea.c-form__input {
  height: 250px;
  background-color: #f7f3f1;
  border: none;
}
#field_robot .c-form__required {
  margin-left: 0;
}
#field_robot {
  height: 44px;
  background-color: #f7f3f1;
  border: none;
}
.c-form__submit {
  text-align: end;
  margin-bottom: 250px;
  padding-top: 20px;
}
.c-form__submit button {
  font-size: 17px;
  color: #fff;
  background-color: #c7d7dd;
  border: solid 1px;
  border-radius: 4px;
  padding: 5px 60px;
  transition: 0.4s;
  cursor: pointer;
}
.c-form__submit button:hover {
  color: #a6b8c2;
  background-color: transparent;
}

@media screen and (min-width: 769px) {
  .c-form__item {
    flex-wrap: nowrap;
  }
  .c-form__label {
    width: 40%;
  }
  .c-form__input {
    width: 55%;
  }
}

@media (max-width: 768px) {
  #contact_form {
    margin: 60px 0 45px;
  }
  .info {
    text-align: left;
  }
  #field-item,
  .c-form,
  .form-item {
    max-width: 100%;
    height: auto;
    margin: 0 30px;
  }
  .main p {
    text-align: left;
    display: inline;
  }
  #contact_form {
    margin: 80px 0 50px 0;
  }
  #field-item {
    width: 100%;
    height: 40px;
    margin: 0;
  }
  .c-form__item {
    flex-direction: row;
  }
  .c-form__label,
  .c-form__input {
    width: 100%;
  }
  textarea.c-form__input {
    height: 200px;
  }
  .c-form__required {
    padding: 5px 5px;
    margin: 0 10px 0 0;
  }
}
