/* Cookie同意バナーのスタイル */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cookie-btn-accept {
    background-color: #27ae60;
    color: white;
}

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

.cookie-btn-decline {
    background-color: #e74c3c;
    color: white;
}

.cookie-btn-decline:hover {
    background-color: #c0392b;
}

.cookie-btn-settings {
    background-color: #3498db;
    color: white;
}

.cookie-btn-settings:hover {
    background-color: #2980b9;
}

/* Cookie設定モーダル */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.cookie-settings-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cookie-category h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 必要なクッキー（操作不可）のスタイル */
.cookie-category-required {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.cookie-required-label {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: normal;
}

.switch-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.slider-disabled {
    cursor: not-allowed;
    background-color: #e9ecef !important;
}

.slider-disabled:before {
    background-color: #6c757d !important;
}

.cookie-category-required h3 {
    color: #495057;
}

.cookie-category-required p strong {
    color: #dc3545;
    font-size: 0.9em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Cookie設定フロートボタン */
.cookie-settings-float {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1001 !important;
    display: none;
    pointer-events: auto;
    width: 50px;
    height: 50px;
}

.cookie-settings-float.show {
    display: block !important;
}

.cookie-settings-float button {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: rgba(44, 62, 80, 0.8) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    outline: none !important;
    backdrop-filter: blur(4px) !important;
}

.cookie-settings-float button:hover {
    background-color: rgba(52, 73, 94, 0.9) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.cookie-settings-float button:active {
    transform: scale(0.95) !important;
}

.cookie-settings-float svg {
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* 完全透過バージョン（コメントアウト時に使用）
.cookie-settings-float button {
    background-color: transparent !important;
    box-shadow: none !important;
}

.cookie-settings-float button:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
*/

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cookie-settings-float {
        bottom: 15px !important;
        left: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .cookie-settings-float button {
        width: 45px !important;
        height: 45px !important;
    }
    
    .cookie-settings-float svg {
        width: 20px !important;
        height: 20px !important;
    }
}