/* 無限スクロール用スタイル */

/* ローディングインジケーター */
.infinite-scroll-loader {
    text-align: center;
    padding: 20px 0;
    margin: 20px 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

.infinite-scroll-loader.end {
    opacity: 0.7;
}

.infinite-scroll-loader.error {
    color: #e74c3c;
}

/* ローディングスピナー */
.infinite-scroll-spinner {
    margin: 0 auto;
    width: 70px;
    text-align: center;
}

.infinite-scroll-spinner>div {
    width: 12px;
    height: 12px;
    background-color: var(--primary, #f09bc3);
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.infinite-scroll-spinner .bounce1 {
    animation-delay: -0.32s;
}

.infinite-scroll-spinner .bounce2 {
    animation-delay: -0.16s;
}

.infinite-scroll-status {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

/* ローディングアニメーション */
@keyframes sk-bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* 記事が追加されるアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新しく追加された記事のアニメーション */
.post-list .post:nth-last-child(-n+12) {
    animation: fadeIn 0.5s ease forwards;
}