body {
    font-family: sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    
    /* 追加：ページ全体に背景を敷くための設定 */
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    background-image: url('空気読め背景.png');
    background-repeat: no-repeat;
    background-size: cover; /* 画面全体に広げる場合 */
    background-position: center;
}
/* CSSファイルに記述 */
.info-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
    color: white;
}

h1 { color: #333; }
section { margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
button {
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
    cursor: auto;
    margin: 0.5rem auto;
    display: block;   /* 最後の行にもセミコロンを付ける習慣をつけましょう */
}
#myVideo {
    width: 100%;       /* 親要素の幅に合わせる */
    max-width: 800px;  /* ただし、大きくても 800px までにする */
    height: auto;      /* 縦横比を維持 */
    display: block;    /* 隙間をなくす */
    margin: 0 auto;    /* 中央寄せ */
}
/* 最初はビデオを完全に隠す */
#hiddenVideo {
    display: none;
}
/* シェイクするアニメーションの定義 */
@keyframes shake-violent {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(-1deg); }
    50% { transform: translate(10px, 10px) rotate(1deg); }
    75% { transform: translate(-10px, 10px) rotate(-1deg); }
    100% { transform: translate(10px, -10px) rotate(1deg); }
}
/* アニメーションを適用するクラス */
.is-shaking {
    /* shake-violent を使用し、間隔をさらに短く（0.25秒）して超高速振動にする */
    animation: shake-violent 0.25s infinite;
    animation-timing-function: linear;
}

/* ビデオの初期設定（前回の続き） */
#hiddenVideo {
    display: none;
}