        /* 基本的なスタイルとタッチ操作の無効化 */
        body {
            font-family: 'Inter', 'Noto Sans JP', sans-serif;
            touch-action: none; /* ダブルタップズームなどを無効化 */
            overflow: hidden;
            background-color: #f3f4f6; /* 背景色を少し柔らかく */
            margin: 0;
        }
        /* アプリケーション全体のコンテナ */
        #app-container {
            width: 100vw;
            height: 100vh;
            display: flex;
            align-items: center; 
            justify-content: center;
            position: relative;
            padding: 1rem;
            box-sizing: border-box;
        }
        /* キャンバスのカーソルスタイル */
        canvas {
            cursor: grab;
            display: block;
        }
        canvas:active {
            cursor: grabbing;
        }
        /* FABメニューアイテムのアニメーション */
        .fab-menu-item {
            transition: all 0.2s ease-out;
            opacity: 0;
            transform: translateY(10px) scale(0.9);
            pointer-events: none;
        }
        .fab-menu-item.show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        /* コンテキストメニューのスタイリング */
        #context-menu {
            min-width: 180px;
        }
        #context-menu a, #context-menu div > span {
            transition: background-color 0.1s;
        }
        /* サブメニューの表示制御 */
        .submenu {
            display: none;
            position: absolute;
            top: -5px; /* 少し上にずらす */
        }
        .has-submenu:hover .submenu {
            display: block;
        }

        /* Toast Notification Styles */
        .toast {
            background-color: rgba(0, 0, 0, 0.75);
            color: white;
            padding: 10px 15px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
            pointer-events: auto;
            min-width: 200px;
            text-align: center;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* Playback Modal */
        #playback-modal {
            transition: opacity 0.3s ease-out;
        }

        #playback-canvas-container {
            width: 95vw; /* Adjust as needed */
            height: 70vh; /* Adjust as needed */
            
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #4CAF50; /* Same as main canvas */
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
            overflow: hidden; /* Ensure content stays within bounds */
        }

        #playbackCanvas {
            display: block;
            background-color: #4CAF50;
        }

        #playback-frame-name {
            pointer-events: none;
        }

        #playback-controls button {
            transition: background-color 0.2s, transform 0.1s;
        }

        #playback-controls button:active {
            transform: scale(0.95);
        }