/* 特定のクラス (.customLayout) が指定されたブロックのみに適用 */

.customLayout .vk_post:has(.custom-product-info) > div {
    padding: 0 1rem;
}

.customLayout .custom-product-info {
    margin-top: .8rem;
    padding: 1rem;
}

/* custom-product-info と vk_post_btnOuter の両方を含んでいる .vk_post にのみ適用 */
.customLayout .vk_post:has(.custom-product-info):has(.vk_post_btnOuter) {
    padding-bottom: 2rem !important;
}

.customLayout .vk_post_btnOuter {
    bottom: -1rem !important;
}

.customLayout .vk_post.card.card-post .card-title,
.customLayout .vk_post.card.card-post .card-date {
    display: none;
}

.customLayout .vk_post.card.card-post h5 {
    font-size: 16px;
    border: none;
    margin-bottom: .5rem;
    padding-bottom: 0;
}

.customLayout .vk_post.card.card-post ul {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    margin-block: 0;
}

.customLayout .vk_post.card.card-post ul p {
    margin-bottom: 0;
}

.customLayout .vk_post.card.card-post .vk_post_imgOuter {
    order: -1;
    height: 160px;
}

.customLayout .vk_post.card.card-post .card-body {
    padding: 0;
}

/* ステータスバッジのスタイル */
.customLayout .vk_post[data-status] .vk_post_imgOuter {
    position: relative;
}

.customLayout .vk_post[data-status] .vk_post_imgOuter:after {
    content: "";
    position: absolute;
    color: #fff;
    padding: 0 8px;
    bottom: 0;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    line-height: 28px;
    text-align: center;
    display: block;
    z-index: 2;
    right: 0;
    pointer-events: none;
}

.customLayout .vk_post.status-active .vk_post_imgOuter:after {
    position: absolute;
    color: #fff;
    padding: 2px 4px;
    bottom: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: block;
    z-index: 2;
    right: 0;
    pointer-events: none;
}

.customLayout .vk_post.status-discontinued .vk_post_imgOuter::after {
    background: #000;
    content: "廃番";
}

.customLayout .vk_post.status-limited .vk_post_imgOuter::after {
    background: #dc143c;
    content: "在庫限り";
}

.customLayout .vk_post.status-outofstock .vk_post_imgOuter::after {
    background: #8b4513;
    content: "在庫切れ";
}

.customLayout .vk_post.status-discontinued2 .vk_post_imgOuter::after {
    background: #808080;
    content: "廃番（代替品あり）";
    width: 130px;
}

.customLayout .vk_post.status-discontinued,
.customLayout .vk_post.status-discontinued2 {
    pointer-events: none;
}

.customLayout .vk_post.status-discontinued .btn-primary,
.customLayout .vk_post.status-discontinued2 .btn-primary {
    display: none;
}

/* コメント切り替え */


/* .customLayout が vk_posts と同じ要素に付く想定、または親に付く想定の両方に対応 */
.customLayout.vk_posts.show-comment3 .info-comment-extra,
.customLayout .vk_posts.show-comment3 .info-comment-extra {
    display: block;
}

.customLayout.vk_posts.show-comment3 .info-comment-standard,
.customLayout .vk_posts.show-comment3 .info-comment-standard {
    display: none;
}
.customLayout .vk_post.card.card-post h5,
.info-comment-standard,
.custom-product-info .p-name {
    line-height: 130%;
    font-size: 15px;
    margin-block-end:.7rem ;
    font-weight: normal;
}
.customLayout .vk_post.card.card-post h5 {
    margin-bottom: .5rem;
}

.customLayout .vk_post_taxonomy-thickness_a a {
    pointer-events: none;
}
.customLayout .vk_post .vk_post_imgOuter {
    transition: .5s all;
}
.customLayout .vk_post .vk_post_imgOuter:hover {
    opacity: .5;
}

/* メディアクエリ */
@media screen and (max-width: 1024px) {
    .customLayout .vk_post.card.card-post .vk_post_imgOuter {
        height: 130px;
    }
}

.customSimpleLayout .vk_post_imgOuter {
    order: -1;
    border-radius: 0;
}
.customSimpleLayout h5 {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 14px;
    margin-bottom: 0;
    font-weight: normal;
}
.customSimpleLayout .vk_post {
    background: none;
    border-radius: 0;
}
.status-badge.status-discontinued2,
.status-badge.status-limited,
.status-badge.status-outofstock,
.customSimpleLayout .vk_post_body.card-body {
    display: none;

}
.customSimpleLayout .card,
.customSimpleLayout .info-comment-standard br {
    border: none;
}
.customSimpleLayout .info-comment-standard {
    margin: 0;
    font-size: 14px;
    display: none;
}
.customSimpleLayout.show-comment3 .info-comment-standard {
    display: block;
}
.customSimpleLayout .info-comment-extra {
    margin: 0 auto;
    font-size: 14px;
}

/* ステータスバッジのスタイル */
.customSimpleLayout .vk_post[data-status] .vk_post_imgOuter {
    position: relative;
    height:150px;
    margin-bottom: 4px;
    width:100%;
    overflow: hidden;
    background-position: left top;
    background-size: 150% auto;
}

.customSimpleLayout .vk_post[data-status] .vk_post_imgOuter:after {
    content: "";
    position: absolute;
    color: #fff;
    padding: 0 8px;
    bottom: 0;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    line-height: 28px;
    text-align: center;
    display: block;
    z-index: 2;
    right: 0;
    pointer-events: none;
}

.customSimpleLayout .vk_post.status-active .vk_post_imgOuter:after {
    position: absolute;
    color: #fff;
    padding: 2px 4px;
    bottom: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: block;
    z-index: 2;
    right: 0;
    pointer-events: none;
}

.customSimpleLayout .vk_post.status-discontinued .vk_post_imgOuter::after {
    background: #000;
    content: "廃番";
}

.customSimpleLayout .vk_post.status-limited .vk_post_imgOuter::after {
    background: #dc143c;
    content: "在庫限り";
}

.customSimpleLayout .vk_post.status-outofstock .vk_post_imgOuter::after {
    background: #8b4513;
    content: "在庫切れ";
}

.customSimpleLayout .vk_post.status-discontinued2 .vk_post_imgOuter::after {
    background: #808080;
    content: "廃番（代替品あり）";
    width: 130px;
}

.customSimpleLayout .vk_post.status-discontinued,
.customSimpleLayout .vk_post.status-discontinued2 {
    pointer-events: none;
}

.customSimpleLayout .vk_post.status-discontinued .btn-primary,
.customSimpleLayout .vk_post.status-discontinued2 .btn-primary {
    display: none;
}
.column5 .vk_post{
    width:18%;
    transition: .3s all;
    margin: 0 1% 1rem;
}
.column5 .vk_post .vk_post_imgOuter {
    transition: .3s all;
}
.column5 .vk_post .vk_post_imgOuter:hover {
    opacity: .5;
}

.customLayout .p-number {
    margin-block-end: .5rem;
}

@media screen and (max-width: 1200px) {
    .column5 .vk_post{
        width:22%;
    }

}
@media screen and (max-width: 990px) {
    .column5 .vk_post{
        width:18%;
    }
    .customSimpleLayout .vk_post[data-status] .vk_post_imgOuter {
        height:130px;
    }
}
@media screen and (max-width: 770px) {
    .column5 .vk_post{
        width:30%;
        margin: 1% 1.5% 1rem;
    }
    .customSimpleLayout .vk_post[data-status] .vk_post_imgOuter {
        height:160px;
    }
}
@media screen and (max-width: 480px) {
    .column5 .vk_post{
        width:42%;
        margin: 1% 4% 1rem;
    }
    .customSimpleLayout .vk_post[data-status] .vk_post_imgOuter {
        height:160px;
    }
}
.vk_post-postType-awase_products .p-number,
.comment-type-awase + li,
.status-badge.status-discontinued {
    display: none;
}