/* Naibu Link Manager - 関連記事カード */

.nlm-card {
    margin: 1.5em 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.nlm-card-inner {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.nlm-card-inner:hover {
    background: #f8fafc;
}

/* サムネイル */
.nlm-card-thumb {
    flex: 0 0 140px;
    width: 140px;
    overflow: hidden;
    background: #f3f4f6;
}

.nlm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* テキストエリア */
.nlm-card-body {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nlm-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0;
    line-height: 1;
}

.nlm-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.45;
}

.nlm-card-excerpt {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nlm-card-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 4px;
}

/* サムネイルなし */
.nlm-card-inner:not(:has(.nlm-card-thumb)) .nlm-card-body {
    padding: 16px 20px;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .nlm-card-inner {
        flex-direction: column;
    }
    .nlm-card-thumb {
        flex: none;
        width: 100%;
        height: 160px;
    }
}
