@charset "utf-8";

.category_description {
    line-height: 2;
}

.post-group {
    padding-top: 24px; padding-top: 6.4vw;
}
.post-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: calc(-6.4vw - 12px);
    position: relative;
}
.post-group-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    z-index: 1;
}
.post-group-name {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.1em;
    background-color: #e84715;
    color: #fff;
    border: solid 1px #000;
    display: inline-block;
    position: relative;
    min-width: 43.6%;
    z-index: 2;
}
.post-group-name span {
    display: block;
    padding: 6px 12px;
}
.post-group-name::before,
.post-group-name::after,
.post-group-name span::before,
.post-group-name span::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 6px;
    position: absolute;
    z-index: 1;
}
.post-group-name::before {
    top: 0;
    left: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-top-color: #000;
}
.post-group-name::after {
    bottom: 0;
    left: 0;
    border-bottom-width: 0;
    border-right-width: 0;
    border-left-color: #000;
}
.post-group-name span::before {
    top: 0;
    right: 0;
    border-top-width: 0;
    border-left-width: 0;
    border-right-color: #000;
}
.post-group-name span::after {
    bottom: 0;
    right: 0;
    border-top-width: 0;
    border-right-width: 0;
    border-bottom-color: #000;
}
.post-group-nav {
    z-index: 3;
}
.post-group-opener {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: solid 2px #e84715;
    background-color: #fff;
    position: relative;
}
.post-group-opener::before,
.post-group-opener::after {
    content: "";
    display: block;
    width: 12px;
    height: 2px;
    background-color: #e84715;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    transition: .2s;
}
.post-group-opener::after {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
.active .post-group-opener::after {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}
.active .post-group-opener::before {
    opacity: 0;
}

.post-group-contents {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 180px));
    /*grid-template-columns: repeat(4, 1fr);*/
    justify-content: center;
    grid-gap: 12px; grid-gap: 3.2vw;
    padding-top: 24px; padding-top: 6.4vw;
}
.post-group-contents.empty {
    grid-template-columns: 1fr;
}
.post-image {
    background-color: #eee;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}
.post-title {
    font-size: 14px;
    line-height: 1.5;
    color: #e84715;
}
.post-description {
    line-height: 1.5;
}

.posts-empty-message {
    text-align: center;
}

@media screen and (min-width: 768px)
{
    .post-group {
        padding-top: 48px;
    }
    .post-group-header {
        margin-left: calc(-9.124vw - 2.684vw);
    }
    .post-group-name {
        font-size: 2.9197vw;
    }
    .post-group-name span {
        padding: 1.0948vw 2.1857vw;
    }
    .post-group-name::before,
    .post-group-name::after,
    .post-group-name span::before,
    .post-group-name span::after {
        border-width: 1.0948vw;
    }
    .post-group-name::before {
        border-bottom-width: 0;
        border-left-width: 0;
    }
    .post-group-name::after {
        border-bottom-width: 0;
        border-right-width: 0;
    }
    .post-group-name span::before {
        border-top-width: 0;
        border-left-width: 0;
    }
    .post-group-name span::after {
        border-top-width: 0;
        border-right-width: 0;
    }
    .post-group-opener {
        width: 3.005vw;
        max-width: 33px;
        height: 3.005vw;
        max-height: 33px;
    }
    .post-group-opener::before,
    .post-group-opener::after {
        width: 1.639vw;
        max-width: 18px;
    }
    .post-group-contents {
        grid-template-columns: repeat(3, minmax(80px, 180px));
        grid-gap: 26px;
        padding-top: 48px;
    }
    .post-image {
        margin-bottom: 8px;
    }

    .category_description,
    .post-title,
    .post-description {
        font-size: 1.927vw;
    }
}

@media screen and (min-width: 830px)
{
    .category_description,
    .post-title,
    .post-description {
        font-size: 16px;
    }
}

@media screen and (min-width: 1096px)
{
    .post-group-header {
        margin-left: -132px;
    }
    .post-group-name {
        font-size: 32px;
        line-height: 40px;
        min-width: 400px;
    }
    .post-group-name span {
        padding: 12px 24px;
    }
    .post-group-name::before,
    .post-group-name::after,
    .post-group-name span::before,
    .post-group-name span::after {
        border-width: 12px;
    }
    .post-group-name::before {
        border-bottom-width: 0;
        border-left-width: 0;
    }
    .post-group-name::after {
        border-bottom-width: 0;
        border-right-width: 0;
    }
    .post-group-name span::before {
        border-top-width: 0;
        border-left-width: 0;
    }
    .post-group-name span::after {
        border-top-width: 0;
        border-right-width: 0;
    }
    .post-group-opener {
        border-width: 3px;
    }
    .post-group-opener::before,
    .post-group-opener::after {
        height: 3px;
    }
    .post-group-contents {
        grid-template-columns: repeat(4, minmax(80px, 180px));
        /*
        grid-template-columns: repeat(auto-fit, 180px);
        grid-template-columns: repeat(4, 1fr);
        */
    }
}
