/* ========================================
   プレゼンテーションモード（シンプル版）
   ======================================== */

/* フッターボトムを相対配置に */
.footer-bottom {
    position: relative;
}

/* プレゼンモードボタン（隠しメニュー） */
.btn-presentation {
    position: absolute;
    bottom: 10px;
    right: 30px;
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: rgba(0, 102, 255, 0.6);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.btn-presentation:hover {
    background: rgba(0, 102, 255, 0.2);
    color: rgba(0, 102, 255, 1);
    opacity: 1;
}

/* プレゼンモードアクティブ時のbodyスタイル */
body.presentation-active {
    overflow: hidden;
}

/* 通常のヘッダーとフッターを非表示 */
body.presentation-active .header,
body.presentation-active .footer {
    display: none !important;
}

/* 全セクションを非表示 */
body.presentation-active section {
    display: none !important;
}

/* アクティブセクションのみ表示 */
body.presentation-active section.active {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow-y: auto;
    background: #ffffff;
    padding: 40px 20px;
}

/* プレゼンモード時にセクションタイトルのオレンジの影を削除 */
body.presentation-active .section-title::after {
    box-shadow: none !important;
}

/* プレゼンモード時にセクション区切りラインを非表示 */
body.presentation-active .section::before {
    display: none !important;
}

/* プレゼンモード時に全てのオレンジ色のボーダーとbox-shadowを削除 */
body.presentation-active * {
    border-color: transparent !important;
    box-shadow: none !important;
}

body.presentation-active *::before,
body.presentation-active *::after {
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* プレゼンモード時に青いボーダーのみ許可 */
body.presentation-active .presentation-header,
body.presentation-active .presentation-nav {
    border-color: #e0e0e0 !important;
}

body.presentation-active .nav-btn {
    border: none !important;
    background: #0066ff !important;
}

/* セクションタイトルのオレンジラインのみ復活 */
body.presentation-active .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold)) !important;
}

/* アクティブセクションの背景を白に固定 */
body.presentation-active section.active {
    background: #ffffff !important;
}

/* プレゼンモードヘッダー */
.presentation-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10001;
    border-bottom: 1px solid #e0e0e0;
}

body.presentation-active .presentation-header {
    display: flex;
}

.presentation-title {
    color: #0066ff;
    font-size: 1.3rem;
    font-weight: 600;
}

.presentation-exit {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.presentation-exit:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* プレゼンモードナビゲーション */
.presentation-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 10001;
    border-top: 1px solid #e0e0e0;
}

body.presentation-active .presentation-nav {
    display: flex;
}

.nav-btn {
    padding: 10px 20px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.nav-btn:hover:not(:disabled) {
    background: #0052cc;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-progress {
    color: #0066ff;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
    body.presentation-active section.active {
        padding: 20px 15px;
        bottom: 50px;
    }
    
    .presentation-header {
        height: 50px;
        padding: 0 20px;
    }
    
    .presentation-title {
        font-size: 1rem;
    }
    
    .presentation-nav {
        height: 50px;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 80px;
    }
}
