body {
    margin: 0;
    background-color: white;
    /* 古びた紙のようなテクスチャを背景に追加 */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="10" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity=".12"/></svg>');
    font-family: sans-serif;
    display: flex; /* #containerを中央寄せにするため */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#container {
    /* フォーム要素を縦に並べる設定 */
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
}

#answer-input {
    width: 250px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

#submit-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    /* 白基調のデザインに変更 */
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#submit-button:hover {
    background-color: #f2f2f2;
}

#result-area {
    margin-top: 20px;
    padding: 15px;
    min-height: 50px;
    width: 100%; /* コンテナの幅に合わせる */
    text-align: left;
    white-space: pre-wrap; /* 改行を反映させる */
    line-height: 1.6;
    box-sizing: border-box; /* paddingを含めてwidthを計算 */
}

#tweet-area a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    /* 黒背景・白文字に変更 */
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

#tweet-area a:hover {
    opacity: 0.8;
}





