@charset "utf-8";
/* CSS Document */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html, body {
            height: 100%;
            overflow: hidden;
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #000;
            position: relative;
        }
        h1 {
            color: #fff; text-align: center; height: 60px; line-height: 60px;
           
        }
        .video-container {
            position: relative;
            width: 100vw;
            height: 100svh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .canvas-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100svh;
            display: none;
        }
        video {
            border: 0px solid #333;
            border-radius: 0px;
            background-color: #000;
            max-width: 100vw;
            max-height: 100svh;
            width: 100%;
            height: auto;
        }
        /* 撮影後のビデオ表示（右上に小さく） */
        .video-container.captured video {
            position: fixed;
            top: 100px;
            right: 10px;
            width: 100%;
            height: auto;
            max-width: 30vw;
            z-index: 100;
            border: 2px solid #fff; border-radius: .5em;
        }
        @media (orientation: landscape) {
            .video-container.captured video {
                
                max-width: 15vw;
            }
            }
        canvas {
            border: none;
            background-color: transparent;
            width: 100vw;
            height: 100svh;
            position: fixed;
            top: 0;
            left: 0; object-fit: contain;object-position: center;
        }
        .controls {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100; width: 100%; height: 100px;
        }
        button {
            padding: 0;
            font-size: 18px;
            color: white;
            border: none;
            border-radius: 0;
            cursor: pointer;
            margin: 0 0px; background: none;
        }
       
        button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        #resetBtn {
            position:absolute;
            top: 0px;
            left: 0px;
            z-index: 100;
            display: none; background: none;
            width: 60px; height: 60px; background-image: url("../img/arrow.svg"); background-repeat: no-repeat; background-position: center; text-indent: -9999px; background-size: 30px;
        }
#captureBtn { width: 80px; height: 80px; border-radius: 50%; box-sizing: border-box; border:8px solid rgba(255,0,4,1.00); background: none; text-indent: -9999px; background-image: url("../img/add.svg"); background-repeat: no-repeat; background-position: center; background-size: 40px;
position: absolute; left: 50%; top:50%; transform: translate(-50%,-50%);}

header { height: 80px; width: 100%; position: fixed; top:0; left: 0; z-index: 9;background-color: rgba(0, 0, 0, 0.7);}
        .status {
            /*position: fixed;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);*/
            color: #fff;
            
            padding: 0px 20px; height: 30px; width: 100%; position: absolute; bottom: 0; left: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
            border-radius: 0px;
            z-index: 10; width: 100%; box-sizing: border-box; font-size: 70%; text-align: center;
        }
        .hidden-canvas {
            display: none;
        }
        /* 初期状態でcanvasを非表示 */
        .canvas-container.hidden {
            display: none;
        }
        .canvas-container.visible {
            display: block;
        }

#downloadBtn { width: 60px; height: 60px; text-indent: -9999px; background-image: url("../img/download.svg");
background-size: 30px; background-position: center; background-repeat: no-repeat; position: absolute; right: 20px; top:50%; transform: translateY(-50%);}