/* =================================================================
   サイドバーデザイン - 完全版 CSS
================================================================= */

/* --- サイドバー全体のコンテナ --- */
#secondary.widget-area {
    width: 300px; /* PCでのサイドバー幅 */
}
@media (max-width: 768px) {
    #secondary.widget-area {
        width: 100%;
        margin-top: 40px;
    }
}

/* --- 各ウィジェットセクション --- */
#secondary .widget {
    margin-bottom: 50px;
}
#secondary .widget:last-child {
    margin-bottom: 0;
}

/* --- ウィジェットタイトル --- */
#secondary .widget-title {
    position: relative;
    font-size: 24px !important;
    font-weight: 700;
    color: #212529; /* 少し柔らかい黒 */
    padding: 0 0 15px 0 !important;
    margin: 0 0 30px 0 !important;
    border: none !important;
    background: none !important;
    text-align: left;
}
#secondary .widget-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #e9472f;
}

/* --- 記事リスト全体 --- */
#secondary .custom-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 各記事アイテム --- */
#secondary .custom-post-list li {
    margin: 0 0 35px 0;
}
#secondary .custom-post-list li:last-child {
    margin-bottom: 0;
}
#secondary .custom-post-list a {
    display: block;
    text-decoration: none;
    color: #212529;
    transition: opacity 0.2s ease-in-out;
}
#secondary .custom-post-list a:hover {
    opacity: 0.75;
}

/* --- アイキャッチ画像 --- */
#secondary .post-thumbnail-container {
    margin-bottom: 20px;
}
#secondary .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6; /* 少し薄いグレー */
}

/* --- メタ情報 (日付とカテゴリ) --- */
#secondary .post-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
#secondary .post-date {
    font-size: 14px;
    color: #6c757d; /* グレー */
    letter-spacing: 0.05em;
}
#secondary .category-tag {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background-color: #52b6c2; /* 青緑 */
    border-radius: 9999px;
    line-height: 1.4;
}

/* --- 記事タイトル --- */
#secondary .widget-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #212529;
    margin: 0 0 15px 0;
}

/* --- タグ --- */
#secondary .sidebar-post-tags {
    margin-top: 15px; /* タイトルとの間にマージンを持たせる */
}
#secondary .post-tag {
    display: inline-block;
    font-size: 13px;
    color: #6c757d;
    padding: 6px 16px;
    border: 1px solid #ced4da;
    border-radius: 9999px;
    background-color: #fff;
    margin-right: 8px;
    margin-bottom: 8px;
}