/* === Genelab v3.3 Design System (2026-05-28) === */
/* Brand: Navy #0B1426 / Blue #0052cc / White */

/* --- Brand Hero --- */
.gl-brand-hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 50%, #1a1a2e 100%);
    margin-top: -1rem;
}
.gl-brand-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 36px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.gl-brand-hero-left { flex: 1; }
.gl-brand-hero-right {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.gl-brand-hero-title {
    font-family: "Jost", "Noto Sans JP", sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
}
.gl-brand-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 18px;
    line-height: 1.6;
}

/* --- Hero CTAs: White on Dark = Max Contrast --- */
.gl-brand-hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: #fff !important;
    color: #0d1b3e !important;
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(255,255,255,0.2);
}
.gl-btn-primary:hover {
    background: #e8f0fe !important;
    color: #0d1b3e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}
.gl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
    transition: all 0.25s;
}
.gl-btn-outline:hover {
    border-color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* --- Hero banner --- */
.gl-hero-banner-link {
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}
.gl-hero-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

/* --- Hero right: Latest articles --- */
.gl-brand-hero-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.gl-mini-card {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid rgba(0,82,204,0.6);
    text-decoration: none !important;
    transition: all 0.3s;
    margin-bottom: 6px;
}
.gl-mini-card:hover {
    background: rgba(255,255,255,0.14);
    border-left-color: #3b82f6;
}
.gl-mini-card .gl-mini-date {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 3px;
}
.gl-mini-card .gl-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Block ALL Ads in Hero --- */
.gl-brand-hero .adsbygoogle,
.gl-brand-hero ins.adsbygoogle,
.gl-brand-hero [id^="div-gpt-ad"],
.gl-brand-hero .adrotate_widgets,
.gl-brand-hero iframe[src*="googlesyndication"],
.gl-brand-hero .google-auto-placed,
.gl-brand-hero .ap_container,
.gl-brand-hero [data-ad-client],
.gl-brand-hero-sub + div:not(.gl-brand-hero-cta) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* --- News Ticker Bar --- */
.gl-news-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.gl-news-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.08em;
}
.gl-news-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.gl-news-ticker-wrap {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.gl-news-ticker-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: gl-ticker 70s linear infinite;
}
.gl-news-ticker-track:hover { animation-play-state: paused; }
.gl-news-item {
    white-space: nowrap;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.gl-news-item:hover { color: #0052cc; }
.gl-news-source { font-size: 10px; color: #999; margin-left: 4px; }
@keyframes gl-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Unified Cards --- */
.gl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.gl-card a { color: inherit !important; text-decoration: none !important; }
.gl-card-thumb-wrap { position: relative; overflow: hidden; }
.gl-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gl-card-thumb-default { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gl-card-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,82,204,0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Category Badges (brand blue) --- */
.gl-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #0052cc;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}
.gl-cat-badge-sm {
    display: inline-block;
    padding: 2px 8px;
    background: #eef2ff;
    color: #0052cc;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
}

/* --- Featured Main --- */
.gl-featured-main { border-radius: 12px; overflow: hidden; }

/* --- Tab Section (brand blue) --- */
.gl-tab-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.gl-tab-nav { display: flex; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.gl-tab-btn {
    flex: 1; padding: 12px 10px; font-size: 12px; font-weight: 700;
    color: #888; background: #fafafa; border: none; cursor: pointer;
    transition: all 0.2s; white-space: nowrap; border-bottom: 2px solid transparent;
}
.gl-tab-btn:hover { color: #0052cc; background: #f0f4ff; }
.gl-tab-btn.active { color: #0052cc; background: #fff; border-bottom-color: #0052cc; }
.gl-tab-content { display: none; padding: 16px; }
.gl-tab-content.active { display: block; }

/* ============================================
   GLOBAL BUTTON TEXT FIX
   Force white text on ALL blue/dark background buttons
   ============================================ */

/* Any <a> with inline blue/dark background */
a[style*="background:#0052cc"],
a[style*="background: #0052cc"],
a[style*="background:#ff6b2b"],
a[style*="background: #ff6b2b"],
a[style*="background:#0f172a"],
a[style*="background: #0f172a"],
a[style*="background:#2563eb"],
a[style*="background: #2563eb"] {
    color: #fff !important;
}

/* Sango theme CTA buttons - target DARK backgrounds only */
.cta-content__btn a,
.cta-content a.cta-btn,
.entry-content a[style*="background:#0"],
.entry-content a[style*="background:#1"],
.entry-content a[style*="background:#2"],
.entry-content a[style*="background:#3"],
.entry-content a[style*="background: #0"],
.entry-content a[style*="background: #1"],
.entry-content a[style*="background: #2"],
.entry-content a[style*="background: #3"],
.dfad a[style*="background:#0"],
.genelab-article-cta-auto a[style*="background:#0052cc"] {
    color: #fff !important;
}

/* In-content blue buttons from WP editor */
.entry-content .wp-block-button__link,
.entry-content a.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    color: #fff !important;
}

/* Sango specific button classes */
.sanko-button a,
.btn-wrap a,
.ranking-btn a,
.trBtn01 a,
a.more-link,
.entry-content a[style*="background-color:#0"],
.entry-content a[style*="background-color:#1"],
.entry-content a[style*="background-color:#2"],
.entry-content a[style*="background-color:#3"],
.entry-content a[style*="background-color: #0"],
.entry-content a[style*="background-color: #1"],
.entry-content a[style*="background-color: #2"] {
    color: #fff !important;
}

/* Article footer CTA */
.genelab-article-cta-auto a:first-child {
    color: #fff !important;
    background: #0052cc !important;
}
.genelab-article-cta-auto a:last-child {
    color: #0052cc !important;
    border-color: #0052cc !important;
}

/* Sidebar CTA */
.bg-gradient-to-br.from-blue-600 {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%) !important;
}

/* Ranking badges */
.bg-brand-blue { background-color: #0052cc !important; }
.text-brand-blue { color: #0052cc !important; }

/* --- Search compact --- */
input.search-field,
.search-form input[type="search"] {
    max-width: 180px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    height: 38px !important;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .gl-brand-hero-inner { flex-direction: column; padding: 24px 18px; }
    .gl-brand-hero-right { flex: none; width: 100%; }
    .gl-brand-hero-title { font-size: 24px; }
}

/* === ROOT FIX: Override theme entry-content a color on buttons === */
.entry-content a[style*="background:#0"],
.entry-content a[style*="background:#1"],
.entry-content a[style*="background:#2"],
.entry-content a[style*="background:#3"],
.entry-content a[style*="background: #0"],
.entry-content a[style*="background: #1"],
.entry-content a[style*="background: #2"],
.entry-content a.wp-block-button__link,
.entry-content a.btn,
.entry-content a.sanko-button,
.entry-content a.more-link,
a[style*="background:#0052cc"],
a[style*="background:#0f172a"],
a[style*="background:#2563eb"],
a[style*="background-color:#0052cc"],
a[style*="background-color:#2563eb"],
.genelab-article-cta-auto a[href*="lp/automation"],
.genelab-article-cta-auto a:first-of-type {
    color: #fff !important;
}
.genelab-article-cta-auto a[href*="white_form"],
.genelab-article-cta-auto a:last-of-type {
    color: #0052cc !important;
}
.wp-block-button .wp-block-button__link {
    color: #fff !important;
}
.cta-content a,
.cta-content__btn a {
    color: #fff !important;
}
