/* ===== Site Container ===== */
.site-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    overflow-x: hidden;
}

/* ===== Main Layout (Article + Sidebar) ===== */
.content-layout {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    padding-bottom: var(--space-20);
    /* はみ出し防止を追加 */
    overflow-x: hidden;
}

.main-content {
    flex: 1 1 0%; /* flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
    min-width: 0; /* flexアイテムのはみ出しを防ぐ */
    max-width: 100%;
}

.sidebar {
    flex: 0 0 300px; /* 固定幅に変更（300px は調整可能） */
    max-width: 100%;
    min-width: 0;
}

/* ===== Section Heading Components ===== */
.section-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.heading-grad {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(90deg, #A78BFA 0%, #67E8F9 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.3;
    margin-bottom: var(--space-6);
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 最小幅を少し小さく */
    gap: var(--space-6);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
    }
    .main-content,
    .sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* 中間サイズ（1024px〜1200px）でサイドバーが狭くなりすぎる場合の調整 */
@media (max-width: 1200px) and (min-width: 1025px) {
    .sidebar {
        flex: 0 0 260px; /* やや狭める */
    }
}