@charset "UTF-8";

/* ピックアップ記事（top_recommend_articles）専用CSS */

section.top_recommend_articles {
    background: linear-gradient(90deg, rgba(240, 248, 255, 1) 0%, rgba(38, 161, 164, 0.3) 100%);
    padding: 16px 24px 24px;
    margin: 0;
    margin-bottom: 24px;
    max-width: 100%;
}

.articles_container {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
}

/* カードレイアウト */
.article_card_wrapper {
    position: relative;
    height: 330px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.article_card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.article_card.active {
    opacity: 1;
    transform: translateX(0);
}

.article_card a {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.article_card a:hover {
    text-decoration: none;
    cursor: pointer;
}

.article_card:hover {
    transform: scale(1.02);
}

/* 画像部分 */
.card_image {
    width: 330px;
    height: 330px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 8px;
    border-bottom: none;
}

.card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* デッドラインバッジ */
.deadline_badge {
    display: inline-block;
    background: var(--instagram);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.deadline_badge.campaign {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
}

.deadline_badge span {
    font-size: 1.1rem;
    margin-left: 4px;
}

/* コンテンツ部分 */
.card_content {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    min-width: 0;
    /* flexboxでの縮小を許可 */
    position: relative;
}

/* コンテンツヘッダー */
.content_header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 35px;
    margin-bottom: 16px;
    min-height: 0;
}

/* タイトル */
.article_title {
    font-size: 1.45rem;
    font-weight: bold;
    color: #212529;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    /* 4行制限 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 4);
    /* line-height × 行数 */
}

/* コンテンツフッター */
.content_footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 50px;
    margin-top: 8px;
}

/* 記事を読むボタン */
.read_more_btn {
    /* background: linear-gradient(135deg, #20a8d8, #1891c4); */
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    border: 1px solid var(--gray);
    white-space: nowrap;
}

.article_card:hover .read_more_btn {
    background: linear-gradient(135deg, #20a8d8, #1891c4);
    color: white;
    box-shadow: 0 6px 20px rgba(32, 168, 216, 0.4);
}

/* インジケーター */
.card_indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #20a8d8;
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: #20a8d8;
    transform: scale(1.1);
}

/* サムネイルナビゲーション */
.thumbnail_nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.6;
}

.thumbnail.active {
    border-color: #20a8d8;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(32, 168, 216, 0.3);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 680px) {
    section.top_recommend_articles {
        padding: 16px;
    }

    .article_card_wrapper {
        height: 200px;
    }

    .card_image {
        width: 200px;
        height: 200px;
    }

    .card_content {
        padding: 16px;
    }

    .article_title {
        font-size: 1rem;
    }

    .deadline_badge {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .deadline_badge span {
        font-size: 0.85rem;
    }

    .content_header {
        margin-bottom: 8px;
        min-height: 0;
    }

    /* デッドラインバッジがない場合のスタイル調整 */
    .content_header:empty,
    .content_header.no-badge {
        margin-bottom: 0;
        padding: 0;
        height: 0;
    }

    .read_more_btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .card_indicators {
        margin: 12px 0;
    }

    /* サムネイルナビゲーション */
    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        opacity: 0.6;
    }
}

/* レスポンシブ対応 */
@media (max-width: 450px) {
    section.top_recommend_articles {
        padding: 8px 24px 16px;
    }

    .article_card a {
        flex-direction: column;
        align-items: center;
    }

    .card_image {
        width: 55vw;
        height: 55vw;
    }

    .article_card_wrapper {
        height: calc(55vw + 130px);
    }

    .card_content {
        padding: 8px;
        justify-content: start;
    }

    .content_header {
        padding: 0 8px;
        margin-bottom: 8px;
        min-height: 0;
    }

    /* デッドラインバッジがない場合のスタイル調整 */
    .content_header:empty,
    .content_header.no-badge {
        margin-bottom: 0;
        padding: 0;
        height: 0;
    }

    .article_title {
        padding: 0 8px;
        font-size: 1rem;
        overflow: hidden;
    }

    /* デッドラインバッジ */
    .deadline_badge {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .deadline_badge span {
        font-size: 0.85rem;
    }

    .card_indicators {
        margin: 12px 0;
    }

    /* サムネイルナビゲーション */
    .thumbnail_nav {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .thumbnail {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        opacity: 0.6;
    }

    .content_footer {
        display: none;

    }
}