/* --------------------------------------------------
   お問い合わせページ 共通レイアウト
-------------------------------------------------- */

.contact-page {
  padding-top: 120px; /* ヘッダーとの間 */
  background-color: #f5f5f7;
}

/* 中央のコンテンツ幅をトップと揃える（約1200px） */
.contact-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

/* 各セクションの上下余白 */
.contact-call-section {
  margin-top: 24px;
  margin-bottom: 56px;
}

.contact-form-section {
  margin-top: 32px;
}

/* --------------------------------------------------
   写真＋電話カード
-------------------------------------------------- */
.contact-call-inner {
  display: flex;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.contact-call-image {
  width: 40%;
}

.contact-call-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-call-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-call-label {
  color: #e60012;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-call-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-call-number a {
  color: inherit;
  text-decoration: none;
}

.contact-call-note {
  font-size: 0.9rem;
  color: #666;
}

/* --------------------------------------------------
   緊急電話案内（横並び・中央揃え版）
-------------------------------------------------- */
.urgent-call-box {
  background: #f0f7ff;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 14px auto 26px;
  max-width: 820px;
}

.urgent-call-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  text-align: center;
}

.urgent-call-text {
  font-size: 1rem;
  font-weight: 700;
  color: #003a66;
  line-height: 1.4;
}

.urgent-call-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #007acc;
  text-decoration: none;
  white-space: nowrap;
}

.urgent-call-link:hover {
  text-decoration: underline;
}

/* レスポンシブ対応：スマホでは縦並び */
@media screen and (max-width: 768px) {
  .urgent-call-row {
    flex-direction: column;
    gap: 8px;
  }

  .urgent-call-link {
    font-size: 1.1rem;
  }
}
/* --------------------------------------------------
   フォーム（1列レイアウト）
-------------------------------------------------- */
.contact-form {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-field label small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
}

/* 入力要素共通 */
.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 6px;
  border: 1px solid #cccccc;
  padding: 8px 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* 必須ラベルを赤字に */
.required {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  color: #e60012;
}

/* 予約の必須ラベル（JSで表示/非表示する想定）
   初期は非表示にしておくとキレイ */
.reserve-required {
  display: none;
}

/* 予約の注意ボックス */
.reserve-box {
  background: #fff7e6;
  border-left: 6px solid #ffb300;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.reserve-box b {
  color: #d32f2f;
}

/* 注意事項ボックス */
.reserve-warning {
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.7;
  font-size: 0.92rem;
  color: #444;
}

/* チェックボックス */
.checkbox-field {
  display: flex;
  align-items: flex-start;
}

.checkbox-field input[type="checkbox"] {
  margin-right: 6px;
  margin-top: 3px;
}

/* 送信ボタン */
.form-submit {
  margin-top: 8px;
  text-align: center;
}

.submit-btn {
  min-width: 220px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: #007acc;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* --------------------------------------------------
   スマホ固定電話ボタン
-------------------------------------------------- */

/* 基本は非表示 */
.fixed-call {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  background: #007acc;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 122, 204, 0.35);
  align-items: center;
  gap: 12px;
}

.fixed-call__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.fixed-call__text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.fixed-call__sub {
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.fixed-call:active {
  transform: translateY(1px);
  opacity: 0.95;
}

/* レスポンシブ対応：問い合わせページをスマホで開いたときだけ表示 */
@media screen and (max-width: 768px) {
  body.contact-page .fixed-call {
    display: flex;
  }

  body.contact-page {
    padding-bottom: 84px;
  }
}
/* --------------------------------------------------
   レスポンシブ対応：スマホでは縦並び
-------------------------------------------------- */
@media screen and (max-width: 768px) {
  .contact-page {
    padding-top: 96px;
  }

  .contact-call-inner {
    flex-direction: column;
  }

  .contact-call-image {
    width: 100%;
  }

  .contact-call-content {
    padding: 16px 16px 20px;
  }

  .contact-call-number {
    font-size: 1.8rem;
  }

  .urgent-call-box {
    padding: 12px 14px;
    margin: 14px auto 22px;
    max-width: 100%;
  }

  .urgent-call-box a {
    font-size: 1.15rem;
  }

  .contact-form {
    padding: 20px 16px 24px;
  }

  body.contact-page .page-top {
    right: 12px;
    bottom: 104px;
  }
}