.sns_post {
    width: 100%;
    /* background-image: linear-gradient(90deg, #ffdb4f, #ffe16e 99%); */

    padding: 0px 0 15px;
    box-sizing: border-box;
    color: #000000;
    position: relative;
    margin-top: 0px;
}

.sns_post[hidden] {
    display: none !important;
}

.sns_post__heading {
    margin: 0 0 16px;
    padding: 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1419;
}

/* Swiper コンテナ（bundle の .swiper に上書き） */
.sns_post .sns_post__scroller.swiper {
    width: 100%;
    padding: 0 15px 6px;
    box-sizing: border-box;
    overflow: hidden;
}

/*
 * 横方向: grid-auto-flow: column で各スライドが1列
 * 縦方向: 1fr auto + subgrid で、全列のコメント行・画像行の高さを揃える
 * （Swiper 既定の flex ラッパーを上書き）
 */
@supports (grid-template-rows: subgrid) {
    .sns_post .sns_post__scroller .swiper-wrapper {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: clamp(250px, 82vw, 320px);
        column-gap: 12px;
        grid-template-rows: 1fr auto;
        align-items: stretch;
        box-sizing: border-box;
    }

    .sns_post .sns_post__scroller .swiper-slide {
        display: grid !important;
        grid-template-rows: subgrid;
        grid-row: 1 / -1;
        width: auto !important;
        min-width: 0;
        height: auto;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .sns_post__card {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 1 / -1;
        min-height: 0;
    }
}

@media screen and (max-width: 599px) {
    @supports (grid-template-rows: subgrid) {
        .sns_post .sns_post__scroller .swiper-wrapper {
            grid-auto-columns: 80%;
        }
    }
}

/* subgrid 非対応ブラウザ向けフォールバック */
@supports not (grid-template-rows: subgrid) {
    .sns_post .sns_post__scroller .swiper-slide {
        width: clamp(250px, 82vw, 320px);
        box-sizing: border-box;
    }

    @media screen and (max-width: 599px) {
        .sns_post .sns_post__scroller .swiper-slide {
            width: 80%;
        }
    }

    .sns_post__card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
}

.sns_post__card {
    position: relative;
    padding: 10px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    gap: 3px;
    overflow: hidden;
    cursor: pointer;
}

.sns_post__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.sns_post__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1d9bf0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

.sns_post__meta {
    flex: 1;
    min-width: 0;
}

.sns_post__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1419;
    line-height: 1.25;
}

.sns_post__time {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #536471;
    font-size: 10px;
    font-weight: normal;
}

.sns_post__comment {
    margin: 0 0 10px;
    font-size: 10px;
    line-height: 1.45;
    color: #0f1419;
    min-height: 0;
    white-space: pre-line;
}

.sns_post__media {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eff3f4;
    background: #f7f9f9;
    aspect-ratio: 16 / 9;
}

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

.sns_post__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    /* border-radius: inherit; */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sns_post__card.is-open .sns_post__overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sns_post__back,
.sns_post__cta {
    appearance: none;
    margin: 0;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 999px;
    cursor: pointer;
}

.sns_post__back:hover,
.sns_post__cta:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sns_post__back:focus-visible,
.sns_post__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

a.sns_post__cta {
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
}

.sns_post__overlayActions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    align-items: stretch;
}

/* 
.sns_post__back {
    appearance: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sns_post__back:hover {
    color: #fff;
}

.sns_post__back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 2px;
} */

h2.ssection_title_s {
    padding-left: 15px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 5px;
    padding-bottom: 5px;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    padding: 30px;
    display: inline-block;
    background: #000;
    transform: translate(0px, -50%);
    color: #fff;
    border-radius: 0 100px 100px 0;
}

.sns_post_date {
    text-align: center;
}

.sns_post_date--inner {
    padding: 5px 20px;
    color: #fff;
    background: #000;
    display: inline-block;
    border-radius: 100px;
    margin-bottom: 20px;
}

.sns_post .section_title {
    margin-bottom: 5px;
    margin-top: 30px;
}