/**
 * カテゴリー関連記事のスタイル
 * SWELLテーマに馴染むカード表示
 */

.my-related {
    margin-top: 2rem;
}

.my-related__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.my-related__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-related__item {
    border: 1px solid var(--color_border, #eee);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-related__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.my-related__link {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
}

.my-related__thumb {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.my-related__thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-related__item:hover .my-related__thumb img {
    transform: scale(1.05);
}

.my-related__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-related__ttl {
    display: block;
    line-height: 1.4;
    font-weight: 500;
}

.my-related__date {
    font-size: 0.85em;
    opacity: 0.7;
    color: var(--color_text_sub, #666);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .my-related__list {
        gap: 16px;
    }

    .my-related__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .my-related__list {
        grid-template-columns: 1fr;
    }

    .my-related {
        margin-top: 1.5rem;
    }
}
