/* ===================================================
   contact.css — 企業様向けお問い合わせフォーム
   =================================================== */

/* ---------- メインレイアウト ---------- */
.contact-main {
  padding: 60px 0 80px;
  background: var(--bg);
  min-height: 70vh;
}

/* ---------- ページヒーロー ---------- */
.contact-hero {
  text-align: center;
  margin-bottom: 48px;
}
.contact-hero .section-label {
  margin-bottom: 16px;
  display: inline-block;
}
.contact-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 12px 0 16px;
  line-height: 1.4;
  color: var(--text-main);
}
.contact-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ---------- フォーム外枠 ---------- */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 48px 48px;
}

/* ---------- 必須マーク説明 ---------- */
.required-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
  text-align: right;
}
.required-mark {
  color: #ef4444;
  font-weight: 700;
  margin-right: 2px;
}

/* ---------- フォームグループ ---------- */
.form-group {
  margin-bottom: 28px;
}

/* ---------- ラベル ---------- */
.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.form-label-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
}

/* ---------- インプット ---------- */
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.6;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--corp);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #cbd5e1;
  font-size: 0.88rem;
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ---------- 人数入力（短い＋単位） ---------- */
.input-unit-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.input-short {
  width: 120px;
}
.input-unit {
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* ---------- 補足テキスト ---------- */
.form-input-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.6;
}
.form-input-note i {
  color: var(--primary);
  margin-right: 4px;
}

/* ---------- バリデーションエラー ---------- */
.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.error-msg {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}
.error-msg.show { display: block; }

/* ---------- チェックボックス（同意） ---------- */
.form-agree {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-main);
}
.checkbox-label input[type="checkbox"] {
  display: none;
}
.checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s;
  position: relative;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--corp);
  border-color: var(--corp);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.agree-link {
  color: var(--corp);
  text-decoration: underline;
}

/* ---------- 送信ボタン ---------- */
.form-submit {
  text-align: center;
  margin-top: 32px;
}
.btn-submit {
  min-width: 280px;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s;
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Botフィールド非表示 */
.hidden-field { display: none; }

/* ---------- 電話案内 ---------- */
.contact-alt {
  text-align: center;
  margin-top: 40px;
  padding: 28px;
  background: var(--primary-lt);
  border-radius: var(--radius);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.contact-alt p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.contact-alt p:first-child { margin-bottom: 8px; }
.tel-link {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--corp);
  letter-spacing: 0.05em;
}
.tel-link:hover { text-decoration: underline; }

/* ---------- 送信完了ページ ---------- */
.thanks-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.thanks-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.thanks-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main);
}
.thanks-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 12px;
}
.thanks-desc-small {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.thanks-tel {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ===================================================
   レスポンシブ
   =================================================== */
@media (max-width: 640px) {
  .form-wrap {
    padding: 28px 20px;
    border-radius: var(--radius);
  }
  .contact-title { font-size: 1.5rem; }
  .btn-submit { min-width: unset; width: 100%; }
  .thanks-box { padding: 40px 20px; }
}
