/* =========================================
   Post Page
========================================= */

.post-page {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    color: #333333;
}


/* =========================================
   Page Title
========================================= */

.post-hero {
    width: 100%;

    padding: 70px 20px 60px;

    box-sizing: border-box;

    background: #ffffff;

    text-align: center;
}


.post-hero__inner {
    width: min(1000px, 100%);

    margin: 0 auto;
}


.post-hero__title {
    margin: 0;

    color: #173a70;

    font-size: clamp(52px, 6vw, 72px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.01em;
}


.post-hero__jp {
    margin: 18px 0 0;

    color: #333333;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;
}


/* =========================================
   Content
========================================= */

.post-content {
    width: 100%;

    padding: 20px 20px 100px;

    box-sizing: border-box;

    background: #ffffff;
}


.post-content__inner {
    width: min(1000px, 100%);

    margin: 0 auto;
}


/* =========================================
   Article
========================================= */

.post-article {
    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;
}


/* =========================================
   Article Header
========================================= */

.post-article__header {
    margin: 0 0 45px;

    padding: 0 0 17px;

    border-bottom: 1px solid #b8b8b8;
}


/* 日付・カテゴリー */
.post-article__meta {
    margin: 0 0 26px;

    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 18px;
}


.post-article__date {
    margin: 0;

    color: #333333;

    font-size: 14px;
    font-weight: 500;

    line-height: 1;
}


/* アクセントカラーを赤 */
.post-article__category {
    min-width: 88px;

    padding: 8px 13px;

    box-sizing: border-box;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #c5161d;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================
   Article Title
========================================= */

.post-article__title {
    margin: 0 !important;
    padding: 0 !important;

    color: #333333;

    font-size: clamp(24px, 3vw, 30px) !important;
    font-weight: 700;

    line-height: 1.6;
}


/* =========================================
   Article Body
========================================= */

.post-article__body {
    width: 100%;

    min-height: 300px;

    padding: 0 0 70px;

    box-sizing: border-box;

    color: #333333;

    font-size: 16px;

    line-height: 2;
}


/* 通常段落 */
.post-article__body p {
    margin: 0 0 1.8em;
}


/* 見出し */
.post-article__body h2 {
    margin: 45px 0 20px;

    padding: 12px 16px;

    border-left: 4px solid #c5161d;

    background: #f6f8fb;

    color: #173a70;

    font-size: 24px;

    line-height: 1.6;
}


.post-article__body h3 {
    margin: 35px 0 15px;

    color: #173a70;

    font-size: 20px;

    line-height: 1.6;
}


.post-article__body h4 {
    margin: 30px 0 12px;

    color: #333333;

    font-size: 18px;

    line-height: 1.6;
}


/* リンク */
.post-article__body a {
    color: #c5161d;

    text-decoration: underline;
}


/* 画像 */
.post-article__body img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 30px auto;
}


/* リスト */
.post-article__body ul,
.post-article__body ol {
    margin:
        0
        0
        1.8em
        1.5em;
}


/* =========================================
   Table
========================================= */

.post-article__body table {
    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;
}


.post-article__body table th,
.post-article__body table td {
    padding: 13px 15px;

    border: 1px solid #d9d9d9;

    font-size: 14px;
}


.post-article__body table th {
    background: #f5f7fa;

    color: #173a70;
}


/* =========================================
   Navigation
========================================= */

.post-navigation-custom {
    width: 100%;

    margin: 0;

    padding: 42px 0 0;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    align-items: center;

    border-top: 1px solid #b8b8b8;
}


/* 共通 */
.post-navigation-custom a {
    display: inline-block;

    color: #333333;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        color 0.3s ease;
}


.post-navigation-custom a:hover {
    color: #c5161d;
}


/* 前の記事 */
.post-navigation-custom__prev {
    text-align: center;
}


.post-navigation-custom__prev a::before {
    content: "←";

    margin-right: 8px;

    color: #c5161d;
}


/* 一覧 */
.post-navigation-custom__back {
    text-align: center;
}


.post-navigation-custom__back a {
    position: relative;

    padding-bottom: 5px;
}


.post-navigation-custom__back a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: #c5161d;

    transform: scaleX(0);

    transition:
        transform 0.3s ease;
}


.post-navigation-custom__back a:hover::after {
    transform: scaleX(1);
}


/* 次の記事 */
.post-navigation-custom__next {
    text-align: center;
}


.post-navigation-custom__next a::after {
    content: "→";

    margin-left: 8px;

    color: #c5161d;
}


/* =========================================
   Comment Area
========================================= */

.single .comments-area,
.single .comment-respond,
.single .post-navigation,
.single .ast-comment-list {
    display: none !important;
}


/* =========================================
   Astra Reset
========================================= */

.post-page article {
    margin: 0;
}


.post-page a {
    box-shadow: none;
}


/* =========================================
   Smartphone
========================================= */

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

    .post-hero {
        padding:
            50px
            18px
            45px;
    }


    .post-hero__title {
        font-size: 46px;
    }


    .post-hero__jp {
        margin-top: 13px;

        font-size: 13px;
    }


    .post-content {
        padding:
            10px
            18px
            70px;
    }


    .post-article__header {
        margin-bottom: 30px;
    }


    .post-article__meta {
        margin-bottom: 18px;

        gap: 10px;
    }


    .post-article__date {
        font-size: 12px;
    }


    .post-article__category {
        min-width: 72px;

        padding:
            6px
            9px;

        font-size: 10px;
    }


    .post-article__title {
        font-size: 22px !important;

        line-height: 1.6;
    }


    .post-article__body {
        padding-bottom: 50px;

        font-size: 14px;

        line-height: 1.9;
    }


    .post-article__body h2 {
        margin-top: 35px;

        font-size: 20px;
    }


    .post-article__body h3 {
        font-size: 18px;
    }


    /* ナビ */
    .post-navigation-custom {
        padding-top: 30px;

        grid-template-columns:
            1fr
            1fr
            1fr;

        gap: 5px;
    }


    .post-navigation-custom a {
        font-size: 12px;
    }


    .post-navigation-custom__prev a::before {
        margin-right: 4px;
    }


    .post-navigation-custom__next a::after {
        margin-left: 4px;
    }

}