/* SP booking UI test: peripheral-noise cleanup */

/* フォーム前の長文・電話案内 */
#booking-news-box,
#aplTelephone {
  display: none !important;
}

/* 空要素 */
#topicPath,
.b_modttl7:empty {
  display: none !important;
}

/* 旧サイト回遊リンク */
#bT_s_menu,
#b_footrnavi {
  display: none !important;
}

/* キャンペーンバナーは小さく残す */
#txt_special {
  width: 100% !important;
  height: auto !important;
  padding: 22px 16px 10px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

#txt_special img {
  display: block !important;
  width: 88% !important;
  max-width: 380px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* ステップ表示との間隔 */
.b_modflow {
  margin-top: 8px !important;
}

/* フォーム開始位置 */
#main,
#lessonFlow {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* フッターは著作権表示だけ残す */
#b_footer {
  min-height: 0 !important;
  padding: 18px 10px !important;
  border-top: 1px solid #eadfe2 !important;
  box-sizing: border-box !important;
}

#b_footer .b_copyright {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  color: #8b7d80 !important;
  text-align: center !important;
}

/* High-resolution centered logo */
#b_header {
  height: auto !important;
  min-height: 0 !important;
  padding: 20px 0 12px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

#b_site-logo {
  position: static !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

#b_site-logo .sp-booking-logo {
  display: block !important;
  width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* Confirmation actions */
.sp-confirm-actions {
  width: 100%;
  margin: 34px auto 0 !important;
  padding: 0 14px;
  box-sizing: border-box;
  text-align: center;
}

.sp-confirm-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 6px;
  background: #ed3b7d;
  box-shadow: 0 7px 16px rgba(237, 59, 125, 0.20);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sp-confirm-submit:active {
  background: #d92f6e;
  transform: translateY(1px);
}

#h-back {
  margin: 22px 0 34px !important;
  padding: 0 !important;
  text-align: center !important;
}

#h-back a {
  display: inline-block;
  padding: 10px 14px;
  color: #69565b !important;
  font-size: 15px !important;
  line-height: 1.5;
  text-decoration: underline;
}

#utilities {
  display: none !important;
}

/* Modern SP thanks page */
.sp-thanks {
  margin: 8px 14px 34px !important;
  padding: 30px 18px 28px !important;
  border: 1px solid #efdde3;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
}

.sp-thanks-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ed3b7d;
  box-shadow: 0 7px 18px rgba(237, 59, 125, 0.22);
  color: #fff;
  font-size: 31px;
  font-weight: 700;
}

#aplInternet.sp-thanks h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: none !important;
  color: #48252f !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.sp-thanks-lead {
  margin: 0 0 25px !important;
  color: #3d3034;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.8 !important;
}

.sp-thanks-next,
.sp-thanks-material {
  margin: 0 0 22px;
  padding: 19px 17px;
  border: 1px solid #f0d5df;
  border-radius: 8px;
  background: #fff8fa;
  text-align: left;
}

.sp-thanks-next h3,
.sp-thanks-material h3 {
  margin: 0 0 10px;
  color: #48252f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.sp-thanks-next p,
.sp-thanks-material p {
  margin: 7px 0;
  color: #47393d;
  font-size: 15px;
  line-height: 1.75;
}

.sp-thanks-material a {
  display: inline-block;
  margin-top: 8px;
  color: #d82f70 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.sp-thanks-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 25px;
  padding: 13px 16px;
  border-radius: 6px;
  background: #ed3b7d;
  box-shadow: 0 7px 16px rgba(237, 59, 125, 0.20);
  box-sizing: border-box;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none !important;
}

/* 完了ページでは古い資料請求ポップアップを表示しない */
.remodal,
.remodal-bg {
  display: none !important;
}

/* Disable legacy thanks-page Remodal completely */
.remodal,
.remodal-bg,
.remodal-overlay,
.remodal-wrapper {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.remodal-is-locked,
body.remodal-is-locked {
  overflow: auto !important;
}

/* Modern SP validation error page */
#aplInternet.sp-error {
  margin: 12px 14px 36px !important;
  padding: 26px 18px 28px !important;
  border: 1px solid #efdde3 !important;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

#aplInternet.sp-error > h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: none !important;
  color: #48252f !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

#aplInternet.sp-error .message_a > p {
  margin: 0 0 18px !important;
  color: #47393d;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

#aplInternet.sp-error .form_confirm.box {
  margin: 0 !important;
  padding: 18px 16px 22px !important;
  border: 1px solid #f0d5df !important;
  border-radius: 8px;
  background: #fff8fa !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

#aplInternet.sp-error .errors {
  margin: 0 0 22px;
  color: #cf215d !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.65 !important;
  text-align: left;
}

#aplInternet.sp-error .errors font {
  color: #cf215d !important;
}

#aplInternet.sp-error .mt40 {
  margin: 0 !important;
  padding: 0 !important;
}

.sp-error-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid #dfc9d0;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  color: #5e464d !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none !important;
}
