/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Apr 14 2026 | 07:05:38 */
/* =============================================
   カルーセルラッパー（矢印の基準位置）
============================================= */
.user-post-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* =============================================
   カルーセル本体
============================================= */
.user-post-carousel {
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    gap: 20px;
    list-style: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    /* スクロールバー非表示 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.user-post-carousel::-webkit-scrollbar {
    display: none;
}

/* =============================================
   各カード
============================================= */
.user-post-carousel li {
    flex: 0 0 calc(33.333% - 13.34px) !important;
    scroll-snap-align: start;
    margin: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    align-self: flex-start;
}

/* スマホ：1.2枚見せ */
@media (max-width: 768px) {
    .user-post-carousel li {
        flex: 0 0 80% !important;
    }
}

/* =============================================
   サムネイル画像の統一（全階層まとめて制御）
============================================= */
.user-post-carousel .wp-block-latest-posts__featured-image,
.user-post-carousel .wp-block-latest-posts__featured-image a {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    margin-bottom: 0;
}

.user-post-carousel .wp-block-latest-posts__featured-image img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.user-post-carousel .wp-block-latest-posts__featured-image {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .user-post-carousel .wp-block-latest-posts__featured-image img {
        height: 180px !important;
    }
}

/* =============================================
   矢印ボタン共通
============================================= */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.2s, opacity 0.2s;
    padding: 0;
}
.carousel-arrow:hover {
    background: #f5f5f5;
}
.carousel-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.carousel-arrow--prev {
    left: -20px;
}
.carousel-arrow--next {
    right: -20px;
}

/* スマホでは内側に収める */
@media (max-width: 768px) {
    .carousel-arrow--prev { left: 4px; }
    .carousel-arrow--next { right: 4px; }
}

/* 矢印SVGアイコン */
.carousel-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #555;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}