/**
 * Contact Floating Badge Styles
 * 
 * 右下固定のお問い合わせ件数バッジ
 */

.contact-floating-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.contact-floating-badge.show {
    opacity: 1;
    transform: translateX(0);
}

.floating-badge-link {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0071bc 100%);
    color: white;
    border-radius: 25px;
    padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(0, 123, 191, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 240px;
    border: none;
    cursor: pointer;
}

.floating-badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 191, 0.4);
    color: white;
    text-decoration: none;
}

.floating-badge-link:active {
    transform: translateY(0);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 18px;
    height: 18px;
}

.badge-text {
    flex: 1;
    min-width: 0;
}

.badge-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

/* ほんのり脈打つアニメーション */
.contact-floating-badge.show {
    animation: pulse 3s infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 123, 191, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 123, 191, 0.5), 0 0 0 4px rgba(0, 123, 191, 0.1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-floating-badge {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-badge-link {
        padding: 10px 14px;
        max-width: 180px;
        border-radius: 20px;
    }
    
    .badge-message {
        font-size: 12px;
    }
    
    .badge-content {
        gap: 6px;
    }
    
    .badge-icon {
        width: 14px;
        height: 14px;
    }
    
    .badge-icon svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .contact-floating-badge {
        bottom: 10px;
        right: 10px;
    }
    
    .floating-badge-link {
        padding: 8px 12px;
        max-width: 160px;
        border-radius: 18px;
    }
    
    .badge-message {
        font-size: 11px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .floating-badge-link {
        border: 2px solid white;
    }
}

/* モーション設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    .contact-floating-badge {
        animation: none;
        transition: none;
    }
    
    .contact-floating-badge.show {
        animation: none;
        opacity: 1;
        transform: translateX(0);
    }
    
    .floating-badge-link {
        transition: none;
    }
    
    .floating-badge-link:hover {
        transform: none;
    }
}