* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #fbf5ee;
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    color: #4a2c11;
    min-height: 100vh;
    padding: 30px 20px;
    background-image: 
        radial-gradient(#e0c4a8 15%, transparent 16%), 
        radial-gradient(#e0c4a8 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.portal-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ヘッダー */
.portal-header {
    text-align: center;
    margin-bottom: 36px;
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.08);
    border: 3px solid #ffe0b2;
}

.portal-tag {
    display: inline-block;
    background: #ff7043;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.portal-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: #e65100;
    margin-bottom: 8px;
}

.portal-header p {
    font-size: 15px;
    color: #6d4c41;
}

/* ゲーム一覧グリッド */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ゲームカード */
.game-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #ffcc80;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(139, 69, 19, 0.16);
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #fbe9e7;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e91e63;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-genre {
    font-size: 12px;
    font-weight: bold;
    color: #fb8c00;
    margin-bottom: 4px;
}

.game-title {
    font-size: 20px;
    font-weight: 900;
    color: #3e2723;
    margin-bottom: 8px;
    line-height: 1.3;
}

.game-desc {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.game-btn {
    display: block;
    text-align: center;
    background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 0 #b26a00, 0 6px 12px rgba(245, 124, 0, 0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #b26a00;
}

/* 準備中スロット */
.card-coming-soon {
    border: 3px dashed #d7ccc8;
    background: #f7f3ef;
    opacity: 0.85;
}

.card-coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.05);
}

.coming-placeholder {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    background: #ece3db;
}

.btn-disabled {
    background: #bcaaa4;
    box-shadow: none;
    cursor: not-allowed;
}

/* 開発・追加ガイドセクション */
.portal-guide {
    background: #ffffff;
    border: 2px solid #e0d6cc;
    border-radius: 18px;
    padding: 20px 24px;
    font-size: 14px;
    color: #4e342e;
    line-height: 1.7;
}

.portal-guide h3 {
    color: #e65100;
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-guide code {
    background: #f5ede6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d84315;
    font-family: Consolas, monospace;
}

/* 広告枠スタイル (ポータル) */
.portal-ad-container {
    margin: 30px auto 36px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #ffcc80;
    border-radius: 20px;
    padding: 16px 12px;
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-label {
    font-size: 11px;
    font-weight: bold;
    color: #a1887f;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admax-pc {
    display: block;
    max-width: 100%;
}

.admax-sp {
    display: none;
    max-width: 100%;
}

@media (max-width: 768px) {
    .admax-pc {
        display: none !important;
    }
    .admax-sp {
        display: block !important;
    }
}
