@charset "utf-8";
/* CSS Document */
body {
            margin: 0;
            padding: 0px;
            background: #1a1a1a;
            color: white;
            font-family: "Inter", sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100svh;
        }
        
        #video {
            display: block;
            width: 100%;
            position: fixed;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
        }
        
        #painting {
            width: 100%;
            left: 0;
            top: 50%;
            position: fixed;
            transform: translateY(-50%);
        }
        
        #canvas {
            display: none;
            width: 100%;
        }
        
        button {
            padding: 0px;
            font-size: 18px;
            background: none;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin: 10px; width: 80px; height: 80px; border-radius: 50%; background-position: center; background-repeat: no-repeat; text-indent: -9999px;
        }
        
        button:hover {
            transform: scale(1.05);
        }
        
        button:active {
            transform: scale(0.95);
        }
        
        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

#captureBtn { border: 8px solid #FFF; box-sizing: border-box;}
#playMusicBtn { background-image: url("../img/play.svg"); background-size: 70px;}
#playMusicBtn.play { background-image: url("../img/pause.svg");}
        
        #controls {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            position: fixed;
            bottom: 20px;
            left: 0;
            width: 100%;
            z-index: 1;
        }

#resetBtn { position: fixed; top:0; left: 0;background-image: url("../img/arrow.svg"); background-size: 40px; width:60px; height: 60px; border-radius: 0;
}

/* ローディングオーバーレイ */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

 h1 { color: #FFF; position: fixed; top:20px; left: 20px; font-size: 10vw; margin: 0; line-height: 1; z-index: 1;}
@media (orientation: landscape) {
h1 { font-size: 5vw;}
}

/* サウンドログ表示エリア */
#soundLog {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    padding: 15px;
    z-index: 10;
    font-family: "Inter", sans-serif;
    font-size: 1vh;
    line-height: 1.4; box-sizing: border-box; overflow: hidden;;
}

#soundLogTitle {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--log-primary, #FF4500);
    border-bottom: 1px solid var(--log-primary, #FF4500);
    padding-bottom: 5px;
}

#soundLogContent {
    color: var(--log-secondary, #FF8C00);
}

#soundLogContent .log-entry {
    margin-bottom: 2px;
}

#soundLogContent .log-entry:nth-child(even) {
    color: var(--log-accent, #FF6347);
}

#soundLogContent .log-entry:nth-child(odd) {
    color: var(--log-secondary, #FF8C00);
}

/* スクロールバーのスタイリング */
#soundLog::-webkit-scrollbar {
    width: 6px;
}

#soundLog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#soundLog::-webkit-scrollbar-thumb {
    background: var(--log-primary, #FF4500);
    border-radius: 3px;
}

#soundLog::-webkit-scrollbar-thumb:hover {
    background: var(--log-accent, #FF6347);
}

/* 波のうねり調整コントロール */
#waveControls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    min-width: 200px; display: none!important;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF4500;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF4500;
    cursor: pointer;
    border: none;
}

.control-group span {
    color: #FF8C00;
    font-size: 12px;
    text-align: center;
}