body { background-color: #000000; color: #fff; font-family: 'Segoe UI', sans-serif; margin: 0; padding: 0; text-align: center; } .container { max-width: 700px; margin: 0 auto; padding: 20px; } h1 { margin-bottom: 10px; font-size: 28px; color: #f0f0a0; } h2 { margin-bottom: 10px; font-size: 22px; text-align: center; color: #1e3ea8; } .game-area { background: #3445a0; padding: 10px; border-radius: 10px; box-shadow: 0 0 20px rgba(223, 223, 223, 0.4); } canvas { border: 2px solid #a1650b; background-color: #333; display: block; margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,0.5); } .ui-panel { margin-top: 10px; } .status { font-size: 18px; margin-bottom: 8px; } .controls { margin-bottom: 10px; } button { background-color: #0a8328; color: #fff; border: none; padding: 8px 16px; margin: 0 5px; font-size: 16px; border-radius: 5px; cursor: pointer; min-height: 44px; } button:hover { background-color: #666; } .message { font-size: 16px; color: #ff4444; margin-top: 10px; min-height: 24px; text-shadow: 1px 2px 3px #a7a7a7; } .hint { font-size: 14px; color: #aaa; margin-top: 5px; } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 999; } .overlay-content { background-color: #f0f0f0; color: #000; padding: 30px; border-radius: 10px; max-width: 340px; width: 90%; text-align: left; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.5); } @media (max-width: 480px) { .overlay-content { padding: 20px; font-size: 15px; } .close-button { font-size: 18px; padding: 4px 8px; } } .close-button { position: absolute; top: 10px; right: 12px; background: #c00; color: #fff; border: none; font-size: 32px; padding: 4px 10px; cursor: pointer; border-radius: 6px; } .hidden { display: none; } #helpButton { background-color: #26137e; color: #fff; border: none; padding: 8px 16px; margin: 0 5px; font-size: 16px; border-radius: 5px; cursor: pointer; } #helpButton:hover { background-color: #1d58af; } /* 基本スタイル（PC向け） */ .container { max-width: 700px; margin: 0 auto; padding: 20px; } canvas { width: 100%; height: auto; } /* モバイル・タブレット対応 */ @media (max-width: 768px) { body { font-size: 16px; } .container { padding: 10px; } .overlay-content { width: 95%; padding: 20px; } .controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; } .status { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; } .controls button { width: 100%; font-size: 18px; } .hint { font-size: 13px; } } 