@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* ========================================
   Layout
   ======================================== */
.site-container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    max-width: calc(var(--screen-width, 1200px) + 50px * 2);
    padding: 48px 40px 200px;
    gap: 48px;
    display: flex;
    flex-direction: column;
}

/* ========================================
   サイドバー付きページ - 2カラムレイアウト
   ======================================== */
.site-main--with-sidebar {
    max-width: 100%;
    padding: 0;
    gap: 0;
}

.page-columns {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.page-columns--main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 8px;
}

.page-columns--sidebar {
    flex-shrink: 0;
    width: 300px;
    min-height: 600px;
    position: sticky;
    top: 86px; /* JSで動的に上書きされる */
    align-self: flex-start;
    padding: 16px 0 16px 20px;
}

/* ========================================
   Section
   ======================================== */
.section--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 40px;
}


/* ========================================
   Article List
   ======================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article-list--item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #333;
    text-decoration: none;
}

.article-list--item:last-child {
    border-bottom: none;
}

.article-list--date {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.article-list--badge {
    flex-shrink: 0;
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #e0e0e0;
    color: #555;
    min-width: 60px;
    text-align: center;
}

.article-list--badge--setup {
    background: #e8e8e8;
    color: #333;
}

.article-list--badge--trouble {
    background: #d0d0d0;
    color: #333;
}

.article-list--badge--operation {
    background: #c0c0c0;
    color: #333;
}

.article-list--badge--maintenance {
    background: #555;
    color: #fff;
}

.article-list--badge--resolved {
    background: #999;
    color: #fff;
}

.article-list--title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
}

.article-list--title a:hover {
    text-decoration: none;
}



/* ========================================
   Utilities
   ======================================== */
.text-muted {
    color: #888;
}

/* ========================================
   Section Footer / More Button
   ======================================== */
.sidebar-divider {
    width: 2px;
    background: #f1f1f1;
    align-self: stretch;
    flex-shrink: 0;
}

/* ========================================
   テーブルの横幅
   ======================================== */

.has-fixed-layout {
    min-width: 840px;
    max-width: 840px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1023px) {
    .site-main {
        gap: 20px;
        padding: 32px 24px 120px;
    }

    .section--header {
        margin-bottom: 28px;
    }

    .page-columns {
        flex-direction: column;
        gap: 32px;
    }

    .page-columns--main {
        gap: 32px;
    }

    .page-columns--sidebar {
        display: none;
    }

    .sidebar-top10 {
        position: static;
    }

    .article-list {
        gap: 24px;
    }

    .article-list--item {
        flex-direction: column;
        gap: 4px;
    }

    .article-list--date {
        width: auto;
    }

    .sidebar-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-columns {
        flex-direction: column;
        gap: 0px;
    }

    .page-columns--sidebar::before {
        display: none;
    }
}
