/*
Theme Name: カブトプラテク
Author: grasp
Description: カブトプラテクのテーマ
Version: 1.0
*/

.page-news #subTop-title .inner .left {
    width: 72%;
}

.page-news .inner.whitePlate {
    padding: 100px;
}

.news-wrapper {
    width: 100%;
}

.news-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.news-wrapper>.slide {
    position: relative;
    display: block;
    width: calc((100% - 80px) / 3);
}

.news-wrapper>.slide>a {
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tag.flexBlock {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: #FFFFFF;
    gap: 5px;
    overflow: hidden;
}

.tag.flexBlock>span {
    height: 100%;
    position: relative;
    display: block;
}

.tag.flexBlock>span:nth-child(1) {
    width: 120px;
    margin-left: -10px;
    padding-left: 10px;
}

.tag.flexBlock>span:nth-child(2) {
    width: 70px;
}

.tag.flexBlock>span:before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    transform: skew(-45deg);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tag.flexBlock>span>span {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 0 20px;
}

.cat-info .tag.flexBlock>span:before {
    background: #0290D5;
}

.cat-event .tag.flexBlock>span:before {
    background: #8BA2B7;
}

.cat-cases .tag.flexBlock>span:before {
    background: #002579;
}

.tag.flexBlock>span:nth-child(2):before {
    background: #E93D40;
}

.news-wrapper>.slide>a>.img {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 326 / 226;
    width: 100%;
    height: auto;
    background: url("../imgs/news/thumbnail_news.jpg") no-repeat;
    background-size: contain;
}

.news-wrapper>.slide>a>.img>img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
}

.news-wrapper>.slide>a>.date {
    font-size: 1.4rem;
    margin: 7px 0;
    position: relative;
}

.news-wrapper>.slide>a>.text-ellipsis {
    font-size: 1.4rem;
    color: #000000;
    line-height: 1.6;
}

.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #161616;
    color: #FFFFFF;
    display: flex;
    line-height: 1;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;

    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    transition: background 0.3s;
}

a.page-numbers:hover {
    background: url('../imgs/common/btn_bg.svg') no-repeat center center;
}

.page-numbers.current {
    background: #FFFFFF;
    color: #161616;
}

.prev.page-numbers>span,
.next.page-numbers>span,
.prev.page-numbers .stack-button,
.next.page-numbers .stack-button {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
}

.section.sub-navi {
    width: 100%;
    padding: 0 20px 30px;
}

.sub-navi>.inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.sub-navi>.inner .breadcrumbs {
    flex-wrap: wrap;
    justify-content: flex-end;
    line-height: 1.6;
}

.sub-navi>.inner .breadcrumbs>li>a,
.sub-navi>.inner .breadcrumbs>li>span {
    color: #FFFFFF;
    font-size: 1.3rem;
}

.sub-navi>.inner .breadcrumbs>li {
    display: flex;
    align-items: center;
}

.sub-navi>.inner .breadcrumbs>li:before {
    position: relative;
    pointer-events: none;
    width: 30px;
    height: 0.5px;
    background: #FFFFFF;
    content: '';
    margin: 0 5px;
}

.sub-navi>.inner .breadcrumbs>li:first-child:before {
    display: none;
}

.sub-navi>.inner .breadcrumbs>li>a {
    text-decoration: underline;
}

.cat-filter-nav {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.cat-filter-nav>a {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    width: calc(50% - 5px);
    max-width: 155px;
    border-radius: 30px;
    background: #000000;
    transition: background 0.7s ease;
    height: 38px;
    overflow: hidden;
}

.cat-filter-nav>a>span {
    position: relative;
}

.cat-filter-nav>a:before {
    background: url('../imgs/common/btn_bg.svg') no-repeat center center;
    background-size: 100% auto;
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-filter-nav>a.active {
    pointer-events: none;
    background: #FFFFFF;
    color: #222222;
}

.single-title {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.single-title .tag.flexBlock {
    position: relative;
}

.single-title .date.manrope {
    font-size: 1.4rem;
    color: #FFFFFF;
}

.single-title .post-title {
    font-size: 3.6rem;
    line-height: 1.5;
}

.single #subTop-title {
    padding-bottom: 100px;
}

.single article .post-thumbnail {
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    margin-bottom: 40px;
    border-radius: 4px;
}

.single article .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/*.single article img {
    margin: 40px auto;
}*/

.single article .post-content {
    font-size: 1.4rem;
    color: #222222;
}

.post-nav {
    margin-top: 80px;
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-bottom: -30px;
}

.post-nav>div {
    width: 38px;
    height: 38px;
}

.post-nav>div.button-prev {
    transform: translateX(-100%);
}

.post-nav>div.button-next {
    transform: translateX(100%);
}

.post-nav>div>a .btn-content .icon {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.post-nav>div>a .btn-content .icon>img {
    margin: auto;
}

.post-nav>div>a .btn-content,
.post-nav>div>a .stack-button,
.post-nav>div>a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.single .btn-list {
    width: calc(100% - 40px);
    font-size: 1.2rem;
    height: 50px;
    padding: 20px;
    max-width: 285px;
    position: relative;
    display: flex;
    margin: 60px auto 0;
}

.single #subTop-title .inner {
    padding: 0 100px 0 100px;
}

.clean-gallery {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    margin: 30px auto;
}

.clean-gallery>img {
    width: calc(50% - 9px);
    border-radius: 4px;
}

.clean-gallery.gallery-3>img,
.clean-gallery.gallery-6>img {
    width: calc(33.33% - 12px);
}

@media (max-width: 768px) {
    .clean-gallery {
        flex-direction: column;
    }

    .clean-gallery>img,
    .clean-gallery.gallery-3>img,
    .clean-gallery.gallery-6>img {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .cat-filter-nav>a:hover:before {
        opacity: 1;
    }

    .sub-navi>.inner .breadcrumbs>li>a:hover {
        text-decoration: none;
    }

    .news-wrapper>.slide>a:hover .img>img {
        transform: scale(1.05);
    }
}

@media (max-width: 1280px) {
    .single #subTop-title .inner {
        padding: 0 30px 0 30px;
    }
}

@media (max-width: 1000px) {
    .cat-filter-nav {
        justify-content: center;
    }

    .page-news .inner.whitePlate {
        padding: 70px 25px;
    }

    .news-wrapper {
        gap: 25px;
    }

    .news-wrapper>.slide {
        width: calc((100% - 50px) / 3);
    }

    .tag.flexBlock>span>span {
        padding: 0;
    }

    .tag.flexBlock>span:nth-child(1) {
        width: 90px;
    }

    .tag.flexBlock>span:nth-child(2) {
        width: 50px;
    }
}

@media (max-width: 768px) {
    .single-title .post-title {
        font-size: 2.2rem;
    }

    .single #subTop-title .inner {
        padding: 0 15px 0 15px;
    }

    .post-nav {
        margin-top: 60px;
        margin-bottom: -15px;
    }

    .post-nav>div.button-prev,
    .post-nav>div.button-next {
        transform: translateX(0%);
    }

    .page-news .inner.whitePlate {
        padding: 60px 20px;
    }

    .news-wrapper {
        gap: 20px;
    }

    .news-wrapper>.slide {
        width: calc(50% - 10px);
    }
}

@media (max-width: 525px) {
    .page-news .inner.whitePlate {
        padding: 50px 15px;
    }

    .news-wrapper {
        gap: 10px;
    }

    .news-wrapper>.slide {
        width: calc(50% - 5px);
        margin-bottom: 25px;
    }

    .tag.flexBlock {
        font-size: 1.0rem;
        height: 18px;
    }
}

@media (max-width: 380px) {
    .page-news .inner.whitePlate {
        padding: 50px 10px;
    }

    .tag.flexBlock>span:nth-child(1) {
        width: 80px;
    }
}