@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Outfit', sans-serif;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* ぼかし効果を入れて色が混ざるようにする */
    filter: blur(20px) contrast(1.2);
    transform: scale(1.1); /* ぼかしの端が見えないように拡大 */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 1s ease, visibility 1s ease;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.content {
    text-align: center;
    color: #fff;
    cursor: pointer;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.content h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ff7eb3, #ff758c, #ff7eb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.content .subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #ccc;
}

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(60deg); }
}

/* 音量コントロールUIのスタイル */
#controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    color: #fff;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

#controls:hover {
    background: rgba(255, 255, 255, 0.15);
}

#volumeSlider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
