/* ===================================
   Sticky CTA (Bottom Bar)
   =================================== */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fcd34d 0%, #f97316 50%, #c2410c 100%);
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta .container {
    position: relative;
}

.sticky-cta-close {
    position: absolute;
    top: -8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    z-index: 10;
}

.sticky-cta-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-cta-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.sticky-cta-text i {
    font-size: 28px;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sticky-cta-message {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-cta-message strong {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.sticky-cta-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.sticky-cta-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sticky-btn-primary,
.sticky-btn-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticky-btn-primary {
    background: white;
    color: #f97316;
}

.sticky-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ea580c;
}

.sticky-btn-phone {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.sticky-btn-phone:hover {
    background: white;
    color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sticky-btn-primary i,
.sticky-btn-phone i {
    font-size: 18px;
}

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

    .sticky-cta-content {
        gap: 15px;
    }

    .sticky-cta-text i {
        font-size: 24px;
    }

    .sticky-cta-message strong {
        font-size: 16px;
    }

    .sticky-cta-sub {
        font-size: 12px;
    }

    .sticky-btn-primary,
    .sticky-btn-phone {
        padding: 10px 20px;
        font-size: 15px;
    }

    .sticky-btn-primary span,
    .sticky-btn-phone span {
        display: inline;
    }
}

/* スマホ対応 */
@media (max-width: 576px) {
    .sticky-cta {
        padding: 8px 0;
    }

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

    .sticky-cta-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .sticky-cta-text {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .sticky-cta-text i {
        font-size: 20px;
    }

    .sticky-cta-message {
        text-align: center;
    }

    .sticky-cta-message strong {
        font-size: 14px;
    }

    .sticky-cta-sub {
        font-size: 11px;
    }

    .sticky-cta-buttons {
        width: 100%;
        gap: 8px;
    }

    .sticky-btn-primary,
    .sticky-btn-phone {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
        justify-content: center;
    }

    .sticky-btn-primary i,
    .sticky-btn-phone i {
        font-size: 16px;
    }

    .sticky-btn-primary span,
    .sticky-btn-phone span {
        font-size: 13px;
    }
}

/* 超小型スマホ対応 */
@media (max-width: 360px) {
    .sticky-cta-message strong {
        font-size: 13px;
    }

    .sticky-btn-primary,
    .sticky-btn-phone {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sticky-btn-primary span,
    .sticky-btn-phone span {
        font-size: 12px;
    }
}

/* お問い合わせフォームセクションでは非表示 */
.contact ~ .sticky-cta {
    display: none;
}

/* スクロール時のアニメーション */
.sticky-cta.hide {
    transform: translateY(100%);
}
