html {
    scroll-padding-top: 60px;
}


/*---------
メイン
----------*/
.mv {
    width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    padding-left: 20px;
}


.main_catch {
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: calc(36 / 24);
    font-family: var(--sub-font);
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main_catch span {
    font-size: 15px;
    line-height: 1;
    font-family: var(--point-font);
    display: flex;
    align-items: center;
    gap: 5px;
}

.main_catch span::before {
    content: "";
    width: 11px;
    height: 1px;
    background: #fff;
}

/*---------
パンくず
----------*/

.breadcrumb {
    background: #E8E8E8;
    padding: 15px 20px;
}

.breadcrumb_list {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb_item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1;
}

.breadcrumb_item+.breadcrumb_item::before {
    content: ">";
    margin-right: 10px;
    color: var(--text-color);
}

.breadcrumb_link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.breadcrumb_icon {
    width: 16px;
    height: auto;
}

/*---------
下層用カテゴリボタン
----------*/

.category-nav {
    background: #E8E8E8;
    padding: 70px 20px 30px;
}

.category-nav_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 70px;
}

.category-nav_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    line-height: 1;
    border: 1px solid var(--accent-color);
    background: #fff;
    text-align: center;
}

.category-nav_link.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/*---------
ページャー
----------*/

.pagination {
    background: #E8E8E8;
    padding: 0px 20px;
}

.pagination_inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.pagination_list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.pagination_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1;
    border: 1px solid #404040;
    background: #fff;
}

.pagination_link.is-current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.pagination_arrows {
    display: contents;
}

.pagination_prev,
.pagination_next {
    display: block;
    width: 10px;
    height: auto;
    flex-shrink: 0;
}

.pagination_prev {
    order: -1;
}

.pagination_next {
    transform: rotate(180deg);
    order: 1;
}

/*---------
前後ナビ
----------*/

.post-nav {
    background: #E8E8E8;
    padding: 0 20px;
}

.post-nav_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.post-nav_link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.post-nav_arrow {
    width: 10px;
    height: auto;
}

.post-nav_next .post-nav_arrow {
    transform: rotate(180deg);
}

@media (min-width:768px) {

    html {
        scroll-padding-top: 80px;
    }


    .mv {
        width: 100%;
        height: 430px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        padding-left: clamp(90px, calc(180px + 50vw - 570px), 180px);
    }


    .main_catch {
        font-size: 32px;
        line-height: calc(48 / 32);
    }

    .main_catch span {
        font-size: 18px;
        gap: 10px;
    }

    .main_catch span::before {
        width: 20px;
    }

    /*---------
    下層用カテゴリボタン
    ----------*/

    .category-nav {
        padding: 120px 20px 40px;
    }

    .category-nav_list {
        grid-template-columns: repeat(5, 1fr);
        max-width: 960px;
        gap: clamp(1.25rem, 0.417rem + 1.74vw, 2.5rem);
        margin: 0 auto 120px;
    }

    .category-nav_link {
        font-size: clamp(0.813rem, 0.688rem + 0.26vw, 1rem);
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        height: 40px;
    }

    .category-nav_link:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: #fff;
    }

    /*---------
    ページャー
    ----------*/


    .pagination_inner {
        gap: 40px;
    }

    .pagination_list {
        gap: 10px;
    }

    .pagination_link {
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .pagination_link:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: #fff;
    }

    .pagination_prev,
    .pagination_next {
        transition: opacity 0.3s ease;
    }

    .pagination_prev:hover,
    .pagination_next:hover {
        opacity: 0.5;
    }

    /*---------
    前後ナビ
    ----------*/

    .post-nav_link {
        transition: opacity 0.3s ease;
    }

    .post-nav_link:hover {
        opacity: 0.7;
    }

}


/* =========================
   wp-pagenavi カスタマイズ
   ========================= */

/* 全体 */
.wp-pagenavi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    font-size: 0;
    /* inline要素の隙間対策 */
}

/* プラグインのデフォルト余白・罫線を打ち消し */
.wp-pagenavi a,
.wp-pagenavi span {
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    box-shadow: none;
}

/* 数字リンク群を横並びに見せるための基本 */
.wp-pagenavi .page,
.wp-pagenavi .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0 7px;
    /* SP時は合計24px gap相当 */
    box-sizing: border-box;
    border: 1px solid var(--sub-color);
    font-size: 14px;
    line-height: 1;
    color: var(--sub-color);
    background: #fff;
    vertical-align: middle;
    border: 1px solid #404040;
}

/* 現在ページ */
.wp-pagenavi .current {
    background: rgb(174, 32, 42);
    color: #fff;
    border: none;
}

/* 前へ・次へ */
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    font-size: 0;
    /* > や < の文字を消す */
    color: transparent;
    border: none;
}

/* 矢印本体 */
.wp-pagenavi .previouspostslink::before,
.wp-pagenavi .nextpostslink::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--sub-color);
    border-right: 2px solid var(--sub-color);
    box-sizing: border-box;
}

/* 左矢印 */
.wp-pagenavi .previouspostslink::before {
    transform: rotate(-135deg);
}

/* 右矢印 */
.wp-pagenavi .nextpostslink::before {
    transform: rotate(45deg);
}

/* hover */
.wp-pagenavi a.page:hover,
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover {
    opacity: 0.7;
}


.wp-pagenavi .previouspostslink::before, .wp-pagenavi .nextpostslink::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px;
    height: 7px;
    border-top: 2px solid rgb(28, 28, 28);
    border-right: 2px solid rgb(28, 28, 28);
    box-sizing: border-box;
}

.wp-pagenavi .previouspostslink::before {
    transform: rotate(-135deg);
}

.wp-pagenavi .nextpostslink::before {
    transform: rotate(45deg);
}

/* PC */
@media (min-width: 768px) {
    .wp-pagenavi {
        /* max-width: 260px; */
    }

    .wp-pagenavi .page,
    .wp-pagenavi .current {
        margin: 0;
        /* 合計10px gap相当 */
    }

    .wp-pagenavi .previouspostslink {
        margin-right: 25px;
    }

    .wp-pagenavi .nextpostslink {
        margin-left: 25px;
    }
}