@charset "utf-8";
/* CSS Document */
html { overflow: hidden;}
        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #252525;
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            overflow: hidden; position: relative; opacity: 0; transition: opacity 1s ease 0s;
        }
.comp body { opacity: 1;}
html:after { content: ""; display: block; width: 100%; height: 100svh; position: fixed; top: 0; left: 0; background-image: url("../img/Spinner-1s-200px.svg"); background-position: center; background-repeat: no-repeat; background-size: 50px;}
html.comp:after { display: none;}
        body:before { content: ""; display: block; background-image: url("../img/bg.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; width: 100%; height: 100svh; position:absolute; top:0; left: 0;}
        .container {
            text-align: center;
            width: 100%;
            padding: 20px;
            z-index: 2; position: fixed; bottom:0; left: 0; box-sizing: border-box;
        }
        h1 {
            margin: 0px; position:relative;
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: #f5a623; position: fixed; top:3vw; left: 3vw; box-sizing: border-box; width: 20%; text-align: center;
        }
        h2 {
            margin: 0px; position:relative;
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: #f5a623; position: fixed; top:-43%; right: 3vw; box-sizing: border-box; width: 50%; text-align: center; opacity: .4;
        }
        h3 {
            margin: 0px; position:relative;
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: #f5a623; position: fixed; top:-13%; right: 1vw; box-sizing: border-box; width: 10%; text-align: center; opacity: .7;
        }
        button {
            background: rgba(245, 166, 35, 1);
            color: white;
            border: 2px solid rgba(245, 166, 35, 1);
            border-radius: 50%;
            width: 80px;
            height: 80px;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
            margin: 20px 0;
        }
        button:hover {
            
        }
        button:active {
            
        }
        .play-icon {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 15px 0 15px 26px;
            border-color: transparent transparent transparent #003d47;
            display: inline-block;
            margin-left: 5px;
        }
        .stop-icon {
            width: 24px;
            height: 24px;
            background-color: #003d47;
            display: inline-block;
        }
        .status {
            margin-top: 20px;
            font-size: 1.1rem;
            height: 1.5em;
            opacity: 0.8; display: none;
        }
        .timer {
            font-family: 'Courier New', monospace;
            font-size: 2.5rem;
            margin: 15px 0;
            text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
            color: #f5a623;
        }
        .progress-container {
            width: 100%;
            height: 8px;
            background-color: rgba(0, 0, 0, 0.4);
            border-radius: 10px;
            margin: 20px 0;
            overflow: hidden;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
        .progress-bar {
            height: 100%;
            /*background: linear-gradient(90deg, #f5a623, #e83e8c, #f5a623);*/
            background: #FFF;
            background-size: 200% 100%;
            width: 0%;
            border-radius: 10px;
            transition: width 0.1s linear;
            animation: gradient 5s ease infinite;
        }
        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .track-info {
            font-size: 0.9rem;
            opacity: 0.7;
            margin-top: 10px;
        }
        canvas { position: fixed; top:0; left: 0;}
        #waveformContainer { width: 100%; height: 70svh; position: fixed; top:0; left: 0; opacity: 1;}
        #waveformCanvas { position: absolute; top:0; left: 0; width: 100%; height: 100%;}
        
        h1 img,h2 img,h3 img {
    width: 100%; height: auto;
  }
        
       
        
        @media (max-width: 768px) {
            .audio-params {
                font-size: 0.7rem;
                min-width: 160px;
                padding: 10px;
                top: 10px;
                right: 10px;
            }
            
            .param-row {
                margin-bottom: 3px;
            }
        }
        
        /* 音楽パラメータ表示用スタイル */
        .audio-params {
            position: fixed;
            top: 5.128205128205128vw;
            right: 5.128205128205128vw;
            background: rgba(0, 0, 0, 0);
            color: #003d47;
            padding: 3.816793893129771vw;
            font-family: 'Courier New', monospace;
            font-size: 3.256997455470738vw;
            line-height: 1.4;
            border: 0px solid rgba(245, 166, 35, 0.3);
            z-index: 0;
            max-width: 50vw;
            display: none; font-family: "Yuji Mai", serif;
        }
        
        .audio-params.show {
            display: block;
        }
        
        .param-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: .5em;
        }
        
        .param-label {
            color: #003d47;
            opacity: 0.8;
        }
        
        .param-value {
            color: #003d47;
            font-weight: bold;
        }
        
        .param-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            margin: .2em 0;
            overflow: hidden;
        }
        
        .param-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #003d47, #003d47);
            transition: width 0.1s ease;
        }
        
        header { width: 100%; padding: 3vw; box-sizing: border-box; position: fixed; top:0; left: 0; mix-blend-mode: hard-light;}
        header img { width: 100%; height: auto;}
        
         @media (orientation: landscape) {
            body,html { /*width: 60%;*/ margin: 0 auto; height: 100%; aspect-ratio: 9 / 16;}
  
            .container,h1,canvas,#waveformContainer,h2,h3,.audio-params,header { position: absolute;}
            canvas,#waveformCanvas { left: 50%; transform: translateX(-50%);}
            
            .audio-params {
                font-size: 1.5vw; top:0; right: 0;padding: 1.5vw;max-width: 30vw;
            }
             header { padding: 20px; }
        }

