body {
    background: #e0f7fa;
    font-family: 'Zen Maru Gothic', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    color: #333;
}

.game-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 640px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    font-size: 1.5rem;
    color: #d84315;
    margin: 0 0 5px 0;
}

p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
}
/* SEO・AdSense用テキストボックスのデザイン */
        .seo-text-box {
            margin-top: 50px;
            background-color: #fff;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            max-width: 600px;
            width: 85%;
            color: #555;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }
        .seo-text-box h2 {
            font-size: 1.2rem;
            color: #333;
            margin-top: 0;
            margin-bottom: 12px;
            border-bottom: 2px solid #eee;
            padding-bottom: 8px;
        }
canvas {
    background: linear-gradient(to bottom, #87ceeb, #e0f8ff 70%, #a8e6cf 70%);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    height: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 15px auto;
}

/* ランキング表示エリア */
.ranking-container {
    background: #fff3e0;
    border: 2px dashed #ffb74d;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.ranking-container.hidden {
    display: none;
}

.ranking-container h3 {
    font-size: 0.95rem;
    color: #e65100;
    margin: 0 0 5px 0;
    text-align: center;
}

.ranking-container ol {
    margin: 0;
    padding-left: 25px;
    font-size: 0.9rem;
    color: #444;
    font-weight: bold;
}

/* リザルト用ボタンエリア */
.result-area {
    margin-bottom: 15px;
}

.result-area.hidden {
    display: none;
}

.controls-area {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.main-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.1s, background 0.2s;
}

.main-btn:active {
    transform: scale(0.95);
}

.swing-color {
    background: #ff7043;
}
.swing-color:active {
    background: #f4511e;
}

.jump-color {
    background: #43a047;
}
.jump-color:active {
    background: #2e7d32;
}

.restart-color {
    background: #ab47bc;
    max-width: 300px;
    margin: 0 auto;
}
.restart-color:active {
    background: #8e24aa;
}

.back-btn {
    align-self: flex-start;
    margin-bottom: 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
