/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C2C2C;
    color: #FFF8E7;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFF8E7;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: #4169E1;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #DC143C;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.cookie-btn.accept {
    background-color: #4169E1;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #2C5FDF;
}

.cookie-btn.reject {
    background-color: transparent;
    color: #FFF8E7;
    border: 1px solid #FFF8E7;
}

.cookie-btn.reject:hover {
    background-color: #FFF8E7;
    color: #2C2C2C;
}

.cookie-btn.customize {
    background-color: #DC143C;
    color: white;
}

.cookie-btn.customize:hover {
    background-color: #B91C3C;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.cookie-category input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #4169E1;
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.cookie-category p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    margin-left: 30px;
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.cookie-modal-buttons .cookie-btn {
    padding: 12px 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .cookie-modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-text h3 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}