/* ==========================================================================
   Contact page (Figma node 13:94 "CONTACT")
   ========================================================================== */

/* ページラベル(Figma: "CONTACT" 78.5 x 10 / cap height 10px) */
.page-label {
  font-size: 14px;
  letter-spacing: 1.1px;
  line-height: 30px;
}

.contact-hero {
  padding-top: 24px;
  padding-bottom: 0;
  position: relative;
}

.contact-hero__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.25;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.contact-hero__lead {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 36px;
  /* Figma: 4行・幅534px */
  max-width: 560px;
  margin-bottom: 32px;
}

/* Figma: 301 x 58 のボックス、テキストは中央揃え */
.contact-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 301px;
  height: 58px;
  border: 1px solid var(--color-border);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.8px;
}

/* Figma: CTA下端→フッター上端が544px、その中に502pxのイラストが入る */
.contact-illust {
  padding-top: 20px;
  padding-bottom: 22px;
  position: relative;
}

.contact-illust img {
  display: block;
  width: 100%;
  max-width: 1286px;
  height: auto;
}

.contact-illust__caption {
  position: absolute;
  right: 8%;
  bottom: 12%;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.3);
  text-align: right;
}

@media (max-width: 700px) {
  .contact-illust__caption {
    position: static;
    text-align: left;
    margin-top: 16px;
  }
}

/* ---- Contact form ----------------------------------------------------- */
.contact-form {
  padding-top: 40px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* Figma: 入力欄の幅は1043px(ページ左ガター62pxから) */
.form-field {
  max-width: 1043px;
  margin-bottom: 32px;
}

.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: #ffffff;
  box-sizing: border-box;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-fg);
}

/* Figma: 入力欄の高さ 62px */
.form-field input {
  height: 62px;
}

/* Figma: テキストエリアの高さ 350px */
.form-field textarea {
  height: 350px;
  min-height: 120px;
  padding: 20px 28px;
  line-height: 1.5;
  resize: vertical;
}

/* バリデーションエラー時: MW WP Form が入力欄の直後に出す span.error を目印に、欄の背景を薄いピンクにする */
.form-field:has(.error) input,
.form-field:has(.error) textarea {
  background: #fdeef0;
}

/* Figma: 254 x 56 のボックス、テキストは中央揃え。ボタン自体もフォーム幅の中央に配置 */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 254px;
  height: 56px;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  background: none;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}

/* ---- Thank you page ----------------------------------------------------- */
.thankyou {
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(80px, 12vw, 140px);
  text-align: center;
}

.thankyou__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
}

.thankyou__subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  /* Figma: サブタイトルのベースラインから本文のベースラインまで91px */
  margin-bottom: 72px;
}

.thankyou__body {
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 40px;
}

/* Figma: 254 x 56 のボックス、テキストは中央揃え */
.thankyou__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 254px;
  height: 56px;
  border: 1px solid var(--color-border);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
}
