/*
Theme Name: Gunbi-blog
Template: twentytwentyone
Version: 1.0
*/



main {
    max-width: 1200px;
    width: 90%;
    margin: 88px auto;
}

.blog-category img,
.blog-top img {
    width: 100%;
    height: auto;
    display: block;
}

.category-title,
.top-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}


/* ==============================
    上段（最新記事 + カテゴリー）
    ============================== */

.top-area {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.latest-main {
    width: 70%;
    position: relative;
    padding: 185px;

}

aside.sidebar {
    width: 30%;
}

aside.sidebar h4 {
    margin: 0 0 20px;
    padding: 8px 15px 4px;
    background-color: #e60012;
    color: #fff;
    font-weight: 600;
}

aside.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside.sidebar li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

aside.sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

aside.sidebar a:hover {
    opacity: 0.7;
}

aside.sidebar .latest-5 {
    margin-bottom: 50px;
}


/* ==============================
    最新記事
    ============================== */

.latest-main .post-thumbnail {
    position: absolute;
    left: 0;
    top: 0;
    width: 37%;
    /* height: 250px; */
    z-index: +1;
    margin: 0;
}


.latest-main .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
    max-height: 250px;
}

.latest-main .post-txt {
    position: absolute;
    width: 90%;
    right: 0;
    top: 40px;
}

.latest-main .post-txt a {
    text-decoration: none;
    padding: 3em 3em 4em 18em;
    background: #f6f6f6;
    display: block;
}

.latest-main .post-txt a:hover {
    text-decoration: none;
}

.latest-main .post-txt .post-meta {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 10px;
}

.latest-main .post-txt .post-meta .post-category {
    background: #000;
    color: #fff;
    font-size: 15px;
    padding: 4px 8px;
    max-width: 50%;
    min-width: 6em;
    text-align: center;
}

.latest-main h2 {
    font-size: 28px;
    margin: 10px 0;
    line-height: 1.4;
}

.latest-main p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.latest-main .post-date {
    font-size: 13px;
    color: #888;
    /* margin-top: 10px; */
    text-align: right;
}


/* ==============================
    記事カードグリッド
    ============================== */

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card .post-thumbnail {
    margin-bottom: 12px;
    position: relative;
}

.post-card a {
    text-decoration: none;
    display: block;
}

.post-card a:hover {
    text-decoration: underline;
}

.post-thumb[style] {
    height: 240px !important;
    width: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin-top: 0;

}

.post-card h3 {
    text-align: left;
    margin: 10px 0;
    font-size: calc(11 / 1200 * 100vw);
}

.post-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.post-card .post-date {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    text-align: right;
}

a.morebtn {
    display: block;
    width: 170px;
    background: #000;
    color: #fff;
    padding: 14px 0;
    margin: 48px auto 32px auto;
    text-align: center;
    text-decoration: none;
}

a.morebtn.back {
    width: 220px;

}

a.morebtn span {
    padding-right: 8px;
    position: relative;
    display: inline-block;
}

a.morebtn span::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 0px;
    border-top: solid 1px #fff;
    border-right: solid 1px #fff;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    right: -16px;
    margin-top: -4px;
}


/* ==============================
    カテゴリーラベル（画像左上）
    ============================== */

.post-card .post-category {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #000;
    color: #fff;
    font-size: 15px;
    padding: 4px 8px;
    pointer-events: none;
    max-width: 50%;
    min-width: 6em;
    text-align: center;
    z-index: +1;
}


/* ==============================
    View More / ページネーション
    ============================== */

.view-more {
    text-align: center;
    margin-top: 60px;
}

.view-more a {
    display: inline-block;
    border: 1px solid #000;
    padding: 12px 30px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    transition: 0.3s;
}

.view-more a:hover {
    background: #000;
    color: #fff;
}

/* ==============================
    カテゴリー一覧 / ページャー
    ============================== */

.pagination {
    border: none;
    text-align: center;
    font-size: 18px;
    margin: 40px auto;
    padding: 0 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    margin: 0;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.pagination .page-numbers.current {
    /* margin: 0; */
    color: #ccc;
    display: inline-block;
    /* line-height: 1em; */
    min-width: 40px;
}

/* ==============================
    記事詳細
    ============================== */

.post-content h1 {
    font-size: 36px !important;
}

.post-content h2 {
    font-size: 32px !important;
}

.post-content h3 {
    font-size: 29px !important;
}

.post-content h4 {
    font-size: 24px !important;
}

.post-content h5 {
    font-size: 18px !important;
}

.post-content h6 {
    font-size: 16px !important;
}

main.single .latest-main {
    position: unset;
    padding: 0;

}

main.single .latest-main .post-thumbnail {
    position: unset;
    width: 100%;
    margin: 40px auto;
}

main.single .post-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    margin-top: 40px;
}

main.single .post-navigation .nav-previous,
main.single .post-navigation .nav-next {
    margin: 0;
}

main.single .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    margin: 40px auto;
}

main.single .post-meta .meta-category {
    background-color: #000;
    color: #fff;
    font-size: 15px;
    max-width: 50%;
    min-width: 6em;
    text-align: center;
    padding: 4px 8px;
}

main.single .latest-main .post-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 1em;
}

main.single .latest-main .post-thumbnail img {
    margin-top: 0;
    height: 100% !important;
    object-fit: scale-down;
}

main.single h3.ttl-other {
    font-size: 17px;
    margin-bottom: 10px;
}

/* main.single .post-card h3 {
    font-size: calc(12 / 1200 * 100vw);
    margin: 10px 0;
} */

main.single a {
    text-decoration: none;

}

main.single a:hover {
    text-decoration: underline;
}

main.single .post-navigation a {
    position: relative;
    background: #000;
    color: #fff;
    padding: 20px 30px;
}

main.single .post-navigation a::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 0px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    position: absolute;
    top: 27px;

}

main.single .post-navigation .nav-previous a::before {
    -ms-transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
    left: 28px;
}

main.single .post-navigation .nav-next a::before {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    right: 28px;
}



/* ==============================
    レスポンシブ
    ============================== */

@media (max-width:1024px) {}

@media (max-width:768px) {



    main {
        margin: 40px auto;
    }

    .sp-menu {
        margin: 30px auto 10px;
        display: block !important;
    }

    .sp-menu ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4vw;
        flex-direction: row;
        padding: unset !important;
    }

    .sp-menu ul li {
        padding: unset !important;
    }

    .sp-menu ul li a {
        text-decoration: none;
    }

    .btn__menu {
        background: #fff !important;
    }

    .btn__menu.active {
        background: transparent !important;
    }

    .latest-main {
        padding: 250px 45vw 35vw;
        width: 100%;
    }

    .latest-main .post-txt {
        top: 208px;
    }

    .latest-main .post-txt .post-meta .post-category {
        font-size: 3vw;
    }


    .latest-main .post-txt a {
        padding: 26px 4vw 6vw;
    }

    .latest-main h2 {
        font-size: 3.5vw;
    }

    .latest-main p {
        font-size: 3.3vw;
    }


    .latest-main .post-thumbnail {
        width: 85%;
    }

    .latest-main .post-thumbnail img {
        height: 225px !important;
    }

    .top-area {
        margin-bottom: 40px;
    }

    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .blog-top .latest-grid .post-card:nth-child(9) {
        display: none;
    }

    .post-card .post-thumbnail {
        margin: 0;
    }

    .post-card .post-category {
        font-size: 3vw;
        max-width: 61%;
    }

    .post-thumb[style] {
        height: 120px !important;
    }

    .post-card h3 {
        font-size: 3.5vw;
    }

    .post-card p {
        font-size: 3vw;
    }

    footer .footinner .footinfo p.phonenumber {
        width: auto;
    }


    /* 詳細ページ */
    .post-content h1 {
        font-size: 6.5vw !important;
    }

    .post-content h2 {
        font-size: 6.3vw !important;
    }

    .post-content h3 {
        font-size: 5.8vw !important;
    }

    .post-content h4 {
        font-size: 5.4vw !important;
    }

    .post-content h5 {
        font-size: clamp(16px, 2.5vw, 18px) !important;
    }

    .post-content h6 {
        font-size: clamp(14px, 2vw, 16px) !important;
    }

    main.single .latest-main .post-thumbnail {
        margin: 10px auto;
    }

    main.single .post-meta {
        display: flex;
        justify-content: flex-end;
        margin: 20px auto;
    }

    main.single .post-meta .meta-category {
        font-size: 3vw;
    }

    main.single .latest-main .post-title {
        font-size: 6.5vw;
    }

    main.single .post-card:nth-child(9) {
        display: none;
    }

    main.single .post-card h3 {
        font-size: 3.5vw;
    }

    main.single .post-navigation a {
        padding: 10px 20px;
    }

    main.single .post-navigation a::before {
        top: 16px;
    }

    main.single .post-navigation .nav-previous a::before {
        left: 18px;
    }

    main.single .post-navigation .nav-next a::before {
        right: 18px;
    }

    main.single .sp-menu {
        margin: 30px auto;
    }

    main.single .post-content p {
        font-size: 4vw;
    }
}