body {
    /* 全体のフォントと行間設定 */
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;

    /* 背景画像の設定 (修正箇所) */
    /* 画像ファイル名を正しい形式で指定し、画面全体に固定します */
    background-image: url('背景興味ない.png');
    background-size: cover;      /* 画像を画面全体に引き伸ばす */
    background-position: center; /* 画像を中央に配置 */
    background-attachment: fixed;/* スクロールしても背景を固定 */
    background-repeat: no-repeat;/* 画像を繰り返さない */
}

/* コンテンツを読みやすくするための背景設定 */
/* mainタグ全体を半透明の白で覆います */
main {
    background-color: rgba(255, 255, 255, 0.85); /* 白、不透明度85% */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff; /* ヘッダーの文字色は白にして背景とコントラストを取る */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* 読みやすくするための影 */
}

.card {
    /* カード自体は白背景で視認性を確保 */
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff; /* テーブルも白背景 */
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #eee;
}

/* 追加: 表示エリアの調整 */
#display-area {
    background-color: #fff;
    border: 3px solid #333 !important; /* 強調 */
}
.button-container {
    display: flex;          /* フレックスボックスを使用 */
    justify-content: center; /* 左右中央寄せ */
    margin: 20px 0;          /* 上下の余白 */
}

/* ボタン自体の見た目を整える場合は以下も追加 */
#showBtn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
/* 表示エリア内の画像を調整 */
#display-area img {
    width: 100%;           /* 親要素（display-area）の幅に合わせる */
    max-width: 750px;      /* 最大でも400pxまでに制限する */
    height: auto;          /* 縦横比を維持して自動調整 */
    display: block;        /* 中央寄せのためにブロック要素化 */
    margin: 20px auto;     /* 上下に余白を作り、左右を中央寄せ */
}
/* 揺れるアニメーションの定義 */

/* style.css */
.shake-animation {
    /* 0.1s はかなり激しいので、動作確認用に 0.5s にしてみましょう */
    animation: shake 0.2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}