/* 全体 */
body {
    margin: 0;
    font-family: sans-serif;
    background: #fff;
    color: #333;
}

/* ヘッダー */
header {
    background: #1abc9c;
}

.logo {
    width: 250px;
    height: auto;
}

.nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    text-align: center;
    align-items: center;
    width: 75%;
    margin: 0;
}

.nav li {
    display: grid;
    place-items: center;
}

.nav a {
    margin-left: 15px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.nav div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* メイン */
main {
    padding: 20px;
}

/* フッター */
footer {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 15px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* 説明文 */
.site-description {
    padding: 20px;
    margin: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #00adb5;
    border-radius: 8px;
    line-height: 1.6;
}

.site-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0 0;
    color: #222;
}

.site-description h2 {
    margin-top: 0;
}

.site-description p {
    color: #555;
    line-height: 1.6;
}

.site-description a {
    color: #00adb5;
    text-decoration: none;
    font-weight: bold;
}

/* グリッド */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* カード */
.game-card {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
}

/* 画像 */
.game-card img {
    width: 100%;
    border-radius: 10px;
}

.game-card a {
    text-decoration: none;
}

.game-card div {
    position: relative;
}

.game-card p {
    color: #000;
}

.game-card h3{
    position: absolute;
    top:65%;
    left:50%;
    transform: translate(-50%, -50%) translateY(-6px);
    text-align: center;
    white-space: nowrap;
    font-size:1.5rem;
    font-weight:bold;
    margin:0;
    z-index: 1;

    color: #fff;

    text-shadow:
    0 4px 0 rgba(0,0,0,0.8),
    0 8px 0 rgba(80,80,80,0.7),
    0 16px 30px rgba(0,0,0,0.6),
    0 35px 60px rgba(0,0,0,0.5),
    0 0 20px rgba(255,255,255,0.5);
}

/* 日付 */
.date {
    font-size: 13px;
    color: #777;
}

/* NEWバッジ */
.new {
    display: inline-block;
    font-size: 11px;
    background: #1abc9c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* 内容 */
.timeline {
    background: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.more-link {
    text-align: right;
    margin-top: 10px;
}

.more-link a {
    color: #1abc9c;
    text-decoration: none;
}

.more-link a:hover {
    text-decoration: underline;
}

/* 広告バナー */
.ad-banner {
    text-align: center;
    margin: 20px 0;
}

.ad-banner a img {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

/* 広告カード */
.ad-card {
    background: #eef7f8;
    border-radius: 5px;
}

.ad-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* 2カラム */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* 左（メイン） */
.content {
    flex: 3;
}

/* 右（サイドバー） */
.sidebar {
    flex: 1;
}

/* サイド広告 */
.side-ad {
    margin-bottom: 20px;
}

.ad-label {
    font-size: 12px;
    color: gray;
}

/* スマホ対応（超重要） */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin-top: 20px;
    }

    .sidebar {
        order: 2;
    }

    .side-ad {
        margin-bottom: 15px;
    }
}