/* ============================================================
   HARE — お問い合わせページ 専用
   既存トークン（styles.css）・コンポーネント（layout.css）を踏襲
   ヘッダー展開UIは header-nav.css、パンくずは category.css を共用
============================================================ */

/* 現在地ナビ（共通ヘッダーの該当項目をアクティブ表示） */
.nav__item[aria-current="page"] { color: var(--blue); }
.nav__item[aria-current="page"]::after { width: 100%; }

/* ---------- 見出し下のアクセント線 ---------- */
.title-rule {
  display: block; width: 56px; height: 3px; border-radius: 3px;
  background: var(--blue); margin-top: 18px;
}

/* ---------- ヒーロー（下端は直線：他ページと統一） ---------- */
.contact-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8fe 54%, #e4f1fb 100%);
}
.contact-hero__bg {
  position: absolute; top: 0; bottom: 0;
  right: max(0px, calc((100% - var(--maxw)) / 2));
  width: min(64%, 900px);
  background: url("../img/contact-hero.webp") no-repeat;
  background-size: contain;
  background-position: right center;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 32%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 32%, #000 100%);
}
.contact-hero__inner { position: relative; z-index: 2; padding-block: 28px 50px; min-height: 320px; }
.contact-hero__text { padding-top: 48px; }
.contact-hero__title {
  font-family: var(--font-round);
  font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  letter-spacing: .03em; line-height: 1.2;
}

/* ---------- リード（中央・両脇に黄色のきらめき） ---------- */
.contact-lead {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(38px, 5vw, 58px) var(--pad) clamp(28px, 4vw, 40px);
  text-align: center;
}
.contact-lead p {
  font-size: clamp(15px, 1.7vw, 18px); font-weight: 500;
  line-height: 1.95; color: var(--ink); letter-spacing: .02em;
}
.contact-lead__spark { flex: none; width: 26px; height: 30px; color: var(--yellow); }
.contact-lead__spark--r { transform: scaleX(-1); }

/* ---------- フォームカード ---------- */
.contact-form-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.contact-form {
  max-width: 880px; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(26px, 3.6vw, 44px) clamp(22px, 4vw, 54px) clamp(30px, 4vw, 50px);
  box-shadow: 0 18px 46px -28px rgba(33,48,61,.28);
}
.form-row {
  display: grid; grid-template-columns: 188px 1fr;
  align-items: start; gap: 14px 26px;
  padding: 16px 0;
}
.form-row__label {
  display: flex; align-items: center; gap: 10px;
  padding-top: 13px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.req {
  display: inline-flex; align-items: center;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 5px; line-height: 1;
}
.form-row__field { min-width: 0; }
/* layout.css の .field（ニュースレター用 margin-top:18px）をフォームカード内では無効化 */
.contact-form .field { margin-top: 0; }

/* セレクト（カスタムキャレット） */
.field-select { position: relative; }
.field-select select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer; padding-right: 44px;
}
.field-select__caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: var(--blue); pointer-events: none;
}
select.field:invalid, select.field option[value=""] { color: #aab6c0; }

textarea.field { min-height: 150px; resize: vertical; line-height: 1.8; }

.form-actions { margin-top: 26px; text-align: center; }
.form-actions .btn { min-width: 340px; padding-block: 19px; font-size: 16px; }

/* ---------- 下部の街並みデコ（フッター手前） ---------- */
.contact-deco {
  position: relative; height: clamp(110px, 15vw, 200px);
  background: url("../img/contact-footer.webp") center bottom / cover no-repeat;
  margin-top: -10px; pointer-events: none;
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 1000px) {
  .contact-hero__inner { min-height: 312px; }
  .contact-hero__bg { width: min(78%, 680px); background-position: right bottom; }
}

@media (max-width: 700px) {
  /* ヒーロー：タイトル→その下にイラスト（縦積み） */
  .contact-hero { display: flex; flex-direction: column; }
  .contact-hero__inner { order: 1; min-height: 0; padding-block: 14px 4px; }
  .crumbs { font-size: 11px; }
  .contact-hero__text { padding-top: 22px; }
  .contact-hero__title { font-size: 28px; }
  .title-rule { margin-top: 14px; }
  .contact-hero__bg {
    order: 2; position: static; inset: auto; right: auto;
    width: auto;
    /* 女性が少し右に来るように全体を右へ */
    margin: 6px calc(var(--pad) - 16px) 14px calc(var(--pad) + 16px);
    aspect-ratio: 1923 / 818;
    background-size: contain;
    background-position: center bottom;
    -webkit-mask-image: none; mask-image: none;
  }

  .contact-lead { gap: 12px; padding-top: 30px; }
  .contact-lead__spark { width: 20px; height: 24px; }

  .contact-form { padding: 22px 18px 28px; border-radius: 14px; }
  .form-row {
    grid-template-columns: 1fr; gap: 0; padding: 12px 0;
  }
  .form-row__label { padding-top: 0; font-size: 14.5px; margin-bottom: 8px; }
  .form-actions { margin-top: 12px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .contact-form-sec { padding-bottom: 26px; }
}
