.latest-special-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
}

.special-post {
    width: calc(25% - 15px); /* 4カラム配置 */
    text-align: center;
}

.special-post img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}



.special-post h3 {
    font-size: 16px;
    margin-top: 10px;
    word-wrap: break-word;
    letter-spacing: 0.1rem;
    line-height: 1.9rem;
}

.special-post h3 a {
    text-decoration: none;
    color: #333;
}

.special-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto 15px;
    border-bottom: solid 1px #000000;
    padding-bottom: 10px;
}

.special-list-link {
    font-size: 16px;
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.special-list-link:hover {
    color: #005f8d;
}

#latest-background{
    background-color: #ebebeb;
    padding: 40px 0;
}


.latest-special-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.swiper-slide.special-post {
    width: auto; /* スライダーに合わせて */
    text-align: center;
}

/* Swiper ナビゲーションボタンのカスタムスタイル */
.latest-special-slider .swiper-button-prev,
.latest-special-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.8);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333; /* 矢印の色 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.latest-special-slider .swiper-button-prev{
    border-radius: 0 100% 100% 0;
}

.latest-special-slider .swiper-button-next {
border-radius:100% 0 0 100%;
}

.latest-special-slider .swiper-button-prev:hover,
.latest-special-slider .swiper-button-next:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* 矢印アイコンのサイズ調整 */
.latest-special-slider .swiper-button-prev::after,
.latest-special-slider .swiper-button-next::after {
    font-size: 20px;
}

/* 位置調整（必要に応じて微調整してね） */
.latest-special-slider .swiper-button-prev {
    left: 0;
}

.latest-special-slider .swiper-button-next {
    right: 0;
}





/* タブレット対応（1200px以下） */
@media screen and (max-width: 1200px) {
    #latest-background  .swiper {
        margin: 0 20px;
    }
    .latest-special-posts {
        padding: 0 15px;
    }

    .special-post {
        width: calc(25% - 10px); /* 画像と文字を縮小 */
    }

    .special-post h3 {
        font-size: 14px;
    }
    .special-title {
        margin: 0 15px 10px;
    }
}

/* スマホ対応（750px以下） */
@media screen and (max-width: 750px) {

    .latest-special-slider .swiper-button-prev, .latest-special-slider .swiper-button-next {
        width: 34px;
    }

    .latest-special-slider .swiper-button-prev{
        border-radius: 0 70% 70% 0;
    }
    
    .latest-special-slider .swiper-button-next {
    border: radius 70% 0 0 70%;
    }
    .latest-special-posts {
        max-width: 100%;
    }

    .special-post {
        width: calc(50% - 5px); /* 2カラム配置 */
    }
    .swiper-slide.special-post {
        width: 80%;
    }
}
