.blog-inner {
    width: clamp(0px, calc(100% - 40px), 1080px);
    margin: 0 auto;
}

.blog-head-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: clamp(40px, 10.25vw, 140px);
    align-items: end;
    margin-bottom: clamp(2px, 0.37vw, 5px);
}

.blog-title {
    font-family: "ABeeZee", sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 7.32vw, 100px);
    line-height: 1;
    color: #BFD1C6;
    margin: 0;
}

.blog-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin-bottom: clamp(4px, 0.73vw, 10px);
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 400;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.73vw, 10px);
    margin-bottom: clamp(48px, 7.9vw, 108px);
    padding-left: clamp(4px, 0.73vw, 10px);
}

.blog-dot {
    width: clamp(6px, 0.88vw, 12px);
    height: clamp(6px, 0.88vw, 12px);
    background: #006E7C;
    border-radius: 50%;
}

.blog-meta-text {
    font-size: clamp(14px, 1.46vw, 20px);
    color: #000;
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 400;
}

.blog-category {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 0.73vw, 10px);
}

.cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 0.51vw, 7px) clamp(20px, 2.93vw, 40px);
    font-size: clamp(14px, 1.17vw, 16px);
    color: #006E7C;
    border: 1px solid #006E7C;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 400;
}

.cat.is-active {
    background: #006E7C;
    color: #fff;
}

.cat:hover {
    background: #006E7C;
    color: #fff;
}

@media screen and (max-width: 819px) {
    .blog-head-wrap {
        grid-template-columns: 1fr;
        row-gap: 12px;
        align-items: start;
    }

    .blog-title {
        font-size: clamp(48px, 12vw, 72px);
    }

    .blog-desc {
        max-width: none;
    }
}

.case-swiper .swiper-wrapper {
    margin-bottom: clamp(12px, 1.46vw, 20px);
    margin-top: clamp(12px, 1.46vw, 20px);
}

.case-section .service-lead {
    margin-bottom: clamp(10px, 2.78vw, 38px);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card {
    width: 335px;
    max-width: 360px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    transition: transform .2s, box-shadow .2s;
}

.card-link:hover .card {
    transform: translateY(-2px);
}

.card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 10px 10px 20px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 10px;
}

.card-tag {
    font-size: 14px;
    color: #006E7C;
    background: #BFD1C6;
    padding: 2px 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.card-date {
    font-size: 14px;
    color: #006E7C;
}

.card-title {
    position: relative;
    max-height: calc(1.5em * 2);
    min-height: calc(1.5em * 2);
    font-size: 18px;
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 600;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    padding-right: 26px;
    margin: 0 0 16px;
}

.card-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.15em;

    width: 18px;
    height: 18px;
    background: url("/img/External-Link.svg") no-repeat center / contain;
}

.card-title img {
    width: 24px;
    height: 24px;
    margin-left: 6px;
    vertical-align: text-bottom;
}

.card-desc2 {
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: calc(1.5em * 2);
    overflow: hidden;
}

@media screen and (max-width: 819px) {
    .case-head {
        padding-top: 50px;
    }

    .case-more-btn {
        width: 225px;
        font-size: 20px;
    }
}

.card-meta.blog-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-direction: unset;
}

.card-title.blog-card {
    margin: 0px 0 16px;
}

.blog-swiper .swiper-wrapper {
    margin: clamp(12px, 1.46vw, 20px) 0 clamp(12px, 1.46vw, 20px) 0;
}

.blog-list-section {
    width: 100%;
    padding: clamp(40px, 6vw, 80px) 0;
}

.blog-card-grid {
    width: clamp(0px, calc(100% - 40px), 1080px);
    margin: 57px auto 39px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
    justify-items: center;
}

.blog-category-hint {
    display: none;
}

@media screen and (max-width: 1140px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 750px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.17vw, 16px);
    font-family: "Inter", sans-serif;
}

.pagination>ul {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.17vw, 16px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a.page-numbers:not(.prev):not(.next):not(.pagination-last) {
    width: clamp(12px, 3.51vw, 48px);
    height: clamp(12px, 3.51vw, 48px);
    border-radius: 50%;
    border: 1px solid #BFD1C6;
    color: #006E7C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4px, 1.17vw, 16px);
    text-decoration: none;
    transition: opacity 0.2s;
}

.pagination span.page-numbers.current {
    width: clamp(12px, 3.51vw, 48px);
    height: clamp(12px, 3.51vw, 48px);
    border-radius: 50%;
    border: 1px solid #006E7C;
    color: #006E7C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4px, 1.17vw, 16px);
}

.pagination .prev,
.pagination .next,
.pagination-last {
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    color: #000;
    text-decoration: underline;
    font-size: clamp(4px, 1.17vw, 16px);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.pagination .dots {
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    color: #006E7C;
}

.pagination a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 819px) {
    .pagination {
        gap: 8px;
    }

    .pagination>ul {
        gap: 8px;
    }

    .pagination a.page-numbers:not(.prev):not(.next):not(.pagination-last),
    .pagination span.page-numbers.current {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .pagination span.page-numbers.current {
        font-weight: 600;
        background: rgba(0, 110, 124, 0.05);
    }

    .pagination .prev,
    .pagination .next,
    .pagination-last {
        font-size: 14px;
        text-decoration: none;
        padding: 8px 4px;
    }

    .pagination .dots {
        font-size: 14px;
    }

    .pagination-last {
        display: none;
    }

    .blog-category-hint {
        display: block;
        font-size: 13px;
        color: #666;
        margin-bottom: 8px;
        padding-left: 4px;
        font-family: "dnp-shuei-mgothic-std", sans-serif;
    }

    .blog-category {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .blog-category::-webkit-scrollbar {
        display: none;
    }

    .cat {
        white-space: nowrap;
        padding: 6px 20px;
        font-size: 14px;
    }

    .card {
        width: 100%;
        max-width: 360px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        transition: transform .2s, box-shadow .2s;
    }

    .card-link:hover .card {
        transform: translateY(-2px);
    }


    .card-image img {
        width: 100%;
        display: block;
    }


    .card-body {
        padding: 10px 10px 20px;
    }


    .card-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        margin-bottom: 10px;
    }

    .card-tag {
        font-size: 14px;
        color: #006E7C;
        background: #BFD1C6;
        padding: 2px 15px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    .card-date {
        font-size: 14px;
        color: #006E7C;
    }


    .card-title {
        font-size: 18px;
        font-family: "dnp-shuei-mgothic-std", sans-serif;
        font-weight: 600;
        line-height: 1.5;
        max-height: calc(1.5em * 2);
        min-height: calc(1.5em * 2);
        overflow: hidden;
        margin: 0px 0px 16px;
    }

    .card-title img {
        width: 24px;
        height: 24px;
        margin-left: 6px;
        vertical-align: text-bottom;
    }

    .card-desc2 {
        font-size: 16px;
        line-height: 1.5;
        color: #000;
        margin: 0;
        font-family: "dnp-shuei-mgothic-std", sans-serif;
        font-weight: 400;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        min-height: calc(1.5em * 2);
        overflow: hidden;
    }

}

@media screen and (max-width: 819px) {

    /* 見出しブロックだけ制御 */
    .blog-inner:first-of-type {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* 中の h2 / desc を同階層にする */
    .blog-inner:first-of-type .blog-head-wrap {
        display: contents;
    }

    /* ▼ 並び順を作る */
    .blog-inner:first-of-type .blog-title {
        order: 1;
    }

    .blog-inner:first-of-type .blog-meta {
        order: 2;
        margin-bottom: 0;
    }

    .blog-inner:first-of-type .blog-desc {
        order: 3;
    }

    /* ▼ それ以外は全部下に送る */
    .blog-inner:first-of-type .blog-category-hint,
    .blog-inner:first-of-type .blog-category {
        order: 10;
    }
}