/* タイトル */
.page-section-title {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-image: url("../img/contact.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 0;
}

.page-section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(1px);
  z-index: 1;
}

.page-section-title > * {
  position: relative;
  z-index: 2;
}

.contact-wrapper {
  width: 80%;
  max-width: 700px;
  margin: 40px auto;
  font-size: 16px;
  color: #444;
}

/* ===== Contact Layout ===== */
.contact {
  padding: 80px 20px;
  background: #f7f7f7;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: #fff;
  padding: 56px;
  border-radius: 16px;
}

/* ===== 左：説明エリア ===== */
.contact-info {
  display: flex;
  flex-direction: column;
}

/* リード文 */
.contact-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 40px;
}

/* 電話CTAブロック */
.contact-call {
  padding: 28px 28px 32px;
  border-radius: 14px;
  background: #fdf3f3;
  border: 1px solid #f1c7c7;
}

/* タイトル */
.contact-call-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

/* 補足文 */
.contact-call .contact-note {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 18px;
}

/* 電話番号 */
.contact-call .contact-tel {
  margin: 0;
}

.contact-call .contact-tel a {
  text-decoration: none;
}

.contact-call .contact-tel strong {
  display: block;
  font-size: 45px;
  font-weight: 700;
  color: #b71c1c;
  letter-spacing: 0.05em;
  margin-top: -20px;
}

.contact-call .contact-tel span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

/* ===== 右：フォーム ===== */
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.contact-form label span {
  font-size: 11px;
  color: #b71c1c;
  margin-left: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b71c1c;
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* ===== 送信ボタン ===== */
.contact-form button {
  width: 100%;
  padding: 16px;
  background: #b71c1c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #8b1e1e;
}

.form-error {
  display: none;
  color: #e60000;
  font-size: 14px;
  margin: 6px 0 12px;
}

/* エラー表示ON */
.form-error.is-active {
  display: block;
}

/* 入力欄のエラー見た目（任意だけど推奨） */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #e60000;
}

/* reCAPTCHA と送信ボタンの間隔をあける */
.contact-form .g-recaptcha {
  margin-bottom: 24px; /* 好みで 16〜32px に調整OK */
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 16px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 40px;
  }

  .contact-lead {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .contact-call {
    padding: 22px 20px 26px;
  }

  .contact-call-title {
    font-size: 18px;
  }

  .contact-call .contact-tel strong {
    font-size: 35px;
  }
}
