/**
 * CTAスティッキーボタン - アイリィデザイン
 * 価格表ページ用の固定CTAバー
 */

/* ==========================================
   CTAスティッキーバー コンテナ
   ========================================== */
.cta-sticky-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #ff6b35;
}

.cta-sticky-bar.cta-sticky-visible {
    bottom: 0;
}

/* ==========================================
   CTAボタンコンテナ
   ========================================== */
.cta-sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================
   CTAボタン共通スタイル
   ========================================== */
.cta-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-sticky-btn i {
    font-size: 16px;
}

/* プライマリボタン（見積り/注文） */
.cta-sticky-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cta-sticky-btn-primary:hover {
    background: linear-gradient(135deg, #ff5722 0%, #e68a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    color: #fff;
    text-decoration: none;
}

/* セカンダリボタン（お問い合わせ） */
.cta-sticky-btn-secondary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-sticky-btn-secondary:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: #fff;
    text-decoration: none;
}

/* アウトラインボタン（入稿） */
.cta-sticky-btn-outline {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.cta-sticky-btn-outline:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================
   価格表示テキスト
   ========================================== */
.cta-sticky-price {
    display: none;
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.cta-sticky-price strong {
    color: #ff6b35;
    font-size: 18px;
}

/* ==========================================
   閉じるボタン
   ========================================== */
.cta-sticky-close {
    position: absolute;
    top: -12px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
}

.cta-sticky-close:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

/* タブレット */
@media (max-width: 991px) {
    .cta-sticky-bar {
        padding: 10px 0;
    }

    .cta-sticky-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .cta-sticky-btn i {
        font-size: 14px;
    }
}

/* スマートフォン */
@media (max-width: 767px) {
    .cta-sticky-bar {
        padding: 8px 0;
    }

    .cta-sticky-container {
        gap: 8px;
        padding: 0 10px;
    }

    .cta-sticky-btn {
        padding: 10px 14px;
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }

    .cta-sticky-btn i {
        font-size: 14px;
    }

    /* スマホでは3ボタンを横並びに */
    .cta-sticky-btn span {
        display: none;
    }

    .cta-sticky-btn i {
        margin: 0;
    }

    .cta-sticky-price {
        display: none !important;
    }

    .cta-sticky-close {
        top: -10px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* 小さいスマートフォン */
@media (max-width: 374px) {
    .cta-sticky-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* ==========================================
   デスクトップ拡張（価格表示あり）
   ========================================== */
@media (min-width: 992px) {
    .cta-sticky-price {
        display: block;
    }

    .cta-sticky-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   アニメーション
   ========================================== */
@keyframes cta-sticky-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
}

.cta-sticky-btn-primary.cta-sticky-pulse {
    animation: cta-sticky-pulse 2s infinite;
}

/* ==========================================
   非表示状態（閉じた後）
   ========================================== */
.cta-sticky-bar.cta-sticky-hidden {
    bottom: -100px !important;
    pointer-events: none;
}
