/* ============================================================
   contact.css — CONTACT page scoped selectors
   ============================================================ */

/* Contactページカラー定義 */
.subpage-hero.contact-hero,
body.page-contact {
  --page-main: #FF515C;
  --page-main-pale: #fee2e2;
  --page-dot-color: rgba(220,38,38,0.08);
  --focus-ring: rgba(220, 38, 38, 0.08);
}

/* Contactページのキーカラーを赤に上書き */
.contact-main,
.apply-cta-block,
.helper-section,
body.page-contact {
  --blue: #FF515C;
  --blue-pale: #fee2e2;
  --blue-hover: #b91c1c;
}

/* CONTACT LAYOUT */
.contact-main { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }

/* SIDEBAR INFO */
.info-block { background: var(--off-white); padding: 24px; margin-bottom: 16px; }
.info-block h3 { font-size: 0.72rem; font-weight: 700; /* 超小型uppercaseラベルの視認性確保のため例外 */ letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.enquiry-type { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.88rem; color: var(--text-mid); letter-spacing: 0; }
.enquiry-type:last-child { border-bottom: none; }
.enquiry-icon { width: 24px; display: flex; align-items: center; justify-content: center; } .enquiry-icon .hi { width: 1.1em; height: 1.1em; }
.lang-note { background: var(--blue-pale); padding: 20px; }
.lang-note h3 { font-size: 0.72rem; font-weight: 700; /* 超小型uppercaseラベルの視認性確保のため例外 */ letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.lang-note p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; letter-spacing: 0; }
.lang-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lang-badge { font-size: 0.73rem; font-weight: 500; padding: 3px 10px; background: var(--white); border: var(--border-mid); color: var(--navy); }

/* FORM */
.contact-form-wrap { background: var(--white); padding: 36px 32px; }
.form-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 24px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.5; }
.form-title small { font-size: 0.78rem; font-weight: 500; color: var(--text-light); display: block; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.79rem; font-weight: 500; color: var(--text-mid); margin-bottom: 7px; letter-spacing: 0.02em; }
.form-group label .req { color: var(--blue); margin-left: 3px; font-size: 0.75rem; }
.form-group label .optional { color: var(--text-light); font-weight: 500; font-size: 0.73rem; margin-left: 4px; }
.form-group textarea { min-height: 120px; }
.form-note { background: var(--gray-50); padding: 12px 16px; font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 22px; letter-spacing: 0; }
.form-note strong { color: var(--navy); }
.btn-submit { width: 100%; background: var(--blue); color: var(--white); font-size: 0.92rem; letter-spacing: 0.03em; padding: 14px 32px; border: none; transition: background 0.15s; }
.btn-submit:hover { background: var(--blue-hover); }
.privacy-note { font-size: 0.76rem; color: var(--text-light); text-align: center; margin-top: 14px; line-height: 1.6; letter-spacing: 0; }
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success .success-icon { font-size: 2.5rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.form-success p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.72; letter-spacing: 0; }

/* FAQ */
.helper-section { background: var(--off-white); border-top: 1px solid var(--gray-100); }
.helper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--gray-100); margin-top: 36px; }
.helper-card { background: var(--white); padding: 24px 20px; }
.helper-q { font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; color: var(--navy); display: flex; gap: 8px; letter-spacing: -0.01em; }
.helper-q::before { content: 'Q.'; color: var(--blue); font-weight: 700; /* Q.記号の視認性確保のため例外 */ flex-shrink: 0; }
.helper-a { font-size: 0.84rem; color: var(--text-mid); line-height: 1.65; padding-left: 22px; letter-spacing: 0; }
.helper-a-label { color: var(--blue); font-weight: 700; /* A.記号の視認性確保のため例外 */ margin-right: 6px; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 48px 20px 32px; }
.footer-inner { max-width: var(--container-w); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.footer-logo .logo-main { color: rgba(255,255,255,0.9); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.3); }
.footer-tagline { font-size: 0.83rem; margin-top: 8px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { font-size: 0.76rem; color: rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 768px) {
  section { padding: 56px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .footer-top { flex-direction: column; }
}

/* === HEROICONS === */
.hi {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.hi-outline {
  width: 1.5em; height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hi-solid {
  width: 1.5em; height: 1.5em;
  fill: currentColor;
  stroke: none;
}
.hi-lg  { width: 2em;   height: 2em;   }
.hi-md  { width: 1.6em; height: 1.6em; }
.hi-sm  { width: 1.2em; height: 1.2em; }

/* SAアニメーション → style.css に定義済みのため削除 */
.apply-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.apply-cta-block { background: var(--blue); padding: 56px 20px; }
.apply-cta-left { flex: 1; min-width: 260px; }
.apply-cta-title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; color: #ffffff; letter-spacing: -0.01em; margin-bottom: 12px; }
.apply-cta-body { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.78; letter-spacing: 0; margin-bottom: 8px; }
.apply-cta-meta { font-size: 0.76rem; color: rgba(255,255,255,0.45); letter-spacing: 0; }
.apply-cta-right { flex-shrink: 0; }
.apply-btn { background: #ffffff; color: #b91c1c; font-size: 0.92rem; letter-spacing: 0.02em; padding: 15px 32px; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
.apply-btn:hover { background: var(--off-white); transform: translateY(-1px); }
@media (max-width: 768px) {
  .apply-cta-inner { flex-direction: column; align-items: flex-start; }
  .apply-btn { width: 100%; justify-content: center; padding: 16px 24px; }
}

/* ── 送信エラー インライン表示 ── */
.form-error-msg {
  font-size: 0.82rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  padding: 10px 14px;
  margin-top: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* ── 送信中ボタン状態 ── */
.btn-submit:disabled {
  background: var(--text-light);
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── バリデーションエラー時の背景色 ── */
.form-group input.field-error,
.form-group textarea.field-error {
  border-color: #dc2626;
  background: #fff9f9;
}
