        /* 基本スタイル・黒基調のリセット */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #111;
            color: #fff;
            font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
            overflow: hidden; /* スクロールバーを隠す */
            position: relative;
            width: 100vw;
            height: 100vh;
        }

        /* 画面上部：フォルダ（話数）選択エリア */
        .header-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.2);
            z-index: 100;
            padding: 10px;
            text-align: center;
        }
        .folder-select {
            background: #222;
            color: #fff;
            border: 1px solid #444;
            padding: 8px 12px;
            font-size: 16px;
            border-radius: 4px;
            max-width: 90%;
        }

        /* 画面中央：漫画画像表示エリア */
        .viewer-container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            position: relative;
        }
        .manga-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* アスペクト比を維持して画面に収める */
            user-select: none;
            -webkit-user-drag: none;
        }

        /* 画面下部：ページインジケーター */
        .page-counter {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.6);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 10;
            pointer-events: none; /* タッチを透過 */
        }

        /* 左右のタップ領域ナビゲーション（クリックでも移動できるように） */
        .nav-zone {
            position: fixed;
            top: 0;
            bottom: 0;
            width: 15%;
            z-index: 5;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            transition: background 0.3s;
        }
        .nav-zone:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        .nav-left { left: 0; }
        .nav-right { right: 0; }

        /* ホバーで表示される Home Back ボタン */
        .home-back-btn {
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 110;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 4px;
            border: 1px solid #fff;
            font-size: 14px;
            opacity: 0; /* 通常時は非表示（透明） */
            transition: opacity 0.3s ease, background 0.3s ease;
            pointer-events: none; /* 透明時はクリック不可 */
        }
        /* 画面上部にマウスホバー、またはボタン周辺に触れたら表示 */
        body:hover .home-back-btn,
        .home-back-btn:hover {
            opacity: 1;
            pointer-events: auto; /* 表示時はクリック可能 */
            background: rgba(230, 0, 0, 0.8); /* ホバー時の色変更 */
        }
        
        /* スマートフォンなどのタッチデバイス用に、画面左上をタップでも薄く反応させる設定 */
        @media (max-width: 768px) {
            .home-back-btn {
                opacity: 0.8; /* スマホは常時少し見せるか、タッチ領域にする */
                pointer-events: auto;
            }
        }
