body {
    font-family: 'Press Start 2P', cursive;
    background-image: url('../img/wallpaper_minecraft_bedrock_edition_800x450.png'); /* Minecraft風の背景画像 */
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    text-shadow: 2px 2px 0 #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
.container {
    background-color: rgba(173, 216, 230, 0.8); /* 薄い水色の半透明背景 */
    border: 5px solid #8B4513; /* 木目調のボーダー */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin-top: 50px;
}
h1 {
    color: #8B4513; /* 茶色 */
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 #fff, 5px 5px 0 #000;
}
.table-responsive {
    width: 100%;
    margin-bottom: 20px;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
    border: 2px solid #8B4513;
    padding: 12px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    position: relative; /* アニメーションの基準点 */
}
.ranking-table th {
    background-color: rgba(139, 69, 19, 0.9); /* 濃い茶色 */
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}
.top-10 {
    background-color: rgba(255, 215, 0, 0.8) !important; /* 金色 */
    font-weight: bold;
    color: #8B4513 !important;
    text-shadow: 1px 1px 0 #fff;
}
.top-3 {
    background-color: rgba(255, 165, 0, 0.9) !important; /* オレンジ色 */
    font-size: 1.1em;
}
.top-1 {
    background-color: rgba(255, 69, 0, 0.9) !important; /* 赤オレンジ色 */
    font-size: 1.2em;
    border: 3px solid #FFD700 !important; /* 金色のボーダー */
}
.show-more-link {
    display: inline-block;
    background-color: #4CAF50; /* 緑色 */
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    border: 2px solid #388E3C;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}
.show-more-link:hover {
    background-color: #388E3C;
}
.hidden-rows {
    display: none;
}
/* 新しい行のアニメーション */
.fade-in-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.5s ease-out forwards;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        margin-top: 20px;
        width: calc(100% - 20px); /* 左右のパディングを考慮 */
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .ranking-table th, .ranking-table td {
        padding: 8px;
        font-size: 0.9em;
    }
    .show-more-link {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    .ranking-table th, .ranking-table td {
        padding: 6px;
        font-size: 0.8em;
    }
    .show-more-link {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}
footer {
    margin-top: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    font-size: 0.9em;
    text-align: center;
}
footer p {
    margin: 5px 0;
}
