@charset "UTF-8";

/* 離脱防止ポップアップ (#39 form02) — lp04 と同一デザイン。挙動は /assets/lp04/js/exit-popup.js を共用 */
.exitPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.exitPopup.is-active {
  display: block;
}

.exitPopup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.exitPopup__dialog {
  position: relative;
  width: 90%;
  max-width: 480px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.exitPopup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f08300;
  color: #fff;
  padding: 12px 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.exitPopup__title {
  flex: 1;
  text-align: center;
  margin: 0;
  padding-left: 24px; /* close-button と幅を合わせて中央寄せ */
  font-size: 1.6rem;
  font-weight: 700;
}

.exitPopup__close {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  cursor: pointer;
  padding: 0;
}

.exitPopup__body {
  padding: 20px 16px 8px;
  text-align: center;
}

.exitPopup__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.exitPopup__image.__pc { display: block; }
.exitPopup__image.__sp { display: none; }

.exitPopup__footer {
  padding: 8px 16px 16px;
  text-align: center;
}

.exitPopup__leave {
  display: inline-block;
  color: #888;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px 8px;
}

@media (max-width: 767px) {
  .exitPopup__dialog {
    width: 92%;
    max-width: 400px;
  }
  .exitPopup__title {
    font-size: 1.4rem;
  }
  .exitPopup__image.__pc { display: none; }
  .exitPopup__image.__sp { display: block; }
}
