/* Cookie設定ページ専用スタイル */

.cookie-settings-main {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    color: #6c757d;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: #adb5bd;
}

.breadcrumb-list a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #0056b3;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cookie設定セクション */
.cookie-settings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.cookie-settings-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Cookieカテゴリ */
.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.cookie-category-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cookie-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-details {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid #007bff;
}

.cookie-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.cookie-details ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cookie-details li {
    color: #6c757d;
    margin-bottom: 0.3rem;
}

/* Cookieトグルスイッチ */
.cookie-toggle {
    position: relative;
}

.cookie-checkbox {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #dee2e6;
    border-radius: 12px;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-checkbox:checked + .toggle-label .toggle-slider {
    background: #007bff;
}

.cookie-checkbox:checked + .toggle-label .toggle-slider::before {
    transform: translateX(26px);
}

.cookie-checkbox:disabled + .toggle-label .toggle-slider {
    background: #28a745;
    opacity: 0.7;
}

/* 設定ボタン */
.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.cookie-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-actions .btn i {
    font-size: 0.9rem;
}

/* 情報セクション */
.cookie-info-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.cookie-info-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* 関連リンク */
.related-links {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.related-links h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.link-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.link-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.link-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .cookie-settings-main {
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .cookie-settings-section,
    .cookie-info-section,
    .related-links {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-category {
    animation: fadeInUp 0.5s ease-out;
}

.cookie-category:nth-child(1) { animation-delay: 0.1s; }
.cookie-category:nth-child(2) { animation-delay: 0.2s; }
.cookie-category:nth-child(3) { animation-delay: 0.3s; }
.cookie-category:nth-child(4) { animation-delay: 0.4s; }

/* アクセシビリティ */
.cookie-checkbox:focus + .toggle-label .toggle-slider {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.cookie-actions .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .cookie-settings-main {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .cookie-settings-section,
    .cookie-info-section,
    .related-links {
        background: #2d2d2d;
        color: #e9ecef;
    }
    
    .cookie-category {
        background: #3a3a3a;
        border-color: #4a4a4a;
    }
    
    .cookie-details {
        background: #3a3a3a;
    }
    
    .page-header h1,
    .cookie-category-header h2,
    .info-card h3,
    .link-card h3 {
        color: #e9ecef;
    }
    
    .page-description,
    .cookie-description,
    .info-card p,
    .link-card p {
        color: #adb5bd;
    }
}
