body {
    margin: 0;
    padding: 0;
    background-color: #ffe4b5; 
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    touch-action: none; 
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 500px; 
    margin: 0 auto;
    background-color: #87CEEB; 
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* ドット絵をぼやけさせずにくっきり拡大する設定 */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#ui-layer {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    pointer-events: none; 
}

.score-board {
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    border: 2px solid #ff7f50;
}

.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.screen.hidden {
    display: none;
}

h1 {
    color: #ff7f50;
    text-shadow: 2px 2px 0 #fff;
    margin-bottom: 10px;
}

button {
    background-color: #ff7f50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 0 #cc6640;
    transition: transform 0.1s;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}

button:disabled {
    background-color: #999;
    box-shadow: 0 4px 0 #666;
    cursor: not-allowed;
}

#btn-ad-continue {
    background-color: #32cd32;
    box-shadow: 0 4px 0 #228b22;
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

#special-image {
    background: gold;
    color: black;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    margin: 10px 0;
    animation: bounce 0.5s infinite;
}

/* ★スタート画面だけ、どぎついピンク（マゼンタ）の半透明にする */
#screen-start {
    background: rgba(255, 0, 255, 0.85); 
}