/* ========================================
   Cookie同意バナー
   BBウェブサイト用
======================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(61, 77, 82, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: var(--spacing-lg) var(--spacing-md);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-link {
    color: #6B9BD1;
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-consent-link:hover {
    color: #4A7FB8;
}

.cookie-consent-button {
    flex-shrink: 0;
    padding: 0.75rem 2rem;
    background-color: #6B9BD1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-consent-button:hover {
    background-color: #4A7FB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 155, 209, 0.4);
}

.cookie-consent-button:active {
    transform: translateY(0);
}

.cookie-consent-button:focus {
    outline: 3px solid rgba(107, 155, 209, 0.5);
    outline-offset: 2px;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: var(--spacing-md);
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .cookie-consent-text {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .cookie-consent-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .cookie-consent-text {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .cookie-consent-button {
        font-size: 0.95rem;
    }
}

/* アクセシビリティ: モーション軽減設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: opacity 0.2s ease;
    }
    
    .cookie-consent-banner.show {
        transform: none;
    }
}

/* 印刷時は非表示 */
@media print {
    .cookie-consent-banner {
        display: none;
    }
}
