/* =============================================
   お問い合わせページ (page-contact.css)
   ============================================= */

/* ─── セクション ─────────────────────────── */
.contact-section {
  padding: 80px 0 100px;
}

/* ─── リード文 ──────────────────────────── */
.contact-lead {
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 16px;
}
.contact-lead--center {
  margin-bottom: 32px;
}

/* ─── 電話番号注記 ──────────────────────── */
.contact-tel-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 48px;
  line-height: 1.8;
}
.contact-tel-link {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d6a2d;
  text-decoration: none;
  margin-top: 4px;
}
.contact-tel-link:hover {
  opacity: 0.75;
}
.contact-hours {
  display: block;
  font-size: 0.85rem;
  color: #888;
}

/* ─── エラーバナー ──────────────────────── */
.contact-error-banner {
  background: #fff0f0;
  border: 2px solid #e53e3e;
  border-radius: 6px;
  color: #c53030;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 20px;
  margin-bottom: 32px;
  text-align: center;
}
/* ─── お問い合わせ案内 ─────────────────────── */
.contact-guide {
  max-width: 780px;
  margin: 0 auto 48px;
}

.contact-guide p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #444;
}

.contact-guide__sub {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #666;
}

.contact-guide__tel {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-guide__tel a {
  color: #2d5a27;
  text-decoration: none;
}

.contact-guide__hours {
  font-size: 0.85rem;
  color: #888;
}


/* ─── フォーム全体 ──────────────────────── */
.contact-form {
  max-width: 780px;
  margin: 0 auto;
}

/* ─── 各行 ──────────────────────────────── */
.contact-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 8px 0;
}
.contact-form__row--privacy {
  justify-content: center;
  margin-top: 8px;
}

/* ─── ラベル ─────────────────────────────── */
.contact-form__label {
  width: 220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding-top: 10px;
  padding-right: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

/* ─── 必須/任意バッジ ─────────────────── */
.required {
  display: inline-block;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.optional {
  display: inline-block;
  background: #718096;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── インプット領域 ─────────────────── */
.contact-form__input-wrap {
  flex: 1;
  min-width: 0;
}

/* ─── テキストフィールド共通 ─────────── */
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  color: #333;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: #2d6a2d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 106, 45, 0.15);
}
.contact-form__textarea {
  resize: vertical;
  line-height: 1.7;
}

/* セレクト矢印 */
.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ─── エラー時のフィールドハイライト ── */
.has-error .contact-form__input,
.has-error .contact-form__select,
.has-error .contact-form__textarea {
  border-color: #e53e3e;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}
.has-error .contact-form__input:focus,
.has-error .contact-form__select:focus,
.has-error .contact-form__textarea:focus {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.25);
}

/* ─── エラーメッセージ ──────────────── */
.contact-form__error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #e53e3e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.contact-form__error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ─── チェックボックス ──────────────── */
.contact-form__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #444;
  flex-wrap: wrap;
}
.contact-form__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2d6a2d;
  cursor: pointer;
  flex-shrink: 0;
}
.has-error .contact-form__checkbox {
  outline: 2px solid #e53e3e;
  border-radius: 3px;
}
.contact-form__checkbox-label a {
  color: #2d6a2d;
  text-decoration: underline;
}

/* ─── 送信ボタン ─────────────────────── */
.contact-form__submit {
  text-align: center;
  margin-top: 40px;
}
.contact-form__submit--confirm {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-contact-submit {
  display: inline-block;
  background: #2d6a2d;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 56px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-contact-submit:hover {
  background: #245424;
  transform: translateY(-1px);
}
.btn-contact-submit--home {
  margin-top: 24px;
}

.btn-contact-back {
  display: inline-block;
  background: #fff;
  color: #555;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 40px;
  border: 2px solid #ccc;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s;
}
.btn-contact-back:hover {
  background: #f5f5f5;
  border-color: #aaa;
}

/* ─── 確認テーブル ───────────────────── */
.contact-confirm__table {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 40px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.contact-confirm__th,
.contact-confirm__td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
}
.contact-confirm__th {
  width: 220px;
  font-weight: 700;
  color: #333;
  background: #f7faf7;
  white-space: nowrap;
}
.contact-confirm__td {
  color: #444;
}

/* ─── 完了画面 ───────────────────────── */
.contact-complete {
  text-align: center;
  padding: 40px 0 20px;
}
.contact-complete__text {
  font-size: 1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 32px;
}

/* ─── レスポンシブ ───────────────────── */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0 80px;
  }
  .contact-form__row {
    flex-direction: column;
    margin-bottom: 20px;
  }
  .contact-form__label {
    width: 100%;
    padding-top: 0;
    margin-bottom: 4px;
  }
  .contact-confirm__th {
    width: 140px;
    font-size: 0.875rem;
    white-space: normal;
  }
  .contact-confirm__th,
  .contact-confirm__td {
    padding: 12px 14px;
  }
  .btn-contact-submit,
  .btn-contact-back {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }
  .contact-form__submit--confirm {
    flex-direction: column-reverse;
    align-items: center;
  }
}