/* ============================================================
   top-cards-carousel: 症例・コラム共通カルーセル
   ============================================================ */

/* --- カルーセルコンテナ --- */
.top-cards-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin: 32px 0 0;
    padding: 0 0 4px;
    scrollbar-width: none;
}

.top-cards-carousel::-webkit-scrollbar {
    display: none;
}

/* --- カードアイテム（PC: 3枚ぴったり） --- */
.top-card-item {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.top-card-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.top-card-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* --- カード画像（①⑥ 画像全体を表示・切り抜きなし） --- */
.top-card-img {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.top-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- カード本文 --- */
.top-card-body {
    padding: 12px 14px 16px;
}

.top-card-date {
    font-size: 12px;
    color: #999;
    margin: 0 0 6px;
    letter-spacing: 0.04em;
}

.top-card-title {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* --- 症例カルーセル: PC4枚表示 --- */
.top-cards-carousel--case .top-card-item {
    flex: 0 0 calc((100% - 60px) / 4);
}

/* --- インジケーター（②） --- */
.top-cards-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
}

.top-cards-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.2s ease;
    cursor: default;
}

.top-cards-dot.is-active {
    background: #000;
}

/* --- ボタンエリア（⑤ 中央寄せ保証） --- */
.top-cards-btn {
    display: flex;
    justify-content: center;
    margin: 32px 0 0;
}

/* --- コラムセクション --- */
.top-column-section {
    padding: 60px 0;
    background: #fff;
}

/* ④ 見出し下▼との重なり解消: 負のmarginを正値に修正 */
.top-column-lead {
    text-align: center;
    color: #555;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================================
   SP（768px以下）: 1枚がきれいに収まる幅
   ============================================================ */
@media screen and (max-width: 768px) {
    .top-cards-carousel {
        gap: 14px;
        margin: 24px 12px 0;
    }

    /* ③⑦ 1枚がぴったり収まる幅（はみ出しなし） */
    .top-card-item {
        flex: 0 0 100%;
    }

    /* 症例カルーセルはSPで2枚表示 */
    .top-cards-carousel--case .top-card-item {
        flex: 0 0 calc((100% - 14px) / 2);
    }

    .top-card-title {
        font-size: 13px;
    }

    .top-column-section {
        padding: 40px 0;
    }

    .top-column-lead {
        font-size: 13px;
        text-align: left;
        margin: 12px 0 0;
    }

    .top-cards-btn {
        margin-top: 24px;
    }
}

/* PC: 左右余白（769px以上） */
@media screen and (min-width: 769px) {
    .top-cards-carousel {
        margin-left: 24px;
        margin-right: 24px;
    }
}
