/* =========================================================
   SenScope Single Post Layout
========================================================= */

/* =========================================================
   ARTICLE PAGE CANVAS
   Astraの投稿背景を白にリセット
========================================================= */

body.single-post {
    background: #ffffff !important;
}

body.single-post #page,
body.single-post .site-content,
body.single-post .site-content > .ast-container,
body.single-post #primary,
body.single-post .site-main,
body.single-post .ast-article-single {
    background: #ffffff !important;
}

body.single-post .site-content {
    padding-top: 52px;
    padding-bottom: 28px;
}

.single-post .ast-container {
    max-width: 1180px;
}

.single-post .content-area,
.single-post .site-main {
    width: 100%;
}

.single-post .ast-article-single {
    margin-bottom: 0 !important;
    padding: 0;
    background: transparent;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.single-post .entry-header {
    max-width: 980px;
    margin: 0 auto 36px;
}

.single-post .entry-title {
    margin: 0;

    color: #153957;

    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.single-post .entry-meta {
    margin-top: 18px;

    color: #718493;

    font-size: 13px;
}


/* =========================================================
   FEATURED IMAGE
   記事本文トップのアイキャッチだけ
========================================================= */

body.single-post .ast-article-single .ast-blog-featured-section {
    max-width: 980px;
    margin: 0 auto 56px;
    overflow: visible !important;
}

body.single-post
.ast-article-single
.ast-blog-featured-section
.post-thumb-img-content {
    width: 100%;
    max-width: none !important;
    margin: 0;
}

body.single-post
.ast-article-single
.ast-blog-featured-section
img.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}


/* =========================================================
   CONTENT WIDTH
========================================================= */

.single-post .entry-content {
    max-width: 760px;
    margin: 0 auto;
}

.single-post .entry-content > *:first-child {
    margin-top: 0;
}


/* =========================================================
   PREV / NEXT
========================================================= */

.single-post .post-navigation {
    max-width: 980px;
    margin: 76px auto 0;
    padding-top: 26px;

    border-top: 1px solid #ccdbe2;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .single-post .site-content {
    padding-top: 30px;
    padding-bottom: 28px;
}

    .single-post .entry-header,
    .single-post .entry-content,
    .single-post .post-navigation {
        width: calc(100% - 40px);
    }

    .single-post .entry-title {
        font-size: 30px;
        line-height: 1.35;
    }

    .single-post .entry-meta {
        margin-top: 14px;
        font-size: 12px;
    }

    .single-post .post-thumb {
        margin-bottom: 40px;
    }

    .single-post .post-navigation {
        margin-top: 58px;
    }
}

/* =========================================================
   RELATED POSTS
========================================================= */

body.single-post .ast-single-related-posts-container {
    margin: 0;
    padding: 68px 24px 76px;
    background: #f3f7f8 !important;
    border-top: 1px solid #dce6e9;
}

/* 見出しとカード幅 */
body.single-post .ast-related-posts-title-section,
body.single-post .ast-related-posts-wrapper {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   RELATED POSTS TITLE
========================================================= */

body.single-post .ast-related-posts-title-section {
    position: relative;
    margin-bottom: 30px;
    padding-top: 15px;
}

body.single-post .ast-related-posts-title-section::before {
    content: "READ NEXT";
    display: block;
    margin-bottom: 8px;
    color: #18a3a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

body.single-post .ast-related-posts-title-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 3px;
    background: #18a3a3;
}

body.single-post .ast-related-posts-title {
    margin: 0;
    color: #153957 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.35;
    letter-spacing: -.025em;
    text-align: left !important;
}


/* =========================================================
   RELATED POSTS GRID
========================================================= */

body.single-post .ast-related-posts-wrapper {
    gap: 28px;
}


/* =========================================================
   RELATED POST CARD
========================================================= */

body.single-post .ast-related-post {
    margin: 0;
    padding: 0;
    background: transparent;
}

body.single-post .ast-related-posts-inner-section {
    height: 100%;
}

body.single-post .ast-related-post-content {
    height: 100%;
    padding: 0;
    background: transparent;
}


/* =========================================================
   RELATED / ARTICLE CARD IMAGE
   1200 × 630 の比率を維持
========================================================= */

body.single-post
article.ast-article-post
.ast-blog-featured-section {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: 40 / 21 !important;

    margin: 0 0 18px !important;
    overflow: hidden !important;
    background: #ffffff;
}

body.single-post
article.ast-article-post
.ast-blog-featured-section
.post-thumb-img-content {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: 40 / 21 !important;

    margin: 0 !important;
}

body.single-post
article.ast-article-post
.ast-blog-featured-section
.post-thumb-img-content a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 0;
}

body.single-post
article.ast-article-post
.ast-blog-featured-section
img.wp-post-image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    aspect-ratio: 40 / 21 !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 !important;
}


/* =========================================================
   RELATED POST TEXT
========================================================= */

body.single-post .ast-related-post-content .entry-header {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.single-post .ast-related-post-title {
    margin: 0;
    color: #153957 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.55;
    letter-spacing: -.015em;
}

body.single-post .ast-related-post-title a {
    color: inherit !important;
    text-decoration: none;
}

body.single-post .ast-related-post-title a:hover {
    color: #18a3a3 !important;
}

body.single-post .ast-related-post-content .entry-meta {
    margin-top: 10px;
    color: #718493;
    font-size: 11px;
    line-height: 1.5;
}

body.single-post .ast-related-post-content .entry-meta a {
    color: #3f78c5;
    text-decoration: none;
}


/* 本文抜粋が表示されている場合 */
body.single-post .ast-related-post-excerpt {
    margin: 12px 0 0;
    color: #607382;
    font-size: 13px;
    line-height: 1.8;
}


/* 続きを読むが表示されている場合 */
body.single-post .ast-related-post-cta {
    margin: 16px 0 0;
}

body.single-post .ast-related-post-link {
    color: #153957;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

body.single-post .ast-related-post-link::after {
    content: " →";
    color: #18a3a3;
}


/* =========================================================
   RELATED POSTS MOBILE
========================================================= */

@media (max-width: 768px) {

    body.single-post .ast-single-related-posts-container {
        padding: 48px 20px 54px;
    }

    body.single-post .ast-related-posts-title-section {
        margin-bottom: 24px;
    }

    body.single-post .ast-related-posts-title {
        font-size: 24px !important;
    }

    body.single-post .ast-related-posts-wrapper {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    body.single-post .ast-related-post-title {
        font-size: 17px !important;
    }
}

/* =========================================================
   HIDE ASTRA DEFAULT POST NAVIGATION
========================================================= */

.single-post .post-navigation,
.single-post .navigation.post-navigation {
    display: none !important;
}
/* Astraの4:3アイキャッチ強制を解除 */
.ast-article-post .post-thumb-img-content img {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}