/* =========================================================
   お問い合わせフォーム（PHP）用の追加スタイル
   LP（index.html）と contact/ の各画面で読み込む
   ========================================================= */

/* ハニーポット: 人には見せず、スクリーンリーダーにも読ませない */
.p-contact__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- contact/ の独立ページ ---------- */
.p-contact--page {
  min-height: 100vh;
  padding-top: calc(var(--section-pad) + 40.96px);  /* 固定ヘッダーの高さ分 */
}

.p-contact__steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.p-contact__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-contact__step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-input-border);
  color: var(--color-white);
  font-size: 0.8125rem;
}

.p-contact__step.is-current {
  color: var(--color-text);
}

.p-contact__step.is-current .p-contact__step-num {
  background: var(--grad);
}

/* エラー・お知らせ */
.p-contact__alert {
  margin-bottom: 8px;
  padding: 16px;
  border: 2px solid var(--color-required);
  border-radius: 4px;
  background: rgb(222 0 0 / 0.04);
  color: var(--color-required);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-contact__alert ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-weight: 400;
}

.p-contact__alert a {
  color: inherit;
  text-decoration: underline;
}

.p-contact__error {
  display: block;
  padding: 8px 16px;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

/* 完了・エラー画面 */
.p-contact__message {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.8;
  text-align: center;
  word-break: auto-phrase;      /* 狭い幅で「た。」だけ次行に落ちないよう文節で折り返す */
}

.p-contact__message-title {
  font-size: 1.125rem;
  font-weight: 900;
}

a.p-contact__submit {
  text-align: center;
  text-decoration: none;
}

/* 送信中（二重送信防止で無効化したボタン） */
.p-contact__submit:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .p-contact--page {
    padding-top: calc(var(--section-pad) + 64px);
  }

  .p-contact__steps {
    gap: 40px;
    font-size: 1rem;
  }

  .p-contact__message {
    padding-block: 64px;
  }
}

/* ---------- 完了画面（Figma「TOP WebTeam+」177:447） ----------
   PC のみデザインあり。SP は LP の SP 版の文字組みに合わせてこちらで決めた */
.p-thanks-page {
  background: var(--color-bg-page);
}

.p-thanks {
  padding-bottom: 54px;         /* Figma: 本文の枠の下端（749）からフッター（803）まで */
}

/* KV 帯。背景の重ね方は LP の KV（.p-kv）と同じ */
.p-thanks__hero {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 40.96px var(--gutter) 0;  /* 固定ヘッダーの高さ分 */
  border-radius: 0 0 32px 32px;
  background: linear-gradient(90deg, rgb(245 184 0 / 0.2) 0%, rgb(240 78 35 / 0.2) 50%, rgb(212 0 106 / 0.2) 100%);
}

.p-thanks__hero::before,
.p-thanks__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.p-thanks__hero::before {
  /* bg-texture.webp は Figma の画像フィルタ（色温度 +1.0 / 色合い -0.4）を焼き込み済み。ここは FILL（cover） */
  background: url("../img/bg-texture.webp") center / cover no-repeat;
  opacity: 0.5;
}

.p-thanks__hero::after {
  background: linear-gradient(142.74deg, rgb(255 255 255 / 0) 6.66%, rgb(255 255 255 / 0.65) 51.04%, rgb(255 255 255 / 0) 95.42%);
}

.p-thanks__title {
  font-size: 1.6875rem;         /* SP は LP の見出し（.c-heading__title）に合わせる */
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}

.p-thanks__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: calc(600px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 48px var(--gutter);
  text-align: center;
  word-break: auto-phrase;      /* 狭い幅で「た。」だけ次行に落ちないよう文節で折り返す */
}

.p-thanks__lead {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.p-thanks__text {
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* 枠線は Figma ではグラデーションの内側ストローク 2px。padding は枠線分を引いた 20px / 80px */
.p-thanks__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px 80px;
  border: 2px solid transparent;
  border-radius: 80px;
  background:
    linear-gradient(var(--color-bg-page), var(--color-bg-page)) padding-box,
    var(--grad) border-box;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

@media (hover: hover) {
  .p-thanks__button:hover {
    background: var(--grad) border-box;
    color: var(--color-white);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-thanks__button {
    transition: none;
  }
}

@media (min-width: 768px) {
  .p-thanks__hero {
    align-items: flex-start;
    height: 320px;
    padding-top: 166px;         /* Figma: 見出しの上端 */
    border-radius: 0 0 56px 56px;
  }

  .p-thanks__title {
    font-size: 2.5rem;
  }

  .p-thanks__body {
    gap: 50px;
    padding-block: 80px;
  }

  .p-thanks__lead {
    font-size: 1.75rem;
  }

  .p-thanks__text {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
}
