body {
    background-color: rgba(0, 0, 0, 0.05); /* 背景を白に */
    color: #000; /* 文字色を黒に */
    text-align: center;
    overflow: hidden;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    padding: 2vh;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 2vh;
    z-index: 1;
}

textarea {
    width: 100%;
    padding: 1vh;
    border: 1px solid #000; /* 枠線を黒に */
    background-color: #fff; /* テキストエリアの背景を薄いグレーに */
    color: #000; /* テキストエリアの文字色を黒に */
    font-size: 1em;
    resize: vertical;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 1vh;
}

button {
    flex: 1;
    padding: 1vh;
    font-size: 1em;
    background-color: #4CAF50; /* ボタンの背景色 */
    color: white; /* ボタンの文字色 */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049; /* ホバー時のボタン色 */
}

#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.firework {
    position: absolute;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em; /* 小さい画面でのタイトルサイズ */
    }

    textarea {
        font-size: 0.9em; /* 小さい画面でのテキストエリアサイズ */
    }

    button {
        font-size: 0.9em; /* 小さい画面でのボタンサイズ */
    }
}

@media (max-height: 500px) {
    .container {
        gap: 1vh; /* 高さが小さい場合のギャップ調整 */
    }

    h1 {
        font-size: 1.8em; /* 高さが小さい場合のタイトルサイズ */
        margin-bottom: 1vh; /* 高さが小さい場合のマージン調整 */
    }

    textarea {
        max-height: 20vh; /* 高さが小さい場合のテキストエリア最大高さ */
    }
}
