@charset "UTF-8";
/* ============================================================
   contact.css - お問い合わせページ固有スタイル
   ※ 中ページ共通スタイル（.page-hero / .inner-title 等）は common.css に記述
   ============================================================ */

/* ===== フォームセクション ===== */
.contact-section {
  background: #f5f5f5;
  padding: 60px 0;
}

.contact-lead {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 32px;
}

.required-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #c0392b;
}

.required-note i {
  font-size: 0.6rem;
  vertical-align: super;
  margin-right: 3px;
}

/* ===== フォームテーブル ===== */
.contact-form {
  background: #ffffff;
  padding: 40px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.form-table th,
.form-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
}

.form-table th {
  width: 30%;
  background: #f5f5f5;
  color: #102487;
  font-weight: 500;
  white-space: nowrap;
}

.form-table td {
  color: #333;
}

/* 必須マーク */
.required {
  color: #c0392b;
  font-size: 0.6rem;
  vertical-align: super;
  margin-left: 4px;
}

/* ===== 入力要素 ===== */
.form-table input[type="text"],
.form-table input[type="tel"],
.form-table input[type="email"],
.form-table select,
.form-table textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fafafa;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.form-table input[type="text"]:focus,
.form-table input[type="tel"]:focus,
.form-table input[type="email"]:focus,
.form-table select:focus,
.form-table textarea:focus {
  border-color: #102487;
  background: #ffffff;
  outline: none;
}

.form-table textarea {
  resize: vertical;
  min-height: 140px;
}

.form-table select {
  cursor: pointer;
}

/* 入力補足テキスト */
.input-note {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* ラジオ・チェックボックス */
.radio-wrap,
.checkbox-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.radio-wrap label,
.checkbox-wrap label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.radio-wrap input[type="radio"],
.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #102487;
  cursor: pointer;
}

/* ===== プライバシー注記 ===== */
.privacy-note {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.9;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: #f5f5f5;
  border-left: 3px solid #d0d0d0;
}

/* ===== ボタンエリア ===== */
.form-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.btn-submit {
  display: inline-block;
  background: #102487;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 14px 60px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.btn-submit:hover {
  background: #0b1a6a;
}

.btn-reset {
  display: inline-block;
  background: #ffffff;
  color: #888;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 14px 40px;
  border: 1px solid #d0d0d0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.05em;
}

.btn-reset:hover {
  background: #f5f5f5;
  color: #333;
}

/* ===== 個人情報保護方針同意エリア ===== */
.privacy-agree {
  margin: 24px 0;
  padding: 20px 24px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.privacy-agree-text {
  font-size: 0.9375rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.8;
}

.privacy-agree-link {
  color: #102487;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}

.privacy-agree-link:hover {
  opacity: 0.7;
}

.privacy-agree-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.privacy-agree-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #102487;
  cursor: pointer;
  flex-shrink: 0;
}

/* チェック前は送信ボタンをグレーアウト */
.btn-submit:disabled {
  background: #b0b0b0;
  cursor: not-allowed;
}

.btn-submit:disabled:hover {
  background: #b0b0b0;
}

/* ===== 確認画面・完了画面 ===== */
.confirm-heading {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: #102487;
  border-left: 4px solid #102487;
  padding-left: 14px;
  margin-bottom: 24px;
}

.confirm-table th {
  background: #f5f5f5;
  color: #102487;
  font-weight: 500;
  width: 30%;
  white-space: nowrap;
}

.confirm-table td {
  color: #333;
}

.error-box {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.thanks-msg {
  font-size: 1rem;
  line-height: 2;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .contact-form {
    padding: 24px 16px;
  }

  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  .form-table th {
    border-bottom: none;
    margin-top: 8px;
  }

  .form-btn-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .btn-submit,
  .btn-reset {
    width: 100%;
    text-align: center;
  }
}

/* ===================================
   サンクスページ用スタイル
   contact.css の末尾に追記してください
   =================================== */

.thanks-box {
  max-width: 680px;
  margin: 60px auto 80px;
  padding: 56px 48px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
}

/* チェックアイコン */
.thanks-icon {
  font-size: 64px;
  color: #4caf50;
  margin-bottom: 24px;
  line-height: 1;
}

/* 完了タイトル */
.thanks-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  color: #1a1a1a;
}

/* 本文 */
.thanks-text {
  font-size: 0.97rem;
  line-height: 2;
  color: #333;
  margin-bottom: 24px;
}

/* 注意書き */
.thanks-note {
  font-size: 0.82rem;
  line-height: 1.9;
  color: #777;
  background: #f8f8f8;
  border-left: 3px solid #ccc;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 36px;
  border-radius: 0 2px 2px 0;
}

/* 電話お問い合わせ */
.thanks-tel {
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
  margin-bottom: 40px;
}

.thanks-tel-label {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 8px;
}

.thanks-tel-label i {
  margin-right: 6px;
}

.thanks-tel-number {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 6px;
  pointer-events: none; /* PC では電話リンクを無効化 */
}

.thanks-tel-hours {
  font-size: 0.82rem;
  color: #777;
}

/* トップへ戻るボタン */
.thanks-btn-wrap {
  margin-top: 8px;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, opacity 0.2s;
}

.thanks-btn:hover {
  background: #333;
  opacity: 0.85;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .thanks-box {
    margin: 36px auto 56px;
    padding: 36px 24px;
  }

  .thanks-icon {
    font-size: 52px;
    margin-bottom: 20px;
  }

  .thanks-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .thanks-text {
    font-size: 0.92rem;
    text-align: left;
  }

  .thanks-note {
    font-size: 0.78rem;
    padding: 14px 16px;
  }

  /* スマホでは電話タップ可能に */
  .thanks-tel-number {
    pointer-events: auto;
    font-size: 1.5rem;
  }

  .thanks-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}