@charset "utf-8";
/* CSS Document */
html,body { height: 100%;}
        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #1a0000, #330000, #660000);
            color: #ff3333;
            text-align: center;
            padding: 0px;
            margin: 0;
            overflow: hidden;
        }
        
        /* ピクセル化背景レイヤー */
        .pixelated-bg {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: -2;
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
            object-fit: cover;
            object-position: center;
        }
        
        /* 元の背景グラデーション（オーバーレイ） */
        .bg-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(26,0,0,0.3), rgba(51,0,0,0.3), rgba(102,0,0,0.3));
            z-index: -1;
        }
        
        .container {
            max-width: 1100px;
            margin: 0 auto;
        }
        h1 {
            width: 90%; height: auto; position: fixed; top:0px; left: 50%; transform: translateX(-50%);
        }
        h1 img { width: 100%; height: 100%; object-fit:contain; object-position: center;}

@media (orientation: landscape) {
  h1 {
            height: 35vh; width: auto;
        }
}


        .controls {
            margin: 30px 0; position: fixed; bottom: 0; left: 0; width: 100%;
        }
        button {
            background: none; text-indent: -9999px;
            width: 80px; height: 80px; background-position: center; background-repeat: no-repeat; background-size: 60px;
            color: white;
            padding: 0;
            font-size: 18px;
            border-radius: 15px;
            cursor: pointer;
            margin: 10px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            font-weight: bold; border: none;
        }
        #playBtn { background-image: url("../img/play.svg");}
        #stopBtn { background-image: url("../img/pause.svg");}
        button:hover {
          
        }
        button:disabled { display: none;
            background: #333;
            border-color: #555;
            color: #777;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .status {
            margin: 20px 0;
            font-size: 22px;
            font-weight: bold;
            color: #ff6600;
            text-transform: uppercase; display: none;
        }
        .song-structure {
            margin: 25px 0;
            background: linear-gradient(145deg, #330000, #1a0000);
            padding: 25px;
            border-radius: 15px;
            border: 2px solid #ff3333; display: none;
        }
        .current-section {
            background: linear-gradient(45deg, #ff3333, #ff6600);
            color: white;
            padding: 18px 30px;
            border-radius: 12px;
            margin: 15px 0;
            font-weight: bold;
            font-size: 26px;
            text-transform: uppercase;
            box-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
        }
        .section-list {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        .section-item {
            background: #1a0000;
            padding: 12px 18px;
            margin: 5px;
            border-radius: 8px;
            border: 1px solid #660000;
            font-size: 14px;
            color: #ff9999;
        }
        .section-item.active {
            background: linear-gradient(45deg, #ff6600, #ff3333);
            color: white;
            font-weight: bold;
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
        }
        .instruments {
            display: flex;
            justify-content: space-around;
            margin: 25px 0;
            flex-wrap: wrap; display: none;
        }
        .instrument {
            background: linear-gradient(145deg, #330000, #1a0000);
            padding: 18px 25px;
            border-radius: 12px;
            margin: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            border: 2px solid #660000;
            color: #ff9999;
        }
        .instrument.active {
            background: linear-gradient(45deg, #ff3333, #ff6600);
            color: white;
            box-shadow: 0 0 25px rgba(255, 51, 51, 0.8);
            font-weight: bold;
            transform: scale(1.15);
            border-color: #ff3333;
        }
        .tempo-control {
            margin: 20px 0;
            background: linear-gradient(145deg, #330000, #1a0000);
            padding: 25px;
            border-radius: 15px;
            border: 2px solid #660000; display: none;
        }
        .tempo-control label {
            color: #ff3333;
            font-weight: bold;
            font-size: 18px;
            margin-right: 15px;
            text-transform: uppercase;
        }
        .tempo-control input {
            width: 300px;
            height: 12px;
            background: #1a0000;
            border-radius: 6px;
            margin: 0 15px;
        }
        .progress-bar {
            width: calc( 100% - 40px );
            height: 6px;
            background:rgba(0,0,0,0.5);
            border-radius: 3px;
            margin: 25px 20px;
            overflow: hidden;box-sizing: border-box;
        }
        .progress-fill {
            height: 100%;
            background: #fff;
            width: 0%;
            transition: width 0.3s ease;
        }
        .style-info {
            position: absolute;
            top: 20px;
            right: 30px;
            background: linear-gradient(45deg, #330000, #1a0000);
            padding: 12px 18px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: bold;
            border: 2px solid #ff3333;
            color: #ff3333;
            text-transform: uppercase;
        }
        .riff-display {
            padding: 20px;
            margin: 20px 0;
            border-radius: 12px;
            border: 0px solid #660000;
            color: #ff9999; position: fixed; top:50%; left: 50%; transform: translate(-50%,-50%); width: 100%; box-sizing:border-box;
                
        }
        .riff-notes {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin: 15px 0;
        }
        .note-display {
            background: rgba(0,0,0,.3);
            padding: 10px 15px;
            margin: 4px;
            border-radius: 8px;
            border: 0px solid rgba(0,0,0,.7);
            font-family: monospace;
            font-size: 12px;color: white;
        }
        .note-display.playing {
            background: #4c0000;
            color: white;
            font-weight: bold;
            transform: scale(1.2);
        }
        .bpm-display {
            position: absolute;
            top: 20px;
            left: 30px;
            background: linear-gradient(45deg, #330000, #1a0000);
            padding: 12px 18px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            border: 2px solid #ff3333;
            color: #ff3333;
            text-transform: uppercase;
        }
        .intensity-meter {
            position: absolute;
            top: 80px;
            right: 30px;
            background: linear-gradient(45deg, #330000, #1a0000);
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: bold;
            border: 2px solid #ff6600;
            color: #ff6600;
            text-transform: uppercase; display: none;
        }
        .heavy-text {
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            font-weight: 900; display: none;
        }
        
        #pixelatedBg { object-fit: cover; object-position: center;aspect-ratio: 174 / 232; width: auto;}
        
        #introBtn,#soloBtn { display: none;}

