        /* Safari用の追加スタイル */
        body {
            background-color: transparent !important;
            background: transparent !important;
            -webkit-background-color: transparent !important;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        
        /* カメラビューのコンテナ */
        #cameraContainer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1;
            background: transparent;
        }
        
        /* カメラビデオ要素 */
        #cameraVideo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            object-fit: cover;
            z-index: 1;
            background: transparent;
        }
        
        /* Three.jsキャンバス */
        canvas {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background: transparent !important;
            background-color: transparent !important;
            -webkit-background-color: transparent !important;
            z-index: 2 !important;
            pointer-events: auto;
        }
        
        /* Safari用のWebRTC修正 */
        video {
            object-fit: cover;
            width: 100%;
            height: 100%;
            background: transparent;
        }
        
        /* 時刻表示エリア（仮想的な位置の想定） */
        .time-display-area {
            position: absolute;
            top: 10px;
            left: 10px;
            height: 30px; /* 時刻表示の想定高さ */
            z-index: 4;
        }
        
        /* クエスチョン画像を画面幅の50%に変更 */
        #questionImage {
            position: absolute;
            top: 50px;
            left: 10px;
            z-index: 3;
            display: none;
            width: 50vw; /* 画面幅の50% */
            height: auto;
            transform-origin: top left;
        }
        
        /* スワイプヒントを右上に移動 */
        #swipeHint {
            position: absolute;
            top: 10px;
            right: 10px;
            transform: none;
            font-size: 14px;
            font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
            color: rgb(175, 175, 175);
            background-color: rgba(0, 0, 0, 0.5);
            padding: 8px 16px;
            border-radius: 8px;
            white-space: nowrap;
            z-index: 4;
            text-align: center;
            max-width: 80vw;
            box-sizing: border-box;
            /* Safari用の追加 */
            -webkit-transform: none;
        }
        
        /* iOS Safari用の追加修正 */
        @supports (-webkit-touch-callout: none) {
            body {
                background: none !important;
                background-color: transparent !important;
                -webkit-transform: translate3d(0,0,0);
            }
            
            canvas {
                background: rgba(0,0,0,0) !important;
                -webkit-transform: translate3d(0,0,0);
            }
            
            #cameraVideo {
                -webkit-transform: translate3d(0,0,0);
                transform: translate3d(0,0,0);
            }
        }
        
        /* Safari WebKit特有の修正 */
        @media screen and (-webkit-min-device-pixel-ratio: 0) {
            canvas {
                background-color: rgba(0,0,0,0) !important;
            }
        }
        
        /* レスポンシブ対応の修正 */
        @media (max-width: 480px) {
            #questionImage {
                width: 50vw;
                top: 45px;
            }

            #swipeHint {
                font-size: 12px;
                top: 10px; /* 右上に配置 */
                right: 10px;
                padding: 6px 12px;
            }
        }

        @media (orientation: landscape) {
            #questionImage {
                top: 40px;
            }

            #swipeHint {
                top: 10px; /* 右上に配置 */
                right: 10px;
            }
        }

        /* 解答欄ボタン（右下に移動） */
        #answerButton {
            position: absolute;
            top: 500px;
            right: 30px;
            padding: 5px;
            box-shadow: inset 0px 1px 0px 0px #ffffff;
            background: linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
            background-color: #f9f9f9;
            border-radius: 3px;
            border: 1px solid #dcdcdc;
            font-size: 12px;
            font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
            z-index: 3;
        }

        #answerButton:hover {
            background: linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
            background-color: #e9e9e9;
        }

        #answerButton:active {
            transform: scale(0.95);
        }

        /* Helpボタン（左下に配置） */
        #helpButton {
            position: absolute;
            top: 500px;
            left: 30px;
            color: black;
            font-size: 12px;
            padding: 5px;
            box-shadow: inset 0px 1px 0px 0px #ffffff;
            background: linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
            background-color: #f9f9f9;
            border-radius: 3px;
            border: 1px solid #dcdcdc;
            z-index: 3;
            font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
        }

        #helpButton:hover {
            background: linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
            background-color: #e9e9e9;
        }

        #helpButton:active {
            transform: scale(0.95);
        }
        