/* 投稿カルーセル用スタイル */
.post-carousel-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px 0;
}

.post-carousel-container .post-carousel {
    position: relative;
    overflow: hidden;
    padding: 60px 20px; /* カードの外に余白を追加 */
}

.post-carousel-container .post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 10px; /* カード間の余白を追加 */
}

.post-carousel-container .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-carousel-container .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-carousel-container .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-carousel-container .post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-carousel-container .post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-carousel-container .post-title {
    font-size: 22px; /* フォントサイズを大きく変更 */
    font-weight: 700; /* フォントの太さを増加 */
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #3db134; /* タイトルの色を緑色に変更 */
}

.post-carousel-container .post-title a {
    color: #3db134; /* リンクの色も緑色に変更 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-carousel-container .post-title a:hover {
    color: #2a7d26; /* ホバー時は少し濃い緑色 */
}

.post-carousel-container .post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.post-carousel-container .post-card .post-title {
    color: #3db134 !important; /* タイトルの色を緑色に変更 */
}

.post-carousel-container .post-card .post-title a {
    color: #3db134 !important; /* リンクの色も緑色に変更 */
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.post-carousel-container .post-card .post-title a:hover {
    color: #2a7d26 !important; /* ホバー時は少し濃い緑色 */
}

/* Swiperナビゲーションボタン */
.post-carousel-container .swiper-button-next,
.post-carousel-container .swiper-button-prev {
    background-color: transparent !important; /* 背景をなしに */
    border-radius: 0 !important;
    width: 44px !important;
    height: 44px !important;
    color: #3db134 !important; /* 矢印の色を#3db134に変更 */
    transition: all 0.3s ease !important;
    top: 50% !important; /* カードの真ん中に配置 */
    transform: translateY(-50%) !important;
}

.post-carousel-container .swiper-button-next:hover,
.post-carousel-container .swiper-button-prev:hover {
    background-color: transparent !important; /* ホバー時も背景なし */
    color: #2a7d26 !important; /* ホバー時は少し濃い緑色 */
    transform: translateY(-50%) scale(1.1) !important;
}

.post-carousel-container .swiper-button-next::after,
.post-carousel-container .swiper-button-prev::after {
    font-size: 24px !important; /* 矢印のサイズを大きく */
    font-weight: bold !important;
    color: #3db134 !important; /* 矢印の色を確実に適用 */
}

/* Swiperページネーション */
.post-carousel-container .swiper-pagination-bullet {
    background-color: #ccc !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}

.post-carousel-container .swiper-pagination-bullet-active {
    background-color: #3db134 !important; /* アクティブな点の色を#3db134に変更 */
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .post-carousel-container {
        max-width: 100%;
        padding:0 20px 30px 20px;
    }

    .post-carousel-container .post-carousel {
        padding: 0 20px 60px 20px;
    }

    .post-carousel-container .post-card {
        margin: 8px;
    }

    .post-carousel-container .post-title {
        font-size: 19px;
    }

    .post-carousel-container .swiper-button-next,
    .post-carousel-container .swiper-button-prev {
        width: 42px;
        height: 42px;
    }

    .post-carousel-container .swiper-button-next::after,
    .post-carousel-container .swiper-button-prev::after {
        font-size: 22px;
    }
}

/* タブレット対応 */
@media (max-width: 768px) {
    .post-carousel-container {
        padding: 0 15px 20px 15px;
    }

    .post-carousel-container .post-carousel {
        padding: 0 15px 30px 15px;
    }

    .post-carousel-container .post-card {
        margin: 5px;
    }

    .post-carousel-container .post-content {
        padding: 15px;
    }

    .post-carousel-container .post-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .post-carousel-container .post-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .post-carousel-container .swiper-button-next,
    .post-carousel-container .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .post-carousel-container .swiper-button-next::after,
    .post-carousel-container .swiper-button-prev::after {
        font-size: 18px;
    }

    .post-carousel-container .swiper-pagination {
        bottom: 10px;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .post-carousel-container {
        padding: 0 10px 15px 10px;
    }

    .post-carousel-container .post-carousel {
        padding: 0 15px 25px 15px;
    }

    .post-carousel-container .post-card {
        margin: 3px;
    }

    .post-carousel-container .post-content {
        padding: 10px;
    }

    .post-carousel-container .post-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .post-carousel-container .post-excerpt {
        font-size: 11px;
        line-height: 1.3;
    }

    .post-carousel-container .swiper-button-next,
    .post-carousel-container .swiper-button-prev {
        width: 28px;
        height: 28px;
    }

    .post-carousel-container .swiper-button-next::after,
    .post-carousel-container .swiper-button-prev::after {
        font-size: 14px;
    }

    .post-carousel-container .swiper-pagination {
        bottom: 5px;
    }

    .post-carousel-container .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}
