/* ---------- 全体レイアウト ---------- */
.th-contact-form {
  max-width: 960px;
  margin: 0 auto;
  font-size: 14px;
}

.th-row {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.th-row-full {
  display: block;
}

.th-col {
  flex: 1;
}

.th-contact-form h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.th-contact-form p {
  line-height: 1.2;
}

/* ---------- ラベル・必須マーク ---------- */
.th-label {
  align-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.th-required {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background-color: #e60012;
  border-radius: 2px;
}

/* ---------- 入力パーツ共通 ---------- */
.th-input,
.th-select,
.th-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  background-color: #f7f7f7;
  border-radius: 2px;
  font-size: 16px;
  box-sizing: border-box;
}

.th-input:focus,
.th-select:focus,
.th-textarea:focus {
  outline: none;
  border-color: var(--red);
  background-color: #fff;
}

.th-textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7-not-valid-tip {
  color: var(--red);
}

/* ---------- プライバシーポリシー ---------- */
.th-privacy {
  margin: 32px 0 16px;
}

.th-privacy-box {
  border: 1px solid #e0e0e0;
  padding: 24px 24px;
  max-height: 160px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
}

.th-privacy-box p {
  margin-bottom: 20px;
}

.th-privacy-note {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
}

/* ---------- 同意チェック ---------- */
.th-privacy-check {
  text-align: center;
  margin-bottom: 32px;
}

.th-privacy-check .wpcf7-list-item {
  margin: 0;
}

.th-privacy-check input[type="checkbox"] {
  margin-right: 6px;
}

/* ---------- 送信ボタン ---------- */
/* ボタン全体を包むエリア */
.form-submit-area {
  position: relative;
  text-align: center;
}

/* 送信ボタン */
.form-submit-area .wpcf7-submit {
  display: inline-block;
  margin: 0 auto;
}

.th-submit-wrap {
  position: relative;
}

.wpcf7-spinner {
  position: absolute !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.th-submit-wrap {
  text-align: center;
}

.th-submit {
  display: inline-block;
  width: 260px;
  padding: 14px 0;
  border: none;
  border-radius: 2px;
  background-color: var(--Black);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.th-submit:hover {
  background-color: var(--red);
}

@media screen and (max-width: 768px) {
  .th-row {
    gap: 10px;
    flex-direction: column;
    margin-bottom: 12px;
  }
  .th-contact-form h2 {
    font-size: 1.3rem;
  }
}

.grecaptcha-badge {
  visibility: visible;
}