@import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "M PLUS Rounded 1c";
    background-color: #F5F5F5;
    color: #333;
}

header {
    background-color: #FFA3D3;
    padding: 1rem;
}

header h1 {
    font-size: 2rem;
    color: #FFF;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav li {
    margin: 0 0.5rem;
}

nav a {
    text-decoration: none;
    color: #FFF;
    font-size: 1.2rem;
    transition: all 0.3s;
}

nav a:hover {
    text-decoration: underline;
    color: #FFC0CB;
}

img {
    max-width:100%;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

footer {
    background-color: #FFA3D3;
    padding: 1rem;
    text-align: center;
}

footer p {
    color: #FFF;
}

/* タイピングゲームリンクアニメーション */
.typing-game-link {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}

/* 雪のパーティクルのスタイル */
#snowflakes {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: fall linear infinite;
}

/* 雪のパーティクルのアニメーション */
@keyframes fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(calc(100% + 5px)); /* 最大サイズの雪パーティクルを考慮 */
    }
}