@charset "utf-8";

.main-contact {
  margin: 50px auto;
}

.pankuzu {
  max-width: 900px;
  width: 90%;
}

.section-contact {
  width: 100%;
  padding: 40px 0;
}

h1.heading-primary {
  font-family: serif;
  font-size: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.form__list {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  width: 90%;
}

.form__item {
  margin-bottom: 20px;
}

.form__name {
  font-weight: bold;
}

.form__reqd,
.form__opt {
  position: relative;
  padding-left: 50px;
}
.form__reqd::before,
.form__opt::before {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  display: block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
}

.form__reqd::before {
  content: "必須";
  background-color: #ed1c24;
}

.form__opt::before {
  content: "任意";
  background-color: #1e50a2;
}

.form__input,
.form__input__textarea {
  margin-top: 10px;
}

.form__input input {
  border: #ccc solid 1px;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
}

.form__textarea {
  margin-top: 10px;
}

.form__textarea__message {
  border: #ccc solid 1px;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
}

.form__item__submit {
  margin: 60px auto 0 auto;
  text-align: center;
}
.form__prev,
.form__submit {
  border-radius: 5px;
  padding: 10px 20px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  width: 160px;
  margin: 0 10px;
  cursor: pointer;
}

.form__prev {
  background-color: #ccc;
  color: #333;
}

.form__submit {
  background-color: #ed1c24;
  color: #fff;
}

.wpcf7-spinner {
  display: none !important;
}

.wrap__contact-complete {
  max-width: 700px;
  margin: auto;
  width: 90%;
}

@media screen and (min-width: 768px) {
  .form__label {
    display: flex;
    column-gap: 20px;
    align-items: center;
  }

  .form__name {
    width: 30%;
  }

  .form__input {
    width: 70%;
  }
}
