* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h1 {
    font-size: 2.5em;
    color: #1976D2;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
}

.lang-selector {
    position: absolute;
    top: 0;
    right: 0;
}

#langSelect {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#langSelect:hover {
    border-color: #1976D2;
}

.canvas-container {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

#windChimeCanvas {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: crosshair;
}

.wind-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.controls {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1976D2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select:hover, .select:focus {
    border-color: #1976D2;
    outline: none;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #1976D2;
    color: white;
}

.btn-secondary {
    background: #757575;
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-recording {
    background: #E91E63;
    color: white;
    animation: pulse 1.5s infinite;
}

.btn-info {
    background: #00BCD4;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.presets {
    margin-top: 30px;
}

.presets h3 {
    margin-bottom: 15px;
    color: #1976D2;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.preset-btn {
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.preset-btn:hover {
    border-color: #1976D2;
    background: #E3F2FD;
    transform: translateY(-2px);
}

.info-panel {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-panel h3 {
    margin-bottom: 15px;
    color: #1976D2;
}

.info-panel ul {
    list-style: none;
    padding-left: 0;
}

.info-panel li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.info-panel li:before {
    content: "🎐";
    position: absolute;
    left: 0;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .lang-selector {
        position: static;
        margin-top: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .controls, .info-panel {
        padding: 20px;
    }
}

/* アニメーション */
@keyframes windBlow {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* プリント対応 */
@media print {
    body {
        background: white;
    }
    
    .controls, .info-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}