/*
========================
card
========================
*/
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px var(--wp--custom--color--blue--300);
}

.card_img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover .card_img {
    transform: scale(1.05);
}

.card_text_box {
    display: flex;
    padding: var(--base, 16px) var(--md, 20px) var(--lg, 24px);
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    gap: var(--base, 16px);
    align-self: stretch;
    background: var(--wp--custom--color--gray--50);
}

.card_text_box_inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sm, 8px);
}

.card_date {
    color: var(--wp--custom--color--neutral--400);
    font-family: "Noto Sans JP";
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: var(--base, 16px);
}

.card_title {
    color: #232936;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    word-break: break-all;
}

.card_excerpt {
    display: none;
    color: #232936;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    word-break: break-all;
}

.card_tag_list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

}

@media screen and (min-width: 1280px) {
    .card_img {
        /* @todo 後修正必要（アスペクト比の統一） */
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card_text_box {
        padding: var(--lg, 24px) var(--lg, 24px) var(--xl2, 32px);
    }

    .card_date {
        font-size: 12px;
        font-weight: 700;
        line-height: var(--md, 20px);
    }

    .card_title {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
    }

    .card_excerpt {
        display: block;
    }

    .card_tag_list {
        gap: 8px;
    }
}
