/* 雪のアニメーション */
.snow-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
}

.snow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    top: -10%;
}

/* 雪の粒それぞれに異なるアニメーションを適用 */
.snow:nth-child(1) { left: 10%; animation: snow1 10s linear infinite; }
.snow:nth-child(2) { left: 20%; animation: snow2 12s linear infinite; }
.snow:nth-child(3) { left: 30%; animation: snow3 9s linear infinite; }
.snow:nth-child(4) { left: 40%; animation: snow4 11s linear infinite; }
.snow:nth-child(5) { left: 50%; animation: snow5 13s linear infinite; }
.snow:nth-child(6) { left: 60%; animation: snow6 10s linear infinite; }
.snow:nth-child(7) { left: 70%; animation: snow7 12s linear infinite; }
.snow:nth-child(8) { left: 80%; animation: snow8 9s linear infinite; }
.snow:nth-child(9) { left: 90%; animation: snow9 11s linear infinite; }
.snow:nth-child(10) { left: 95%; animation: snow10 13s linear infinite; }

/* 異なる開始位置と動きパターンを持つアニメーション */
@keyframes snow1 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(50px) rotate(360deg); opacity: 0; top: 100%; }
}

@keyframes snow2 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(-50px) rotate(-360deg); opacity: 0; top: 100%; }
}

@keyframes snow3 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(100px) rotate(360deg); opacity: 0; top: 100%; }
}

@keyframes snow4 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(-100px) rotate(-360deg); opacity: 0; top: 100%; }
}

@keyframes snow5 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(75px) rotate(360deg); opacity: 0; top: 100%; }
}

@keyframes snow6 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(-75px) rotate(-360deg); opacity: 0; top: 100%; }
}

@keyframes snow7 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(125px) rotate(360deg); opacity: 0; top: 100%; }
}

@keyframes snow8 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(-125px) rotate(-360deg); opacity: 0; top: 100%; }
}

@keyframes snow9 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(25px) rotate(360deg); opacity: 0; top: 100%; }
}

@keyframes snow10 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; top: -10%; }
    100% { transform: translateY(100vh) translateX(-25px) rotate(-360deg); opacity: 0; top: 100%; }
}

/* 雪の大きさのバリエーション */
.snow:nth-child(2n) {
    width: 7px;
    height: 7px;
    animation-delay: 1s;
}

.snow:nth-child(3n) {
    width: 12px;
    height: 12px;
    animation-delay: 2s;
}

.snow:nth-child(4n) {
    width: 5px;
    height: 5px;
    animation-delay: 3s;
}

/* プロフィールカードの雪の結晶装飾 */
#profile { 
    position: relative;
    overflow: hidden;
    border-radius: 15px;  /* 角をより丸く */
    background-color: rgba(255, 255, 255, 0.03);  /* 背景をより繊細に */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);  /* 柔らかい光沢を追加 */
}

#profile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 2px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.2;
    animation: snowflake-rotate 30s linear infinite;  /* アニメーションをよりゆっくりに */
    pointer-events: none;
    filter: blur(0.5px);  /* 雪の結晶をふんわりと */
}

/* キャンディケインの枠線 */
#profile {
    border: 2px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        rgba(255, 182, 193, 0.4) 0,  /* ライトピンク */
        rgba(255, 182, 193, 0.4) 10px,
        rgba(255, 255, 255, 0.3) 10px,
        rgba(255, 255, 255, 0.3) 20px
    ) 2;
}

/* プロフィールタイトル部分のスタイリング */
#profile h2 {
    position: relative;
    padding-left: 40px;  /* オーナメントの分のスペース */
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#profile h2::before {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;  /* オーナメントのサイズ */
    height: 30px;
    background-image: url('../img/bomb.png');  /* オーナメント画像のパスを指定 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));  /* 柔らかい光沢効果 */
}

/* オプション: ホバー時に揺れるアニメーション */
@keyframes ornamentSwing {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

#profile h2:hover::before {
    animation: ornamentSwing 2s ease-in-out infinite;
}

/* ステータス欄のキャンディケインボーダー */
.container {
    border-image: repeating-linear-gradient(
        45deg,
        rgba(255, 182, 193, 0.5) 0,  /* ライトピンク */
        rgba(255, 182, 193, 0.5) 10px,
        rgba(255, 255, 255, 0.4) 10px,
        rgba(255, 255, 255, 0.4) 20px
    ) 5;
    border-width: 2px;
    border-style: solid;
    padding: 50px;
    margin: auto auto  50px auto;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);  /* 柔らかい光沢を追加 */
}

@keyframes snowflake-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* クリスマス装飾テキスト */
.christmas-text {
    position: fixed;
    font-family: 'Dancing Script', cursive;
    color: rgba(255, 182, 193, 0.25);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* 左側のテキスト */
.christmas-text.left-1 {
    top: 25%;
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

.christmas-text.left-2 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

.christmas-text.left-3 {
    top: 75%;
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

/* 右側のテキスト */
.christmas-text.right-1 {
    top: 25%;
    right: 20px;
    transform: translateY(-50%) rotate(90deg);
}

.christmas-text.right-2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(90deg);
}

.christmas-text.right-3 {
    top: 75%;
    right: 20px;
    transform: translateY(-50%) rotate(90deg);
}

/* 通常のアニメーション */
@keyframes gentleGlow {
    0% { 
        opacity: 0.25;
        transform: translateY(-50%) rotate(-90deg);
    }
    50% { 
        opacity: 0.35;
        transform: translateY(-50%) rotate(-90deg) translateX(3px);
    }
    100% { 
        opacity: 0.25;
        transform: translateY(-50%) rotate(-90deg);
    }
}

@keyframes gentleGlowRight {
    0% { 
        opacity: 0.25;
        transform: translateY(-50%) rotate(90deg);
    }
    50% { 
        opacity: 0.35;
        transform: translateY(-50%) rotate(90deg) translateX(-3px);
    }
    100% { 
        opacity: 0.25;
        transform: translateY(-50%) rotate(90deg);
    }
}

/* ホバー時のアニメーション */
@keyframes hoverBounceLeft {
    0%, 100% { 
        color: rgba(255, 182, 193, 0.4);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) rotate(-90deg) scale(1);
    }
    50% { 
        color: rgba(255, 182, 193, 0.5);
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) rotate(-90deg) scale(1.1);
    }
}

@keyframes hoverBounceRight {
    0%, 100% { 
        color: rgba(255, 182, 193, 0.4);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) rotate(90deg) scale(1);
    }
    50% { 
        color: rgba(255, 182, 193, 0.5);
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) rotate(90deg) scale(1.1);
    }
}

/* 左側のテキストアニメーション */
.christmas-text.left-1,
.christmas-text.left-2,
.christmas-text.left-3 {
    animation: gentleGlow 8s ease-in-out infinite;
}

/* 右側のテキストアニメーション */
.christmas-text.right-1,
.christmas-text.right-2,
.christmas-text.right-3 {
    animation: gentleGlowRight 8s ease-in-out infinite;
}

/* アニメーションのタイミングをずらす */
.christmas-text.left-1, .christmas-text.right-1 { animation-delay: 0s; }
.christmas-text.left-2, .christmas-text.right-2 { animation-delay: 2s; }
.christmas-text.left-3, .christmas-text.right-3 { animation-delay: 4s; }

/* ホバー時のアニメーション適用 */
.christmas-text.left-1:hover,
.christmas-text.left-2:hover,
.christmas-text.left-3:hover {
    animation: hoverBounceLeft 1s ease-in-out;
}

.christmas-text.right-1:hover,
.christmas-text.right-2:hover,
.christmas-text.right-3:hover {
    animation: hoverBounceRight 1s ease-in-out;
}

/* アクティブ（クリック/タップ）時の効果 */
.christmas-text:active {
    color: rgba(255, 182, 193, 0.6) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
}

/* スマートフォン向けの調整 */
@media screen and (max-width: 768px) {
    .christmas-text {
        font-size: 20px;
    }
    
    .christmas-text.left-1,
    .christmas-text.left-2,
    .christmas-text.left-3 {
        left: 5px;
    }
    
    .christmas-text.right-1,
    .christmas-text.right-2,
    .christmas-text.right-3 {
        right: 5px;
    }
    
    .christmas-text.left-1,
    .christmas-text.right-1 {
        top: 20%;
    }
    
    .christmas-text.left-2,
    .christmas-text.right-2 {
        top: 50%;
    }
    
    .christmas-text.left-3,
    .christmas-text.right-3 {
        top: 80%;
    }
}

/* さらに小さい画面向けの調整 */
@media screen and (max-width: 375px) {
    .christmas-text {
        font-size: 18px;
    }
    
    .christmas-text.left-1,
    .christmas-text.left-2,
    .christmas-text.left-3 {
        left: 2px;
    }
    
    .christmas-text.right-1,
    .christmas-text.right-2,
    .christmas-text.right-3 {
        right: 2px;
    }
}