body {
    font-family: "Nunito", "Kiwi Maru", "Noto Sans JP", sans-serif;
    margin: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header h1 {
    float: left;
    margin: 0;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

main {
    padding: 20px 0;
}

article {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

.icon-unityroom {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}

/* Media queries for responsiveness */

.game-icons {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.game-icons h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* アイコン間のスペース */
}

.game-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    /* アイコンの幅 */
    height: auto;
    /* 高さを自動調整 */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    padding-bottom: 10px;
    /* テキストとアイコンの間の余白 */
}

.game-icon-link:hover {
    transform: translateY(-5px);
    /* ホバー時のアニメーション */
}

.game-icon {
    width: 100%;
    height: 100%;
    max-height: 200px;
    /* アイコンの最大高さを設定 */
    object-fit: cover;
    /* 画像がコンテナに収まるように調整 */
    display: block;
}

.game-name {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #333;
}

.game-description {
    font-size: 0.9em;
    color: #666;
    padding: 0 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .icon-grid {
        justify-content: center;
    }

    .game-icon-link {
        width: 150px;
        height: auto;
    }

    .game-icon {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .game-icon-link {
        width: 120px;
        height: auto;
    }

    .game-icon {
        max-height: 120px;
    }
}


.game-section {
    background-image: url('Images/game egg.png');
    background-size: 400px auto;
    background-repeat: no-repeat;
    background-position: right center;
}

.namatamago-section {
    background-image: url('Images/what egg.png');
    background-size: contain;
    background-size: 400px auto;
    background-repeat: no-repeat;
    background-position: right center;
}

.version-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* ボタン間のスペース */
    margin-bottom: 20px;
}

.version-button {
    background-color: #727272;
    /* Green */
    border: none;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    min-width: 120px;
    /* 最小幅を統一 */
    box-sizing: border-box;
    /* paddingとborderをwidth/heightに含める */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* ホバーアニメーションの追加 */
}

.version-button:hover {
    background-color: #727272;
    transform: translateY(-2px);
    /* ホバー時に少し上に移動 */
}