.form-contact {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 40px auto;
}

.form-contact .cf7-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid #dddddd;
}

.form-contact .cf7-row-top {
  align-items: flex-start;
}

.form-contact .cf7-label {
  width: 245px;
  min-width: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  padding-top: 2px;
}

.form-contact .cf7-label label {
  display: inline-block;
  margin: 0;
  font-weight: 700;
}

.form-contact .cf7-field {
  width: 390px;
  min-width: 390px;
  flex: 0 0 390px;
  padding-top: 0;
}

.form-contact .cf7-field select {
  max-width: 390px;
}

.form-contact .cf7-field input[type="text"],
.form-contact .cf7-field input[type="email"],
.form-contact .cf7-field input[type="tel"],
.form-contact .cf7-field textarea,
.form-contact .cf7-field select {
  width: 100%;
  max-width: 390px;
}

.form-contact .cf7-field textarea {
  width: 100%;
  max-width: 390px;
  min-height: 160px;
  height: 160px;
}

.form-contact .cf7-check-wrap {
  padding: 22px 0 0;
}

.form-contact .cf7-check-wrap .wpcf7-list-item-label {
  font-size: 15px;
  color: #333;
}

.form-contact .cf7-check-wrap input[type="checkbox"] {
  margin-right: 8px;
  transform: translateY(1px);
}

.form-contact .cf7-submit {
  text-align: center;
  margin-top: 34px;
}

.form-contact .cf7-submit input[type="submit"] {
  min-width: 260px;
  height: 68px;
  padding: 0 28px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: #ff4d4d;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-contact .cf7-submit input[type="submit"]:hover {
  opacity: 0.9;
}

.form-contact .cf7-submit input[type="submit"]:active {
  transform: translateY(1px);
}

.form-contact .cf7-agree {
  max-width: 520px;
  margin: 30px auto 0;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.form-contact .cf7-agree .wpcf7-list-item {
  margin: 0;
}

.form-contact .cf7-agree label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-contact .cf7-agree input[type="checkbox"] {
  width: auto;
  margin: 0;
}

@media (max-width: 767px) {

  .contact-form-wrap.form-wrap.form-contact {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
  }

  .section-intro,
  .contact-intro {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .form-contact .cf7-row {
    display: block;
    padding: 16px 0;
  }

  .form-contact .cf7-label {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
    gap: 6px;
    font-size: 15px;
    padding-top: 0;
  }

  .form-contact .cf7-row-top .cf7-label {
    padding-top: 0;
  }

  .form-contact .cf7-label label {
    font-size: 15px;
    line-height: 1.6;
  }

  .form-contact .cf7-field {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .form-contact .cf7-field input[type="text"],
  .form-contact .cf7-field input[type="email"],
  .form-contact .cf7-field input[type="tel"],
  .form-contact .cf7-field textarea,
  .form-contact .cf7-field select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    padding: 14px 14px;
  }

  .form-contact .cf7-field textarea {
    min-height: 160px;
    height: 160px;
  }

  .form-contact .cf7-check-wrap {
    padding-top: 16px;
  }

  .form-contact .cf7-check-wrap .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 1.7;
  }

  .form-contact .cf7-submit {
    margin-top: 24px;
  }

  .form-contact .cf7-submit input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 280px;
    min-width: 0;
    height: 60px;
    margin: 0 auto;
    font-size: 20px;
  }
}

.form-contact .cf7-note {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #000;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.form-contact .cf7-note-top {
  margin-bottom: 28px;
  text-align: center;
}

.form-contact .cf7-message-guide {
  margin-bottom: 12px;
  color: #000;
  font-size: 13px;
  line-height: 1.8;
}

@media screen and (max-width: 767px) {

  .form-contact .cf7-note {
    font-size: 13px;
    line-height: 1.8;
    padding: 0 12px;
  }

  .form-contact .cf7-note-top,
  .form-contact .cf7-message-guide {
    text-align: left;
  }

}

/* =========================
   CF7 ラジオ・チェック整理
========================= */

/* ラジオ・チェックを縦並び寄りに */
.wpcf7-list-item {
  display: block;
  margin: 0 0 10px 0;
}

/* ラベル間隔 */
.wpcf7-list-item label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4em;
  line-height: 1.7;
}

/* チェックボックス・ラジオの位置微調整 */
.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
  margin-top: 0.25em;
}

/* 補足テキスト */
.cf7-field-note {
  margin: 10px 0 14px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
}

/* スマホ時の余白 */
@media screen and (max-width: 768px) {

  .wpcf7-list-item {
    margin-bottom: 12px;
  }

}

/* 任意ラベル */
.form-contact .optional {
display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #b3b3b3;

  border-radius: 3px;
  white-space: nowrap;
}


/* CF7 成功メッセージを非表示 */
.wpcf7-response-output {
  display: none !important;
}

/* ローディング全体 */
#cf7-loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* 表示時 */
#cf7-loading.is-active {
  display: flex;
}

/* スピナー */
.cf7-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ddd;
  border-top-color: #0c917e;
  border-radius: 50%;
  animation: cf7spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes cf7spin {
  to {
    transform: rotate(360deg);
  }
}

#cf7-loading p {
  font-size: 14px;
  color: #444;
}