﻿/* --- 基本設定 --- */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- ヘッダー --- */
header {
    text-align: center;
    padding: 20px 0;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
}

/* --- メインコンテンツ --- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

/* --- ゲームカード（リンク） --- */
.game-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-link:hover {
    transform: translateY(-8px);
}

.game-card {
    width: 480px;
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.game-link:hover .game-card {
    border-color: #4CAF50;
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.2);
}

/* --- サムネイル画像 --- */
.thumbnail-container {
    width: 480px;
    height: 270px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-container::after {
    content: "PLAY NOW";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-link:hover .thumbnail-container::after {
    opacity: 1;
}

/* --- 説明テキストスペース --- */
.description-space {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.description-space h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
}

/* --- 下部のコメントスペース --- */
.comment-space {
    padding: 20px;
    background-color: #161616;
    border-top: 1px solid #333;
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
    flex-grow: 1;
    border-radius: 8px;
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #000;
    border-top: 1px solid #222;
}

/* プロフィールリンクの基本設定 */
.profile-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.profile-link:hover {
    color: #cccccc; 
}

.profile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-link:hover::after {
    width: 100%;
}
