/* ==========================================================================
 * フローティングCTAバナー（コラム記事用）
 * - 画面下部に固定表示
 * - スクロール量に応じて出現
 * - 閉じるボタン付き
 * ========================================================================== */

.p-floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 999;
  background-color: #0000D1;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  pointer-events: none;
  visibility: hidden;
}

.p-floating-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.p-floating-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 56px 16px 24px;
}

.p-floating-cta__link {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.p-floating-cta__link:hover {
  opacity: 0.9;
}

.p-floating-cta__text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.p-floating-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FCEB42;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.p-floating-cta__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-floating-cta__close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.p-floating-cta__close-icon {
  display: block;
  pointer-events: none;
}

/* PCでは改行を無効化、SPのみ改行を有効化 */
.p-floating-cta__br-sp {
  display: none;
}

/* バナー表示時に下部余白を確保（コンテンツ最下部が隠れないように） */
body.has-floating-cta {
  padding-bottom: 88px;
}

/* スマートフォン（横並びを維持しつつサイズを調整） */
@media (max-width: 767.98px) {
  .p-floating-cta__inner {
    gap: 12px;
    padding: 12px 44px 12px 12px;
  }

  .p-floating-cta__link {
    gap: 12px;
  }

  .p-floating-cta__text {
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }

  .p-floating-cta__br-sp {
    display: inline;
  }

  .p-floating-cta__btn {
    font-size: 12px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .p-floating-cta__close {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  body.has-floating-cta {
    padding-bottom: 72px;
  }

  /* バナー表示中はハンバーガーボタンをバナー分だけ上に持ち上げる */
  body.has-floating-cta .l-header-spnav__hamburger {
    bottom: calc(5.3333333333vw + 72px);
    transition: bottom 0.3s ease-out;
  }
}
