@charset "utf-8";
/* CSS Document */
body {
            margin: 0;
            font-family: "Noto Serif JP", serif;
            min-height: 100svh; background-color: #fff;
        }
        
        .container {
            margin: 0 auto;
            border-radius: 0px;
            padding: 0px;
        }
        
        h1 {
            text-align: center; position: fixed; top:20px; left: 20px; color: #000;margin: 0; line-height: 1;
            font-size: 440%; font-weight: 500;
        }
        
        .process-steps {
            display: flex;
            justify-content: space-between;
            margin: 30px 0;
            padding: 20px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 15px; display: none;
        }
        
        .step {
            flex: 1;
            text-align: center;
            padding: 10px;
            margin: 0 5px;
            border-radius: 10px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .step.active {
            background: rgba(102, 126, 234, 0.2);
            transform: scale(1.05);
        }
        
        .step.completed {
            background: rgba(34, 197, 94, 0.2);
        }
        
        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #667eea;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: bold;
        }
        
        .step.completed .step-number {
            background: #22c55e;
        }
        
        .step-title {
            font-size: 12px;
            font-weight: bold;
            color: #4a5568;
        }
        
        .camera-section {
            margin-bottom: 0px;
        }
        
        video, canvas { 
            width: 100%; 
            height: auto;
            position: fixed; 
            top: 50%; 
            left: 0; 
            transform: translateY(-50%);
            object-fit: contain;
        }
        
        .controls {
            text-align: center;
            margin: 20px 0 0 0; position: fixed; bottom: 0; left: 0; z-index: 1; width: 100%;
        }
        
        button {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            margin: 5px;
            transition: all 0.3s ease;
            font-weight: bold;
        }
        
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .primary-button {
            font-size: 18px;
            padding: 0px; text-indent: -9999px; background: none; border:2px solid #000;
            margin: 10px; width: 80px; height: 80px; background-color: #FFF; border-radius: 50%; position: relative;
        }
        .primary-button:before { content: ""; display: block; width: 60px; height: 60px; background-color:rgba(199,2,5,1.00);  border-radius: 50%; position: absolute; top:50%; left: 50%; transform: translate(-50%,-50%);}
        
        .primary-button:hover {
        }
        
        .secondary-button {
            font-size: 16px;
            padding: 0px;
            margin: 10px; text-indent: -9999px; background: none;
             width: 80px; height: 80px;  background-color:rgba(199,2,5,1.00); border-radius: 50%; position: relative; background-image: url("../img/close.svg"); background-repeat: no-repeat; background-position: center; background-size: 50px;
        }
        
        .secondary-button:hover {
        }
        
        .manual-controls {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid rgba(102, 126, 234, 0.2);
        }
        
        .analysis-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 20px 0; display: none;
        }
        
        .color-analysis {
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .paint-volume {
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .color-strip, .sky-canvas {
            width: 100%;
        }
        
        .paint-tubes {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        
        .paint-tube {
            text-align: center;
            margin: 5px;
        }
        
        .tube {
            width: 20px;
            height: 60px;
            border-radius: 10px;
            margin: 0 auto 5px;
            border: 2px solid #333;
            position: relative;
            overflow: hidden;
        }
        
        .paint-level {
            position: absolute;
            bottom: 0;
            width: 100%;
            border-radius: 0 0 8px 8px;
            transition: height 0.8s ease;
        }
        
        .tube-label {
            font-size: 10px;
            color: #666;
        }
        
        .volume-text {
            font-size: 11px;
            font-weight: bold;
            color: #333;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
            color: #4a5568;
            margin: 20px 0 10px 0;
            text-align: center;
        }
        
        .hidden {
            display: none;
        }
        
        .loading {
            text-align: center;
            color: #667eea;
            font-size: 16px;
            margin: 20px 0;
        }
        
        .process-info {
            padding: 15px;
            text-align: center;
            color: #4a5568; width: 100%; box-sizing: border-box; font-size: 11px;
        }
        
        .canvas-container {
            text-align: center;
            margin: 20px 0;
        }
        
        .photo-canvas {
            height: auto;
        }
        
        .animation-controls {
            text-align: center;
            margin: 15px 0;
        }
        
        .progress-bar {
            width: 100%;
            height: 4px;
            background: #eee;
            border-radius: 2px;
            overflow: hidden;
            margin: 10px 0;
        }
        
        .progress-fill {
            height: 100%;
            background: #000;
            width: 0%;
            transition: width 0.3s ease;
        }
        
        /* 色数調整コントロールのスタイル */
        .color-controls {
            background: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 15px;
            margin: 10px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); display: none!important;
        }
        
        .control-group {
            margin: 10px 0;
            text-align: center;
        }
        
        .control-label {
            display: block;
            font-size: 14px;
            font-weight: bold;
            color: #4a5568;
            margin-bottom: 8px;
        }
        
        .color-slider {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }
        
        .color-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            border: 3px solid #667eea;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        
        .color-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            border: 3px solid #667eea;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        
        .control-button {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            margin: 0 5px;
            transition: all 0.3s ease;
            font-weight: bold;
        }
        
        .control-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

