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

:root {
    --primary-color: #00d9ff;
    --secondary-color: #ff006e;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1e;
    --text-light: #eee;
    --text-dim: #aaa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.5)); }
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 20px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.btn.active {
    background: linear-gradient(45deg, var(--secondary-color), #ff4081);
}

.btn-icon {
    font-size: 1.5rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.status.active .status-icon {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.visualizer {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

#waveform {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.freq-bars {
    display: flex;
    align-items: flex-end;
    height: 100px;
    gap: 2px;
    margin-top: 20px;
}

.freq-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
    transition: all 0.1s ease;
    min-height: 2px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.control-group {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.control-group label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

select, input[type="range"] {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

select {
    cursor: pointer;
}

select option {
    background: var(--bg-dark);
}

input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-color);
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

.tips {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.tips h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.tips li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.tips li::before {
    content: '🎵';
    position: absolute;
    left: 0;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-switcher button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switcher button:hover,
.lang-switcher button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeIn 0.6s ease-out forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }