.contact-form {
  padding: 8rem 0;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  .contact-form .heading-section {
    font-size: 2rem;
  }
}

.contact-form__inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form__body {
  margin-top: 15rem;
}

@media (max-width: 768px) {
  .contact-form__body {
    margin-top: 4rem;
  }
}

.contact-form__title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form__desc {
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: center;
  margin: 6rem 0 3rem;
}

@media (max-width: 768px) {
  .contact-form__desc {
    margin: 3rem 0 5rem;
    text-align: left;
  }
}

.contact-form__desc span.contact-form__note {
  display: inline-block;
  color: #e60033;
}

.contact-form__box {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  background-color: #fff;
  padding: 4rem;
}

@media (max-width: 768px) {
  .contact-form__box {
    padding: 0;
  }
}

.contact-form__box .form-row {
  margin-bottom: 2.5rem;
}

.contact-form__box .form-row label {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.contact-form__box .form-row label .required {
  color: #e60033;
  font-size: 1.4rem;
}

.contact-form__box .form-row input,
.contact-form__box .form-row textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  background: #ebf2f5;
}

.contact-form__box .form-row textarea {
  height: 180px;
  resize: vertical;
}


/* 承諾ボタン チェックボックス ===================== */

.contact-form__box .form-row.form-checkbox {
  display: flex;
  justify-content: center;
  margin-top: 10rem;
  margin-bottom: 8rem;
}

@media (max-width: 768px) {
  .contact-form__box .form-row.form-checkbox {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

.contact-form__box .form-row.form-checkbox .wpcf7-form-control-wrap {
  width: auto;
  display: inline-block;
}

.contact-form__box .wpcf7-acceptance .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.contact-form__box .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  cursor: pointer;
  margin: 0;
}

.contact-form__box input.form-checkbox__input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 25px;
  height: 25px;
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background-color: #fff;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.contact-form__box input[type="checkbox"].form-checkbox__input:checked {
  background-color: #015184;
}

.contact-form__box input.form-checkbox__input[type="checkbox"]::before {
  content: "✔";
  font-size: 18px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.contact-form__box input.form-checkbox__input[type="checkbox"]:checked::before {
  opacity: 1;
  color: #fff;
}

.contact-form__box .form-checkbox__underline {
  border-bottom: 1px solid #000;
  padding-bottom: 0.1em;
  display: inline-block;
}

.contact-form__box .wpcf7-list-item-label {
  font-size: 1.6rem;
  color: #333;
  font-weight: 600;
  line-height: 1.6;
  display: inline;
  white-space: nowrap;
}

/* 送信ボタン ===================== */

.contact-form__box .form-submit {
  text-align: center;
}

/* 送信ボタン デフォルトのスタイル無効化 */
input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 送信ボタン スピナー 無効化 */
span.wpcf7-spinner {
  display: none;
}

/* 送信ボタン */
.submit-button {
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: bold;
  background-color: #015184;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* ホバー時 */
.submit-button:hover {
  background-color: #4d84c4;
}

/* ===================== */

.contact-form__info {
  margin-top: 5rem;
  text-align: center;
  padding: 6rem;
  background: #fff;
  border: 1px solid #015184;
}

@media (max-width: 768px) {
  .contact-form__info {
    padding: 3rem 2rem;
  }
}

.contact-form__info p {
  font-size: 2.2rem;
  line-height: 2;
  font-weight: bold;
}

@media (max-width: 768px) {
  .contact-form__info p {
    font-size: 1.8rem;
  }
}

.contact-form__info strong {
  display: block;
  font-weight: bold;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #015184;
}

@media (max-width: 768px) {
  .contact-form__info strong {
    font-size: 1.8rem;
  }
}