body {
    background: linear-gradient(135deg, #FAF3E0, #FAF3E0);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0rem;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

main {
    flex: 1;
}

#header-title {
    position: relative;
    background-color: #894c23;
    margin: 0;
    padding: 12px;
    text-align: center;
    width: 100vw;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.title-logo {
    width: 40%;
    max-width: 300px;
    object-fit: cover;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* ログインボタン */
.header-right {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.login-btn {
    padding: 6px 12px;
    background: #fff;
    color: #894c23;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #f0e0d0;
}

.mypage-btn {
    padding: 6px 12px;
    background: #fff;
    color: #894c23;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mypage-btn:hover {
    background: #f0e0d0;
}

.user-info {
    display: block;
    align-items: center;
    margin-bottom: 10px;
}

.user-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
}


/* ヒーローとゲームセクション統一用 */
.hero,
.games {
    padding: 3rem 1rem;
    width: 100%;
}

/* ヒーローセクション */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 0;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    color: #894c23;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
}

.hero p {
    font-size: 1.2rem;
    color: #5a3e2b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 新着情報 */
.news {
    background: #fffaf0;
    color: #5a3e2b;
    padding: 2rem 1rem;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 70%;
    text-align: left;
    font-family: 'Georgia', serif;
    border: 2px solid #c15700;
    text-align: center;

}

.news h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #894c23;
    border-bottom: 2px dashed #c15700;
    padding-bottom: 0.5rem;
    text-align: center;
}

.news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news li {
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px dotted #d9b08c;
    line-height: 1.6;
}

.news li:last-child {
    border-bottom: none;
}

.news .date {
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 1rem;
    color: #c15700;
    font-weight: bold;
}


/* ゲームカードコンテナ（グリッド） */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ゲームカード */
.game-card {
    background: #fffaf0;
    width: 50%;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-top: 6px solid #c15700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.game-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5a3e2b;
    margin-bottom: 1rem;
    text-align: center;
}

/* ボタン */
.btn {
    display: block;
    width: fit-content;
    padding: 10px 18px;
    background: #c15700;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.3s;
    margin: 0 auto;
}

.btn:hover {
    background: #6b3000;
}

/* フッター */
.footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #c15700;
    margin-top: 2rem;
}

/*SNSシェア*/
.sns-share {
    margin-top: 2rem;
    text-align: center;
    user-select: none;
    margin-bottom: 3rem;
}

.sns-share p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #894c23;
}

.sns-share a {
    display: inline-block;
    margin: 0 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.btn-twitter {
    background-color: #1DA1F2;
}

.btn-twitter:hover {
    background-color: #0d8ddb;
}

.btn-line {
    background-color: #00c300;
}

.btn-line:hover {
    background-color: #00a600;
}

.btn-facebook {
    background-color: #1877F2;
}

.btn-facebook:hover {
    background-color: #105dbf;
}

/* レスポンシブ */
@media (max-width: 768px) {

    /* ログインボタン */
    .header-right {
        right: 7%;
        top: 60%;
    }

    .login-btn {
        font-size: 0.6rem;
    }

    .mypage-btn {
        font-size: 0.6rem;
        position: relative;
        top: -10px;
    }


    .user-info {
        display: block;
        align-items: center;
        margin-bottom: 0;
        position: relative;
        top: -10px;
    }

    .user-icon {
        width: 40px;
        height: 40px;
        object-fit: cover;
    }

    /* 新着情報 */
    .news {
        padding: 1rem 1rem;
        margin: 2rem auto;
        max-width: 70%;
    }

    .news h2 {
        font-size: 1.3rem;
        margin-top: 0.5rem;
        margin-bottom: 0rem;
        padding-bottom: 0.5rem;
    }

    .news li {
        font-size: 1rem;
        padding: 0.4em 1rem;

    }

    .news .date {
        font-size: 1rem;
        margin-right: 1rem;
    }

    .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 85%;
        margin: 0 auto;
    }

    .game-thumb {
        height: 120px;
    }

    .game-card {
        width: 85%;
    }

    .game-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .game-thumb {
        height: 120px;
    }

    /*SNSシェア*/
    .sns-share {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .sns-share p {
        margin-bottom: 0.7rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .sns-share a {
        margin: 0 0.3rem;
        padding: 0.5rem 0.7rem;
        border-radius: 7px;
        font-weight: 700;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease;
        font-size: 0.7rem;
    }
}