/* Molecule: Menu List B */
.m-menu-list-b {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1.776;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.o-menu-list-b__description {
    @media (width >=768px) {
        margin-bottom: 3.5rem;
    }
}

.m-menu-list-b__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.m-menu-list-b__media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: background 0.3s ease;
}

.m-menu-list-b.m-menu-list-b__has-link:hover .m-menu-list-b__media::before {
    background: rgba(0, 0, 0, 0.25);
}

.m-menu-list-b__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.m-menu-list-b.m-menu-list-b__has-link:hover .m-menu-list-b__media img {
    transform: scale(1.05);
}

.m-menu-list-b__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    width: 90%;

    @media (width >=768px) {
        width: auto;
    }
}

.m-menu-list-b__heading{
    font-size: clamp(var(--title-md), 1.25rem + 3vw, var(--title-lg));
}

.m-menu-list-b__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Organism: Menu List B */
.o-menu-list-b {
    padding-bottom: 4.25rem;

    @media (width >=768px) {
        padding-bottom: 5.625rem;
    }
}

.o-menu-list-b__has_top-media {
    padding-top: 0;

    @media (width >=768px) {
        padding-top: 4.8rem;
    }
}

.o-menu-list-b__header {
    margin-bottom: 2.375rem;
}

.o-menu-list-b__items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    row-gap: 1.125rem;

    @media (width >=768px) {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.375rem;
    }
}

.o-menu-list-b__top-img {
    width: 100%;
    height: 0;

    @media (width >=768px) {
        height: 14.375rem;
    }

    & img {
        width: 100%;
        object-fit: cover;
        height: 100%;
    }
}

.o-menu-list-b__title {
    color: var(--color-red);
    font-size: 3rem;

    @media (width >=768px) {
        font-size: 4.5rem;
    }
}

.o-menu-list-b__title-media {
    position: relative;
    min-height: 14.375rem;
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;

    @media (width >=768px) {
        margin-bottom: 0;
        min-height: 0;
    }

    & .o-menu-list-b__title {
        color: var(--color-white);
        text-wrap: wrap;

        @media (width >=768px) {
            color: var(--color-red);
        }
    }
}

.o-menu-list-b__title-img {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 120%;
    margin-left: -10%;
    min-height: 14rem;

    @media (width >=768px) {
        height: 0;
        min-height: 0;
    }

    & img {
        max-width: 100%;
        display: block;
        object-fit: cover;
        height: 100%;
    }
}