/* ANCHOR .cards */
article .cards
{
    width: 100%;
    margin: 0 auto;
    white-space: nowrap;

    .card
    {
        display: flex;
        flex-direction: row;

        > .cardImage
        {
            margin: 0 25px 0 0;
            height: fit-content;

            img
            {
                min-width: 350px;
                max-width: 350px;
                object-fit: contain;
                object-position: top;
                border-radius: 3px;
            }
        }

        .cardContent img.cardImage
        {
            display: none;
            border-radius: 3px;
        }

        .links
        {
            justify-content: end;
            margin: auto 0 3px 0;
        }

        a.learnMore
        {
            text-decoration: none;
            padding: 2px 30px;
            border: solid 1px var(--c-black);
            width: fit-content;
            color: var(--c-black);
        }

        a.learnMore:first-child
        {
            border-radius: 100px 0 0 100px;
        }

        a.learnMore:not(:last-child)
        {
            margin-right: -1px;
        }

        a.learnMore:last-child
        {
            border-radius: 0 100px 100px 0;
        }

        a.learnMore:only-child
        {
            border-radius: 100px;
        }

    }

    @media screen and (max-width: 1472px)
    {
        padding: 0;

        .card
        {
            > .cardImage
            {
                display: none;
            }

            .about
            {
                display: flex;
                margin-bottom: 1lh;
            }

            .cardContent img.cardImage
            {
                display: flex;
                align-items: center;
                width: fit-content;
                height: 300px;
                margin-right: 1lh;
            }
        }
    }

    @media screen and (max-width: 1000px)
    {
        .card
        {
            .about
            {
                flex-direction: column;
            }

            .cardContent img.cardImage
            {
                display: flex;
                align-items: center;
                width: fit-content;
                height: 300px;
                margin-left: auto;
                margin-right: auto;
                margin-bottom: 1lh;
                border-radius: 3px;
            }
        }
    }

    @media screen and (max-width: 660px)
    {
        .card
        {
            .cardContent img.cardImage
            {
                display: flex;
                align-items: center;
                width: 100%;
                height: auto;
                margin-left: auto;
                margin-right: auto;
                margin-bottom: 1lh;
                border-radius: 3px;
            }
        }
    }

    .card:not(:last-child)
    {
        margin-bottom: 120px;
    }

    .card:nth-child(9999)
    {
        flex-direction: row-reverse;

        .cardImage
        {
            margin: 0 0 0 25px;
        }
    }

    img
    {
        /* height: 160px; */
    }

    h2
    {
        border-bottom: var(--border-3px);
        margin-bottom: 10px;
        /* box-shadow: 0 13px 10px -13px #0000001f; */
    }

    .description.flxCol
    {
        margin-bottom: 1lh;
    }

    .contacts
    {
        flex-wrap: wrap;
        padding: 5px 0 0 0;
        border-top: var(--border-1px);

        .contact
        {
            display: flex;
            align-items: center;
            margin: 3px;
        }

        .icon
        {
            --size: 1lh;
            width: var(--size);
            height: var(--size);
            min-width: var(--size);
            min-height: var(--size);
            background-color: var(--c-black);
            mask-size: contain;
            mask-position: center;
            mask-repeat: no-repeat;
        }

        .icon.phone
        {
            mask-image: var(--icon-phone);
        }

        .icon.map
        {
            mask-image: var(--icon-map);
        }

        .icon.fax
        {
            mask-image: var(--icon-fax);
        }

        .icon.mail
        {
            mask-image: var(--icon-mail);
        }

        .icon + span
        {
            margin:0 20px 0 10px;
        }

        .contact.address
        {
            text-decoration: underline;
        }
    }

    #midorien
    {
        .contacts
        {
            .contact.mail .icon + span
            {
                @media screen and (max-width: 407px)
                {
                    margin: 0;
                }

                @media screen and (max-width: 377px)
                {
                    font-size: small;
                    margin-left: 3px;
                }
            }

            .contact.address .icon + span
            {
                @media screen and (max-width: 403px)
                {
                    margin: 0;
                }

                @media screen and (max-width: 377px)
                {
                    font-size: small;
                    margin-left: 3px;
                }
            }
        }
    }

    #ohkubogakuen, #kohboh
    {
        @media screen and (max-width: 369px)
        {
            .contact.address .icon + span
            {
                margin: 0;
            }
        }
    }

    @media screen and (max-width: 365px)
    {
        .contact .icon + span
        {
            margin: 0 20px 0 10px !important;
        }
    }
}

/* ANCHOR #youtubeVideos */
#youtubeVideos
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 1lh;

    .arrowS
    {
        width: 60px;
        height: 20px;
        background-color: var(--c-black);
        mask-size: contain;
        mask-position: center;
        margin: 2lh 0 1lh 0;
    }

    .arrowE
    {
        width: 20px;
        min-width: 20px;
        height: 60px;
        background-color: var(--c-black);
        mask-size: contain;
        mask-position: center;
        margin: 0 1lh 0 1lh;
    }

    .video
    {
        text-align: center;
        margin: 0 5px;
        padding: 10px;
        border: var(--border-1px);

        .videoImage
        {
            position: relative;
            display: inline-block;

            img
            {
                border-radius: 3px;
            }
        }

        .videoImage::before
        {
            position: absolute;
            content: '';
            top: 50%;
            left: 50%;
            width: 48px;
            height: 48px;
            background-color: var(--c-background);
            mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 12,0 A 12,12 0 0 0 0,12 12,12 0 0 0 12,24 12,12 0 0 0 24,12 12,12 0 0 0 12,0 Z M 8.1992188,6.4042969 a 1.2469018,1.2469018 0 0 1 0.703125,0.1191406 l 9.3750002,4.5957035 a 0.98052457,0.98052457 0 0 1 0,1.761718 l -9.3750002,4.595703 a 1.2469018,1.2469018 0 0 1 -1.796875,-1.11914 V 7.6425781 a 1.2469018,1.2469018 0 0 1 1.09375,-1.2382812 z' /%3E%3C/svg%3E");
            mask-size: contain;
            mask-position: center;
            mask-repeat: no-repeat;
            opacity: 0.9;
            transform: translate(-50%, -50%);
        }

        p.date
        {
            text-align: right;
            font-size: smaller;
            color: color-mix(in srgb, var(--c-black), var(--c-background) 30%);
            margin-top: 3px;
        }
    }

    .videos
    {
        display: flex;
        flex-direction: row;

        @media screen and (max-width: 716px)
        {
            display: grid;
            grid-template-columns: max-content;

            .video
            {
                margin: 5px 0;

                @media screen and (max-width: 384px)
                {
                    .videoTitle
                    {
                        font-size: small;
                    }
                }

                @media screen and (max-width: 365px)
                {
                    .videoTitle
                    {
                        font-size: medium;
                    }

                    .videoImage img
                    {
                        width: 250px;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 1160px)
    {
        flex-direction: column;

        .arrowE
        {
            display: none;
        }

        .arrowS
        {
            margin-top: 1lh;
            display: block;
        }

        a h3
        {
            margin: 0 auto;
        }
    }
}

#youtubeEmbed
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: color-mix(in srgb, #000000, transparent 15%);
    z-index: 9999;

    .btnClose
    {
        width: 48px;
        height: 48px;
        background-color: var(--c-background);
        mask-image: var(--icon-close);
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: 40px;
        margin: 0 0 0 auto;
    }

    #containerA
    {
        height: 100%;
        aspect-ratio: 16/9;
        max-width: 100%;
    }

    .embedContent
    {
        width: 100%;
        aspect-ratio: 16/9;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow:hidden
    }

    iframe
    {
        width: 100%;
        max-height: 100%;
        aspect-ratio: 16 / 9;
    }
}

#googleMapEmbed
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    background-color: color-mix(in srgb, var(--c-background), transparent 15%);
    z-index: 9999;

    .btnClose
    {
        width: 48px;
        height: 48px;
        background-color: var(--c-black);
        mask-image: var(--icon-close);
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: 40px;
        margin: 0 0 0 auto;
    }

    .wrapper
    {
        padding: 46px;
    }

    .embedContent
    {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow:hidden;
        box-shadow: 0 16px 20px -3px color-mix(in srgb, var(--c-black), transparent 45%);
    }

    iframe
    {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
