/* スノードーム基本構造 */
/* 背景画像を含む全体のエリア */
.snowglobe-area {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: 1rem;
    min-height: 32rem;  /* スノードームとコントロール部分を含む高さ */
}

.snow-globe {
    position: relative;
    z-index: 1;  /* 背景より前面に */
    background: transparent;  /* 背景を透明に */
    width: 16rem;
    height: 16rem;
    margin: 0 auto;
}

.snow-globe-outer {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(to bottom, 
        rgba(223 242 235 / 0.6), 
        rgba(122 178 211 / 0.3)
    );
    padding: 0.25rem;
}

.snow-globe-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: rgba(255 255 255 / 0.1); /* Sphere部分 */
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: 1px solid rgb(185 229 232 / 0.5);
    overflow: hidden;
    position: relative;
}

/* 背景画像とスノードームのコンテナ */
.snowglobe-container {
    position: relative;
    width: 16rem;  /* スノードームと同じサイズ */
    height: 16rem;
    margin: 0 auto;
}

/* 背景画像レイヤー */
.snowglobe-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    transition: background-image 0.3s ease;
    z-index: 0;
}

/* グラデーションとエフェクト */
.snow-globe-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgb(255 255 255 / 0.4),
        transparent
    );
    border-radius: 9999px;
}

.snow-globe-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right,
        rgb(255 255 255 / 0.4),
        transparent
    );
    border-radius: 9999px;
    transform: rotate(45deg);
}

/* コンテンツ配置 */
.snow-globe-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.snow-globe-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* パーティクルアニメーション */
.particle-container {
    width: 100%;
    height: 8rem;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -5px); }
}

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

.particle {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 2.5s;
}

.particle:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 3.5s;
}