/* =========================================================
   共通設定
   ========================================================= */

body {
    background-color: #000;
    background-image:
        radial-gradient(#333 1px, transparent 1px),
        radial-gradient(#222 1px, transparent 1px);
    background-size: 4px 4px, 4px 4px;
    background-position: 0 0, 2px 2px;

    padding-bottom: 100px;
    font-family: "8bit";
    color: #fff;
}

/* スクロールバー */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #fff; }

/* PC/SP 切り替え */
.pc { display: block !important; }
.sp { display: none !important; }

@media (max-width: 720px) {
    .pc { display: none !important; }
    .sp { display: block !important; }
}

/* PC */
@media (min-width: 720px) {
    body {
        padding-top: 120px; /* ヘッダー高さに合わせて調整 */
    }
}

/* SP */
@media (max-width: 720px) {
    body {
        padding-top: 100px; /* スマホは画像が小さいので少なめ */
    }
}

/* リンク */
a {
    text-decoration: none;
    color: white;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    z-index: 9998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(32, 32, 32, 0.9);
    height: auto;
}

.site-header h1 {
    margin: 0;
    padding: 0;
}

.site-header img {
    height: 80px;
    width: auto;
}

@media (max-width: 720px) {
    .site-header img {
        height: 60px;
    }
}

/* =========================================================
   セクション
   ========================================================= */

.section-box {
    background-color: rgba(154, 154, 154, 0.7);
    padding: 10px;
    margin: 15px 0;
}

/* =========================================================
   ゲームアイテム
   ========================================================= */

.game-item {
    margin: 15px 5% 15px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background-color: #000;
    border: 4px solid #fff;
    border-radius: 8px;
}

/* 画像 */
.img-large,
.img-small {
    margin: 10px;
    border: 1px solid #d3d3d3;
}

@media (min-width: 720px) {
    .img-large { width: 300px; }
    .img-small { width: 200px; }
}

@media (max-width: 720px) {
    .img-large,
    .img-small { width: 70vw; }
}

/* タイトル */
.game-title {
    margin: 0.25em;
    display: inline-block;
    padding: 2px 6px;
    font-weight: bold;
    background: #000;
    border: 2px solid #fff;
    border-radius: 4px;
}

/* 説明 */
.game-desc {
    margin-left: 20px;
}

/* タグ */
.tag-free,
.tag-paid {
    margin: 0.25em;
    display: inline-block;
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 4px;
}

.tag-free { background: #00f; }
.tag-paid { background: #dc143c; }

/* =========================================================
   ボタン
   ========================================================= */

.btn-nav {
    color: #fff;
    font-weight: bold;
    font-size: 120%;
    background: #962e0e;
    width: 100px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 50px 10px 0;
}

.btn-link {
    margin: 0.25em;
    padding: 0.25em 0.5em;
    display: inline-block;
    background: #dc143c;
    border: 2px solid #dc143c;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
}

.btn-link:hover {
    background: #ff7f50;
}

.btn-twitter {
    font-size: 90%;
    padding: 0.25em 0.5em;
    display: inline-block;
    background: #1e90ff;
    border: 2px solid #0000ff;
    border-radius: 20px;
    color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.05);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    text-align: center;
    background-color: rgba(32, 32, 32, 0.9);
    color: #fff;
    margin: 15px 0;
}

.page-switch {
    text-align: center;
    margin: 20px 0;
}

.page-switch .page-btn {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #333;
    border: 2px solid #fff;
    text-decoration: none;
}

.page-switch .page-btn:hover {
    background: #555;
}

.page-switch .active {
    background: #ffcc00;
    color: #000;
    border-color: #000;
}
