/* ========== 全体レイアウト (Hybrid) ========== */
html, body {
    min-height: 100vh;
    margin: 0; padding: 0;
}
body {
    background: #e0f7fa;
    color: #37474f;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

/* ① アンカー広告 (固定) */
.ad-banner {
    width: 100%; height: 90px;
    background: repeating-linear-gradient(
        -45deg,
        #1e1e1e,
        #1e1e1e 10px,
        #252525 10px,
        #252525 20px
    );
    border-bottom: 1.5px solid rgba(0, 188, 212, 0.25);
    color: #777;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: static !important;
    margin-bottom: 24px; /* 広告下部に余白を設けて視覚的境界を確保 */
}

/* ② ヘッダー (可変比率: 20) */
.portal-header {
    flex: 20; 
    min-height: 0;
    display: flex;
    padding: 0 30px;
    box-sizing: border-box;
    align-items: center;
}

/* ③ 情報領域 (可変比率: 5) */
.portal-info {
    flex: 5;
    min-height: 0;
    display: flex;
    align-items: center;
    margin: 0 30px; /* 枠が浮いているように見せるための余白 */
    padding: 0 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.05);
}

/* ④ ゲーム選択エリア (可変比率: 55) */
.portal-games {
    flex: 55;
    min-height: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
    padding: 10px 30px;
    gap: 15px;
    box-sizing: border-box;
}

/* 左側ゲーム・マイページコントロールカラム */
.left-games-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
    box-sizing: border-box;
}

/* 左側ゲームカードの縦幅70%化 */
.left-games-column .card-towerfill {
    height: calc(70% - 8px) !important;
    min-height: 0 !important;
}

/* 移設されたマイページコントロールの縦幅30%化 */
.left-games-column #auth-controls {
    height: calc(30% - 7px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

/* ⑤ フッター (固定) */
.portal-footer {
    height: 50px; flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-top: 1px solid rgba(0,188,212,0.2);
}
.portal-footer-links { margin-bottom: 4px; }
.portal-footer-links a {
    color: #00838f; text-decoration: none;
    font-size: 0.75rem; font-weight: 500;
}
.portal-footer-links a:hover { color: #00bcd4; }
.portal-footer-links .sep {
    color: #b0bec5; margin: 0 10px; font-size: 0.7rem;
}
.portal-footer-copy { font-size: 0.65rem; color: #90a4ae; }

/* 非表示ユーティリティ */
.hidden { display: none !important; }
