/* 全体のリセットと基本スタイル */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.game-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.game-header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.game-header h1 {
    margin: 0;
    font-size: 2.5em;
}

.game-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9em;
}

/* 各セクションの共通スタイル */
.game-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
}

.game-section h2 {
    color: #2980b9;
    font-size: 2em;
    margin-top: 0;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* モバイル対応のため折り返し */
}

.content-box img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-box p, .content-box ul {
    flex: 1;
    min-width: 250px; /* 画像と並んだ時に適度に折り返す */
}

.content-box ul {
    list-style-type: disc;
    margin-left: 20px;
}

.content-box ul li {
    margin-bottom: 8px;
}

/* ステージセレクトのスタイル */
.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.stage-item {
    background-color: #ecf0f1;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stage-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 15px; /* テキスト部分のパディング */
}

.stage-item img {
    width: 100%;
    height: 180px; /* 画像の高さ固定 */
    object-fit: cover; /* 画像がはみ出さないように調整 */
    border-bottom: 1px solid #ddd;
}

.stage-item h3 {
    font-size: 1.4em;
    color: #34495e;
    margin: 15px 15px 5px 15px;
}

.stage-item p {
    font-size: 0.95em;
    color: #555;
    margin: 0 15px 10px 15px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .game-container {
        margin: 10px auto;
        padding: 15px;
    }

    .game-header h1 {
        font-size: 2em;
    }

    .game-section {
        padding: 15px;
        margin-bottom: 30px;
    }

    .game-section h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .content-box {
        flex-direction: column; /* 画像とテキストを縦に並べる */
        align-items: flex-start; /* 左寄せ */
    }

    .content-box img {
        max-width: 100%; /* モバイルでは画像幅を100%に */
        margin-bottom: 15px; /* 画像の下に余白 */
    }

    .stage-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }

    .stage-item img {
        height: 200px; /* モバイルでのステージ画像高さ調整 */
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8em;
    }

    .game-section h2 {
        font-size: 1.6em;
    }

    .content-box p, .content-box ul {
        min-width: unset; /* 最小幅のリセット */
    }
}