/*▼確認ページ・サンクスページ▼*/

.be-subpage {
  width: 100vw;
  max-width: none;
  min-height: 62vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #fff;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .78)),
    url("../img/backgrounds/bg1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(72px, 8vw, 120px) 16px;
}

.be-subpage,
.be-subpage * {
  box-sizing: border-box;
}

.be-subpage__inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.be-subpage__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.be-subpage__alert {
  margin: 0 0 1.4em;
  color: #ff414d;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.be-subpage__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
}

.be-subpage__lead {
  margin: 1.2em 0 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.9;
}

.be-subpage__form {
  padding: 0;
  background: rgba(15, 15, 22, 0.94);
  border-radius: 18px;
  box-shadow:
    0 0 24px rgba(80, 194, 194, 0.42),
    0 0 44px rgba(80, 194, 194, 0.18);
}

/* 確認画面内のCF7表示調整 */
.be-subpage__form .wpcf7 {
  width: 100%;
}

.be-subpage__form p {
  margin: 0 0 1.3em;
}

.be-subpage__form label,
.be-subpage__form .wpcf7-form-control-wrap {
  color: #fff;
}

.be-subpage__form input[type="text"],
.be-subpage__form input[type="email"],
.be-subpage__form input[type="tel"],
.be-subpage__form input[type="url"],
.be-subpage__form input[type="number"],
.be-subpage__form textarea,
.be-subpage__form select {
  width: 100%;
  min-height: 48px;
  padding: 0.75em 1em;
  color: #111;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
}

.be-subpage__form textarea {
  min-height: 180px;
  resize: vertical;
}

.be-subpage__form input[type="submit"],
.be-subpage__form button,
.be-subpage__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 100%);
  min-height: 56px;
  padding: 0.9em 1.6em;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2f59c9 0%, #9b7fca 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}

.be-subpage__form input[type="submit"]:hover,
.be-subpage__form button:hover,
.be-subpage__form .wpcf7-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* 戻るボタンがinput/buttonで出る場合の調整 */
.be-subpage__form input[value*="戻る"],
.be-subpage__form button[value*="戻る"] {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

/* サンクスページ */
.be-thanks-page {
  display: grid;
  align-items: center;
}

.be-thanks-page__inner {
  width: min(640px, 100%);
}

.be-thanks-card {
  text-align: center;
}

.be-thanks-card__catch {
  margin: 0 0 clamp(24px, 4vw, 36px);
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.8;
}

.be-thanks-card__message {
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: 1.1em 1.4em;
  color: #fff;
  font-weight: 700;
  line-height: 1.8;
  background: linear-gradient(90deg, #2f59c9 0%, #9b7fca 100%);
}

.be-thanks-card__message p {
  margin: 0;
}

.be-thanks-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 100%);
  min-height: 56px;
  padding: 0.9em 1.6em;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #2f59c9;
  border-radius: 4px;
  background: transparent;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.be-thanks-card__button:hover {
  color: #fff;
  background: linear-gradient(90deg, #2f59c9 0%, #9b7fca 100%);
  transform: translateY(-2px);
}

@media screen and (max-width: 959px) {
  .be-subpage {
    padding: 56px 16px;
  }

  .be-subpage__form {
    padding: 24px 18px;
  }

  .be-subpage__form input[type="submit"],
  .be-subpage__form button,
  .be-subpage__form .wpcf7-submit {
    width: 100%;
  }

  .be-thanks-card__button {
    width: 100%;
  }
}