.node--type-page-contacts .node__content .field__label {
  display: none;
}

.contact-form {
  width: 147rem;
  margin: 0 auto;
  position: relative;
  max-width: unset;
}

.contact-form h2 {
  padding: 5.5rem 25rem;
  font-family: "Circle Bold";
  font-size: 3.5rem;
  line-height: 1.5;
  margin-bottom: 5rem;
  padding-bottom: 0;
}

.contact-form form {
  padding: 5.5rem 25rem;
  padding-bottom: 14.7rem;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
}

.contact-form form .form-wrapper {
  width: 33%;
  padding: 0.9rem 0.5rem;

}

.contact-form form .form-wrapper .form-item {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  height: 7.3rem;
  position: relative;
  border: none;
  background-color: #F4F4F4;
}

.contact-form form .form-wrapper .form-item .form-textarea-wrapper {
  align-self: flex-end;
  width: 100%;
}


.contact-form form .form-wrapper .form-item label{
  display: none;
}

.contact-form form .form-wrapper .form-item input,
.contact-form form .form-wrapper .form-item .form-textarea {
  font-size: 1.6rem;
  color: #393544;
  line-height: 1.5;
  max-width: none;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 2.5rem;
  background-color: transparent;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  transition: 200ms;
}

.contact-form form .field--name-field-text {
  width: 66.66666%;
} 

.contact-form form .form-wrapper-bottom {
    margin-top: 2.5rem;
    display: flex;
    width: 100%;
}

.contact-form form .form-actions {
    width: 20%;
}

.contact-form form .form-actions .ajax-progress {
    display: inline-flex;
    padding: 0;
}

.contact-form form .form-actions .ajax-progress-throbber .throbber {
    padding: 4px 7px;
}

.contact-form form .form-wrapper-bottom .messages {
  display: none;
  align-items: center;
  font-size: 1.6rem;
  padding-left: 5.7rem;
  opacity: 0;
  transition: 300ms;
  border: 0;
  box-shadow: none;
  background-color: unset;
  background-image: unset;
}

.contact-form form .form-wrapper-bottom .messages::before {
  content: "";
  display: inline-block;
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: 2.2rem;
  margin-right: 1.1rem;
}
.contact-form form .form-wrapper-bottom .messages--status {
  color: #88C821;
  display: flex;
  opacity: 1;
  transition: 300ms;
}
.contact-form form .form-wrapper-bottom .messages--status::before {
  background-image: url(../img/success.svg);
}
.contact-form form .form-wrapper-bottom .messages--error {
  color: #F52121;
  display: flex;
  opacity: 1;
  transition: 300ms;
}
.contact-form form .form-wrapper-bottom .messages--error .messages__list {
  display: none;
}
.contact-form form .form-wrapper-bottom .messages--error::before {
  background-image: url(../img/error.svg);
  content: "Something went wrong. Please, try again.";
  width: 100%;
  padding-left: 3.5rem;
  padding-top: 0.3rem;
}

.contact-form-ja form .form-wrapper-bottom .messages--error::before {
  content: "何かがうまくいかなかった。 もう一度やり直してください。";
}


.contact-form form .form-actions + div {
  display: inline-flex;
}

.contact-form form .form-actions .button--primary {
  font-family: "Circle Bold";
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0.9rem 3rem 0.7rem;
  background-color: #282657;
  opacity: 0.9;
  border:  none;
}

.contact-form form .form-actions #edit-preview {
  display: none;
}

.region-content {
  display: flex;
  flex-direction: column;
}

.region-content .contact-form {
  order: 2;
}

.region-content .node--type-page-contacts {
  order: 1;
}

@media(max-width: 48em) {

  .contact-form {
    width: 100%;
  }

  .contact-form h2 {
    width: 100%;
    font-size: 4rem;
    margin-bottom: 2.7rem;
    padding: 0 5rem;
  }

  .contact-form form {
    padding: 8.5rem 5rem;
    padding-bottom: 11.7rem;
    padding-top: 0;
  }

  .contact-form form .form-wrapper {
    width: 100%;
    padding: 2.45rem 0;
  }

  .contact-form form .field--name-field-text {
    width: 100%;
  }

  .contact-form form .form-wrapper .form-item{
    height: 14.6rem;
  }

  .contact-form form .form-wrapper .form-item input,
  .contact-form form .form-wrapper .form-item .form-textarea {
    font-size: 3.2rem;
    padding: 0 5.1rem;
  }

  .contact-form form .form-actions .button--primary {
    width: 100%;
    padding: 3.3rem 7.8rem;
    width: 100%;
    font-size: 3.2rem;
  }

}