/* M-Step ブログカード v2.2 */
.mstep-blogcard {
    margin: 1.5em 0;
    max-width: 100%;
}

.mstep-blogcard__link {
    display: flex !important;
    align-items: stretch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mstep-blogcard__link:hover {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* サムネイル */
.mstep-blogcard__thumb {
    flex: 0 0 230px;
    min-width: 230px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mstep-blogcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* コンテンツ */
.mstep-blogcard__content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* タイトル */
.mstep-blogcard__title {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.5;
    color: #0b7ac6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mstep-blogcard__link:hover .mstep-blogcard__title {
    text-decoration: underline;
}

/* 抜粋 */
.mstep-blogcard__excerpt {
    font-size: 0.85em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* サイト名 */
.mstep-blogcard__site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: #888;
    margin-top: auto;
}

.mstep-blogcard__favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .mstep-blogcard__link {
        flex-direction: column;
    }

    .mstep-blogcard__thumb {
        flex: 0 0 auto;
        min-height: 180px;
        max-height: 200px;
    }

    .mstep-blogcard__content {
        padding: 12px 16px;
    }
}
