body { transition: background-color 0.3s ease, color 0.3s ease; }

/* Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s;
}

/* Dynamic Slider Colors based on Lang Class */
body.lang-ja input[type=range]::-webkit-slider-thumb { background: #2563eb; }
body.lang-ja input[type=range]::-webkit-slider-runnable-track { background: #e5e7eb; }

body.lang-fr input[type=range]::-webkit-slider-thumb { background: #ef4444; }
body.lang-fr input[type=range]::-webkit-slider-runnable-track { background: #cbd5e1; }

body.lang-en input[type=range]::-webkit-slider-thumb { background: #059669; }
body.lang-en input[type=range]::-webkit-slider-runnable-track { background: #d1fae5; }

/* Cookie Modal Overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Accordion Styles */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary i { transform: rotate(180deg); }

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner {
    margin: 30px auto;
    text-align: center;
}
.banner a {
    display: block;
}
.banner a img {
    margin: auto;
}

#header-common {
    padding: 0 0 30px;
}
#header-common .logo {
    position: relative;
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    color: #fff;
    padding-left: 50px;
    display: inline-block;
}
#header-common .logo:before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    background: url(../img/logo_white.png) no-repeat left center;
    background-size: contain;
    width: 50px;
    height: 50px;
}
#commun-tool {
    padding: 20px 0;
}
#commun-tool a {
    font-size: 14px;
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #2563EB;
}