body { 
    font-family: 'Noto Serif JP', serif; 
    text-align: center; 
    background-color: #fcf9f2; 
    background-image: radial-gradient(#e0dcd3 1px, transparent 1px);
    background-size: 20px 20px;
    margin: 0; 
    padding: 20px; 
}
.container { margin-top: 50px; }
button { padding: 15px 30px; font-size: 18px; cursor: pointer; background-color: #d32f2f; color: white; border: none; border-radius: 5px; font-family: 'Noto Serif JP', serif; }
button:hover { background-color: #b71c1c; }

/* アニメーション用 */
.hidden { display: none !important; }
#animation-area { margin: 30px 0; }
.shaking-box { font-size: 80px; animation: shake 0.5s infinite; }
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  25% { transform: translate(-1px, -2px) rotate(-5deg); }
  50% { transform: translate(-3px, 0px) rotate(5deg); }
  75% { transform: translate(3px, 2px) rotate(-5deg); }
  100% { transform: translate(1px, -1px) rotate(0deg); }
}
/* 以下の記述を追加・変更 */
#omikuji-img {
    width: 200px; /* 元のサイズ */
    
    /* ★ここを追加★ */
    display: block;
    margin-left: auto;
    margin-right: auto;

    cursor: pointer;
    touch-action: manipulation; /* 前回の提案 */
}
/* @keyframes shake と .shaking-box は不要になるため削除して構いません */

/* モーダル用 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 10px; box-sizing: border-box; }
.modal-content { background: white; padding: 20px; border-radius: 10px; width: 100%; max-width: 450px; max-height: 95vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.canvas-wrapper { width: 100%; overflow: hidden; display: flex; justify-content: center; }
canvas { max-width: 100%; height: auto; border: 1px solid #ddd; margin-bottom: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.action-buttons button { flex: 1; min-width: 100px; margin: 0; font-size: 14px; padding: 10px 10px; }
.affiliate-area { margin-bottom: 15px; padding: 15px; background: #fff8e1; border-radius: 8px; border: 1px solid #ffe0b2;}
.aff-btn { display: inline-block; padding: 12px; background: #f57c00; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; font-family: sans-serif;}