/* プライバシーポリシーページ専用スタイル - ダークテーマ */

/* 目次セクション */
.table-of-contents {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 0;
    color: white;
}

.table-of-contents h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.toc-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toc-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.toc-item a {
    display: flex;
    align-items: flex-start;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.toc-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.toc-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.toc-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.toc-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.toc-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* 重要事項のハイライト */
.toc-highlights {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.toc-highlights h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ffffff;
}

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

.highlight-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.highlight-item h4 {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #ffffff;
}

.highlight-item p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* コンテンツセクション */
.content-section {
    padding: 4rem 0;
    background: #0a0a0a;
}

.content-section:nth-child(even) {
    background: #111111;
}

.content-card {
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #333333;
}

.content-header {
    background: linear-gradient(135deg, #2d2d2d, #404040);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.content-header i {
    font-size: 2rem;
    margin-right: 1rem;
}

.content-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-body {
    padding: 2rem;
    color: #e0e0e0;
}

.content-body h4 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.content-body h4:first-child {
    margin-top: 0;
}

/* ハイライトボックス */
.highlight-box {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-left: 4px solid #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

/* プライバシー情報グリッド */
.privacy-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333333;
    text-align: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.info-item h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-item p {
    color: #e0e0e0;
    margin: 0;
}

/* プライバシーカテゴリ */
.privacy-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.category-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.category-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.category-item h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.category-item p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    text-align: center;
}

.category-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.category-item li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

/* プライバシー詳細 */
.privacy-details {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.privacy-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.privacy-item:hover {
    background: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333333;
}

.privacy-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.privacy-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.privacy-status.required {
    background: #2d5a2d;
    color: #90ee90;
    border: 1px solid #4a7c4a;
}

.privacy-status.optional {
    background: #2d4a5a;
    color: #87ceeb;
    border: 1px solid #4a7c8c;
}

.privacy-info {
    display: grid;
    gap: 0.75rem;
}

.privacy-info p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.privacy-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* プライバシー設定 */
.privacy-settings {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.setting-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.setting-category:hover {
    background: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-header h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.category-description {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.category-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-description {
    color: #b0b0b0;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* スイッチスタイル */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

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

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

input:disabled + .slider {
    background-color: #28a745;
    cursor: not-allowed;
}

input:disabled + .slider:before {
    background-color: white;
}

/* プライバシーアクション */
.privacy-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

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

.privacy-actions .btn-primary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.privacy-actions .btn-primary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    transform: translateY(-2px);
}

.privacy-actions .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.privacy-actions .btn-outline:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* お問い合わせ方法 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-method {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333333;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.contact-method h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-method p {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-method span {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* 完了セクション */
.completion-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 0;
    color: white;
}

.completion-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.completion-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.completion-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.completion-actions .btn-primary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.completion-actions .btn-primary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

.completion-actions .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.completion-actions .btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .toc-item a {
        flex-direction: column;
        text-align: center;
    }
    
    .toc-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .content-header {
        flex-direction: column;
        text-align: center;
    }
    
    .content-header i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .privacy-info-grid,
    .privacy-categories,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .setting-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .privacy-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .privacy-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .completion-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 1rem;
    }
    
    .content-header {
        padding: 1.5rem;
    }
    
    .completion-card {
        padding: 2rem 1.5rem;
    }
    
    .completion-card h3 {
        font-size: 1.5rem;
    }
    
    .completion-card p {
        font-size: 1rem;
    }
    
    .privacy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .privacy-status {
        align-self: flex-end;
    }
}

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

.content-card {
    animation: fadeInUp 0.6s ease-out;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }

/* スクロール時のアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* アクセシビリティ強化 */
/* フォーカス表示の強化 */
*:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* 高コントラストモード */
@media (prefers-contrast: high) {
    .content-card {
        border: 2px solid #ffffff;
    }
    
    .btn {
        border: 2px solid #ffffff;
    }
    
    .switch .slider {
        border: 2px solid #ffffff;
    }
}

/* 動きの軽減 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* スキップリンク */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ffffff;
    color: #000000;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* スクリーンリーダー専用テキスト */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}