/* ===== Page Hero ===== */
.page-hero__overlay {
  background-image: url('http://built.sincor.jp/wp-content/uploads/2026/06/contact_mv.png');
  /* ← ここに背景画像のURLを入れる */
}

/* ===== Contact Page ===== */
.contact {
  padding: 60px 0 100px;
  background: #fff;
}

.contact__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact_text_wrap {
  margin-bottom: 70px;
}

.contact_text_wrap p {
  font-size: 18px;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
}

/* ラジオボタングループ */
.cf7-radio-group {
  text-align: center;
  margin-bottom: 40px;
}

.cf7-radio-group .wpcf7-radio {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.cf7-radio-group .wpcf7-list-item {
  margin: 0;
}

.cf7-radio-group .wpcf7-list-item input[type="radio"] {
  accent-color: #1a4a8a;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.cf7-radio-group .wpcf7-list-item label {
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

/* フォーム行 */
.cf7-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.cf7-row--address-head {
  margin-bottom: 8px;
}

.cf7-label {
  width: 160px;
  flex-shrink: 0;
  padding-top: 10px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.cf7-label label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 必須バッジ */
.wpcf7-not-valid-tip,
.cf7-label .wpcf7-required {
  display: none;
}

/* CF7の必須マークを非表示にして独自スタイルに */
.cf7-row .cf7-label label::after {
  display: none;
}

/* required-labelの代わりにCSSで必須表示 */
.cf7-row:has(input[required], textarea[required]) .cf7-label label::after,
.cf7-row:has(.wpcf7-validates-as-required) .cf7-label label::after {
  content: '必須';
  display: inline-block;
  color: #e03030;
  border: 1px solid #e03030;
  background: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}

.cf7-field {
  flex: 1;
}

/* テキスト・メール・電話 */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"] {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.cf7-field input[type="text"]:focus,
.cf7-field input[type="email"]:focus,
.cf7-field input[type="tel"]:focus {
  border-color: #1a4a8a;
}

/* テキストエリア */
.cf7-field textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}

.cf7-field textarea:focus {
  border-color: #1a4a8a;
}

/* 郵便番号 */
.cf7-field--zip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cf7-field--zip input[type="text"] {
  width: 80px;
  flex: none;
}

.cf7-zip-note {
  font-size: 0.8rem;
  color: #666;
  margin-left: 8px;
}

/* 都道府県 */
.cf7-field--pref input[type="text"] {
  width: 160px;
}

/* プライバシーポリシー説明 */
.cf7-privacy-note {
  text-align: center;
  margin: 40px 0 16px;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.9;
}

/* プライバシーポリシー本文ボックス */
.cf7-privacy-box {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 20px 24px;
  height: 160px;
  overflow-y: scroll;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
  background: #fff;
}

.cf7-privacy-box p {
  margin: 0 0 12px;
}

.cf7-privacy-box p:last-child {
  margin-bottom: 0;
}

/* 同意チェックボックス */
.cf7-agreement {
  text-align: center;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #333;
}

.cf7-agreement .wpcf7-list-item {
  margin: 0;
}

.cf7-agreement input[type="checkbox"] {
  accent-color: #1a4a8a;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

/* 送信ボタン */
.cf7-submit {
  text-align: center;
}

.cf7-submit input[type="submit"] {
  /* background: linear-gradient(to right, #1a4a8a, #3a80c8);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 60px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s; */
}

.cf7-submit input[type="submit"]:hover {
  /* opacity: 0.85; */
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  display: block !important;
  font-size: 0.78rem;
  color: #e03030;
  margin-top: 4px;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: #e03030 !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .contact_text_wrap p {
    font-size: 16px;
    white-space: wrap;
  }

  .wpcf7-list-item-label {
    font-size: 14px;
  }

  .cf7-row {
    flex-direction: column;
    gap: 8px;
  }

  .cf7-label {
    width: 100%;
    padding-top: 0;
  }

  .cf7-field--pref input[type="text"] {
    width: 100%;
  }
}


.wpcf7 .wpcf7-submit:disabled {
  background-color: var(--color-text-muted);
}

.cf7-submit {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.cf7-submit input[type="submit"] {
  background-color: #e8510a;
  color: #fff;
  border: none;
  padding: 20px 32px;
  font-size: 16px;
  font-weight: bold;
  text-align: justify;
  cursor: pointer;
  width: 100%;
  appearance: none;
  border-radius: 50px;
}


.cf7-submit input[type="submit"]:hover {}

.cf7-submit::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 33%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: #1a1a2e;
  border-radius: 50%;
  pointer-events: none;
}

.cf7-submit::before {
  content: '';
  position: absolute;
  right: 55px;
  top: 30%;
  transform: translateY(-50%) rotate(90deg);
  width: 8px;
  height: 55px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  pointer-events: none;
  z-index: 1;
}