:root {
    --bg-base: #09090b;
    --bg-panel: #121217;
    --bg-card: #16161c;
    --bg-hover: #1e1e24;
    --border: #272730;
    --border-light: rgba(255,255,255,.08);
    --text: #f0f0f0;
    --muted: #888899;
    --blue: #00bfff;
    --pink: #ff3366;
    --green: #00e676;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-base);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(0,191,255,.07), transparent 35%),
        var(--bg-base);
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 32px;
    background: rgba(9,9,11,.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    border-radius: 9px;
    flex: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,191,255,.45);
    border-radius: 9px;
    color: var(--blue);
    background: rgba(0,191,255,.06);
    box-shadow: 0 0 18px rgba(0,191,255,.08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .4px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.main-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-tab {
    position: relative;
    min-width: 145px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    transition: .2s ease;
}

.nav-tab::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: transparent;
    transition: .2s ease;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255,255,255,.025);
}

.nav-tab.active {
    color: #fff;
}

.nav-tab.active::after {
    background: var(--blue);
    box-shadow: 0 0 12px rgba(0,191,255,.45);
}

.back-button {
    min-width: 128px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    background: rgba(255,255,255,.035);
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    transition: .2s ease;
}

.back-button:hover {
    border-color: var(--blue);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.page-main {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    flex: 1;
    padding: 54px 0 80px;
}

.page-hero {
    padding: 34px 38px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background:
        linear-gradient(110deg, rgba(0,191,255,.07), rgba(255,255,255,.018) 50%, rgba(255,51,102,.05)),
        var(--bg-panel);
    box-shadow: 0 16px 50px rgba(0,0,0,.24);
}

.hero-kicker {
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
}

.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.content-area {
    margin-top: 22px;
}

.news-list {
    display: grid;
    gap: 12px;
}

.news-card,
.article-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-panel);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.news-card {
    padding: 22px 24px;
    transition: .2s ease;
}

.news-card:hover {
    border-color: rgba(0,191,255,.35);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.news-date {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
}

.news-tag {
    padding: 3px 7px;
    border: 1px solid rgba(0,191,255,.25);
    border-radius: 4px;
    color: var(--blue);
    background: rgba(0,191,255,.05);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .6px;
}

.news-card h2,
.article-card h2 {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 900;
}

.news-card p,
.article-card p,
.article-card li {
    color: #b7b7c5;
    font-size: 13px;
    line-height: 1.9;
}

.article-card {
    padding: 30px 32px;
}

.article-date {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
}

.article-card h2 {
    font-size: 24px;
    margin-bottom: 22px;
}

.article-card h3 {
    margin: 26px 0 8px;
    color: #fff;
    font-size: 15px;
}

.article-card ul {
    padding-left: 20px;
}

.notice-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    background: rgba(0,191,255,.05);
    border-radius: 0 7px 7px 0;
}

.notice-box strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 12px;
}

.notice-box p {
    margin: 0;
    font-size: 12px;
}

.empty-state {
    padding: 50px 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--bg-panel);
    text-align: center;
    font-size: 12px;
}

.site-footer {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 32px;
    border-top: 1px solid var(--border);
    background: #0d0d10;
    color: var(--muted);
    font-size: 9px;
}

.site-footer strong {
    color: #fff;
    margin-right: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--blue);
}

@media (max-width: 760px) {
    .site-header {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding: 12px 16px 0;
        gap: 8px;
    }

    .brand {
        min-width: auto;
        flex: 1;
    }

    .back-button {
        min-width: auto;
        padding: 8px 10px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        height: 44px;
    }

    .nav-tab {
        min-width: 0;
        flex: 1;
        padding: 0 5px;
        font-size: 10px;
    }

    .nav-tab::after {
        left: 8px;
        right: 8px;
    }

    .page-main {
        width: min(100% - 22px, 1050px);
        padding: 22px 0 50px;
    }

    .page-hero {
        padding: 26px 22px;
    }

    .article-card,
    .news-card,
    .contact-section {
        padding: 20px;
    }

    .site-footer {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* --- お問い合わせ --- */
.contact-section {
    margin-top: 22px;
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-panel);
}
.contact-kicker {
    margin-bottom: 7px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
}
.contact-section h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}
.contact-section p {
    margin: 0 0 15px;
    color: #b7b7c5;
    font-size: 12px;
    line-height: 1.8;
}
.contact-email {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(0,191,255,.25);
    border-radius: 7px;
    color: var(--blue);
    background: rgba(0,191,255,.05);
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}
.contact-email:hover {
    border-color: var(--blue);
    background: rgba(0,191,255,.09);
    transform: translateY(-1px);
}


/* 長文のBrawlForge紹介記事 */
.article-card > p {
    max-width: 900px;
}

.article-card h3 {
    scroll-margin-top: 20px;
}

.article-card strong {
    color: #fff;
}

/* BrawlForge / unofficial-content notices */
.explainability-box {
    border-left-color: #00e676;
    background: rgba(0, 230, 118, .055);
}

.mode-boost-box {
    border-left-color: #7c5cff;
    background: rgba(124, 92, 255, .055);
}

.ai-box {
    border-left-color: #00bfff;
    background: rgba(0, 191, 255, .055);
}

.unofficial-box {
    border-left-color: #ffb84d;
    background: rgba(255, 184, 77, .055);
}

.unofficial-box a,
.unofficial-footer-notice a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.unofficial-footer-notice {
    width: 100%;
    margin: 6px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: #9292a2;
    font-size: 10px;
    line-height: 1.7;
}

.article-toc {
    margin: 8px 0 28px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: 0 9px 9px 0;
    background: rgba(0,191,255,.045);
    display: grid;
    gap: 7px;
}
.article-toc strong {
    color: #fff;
    font-size: 13px;
    margin-bottom: 3px;
}
.article-toc a {
    color: #b7b7c5;
    font-size: 12px;
    line-height: 1.5;
    transition: color .2s ease, transform .2s ease;
}
.article-toc a::before {
    content: "›";
    color: var(--blue);
    margin-right: 7px;
}
.article-toc a:hover {
    color: #fff;
    transform: translateX(2px);
}
.article-card h3[id] {
    scroll-margin-top: 100px;
}
