.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .sidebar {
        width: 100%;
    }
}

.sidebar .widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
}

aside section .widget-title {
    margin-top: 0;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem calc(0.5rem + 5px);
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

aside section {
    background-color: #ffffff;
    padding-bottom: 20px;
        border-radius: 10px;
}

aside section:last-child {
    margin-bottom: 0;
}

aside section>* {
    padding-right: 8px;
    padding-left: 8px;
}

/* 主にサイドバーや一覧で使う「サムネイル付き記事リンク」らしい */
.bl_media {
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.bl_media_imgWrapper {
    flex: 1;
    margin-right: 3.33333%;
}

.bl_media_imgWrapper>img {
    width: 100%;
    height: auto !important;
}
.bl_media_body {
    flex: 1;
}

.bl_media_body p,
p.post-time {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.76rem;
}

.bl_media-ttl {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.flex-container {
    text-decoration: none;
}

.bl_media:focus,
.bl_media:hover {
    opacity: .8;
}

.recent-posts-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* #region 検索フォーム */
.searchform {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    max-width: 300px;
    margin: 0 auto;
}

.searchfield {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #222;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.searchsubmit {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    background: #7fbfff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}
.searchsubmit:hover,
.searchsubmit:focus {
    opacity: 0.7;
}

/* サイドバーカテゴリーエリア */
aside section ul .cat-item {
    padding-bottom: 10px;
    margin-top: 10px;
    border-bottom: 1px solid #ddd;
}

aside section ul .cat-item:first-child {
    margin-top: 0;
}

/* タグ、新しい記事の最後の要素に下線が引かれなくなるのでコメント */
/* aside section ul .cat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
} */

aside section ul li {
    list-style: none;
}

.my-archive-list li {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.all-tags {
    text-align: center;
}