/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1E3A5F;
    color: #F5F3F0;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #E8E6E3;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #F5F3F0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background-color 0.2s ease;
}

.cookie-btn.accept {
    background-color: #F5F3F0;
    color: #1E3A5F;
}

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

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

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

.cookie-btn.customize {
    background-color: #5A5A5A;
    color: #F5F3F0;
}
/* Cookie Preferences Modal */
.cookie-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}
/* Responsive design for cookie banner */
.cookie-preferences.show {
    display: flex;
}
@media (max-width: 768px) {
.cookie-modal {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #2C2C2C;
}
    .cookie-content {
.cookie-modal h3 {
    font-family: 'Noto Serif JP', serif;
    color: #1E3A5F;
    margin-bottom: 1rem;
}
        flex-direction: column;
.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #E8E6E3;
    border-radius: 8px;
}
        text-align: center;
.cookie-category h4 {
    font-family: 'Noto Serif JP', serif;
    color: #1E3A5F;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
        gap: 1rem;
.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}
    }
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
    
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
    .cookie-content p {
.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
        min-width: unset;
.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
    }
input:checked + .cookie-slider {
    background-color: #1E3A5F;
}
    
input:checked + .cookie-slider:before {
    transform: translateX(26px);
}
    .cookie-buttons {
input:disabled + .cookie-slider {
    background-color: #1E3A5F;
    opacity: 0.6;
    cursor: not-allowed;
}
        justify-content: center;
.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}
        width: 100%;
.cookie-modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
}
    }
.btn-save-preferences {
    background-color: #1E3A5F;
    color: #FFFFFF;
}
}
.btn-save-preferences:hover {
    background-color: #2A4A6B;
}

.btn-cancel {
    background-color: #E8E6E3;
    color: #1E3A5F;
}
.cookie-btn.customize:hover {
.btn-cancel:hover {
        padding: 1.5rem;
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
}
        flex-direction: column;