/* --- レイアウト設定（2カラム） --- */
.container.column-layout {
    max-width: 1240px;
    margin: 160px auto 100px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    /* メインとサイドバーの幅 */
    gap: 60px;
    align-items: flex-start;
}

/* 記事カード */
.main-content {
    min-width: 0;
}

.entry-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 50px;
    border-radius: 4px;
}

/* タイトルエリア（重なり防止） */
.entry-header {
    margin-bottom: 50px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.entry-meta {
    color: #ff3300;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 一覧ページ用 .category の absolute 指定を打ち消す */
.entry-meta .category {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    display: inline-block;
    margin-left: 10px;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.entry-title {
    font-size: 2.4rem;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0;
}

/* 画像エリア */
.entry-thumbnail {
    margin: 0 -50px 50px;
    /* カードの端まで広げる */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文 */
.entry-body {
    line-height: 2.1;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.entry-body h2 {
    font-size: 1.7rem;
    border-left: 4px solid #ff3300;
    padding-left: 20px;
    margin: 60px 0 30px;
    scroll-margin-top: 100px;
}

.entry-body p {
    margin-bottom: 30px;
}

/* --- サイドバー（追従目次） --- */
.sidebar {
    position: sticky;
    top: 40px;
    /* スクロール時に止まる位置 */
}

.toc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 4px;
    backdrop-filter: blur(15px);
}

.toc-title {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #ff3300;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.toc-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 15px;
}

/* 目次のリスト（プラグインのクラス名にも対応） */
.toc-content ul,
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.toc-content a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
    display: block;
    position: relative;
    padding-left: 15px;
}

.toc-content a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 0;
    height: 1px;
    background: #ff3300;
    transition: 0.3s;
}

.toc-content a:hover {
    color: #fff;
    transform: translateX(5px);
}

.toc-content a:hover::before {
    width: 10px;
}

/* ロゴサイズの強制固定 */
.header-logo img {
    height: 40px !important;
    width: auto !important;
}

/* スマホ対応 */
@media (max-width: 1024px) {
    .container.column-layout {
        grid-template-columns: 1fr;
        margin-top: 120px;
        padding: 0 20px;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }

    .entry-card {
        padding: 40px 25px;
    }

    .entry-thumbnail {
        margin: 0 -25px 30px;
    }

    .entry-title {
        font-size: 1.8rem;
    }
}