.contact-form-wrapper {
  background-color: #f7f3ed;
  border-radius: 8px;
}

.contact-form-container {
  max-width: 80%;
  padding: 4rem 12rem 0;
  margin: 0 auto;
  font-size: 2.2rem;
}

.contact-form-container .wpcf7-form {
  padding: 2.5rem 0 6rem;
}

.form-row {
  margin-bottom: 3.5rem;
}

.form-row-with-bottom-line {
  padding-bottom: 4rem;
  background-image: linear-gradient(to right, #666 1px, transparent 1px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 6px 1px;
}

.form-label {
  padding-bottom: 1.25rem;
}

.form-label-required::after {
  padding: 0 0.5rem 0.175rem;
  margin-left: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  vertical-align: top;
  color: #fff;
  content: "必須";
  background-color: #a30000;
  border-radius: 3px;
}

.wpcf7-text {
  width: 75%;
  height: 6.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #999;
  border-radius: 5px;
}

.wpcf7-textarea {
  width: 75%;
  padding: 1.25rem 1.5rem;
  border: 1px solid #999;
  border-radius: 5px;
}

.form-checkboxes {
  width: 75%;
  padding: 2rem 3.5rem 2rem 2rem;
  margin-top: 1.5rem;
  background-color: #ffe9e9;
  border-radius: 9px;
}

.wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin-bottom: 1.85rem;
}

.wpcf7-checkbox .wpcf7-list-item:not(:last-child) {
  padding-bottom: 2rem;
  background-image: linear-gradient(to right, #999 1px, transparent 1px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 6px 1px;
}

.wpcf7-checkbox .wpcf7-list-item:first-child {
  margin-top: 1.35rem;
}

.wpcf7-submit {
  display: block;
  padding: 1.5rem 5rem 1.85rem;

  /* margin: 2rem 1rem 0 calc((100% - 128px) / 2); */
  margin: 2rem auto 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: #a30000;
  border: none;
  border-radius: 6px;
}

.privacy-check {
  padding: 3.25rem 4rem 3.5rem;
  margin: 1rem 0 3.75rem;
  font-size: 2rem;
  background-color: #f0ece6;
  border-radius: 9px;
}

.privacy-check-title {
  font-weight: bold;
}

.privacy-check-content {
  margin: 1.5rem 0 2rem;
}

.privacy-check-content p {
  line-height: 1.8;
}

.form-acceptance-row {
  text-align: center;
}

.form-acceptance-row .wpcf7-list-item {
  margin: 0;
}

.recapcha-area {
  margin: 3.125rem 1rem 0;
}

.recapcha-area p {
  font-size: 2rem;
  line-height: 1.8;
}

@media only screen and (width > 767px) {
  .br-sp {
    display: none;
  }
}

@media only screen and (width <= 767px) {
  .utility-pages-container {
    padding: 0;
  }

  .utility-pages-description {
    margin: 1.35rem 1.5rem;
  }

  .contact-form-wrapper {
    border-radius: 0;
  }

  .contact-form-container {
    max-width: 100%;
    padding: 1rem 1.75rem 0;
    margin: 0 auto;
    font-size: 1.9rem;
  }

  .contact-form-container .wpcf7-form {
    padding: 2.5rem 0 4rem;
  }

  .form-row {
    margin-bottom: 1.5rem;
  }

  .form-row-with-bottom-line {
    padding-bottom: 2.25rem;
  }

  .form-label {
    padding-bottom: 1rem;
    padding-left: 0.5rem;
  }

  .wpcf7-text {
    width: 100%;
    height: 5rem;
    padding: 0.5rem 1.25rem;
  }

  .wpcf7-textarea {
    width: 100%;
  }

  .form-checkboxes {
    width: 100%;
    padding: 0.75rem 2.75rem 1rem 1rem;
    margin-top: 0.25rem;
  }

  .wpcf7-checkbox .wpcf7-list-item {
    margin-bottom: 1.5rem;
  }

  .wpcf7-checkbox .wpcf7-list-item:not(:last-child) {
    padding-bottom: 1.65rem;
  }

  .wpcf7-submit {
    display: block;
    padding: 1.5rem 5rem 1.85rem;
    margin: 2rem auto 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: #a30000;
    border: none;
    border-radius: 6px;
  }

  .privacy-check {
    padding: 2rem 2.75rem;
    margin: 1rem 0 2.75rem;
    font-size: 1.75rem;
    background-color: #f0ece6;
    border-radius: 9px;
  }

  .privacy-check-content p {
    line-height: 1.75;
  }

  .recapcha-area {
    margin-top: 2.35rem;
  }

  .recapcha-area p {
    font-size: 1.75rem;
    line-height: 1.75;
  }
}
