/* Cookie同意バナー */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-top: 2px solid #000000;
}

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

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

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: #666666;
    text-decoration: underline;
}

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

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #000000;
    color: white;
    border: 2px solid #000000;
}

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

.cookie-btn-settings {
    background: #f8f8f8;
    color: #000000;
    border: 2px solid #000000;
}

.cookie-btn-settings:hover {
    background: #e5e5e5;
}

.cookie-btn-reject {
    background: transparent;
    color: #666666;
    border: 2px solid #999999;
}

.cookie-btn-reject:hover {
    background: #f8f8f8;
    color: #000000;
}

/* Cookie設定モーダル */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-modal {
    background: white;
    border-radius: 0;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid #000000;
}

.cookie-settings-overlay.show .cookie-settings-modal {
    transform: scale(1) translateY(0);
}

.cookie-settings-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-settings-header h3 {
    margin: 0 0 10px 0;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
}

.cookie-settings-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.cookie-settings-body {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cccccc;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid #999999;
}

.cookie-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-toggle.active {
    background: #000000;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #000000;
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(20px);
}

.cookie-category-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
    }

    .cookie-settings-modal {
        margin: 10px;
        max-height: 90vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}