/* ===================================================================
   07_page_contact.css
   お問い合わせ関連ページ (contact/input.php / confirm.php / sendmail.php)
   フォームレイアウト / ステップ表示 / 確認テーブル / 完了画面
   =================================================================== */


/* --- フォーム共通レイアウト（input.php） -------------------------------------- */

/* ===========================================================
   32. お問い合わせフォーム (input.php / contact 共通)
   =========================================================== */

/* ページヒーロー（contact用） */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  color: #fff;
}

.page-hero-content h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 560px;
  line-height: 1.8;
}

/* コンタクトレイアウト */
.contact-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.contact-main {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ステップインジケータ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
}

.step.active .step-num {
  background: var(--navy);
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.step.active .step-label { color: var(--navy); font-weight: 700; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 60px;
  margin-bottom: 20px;
}

/* お知らせボックス */
.notice-box {
  background: #f0f6ff;
  border: 1px solid #cce0f0;
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-box p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

.notice-box a {
  color: var(--navy);
  text-decoration: underline;
}

/* フォーム */
.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,45,74,0.10);
}

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

.form-select { cursor: pointer; }

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 1.2em;
}

/* 送信ボタン */
.form-submit { text-align: right; padding-top: 8px; }

.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,45,74,0.22);
}

.btn-submit:hover {
  background: var(--navy-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,45,74,0.30);
}

/* サイドバー */
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }

.tel-link {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin: 4px 0;
}

.tel-link:hover { color: var(--navy-lt); }

.office-hours {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list li {
  font-size: 0.84rem;
  color: var(--text);
  padding: 8px 12px;
  background: var(--light-bg);
  border-radius: 6px;
  position: relative;
  padding-left: 22px;
}

.faq-list li::before {
  content: '›';
  position: absolute;
  left: 8px;
  color: var(--navy);
  font-weight: 700;
}

.tel-emergency {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--danger);
  text-align: center;
  margin: 8px 0 12px;
  letter-spacing: 0.03em;
}

.btn-support {
  display: block;
  text-align: center;
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-support:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* フッターロゴ */
.footer-logo {
  color: var(--navy);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

/* contactレスポンシブ */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .contact-main { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-sidebar { grid-template-columns: 1fr; }
  .form-submit { text-align: center; }
  .btn-submit { width: 100%; }
}

/* --- 確認・完了ページ（confirm.php / sendmail.php） ------------------------ */

/* ===========================================================
   33. 確認・完了ページ (confirm.php / sendmail.php)
   =========================================================== */

/* ステップ完了状態 */
.step.done .step-num {
  background: var(--navy);
  color: #fff;
}
.step.done .step-label { color: var(--navy); font-weight: 700; }
.step-line.done { background: var(--navy); }

/* 確認テーブル */
.confirm-box {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.confirm-table th,
.confirm-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td { border-bottom: none; }

.confirm-table th {
  background: var(--light-bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.83rem;
  width: 180px;
  white-space: nowrap;
}

.confirm-table td { color: var(--text); }

/* 注意文 */
.confirm-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ボタン行 */
.confirm-actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: #fff;
  transition: all 0.2s;
}
.btn-back:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--light-bg);
}

/* 結果ボックス（送信完了・エラー） */
.result-box {
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 32px;
}

.result-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.result-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.result-icon { font-size: 3rem; margin-bottom: 16px; }

.result-box h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.result-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.result-note {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
  margin-bottom: 24px;
}

.result-note a { color: var(--navy); text-decoration: underline; }

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .confirm-actions { flex-direction: column; }
  .btn-back, .btn-submit { width: 100%; text-align: center; justify-content: center; }
  .confirm-table th { width: 120px; font-size: 0.78rem; }
}

