/* =========================================
   contact.css
   - お問合せフォーム（入力画面）
   ========================================= */

/* -----------------------------------------
   1. ページタイトル
   ----------------------------------------- */

.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 32px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  border-left: none;
  padding-left: 0;
}

.page-lead {
  font-size: 14px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-note {
  text-align: center;
}

/* -----------------------------------------
   2. フォーム全体
   ----------------------------------------- */

.contact-section {
  padding: 16px 16px 40px;
}

.contact-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

/* 「※」マーク */
.required-icon {
  color: #d00000;
  font-size: 12px;
}

/* フォームラッパー */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

/* 1行分（ラベル + 入力欄） */
.contact-form-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.contact-form-row:first-of-type {
  border-top: 1px solid #eee;
}

/* ラベル側（左） */
.contact-label {
  flex: 0 0 180px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* 入力欄側（右） */
.contact-field {
  flex: 1 1 auto;
  font-size: 14px;
}

/* テキストインプット・セレクト・テキストエリア共通 */
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field select,
.contact-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-field input[type="text"]:focus,
.contact-field input[type="email"]:focus,
.contact-field input[type="tel"]:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid #0078d4;
  outline-offset: 1px;
  border-color: #0078d4;
}

/* -----------------------------------------
   3. 個人情報の取扱い
   ----------------------------------------- */

.contact-privacy-row .contact-label {
  padding-top: 4px;
}

.privacy-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
}

.privacy-label input[type="checkbox"] {
  margin-top: 3px;
}

.privacy-label a {
  text-decoration: underline;
  color: #0055aa;
}

.privacy-label a:hover {
  text-decoration: underline;
  color: #003f7d;
}

/* -----------------------------------------
   4. ボタン
   ----------------------------------------- */

.contact-form-actions {
  margin-top: 24px;
  text-align: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px; /* 丸ボタン */
  border: 1px solid #444;
  background: #fff;
  color: #222;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.contact-btn:hover {
  background: #f0f0f0;
  border-color: #111;
  color: #111;
  transform: translateY(-1px);
}

/* ボタンのフォーカス（キーボード操作用） */
.contact-btn:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

/* -----------------------------------------
   5. スマホ対応
   ----------------------------------------- */

@media (max-width: 768px) {
  .page-lead {
    text-align: left;
  }

  .contact-section {
    padding-inline: 0;
  }


  .contact-form-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-label {
    flex: 0 0 auto;
  }

  .contact-privacy-row .contact-label {
    padding-top: 0;
  }
}

/* =========================================
   6. 確認画面
   ========================================= */

.contact-confirm {
  max-width: 800px;
  margin: 0 auto 40px;
}

/* 確認用テーブル */
.contact-confirm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.contact-confirm-table th,
.contact-confirm-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #eaeaea;
}

.contact-confirm-table th {
  width: 160px;
  background: #f8f8f8;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.contact-confirm-table td {
  color: #333;
}

/* 問い合わせ内容（複数行） */
.contact-confirm-body {
  white-space: normal; /* nl2br 済なので通常でOK */
}

/* ボタン配置 */
.contact-confirm-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-confirm-form {
  margin: 0;
}

/* 戻るボタン（サブボタン） */
.contact-btn.contact-btn-secondary {
  background: #f5f5f5;
  border-color: #777;
}

.contact-btn.contact-btn-secondary:hover {
  background: #e5e5e5;
  border-color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-confirm-table th,
  .contact-confirm-table td {
    display: block;
    width: 100%;
  }

  .contact-confirm-table th {
    border-bottom: none;
  }

  .contact-confirm-table tr {
    border-bottom: 1px solid #eaeaea;
  }

  .contact-confirm-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn,
  .contact-btn.contact-btn-secondary {
    width: 100%;
    max-width: 260px;
  }
}

/* =========================================
   6. 完了画面
   ========================================= */
.contact-complete-message {
  text-align: center;
}
