body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: fade 15s infinite;
    opacity: 0;
}

.bg-image:nth-child(1) {
    background-image: url('background/001.png');
    animation-delay: 0s;
}

.bg-image:nth-child(2) {
    background-image: url('background/002.png');
    animation-delay: 5s;
}

.bg-image:nth-child(3) {
    background-image: url('background/003.png');
    animation-delay: 10s;
}

@keyframes fade {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

.content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hamburger {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.line {
    width: 100%;
    height: 3px;
    background-color: white;
}

.menu-content {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    background: rgba(0, 0, 0, 1); /* 黒の半透明背景 */
}

.menu-content a {
    color: white;
    text-decoration: none;
    margin-bottom: 5px;
}

.main-container {
    width: 95vw;  /* ビューポート幅の95% */
    height: auto; /* 高さは自動 */
    max-width: 1024px; /* 最大幅 */
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;  /* 左寄せ */
    padding: 10px; /* 内側の余白を追加 */
    box-sizing: border-box;
    margin-top: 80px; /* メニューの高さに合わせて調整 */
}


.game-section {
    display: flex;
    width: 100%;
    margin-bottom: 20px; /* 各ゲームセクションの間隔 */
}

.game-image-container {
    width: 20%;
    margin-right: 20px; /* 画像と説明文の間のスペース */
}

.game-link {
    position: relative;
    width: 100%;
    text-align: center;
}

.game-link img {
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: -60px; /* オーバーレイを上にずらす */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay img {
    width: 100%;
    height: auto;
}

.overlay-text {
    color: white;
    font-size: 12px;
    margin-top: 10px;
}

.game-link:hover .overlay {
    opacity: 1;
}

.game-description {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.5); /* 黒の半透明背景 */
    padding: 10px; /* 内側の余白を追加 */
    border-radius: 5px; /* 角を丸める */
}


.game-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-text {
    font-size: 10px;
    margin-bottom: 5px;
}

.update-info {
    width: 100%;
    height: 15vw;  /* ビューポート幅の15% */
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.5); /* 黒の半透明背景 */
    padding: 5px;
    box-sizing: border-box;
    margin-top: 10px; /* ゲーム画像と更新情報の間のスペース */
    display: flex;
    flex-direction: column;
}

.update-info-top, .update-info-bottom {
    width: 100%;
    padding: 5px;
    color: white;
}

.update-info-bottom {
    position: relative;
    height: 50px; /* 表示領域の高さを指定 */
    color: white;
    overflow: hidden;
}

.update-info-bottom div {
    position: absolute;
    width: 100%;
    height: 50px; /* 各行の高さを指定 */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s;
}

.update-info-bottom div.active {
    opacity: 1;
}

.free-space {
    flex: 1;
    width: 100%;
    height: 20vw;  /* ビューポート幅の20% */
    border: 2px solid white;
    margin-top: 10px; /* 更新情報とフリースペースの間のスペース */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.icon-link {
    margin-left: 10px;
}

.icon-link img {
    width: 50px;
    height: auto;
}
