.scroll-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.scroll-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 560px;
  max-width: calc(100% - 32px);
  padding: 38px 28px 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -45%);
  transition: 0.3s ease;
  box-sizing: border-box;
}

.scroll-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 6px;
  background: #0066FF;
  border-radius: 14px 14px 0 0;
}

.scroll-popup-overlay.is-show,
.scroll-popup.is-show {
  opacity: 1;
  visibility: visible;
}

.scroll-popup.is-show {
  transform: translate(-50%, -50%);
}

.scroll-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

.scroll-popup__label {
  display: inline-block;
  background-color: #FFD700 !important;
  color: #333333 !important;
  font-size: 11px !important;
  font-weight: bold !important;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 12px;
}

.scroll-popup__sub {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #0066FF;
  line-height: 1.6;
}

.scroll-popup__logo{
  margin: 0 0 14px;
}

.scroll-popup__logo img{
  display:block;
  width:auto;
  max-width:220px;
  max-height:60px;
  height:auto;
  margin:0 auto;
}

.scroll-popup__title {
  margin: 0 0 28px;
  font-size: 23px;
  line-height: 1.8;
  font-weight: 700;
  color: #222;
}

.scroll-popup__title span {
  display: inline;
  background: linear-gradient(
    transparent 68%,
    #D7E8FF 68%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.scroll-popup__title span + span::before {
  content: "\A";
  white-space: pre;
}

.scroll-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  font-size: 16px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  text-decoration: none !important;
  background-color: #FF3333 !important;
  border: none !important;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 51, 51, 0.25);
}

.scroll-popup__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 51, 51, 0.35);
}

@media (max-width: 767px) {
  .scroll-popup {
    width: calc(100% - 32px);
    padding: 36px 18px 24px;
  }

  .scroll-popup__sub {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .scroll-popup__title {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .scroll-popup__title span + span::before {
    content: "";
  }

.scroll-popup__logo{
  margin-bottom:18px;
}

.scroll-popup__logo img{
  max-width:180px;
}
}

/*サイドバー固定*/

@media (min-width: 768px) {
  .widget:has(.sidebar-banner-sticky) {
    position: sticky;
    top: 40px;
    z-index: 10;
  }
}

.sidebar-banner-sticky img {
  display: block;
  width: 100%;
  height: auto;
}

/*追従フッター*/

.footer-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;

  width: 100%;
  box-sizing: border-box;

  background: #f5f8ff;
  border-top: 4px solid #0066ff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

.footer-cta.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 60px 14px 20px;
  box-sizing: border-box;
}

/* ロゴエリア：PCでは一番左に配置 */
.footer-cta__logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.footer-cta__recommend {
  margin-bottom: 4px;

  color: #0066ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.footer-cta__logo {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;
}

.footer-cta__logo img {
  display: block;

  width: auto;
  max-width: 160px;
  max-height: 44px;
  height: auto;

  margin: 0;
}

/* 訴求文 */
.footer-cta__copy {
  flex: 0 0 auto;

  color: #333;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-cta__copy-main {
  font-size: 18px;
  font-weight: 700;
}

.footer-cta__copy-sub {
  margin-top: 2px;

  color: #555;
  font-size: 15px;
  font-weight: 400;
}

/* CTAボタン */
.footer-cta .spoba-btn-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: auto;
  margin: 0;
  padding: 0;
}

.footer-cta .spoba-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  margin: 0;

  white-space: nowrap;
}

.footer-cta__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;

  padding: 2px;

  background: transparent;
  border: none;

  color: #666;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

@media (max-width: 767px) {
  .footer-cta__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    padding: 14px 44px;
    box-sizing: border-box;

    text-align: center;
  }

  .footer-cta__logo-area {
    order: 1;

    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer-cta__recommend {
    margin-bottom: 3px;

    font-size: 11px;
    text-align: center;
  }

  .footer-cta__logo {
    width: 100%;
    justify-content: center;
  }

  .footer-cta__logo img {
    max-width: 130px;
    max-height: 40px;
    margin: 0 auto;
  }

  .footer-cta__copy {
    order: 2;

    width: 100%;

    white-space: normal;
    text-align: center;
  }

  .footer-cta__copy-main {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-cta__copy-sub {
    margin-top: 2px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }

  .footer-cta .spoba-btn-wrap {
    order: 3;

    display: flex;
    justify-content: center;

    width: 100%;
    margin: 0;
  }

  .footer-cta .spoba-btn-link {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;

    white-space: nowrap;
  }

  .footer-cta__close {
    top: 9px;
    right: 10px;

    font-size: 21px;
  }
}


/* 詳細を見るボタン */

.spoba-btn-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    min-width: 0;
}

.spoba-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #0066FF 0%, #00D1C1 100%) !important;
    border: none !important;
    border-radius: 8px;
    box-sizing: border-box;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}