/* ==========================================================================
   campaignlp 共通（pg系・lp系）: 上部追従CTAバー（無料カウンセリング予約 / 簡単LINE予約）
   読み込み: 各LPの style.css の後に
     <link rel="stylesheet" href="/campaignlp/common/sticky-cta.css">
   設置: <body> 直下（GTM noscript の後）に .pg-sticky-cta スニペットを置く
   カウンセリングボタン: フォーム一体型LP（lp系）は #counseling-form、pg系は各LPの既存CTAと同じ別ページ
   ページごとの色は .pg-sticky-cta の style 属性で --pg-sticky-accent を上書きできる
   ========================================================================== */

:root {
  --pg-sticky-h: 64px;
  --pg-sticky-accent: #58bcea;
  --pg-sticky-line: #06c755;
}

/* バーの高さ分だけ本文を下げる（LP側の body 指定は margin:0 のみなので衝突しない） */
body {
  padding-top: var(--pg-sticky-h);
}

/* ページ内アンカー（00005 の #sixth 等）の飛び先がバーの下に隠れないようにする */
html {
  scroll-padding-top: var(--pg-sticky-h);
}

.pg-sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  height: var(--pg-sticky-h);
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.pg-sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.pg-sticky-cta__nav {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
}

.pg-sticky-cta .pg-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 200px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.pg-sticky-cta .pg-sticky-cta__btn:hover {
  opacity: 0.85;
}

.pg-sticky-cta .pg-sticky-cta__btn--counseling {
  background: var(--pg-sticky-accent);
}

.pg-sticky-cta .pg-sticky-cta__btn--line {
  background: var(--pg-sticky-line);
}

.pg-sticky-cta .pg-sticky-cta__btn img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* スマホ: ボタン2つで幅を分け合う */
@media screen and (max-width: 767px) {
  :root {
    --pg-sticky-h: 56px;
  }

  .pg-sticky-cta__inner {
    gap: 8px;
    padding: 0 10px;
  }

  .pg-sticky-cta__nav {
    flex: 1 1 auto;
    gap: 6px;
  }

  .pg-sticky-cta .pg-sticky-cta__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .pg-sticky-cta .pg-sticky-cta__btn img {
    width: 16px;
    height: 16px;
  }
}
