
.top {
    display: flex;
    justify-content: space-between;
}

.page_title {
    margin: 20px 60px;
}

@media screen and (max-width: 460px){
    .top {
        display: block;
        height: 1.9rem;
    }

    .title {
        font-size: 0.15rem;
    }

    .page_title {
        margin: 20px;
        position: absolute;
        top: 1.1rem;
    }

    .filter_label {
        display: none;
    }

    .filter {
        display: flex;
        flex-flow: column;
        align-items: center;
    }

    .archive,
    .search {
        margin: 0.1rem 0;
    }

}
/* ページング */
.pager-container {
    width: 100%;
    margin: 0.2rem;
}

.pager .pagination {
    text-align: center;
    font-weight: 800;
    font-size: 0.15rem;
}

.pager .pagination li {
    margin: 0 5px;
    padding: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    position: relative;
}

.pager .pagination li a.paging_item {
    border: 2px solid #78b0a7;
    background: #fff;
    border-radius: 50%;
    transition: all .5s;
}

.pager .pagination li a.paging_item:hover,
.pager .pagination li a.paging_item.current {
    background: #78b0a7;
}

.pager .pagination li a.current,
.pager .pagination li a.paging_omit {
    pointer-events: none;
}

.pager .pagination li a{
    vertical-align: middle;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display:table;
}

.pager .pagination li a span{
    display:table-cell;
    vertical-align:middle;
}

@media screen and (max-width: 460px){
    .pager .pagination {
        font-size: 0.1rem;
    }

    .pager .pagination li {
        width: 40px;
        height: 40px;
    }
}

.page_info {
    display: flex;
    justify-content: center;
    padding-top: 0.1rem;
}

.message {
    font-size: 0.2rem;
    padding: 0.2rem;
}

/* レイアウト */

.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-column {
    flex-direction: column !important;
}

.blog-layout {
    padding: 0.2rem;
    display: flex;
    flex-wrap: wrap;
}

.blog-layout .col {
    flex: 0 0 auto;
    padding: 0 8px;
    align-content: flex-start;
}

.blog-layout .col-article {
    width: calc(100% / 4 * 3 - 8px * 2);
    display: flex;
    flex-wrap: wrap;
}

.blog-layout .col-side-panel {
    width: calc(100%/ 4 * 1 - 8px * 2);
    padding: 8px;
}

/* カラム：記事 */

.col-article article {
    height: 2.5rem;
    margin: 8px;
}

.col-article article.grid-2 {
    width: calc(50% - 8px * 2);
}

article .article-container {
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .16);
    text-decoration: none;
    position: relative;
    transition: all .5s;
}

article .article-title {
    display: -webkit-box;
    padding: 0.2rem;
    max-height: 0.6rem;
    font-size: 0.2rem;
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

article .article-link {
    position: absolute;
    width: 100%;
    height: 100%;
}

article .article-content {
    width: 100%;
    height: 100%;
}

article .tags {
    display: flex;
    flex-wrap: wrap;
    padding: 0.1rem 0.2rem;
    font-size: 0.15rem;
}

article .tags .fa-tag {
    padding: 8px;
}

article .tags .tag {
    padding: 0 2px;
    margin: 2px 5px;
    font-weight: 500;
    text-decoration: underline dotted;
    z-index: 1;
    transition: all .5s;
}

.tag:hover {
    text-decoration: none;
    opacity: 0.6;
}

article .article-info {
    font-weight: 600;
    font-size: 0.15rem;
    pointer-events: none;
}

article .article-date {
    color: #AAA;
}

article .article-info .article-date {
    padding: 20px;
    position:absolute;
    left: 0;
    bottom: 0;
}

article .article-info .author {
    padding: 20px;
    position:absolute;
    right: 0;
    bottom: 0;
    vertical-align: middle;
    height: 0.3rem;
    display: inline-flex;
}

article .article-info .author .author-img {
    height: 100%;
    width: auto;
    border-radius: 50%;
    margin-right: 0.1rem;
}

/* カラム：サイドパネル */

.col-side-panel .panel {
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .16);
    margin-bottom: 0.2rem;
}

/* パネル：共通 */

.panel {
    padding: 0.2rem;
}

.panel .panel-title {
    font-size: 0.2rem;
    margin-bottom: 0.1rem;
}

/* パネル：タグ */

.tag-group {
    margin-bottom: 0.1rem;
}

.tag-group .tag-group-header {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    padding: 0.1rem 0;
    cursor: pointer;
    outline: none;
}

.tag-group-header .group-name {
    flex-grow: 1;
    font-size: medium;
    font-weight: bold;
    text-align: start;
}

.tag-group-header .trigger-btn {
    font-size: medium;
    font-weight: bold;
}

.tag-group-content {
    display: flex;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.panel-tag .tag {
    font-size: 0.15rem;
    padding: 2px 2px;
    margin: 2px 5px;
    font-weight: 500;
    text-decoration: underline dotted;
    transition: all .5s;
}

/* パネル：筆者一覧 */
.author-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.1rem 0;
}

.author-item .author-thumbnail {
    height: 32px;
    width: auto;
    margin: 0 0.1rem;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.author-item .author-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-content .author-name {
    font-size: small;
    font-weight: bold;
    line-height: normal;
}

.author-content .author-description {
    font-size: small;
    line-height: normal;
    color: gray;
}

/* パネル：SNSアイコン */

.panel-sns {
    width: 100%;
    height: 56px;
    padding: 0 !important;
    display: flex;
    flex-wrap: nowrap;
}

.panel-sns .sns-icon {
    flex-grow: 1;
    display: inline-flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
}

.sns-icon>img {
    height: 32px;
    image-rendering: auto;
}

.icon-qiita {
    background-color: #55c500;
}

.icon-note {
    background-color: #000000;
}

.icon-zenn {
    background-color: #3EA8FF;
}

@media (max-width: 768px) {
    .blog-layout {
      flex-direction: column;
    }
  
    .blog-layout .col-article {
      order: 1; /* main content first */
      width: 100%
    }

    .col-article article.grid-2 {
        width: 100%;
    }
  
    .blog-layout .col-side-panel {
      order: 2; /* sidebar second (below) */
      width: 100%;
      padding: 0;
    }

    .blog-layout .col {
        padding: 0;
    }

    article .article-title {
        max-height: 0.5rem;
    }
}