/* =============================================================================
   sticky-cta.css / モバイル画面下部の固定CTAバー
   ≤768px のみ表示、デスクトップでは非表示
   電話／LINE／フォーム の3ボタンを均等配置
   ============================================================================= */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}

.sticky-cta__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background 0.15s, transform 0.1s;
  min-height: 56px;
}

.sticky-cta__btn:active {
  transform: translateY(1px);
}

.sticky-cta__btn svg {
  display: block;
}

.sticky-cta__btn--tel {
  background: #091726;
  color: #fff;
}
.sticky-cta__btn--tel:active {
  background: #0d2137;
}

.sticky-cta__btn--form {
  background: #e07850;
  color: #fff;
}
.sticky-cta__btn--form:active {
  background: #c86640;
}

/* モバイル表示（≤768px）で固定CTAを表示
   ・body padding を使うと最終要素（footer）と sticky CTA の間に body 背景が露出するため
   ・footer に padding-bottom を追加 → footer の濃紺が sticky CTA の背後まで連続 */
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
  }

  .g-footer {
    padding-bottom: calc(32px + 72px);
  }
  @supports (padding: env(safe-area-inset-bottom)) {
    .g-footer {
      padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom, 0px));
    }
  }
}

/* 極狭幅（≤380px）：ボタン内テキスト・パディングを圧縮 */
@media (max-width: 380px) {
  .sticky-cta { padding: 6px; gap: 6px; }
  .sticky-cta__btn {
    min-height: 48px;
    font-size: 10px;
    padding: 8px 2px;
    gap: 2px;
  }
  .g-footer {
    padding-bottom: calc(24px + 62px);
  }
  @supports (padding: env(safe-area-inset-bottom)) {
    .g-footer {
      padding-bottom: calc(24px + 62px + env(safe-area-inset-bottom, 0px));
    }
  }
}

/* 印刷時は非表示 */
@media print {
  .sticky-cta { display: none !important; }
}
