/* ========== 全体レイアウト (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;
}

/* ヘッダー内紹介文(SEO用)のフォント・コントラスト調整 */
.header-intro-area {
    margin-left: 20px;
    flex: 1;
}
.header-title-area .header-intro-area h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #00838f;
    text-shadow: none;
    letter-spacing: normal;
}
.header-title-area .header-intro-area p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    color: #37474f;
}

/* ③ 情報領域 (可変比率: 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: 13fr 10fr 10fr;
    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);
}

/* FAQ用右カラム */
.faq-column {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faq-header {
    flex-shrink: 0;
}

.faq-header h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #00838f;
    text-align: center;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.faq-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px; /* スクロールバー用の余白 */
}

.faq-content::-webkit-scrollbar { width: 6px; }
.faq-content::-webkit-scrollbar-track { background: transparent; }
.faq-content::-webkit-scrollbar-thumb { background: rgba(0, 188, 212, 0.3); border-radius: 3px; }
.faq-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 188, 212, 0.5); }

.faq-content h3 {
    font-size: 0.85rem;
    color: #004d40;
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.faq-content p {
    font-size: 0.75rem;
    color: #263238;
    margin: 0 0 15px 0;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(0, 188, 212, 0.4);
    padding-bottom: 10px;
}
.faq-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}



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

/* ============================================
   ポータル画面専用フッター調整（被り防止）
   ============================================ */
.portal-footer {
    position: static !important;
    margin-top: auto;
}