/* SECTION Main */

.importantLinks
{
    --size: 100px;

    display: flex;
    height: fit-content;
    margin: auto;
    padding: 0;

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

    .icon.instagram
    {
        mask-image: url(https://www.ohkubogakuen.or.jp/sns/sns_logo_instagram_gradient.png);
        mask-size: calc(var(--size) / 2);
    }

    .icon.x
    {
        mask-image: url(https://www.ohkubogakuen.or.jp/sns/sns_logo_x_black.png);
        mask-size: calc(var(--size) / 2 - 3px);
    }

    .icon.recruitment
    {
        mask-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg width='256' height='256' viewBox='0 0 256 256' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs2' /%3E%3Cpath d='M 114.7912,1.8622968 C 93.718133,8.6752272 81.354751,25.299223 81.354751,46.821153 c 0,10.451424 1.897772,18.149914 7.052052,28.615523 11.988487,24.339711 32.274277,35.937094 50.701817,28.984344 14.2571,-5.380235 29.17179,-24.335664 33.93294,-43.128976 C 178.79972,38.562349 169.27843,15.269301 150.25411,5.5473991 139.0529,-0.17732673 125.46554,-1.5887503 114.7912,1.8622968 M 84.271828,122.18894 c -9.063305,6.41879 -10.086663,6.86765 -22.116693,9.70367 -15.033231,3.54426 -17.847973,4.86247 -19.993985,9.36322 -1.513759,3.17443 -1.47019,4.86551 0.616042,24.01852 2.540157,23.31229 5.706487,38.99399 10.887111,53.92185 7.017602,20.22601 13.957185,25.29113 44.667047,32.6056 23.54635,5.60922 36.53591,5.6001 59.66684,-0.0425 30.51026,-7.44215 37.27354,-12.4181 44.26378,-32.56305 5.21812,-15.03526 8.36621,-30.68453 10.90738,-54.22177 2.24936,-20.82483 2.25037,-20.91805 0.27053,-24.31742 -2.55029,-4.37916 -4.32242,-5.17049 -19.61706,-8.76339 -12.09995,-2.8421 -13.08987,-3.27475 -22.16837,-9.70468 -5.22723,-3.70131 -9.85261,-6.72984 -10.27918,-6.72984 -0.42656,0 -0.37894,1.71032 0.10639,3.79959 1.66878,7.18479 1.06693,17.99084 -1.43675,25.79876 -3.38114,10.54363 -31.26916,80.84326 -32.07063,80.84326 -0.79335,0 -29.573018,-72.61384 -32.463751,-81.90816 -2.123721,-6.83117 -2.61007,-18.08811 -1.065914,-24.73386 0.485336,-2.08927 0.532957,-3.79959 0.106389,-3.79959 -0.426568,0 -5.051944,3.02853 -10.279176,6.72984 m 38.333372,7.23646 c -5.15225,5.2323 -6.4583,10.32072 -3.12681,12.18607 1.51376,0.84706 1.47323,2.3598 -0.50662,18.58459 -1.18446,9.71481 -2.15412,19.00406 -2.15412,20.64245 0,2.83804 10.08464,29.84659 11.14549,29.84862 0.27864,10e-4 3.03866,-6.40156 6.13305,-14.22569 l 5.62746,-14.22772 -2.4743,-19.84302 c -2.27469,-18.24718 -2.34055,-19.91799 -0.81362,-20.77214 1.00411,-0.56234 1.65967,-2.22403 1.65967,-4.20995 0,-2.57663 -1.04059,-4.30621 -4.84728,-8.05616 -2.66681,-2.62527 -5.07727,-4.77432 -5.35793,-4.77432 -0.28067,0 -2.65871,2.18148 -5.28499,4.84727' stroke='none' fill='%23040404' fill-rule='evenodd' style='stroke-width:1.01323' /%3E%3C/svg%3E%0A");
        mask-size: calc(var(--size) / 2 + 10px);
    }

    a
    {
        text-align: center;
        color: var(--c-black);
        font-weight: bold;

        span
        {
            margin: 0 auto;
        }
    }

    a:nth-child(2)
    {
        border-top: none;
        border-bottom: none;
        border-left: var(--border-3px);
        border-right: var(--border-3px);
    }
}


#about
{
    position: relative;
    justify-content: space-between;
    z-index: 1;

    #aboutText
    {
        margin: auto;
        padding: 20px 20px;
        /* border-top: solid 3px rgba(0, 0, 0, 0.2); */
        /* border-bottom: solid 3px rgba(0, 0, 0, 0.2); */

        h2
        {
            margin: 0 0 20px 0;
        }

        #aboutDescription
        {
            border-bottom: var(--border-3px);
            padding: 0 0 10px 0;
            margin: 0 0 10px 0;
        }

        a
        {
            float: right;
        }
    }

    #aboutContents > .importantLinks
    {
        margin: auto 0 auto 60px;

        @media screen and (max-width: 1630px)
        {
            margin: auto;
        }

        @media screen and (max-width: 1555px)
        {
            --size: 80px;

            flex-direction: column;

            .icon
            {
                width: var(--size);
                height: var(--size);
                margin: 0 0px;
            }

            .icon.instagram
            {
                mask-size: calc(var(--size) / 2);
            }

            .icon.x
            {
                mask-size: calc(var(--size) / 2 - 3px);
            }

            .icon.recruitment
            {
                mask-size: calc(var(--size) / 2 + 8px);
            }

            a
            {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 12px 0;
            }

            a:nth-child(2)
            {
                border-left: none;
                border-right: none;
                border-top: var(--border-1px);
                border-bottom: var(--border-1px);
                margin: 6px 0px;
                padding: 6px 0px;
            }
        }

        @media screen and (max-width: 1392px)
        {
            display: none;
        }

        @media screen and (max-width: 1084px)
        {
            display: flex;
        }

        @media screen and (max-width: 870px)
        {
            display: none;
        }
    }

    #aboutImage
    {
        height: 340px;
        text-align: end;

        .importantLinks
        {
            display: none;
        }

        img
        {
            width: 447px;
            height: inherit;
        }
    }

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

        #aboutImage
        {
            display: flex;
            width: 100%;
            background-image: url(https://www.ohkubogakuen.or.jp/bird-view.png);
            background-position: -125px 50%;
            background-repeat: no-repeat;
            background-size: cover;
            background-color: rgb(165 196 206);
            background-blend-mode: overlay;

            img
            {
                margin: 0 0 0 auto;
            }

            @media screen and (max-width: 870px)
            {
                background-image: none;
                background-color: transparent;

                img
                {
                    margin: 0 0 0 auto;
                }


                .importantLinks
                {
                    display: flex;
                    flex-direction: column;
                    margin: -10px auto 0 auto;

                    .icon
                    {
                        --size: 80px;
                        width: var(--size);
                        height: var(--size);
                    }

                    a
                    {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin: 20px 0;
                        margin-right: 15px;
                    }

                    a:nth-child(2)
                    {
                        border-left: none;
                        border-right: none;
                        border-top: var(--border-1px);
                        border-bottom: var(--border-1px);
                        margin: 10px 0px;
                        padding: 10px 0px;
                    }
                }
            }

            @media screen and (max-width: 707.5px)
            {
                .importantLinks
                {
                    --size: 48px;

                    display: flex;
                    flex-direction: column;
                    margin: -10px auto 0 auto;

                    .icon
                    {
                        width: var(--size);
                        height: var(--size);
                        margin: 0;
                    }

                    .icon.instagram
                    {
                        mask-size: calc(var(--size) / 2);
                    }

                    .icon.x
                    {
                        mask-size: calc(var(--size) / 2 - 3px);
                    }

                    .icon.recruitment
                    {
                        mask-size: calc(var(--size) / 2 + 8px);
                    }

                    a
                    {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin: 8px 0;
                    }

                    a:nth-child(2)
                    {
                        border-left: none;
                        border-right: none;
                        border-top: var(--border-1px);
                        border-bottom: var(--border-1px);
                        margin: 4px 0px;
                        padding: 4px 0px;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 667px)
    {
        #aboutImage
        {
            height: 0;

            img, .importantLinks
            {
                display: none;
            }
        }
    }

}

.namePlate
{
    display: none;
    background-color: color-mix(in srgb, var(--c-logo), var(--c-background) 90%);
    background-image: url(https://www.ohkubogakuen.or.jp/nameplate.png);
    height: 209px;
    background-position: right -78px;
    background-repeat: no-repeat;

    img
    {
        display: none;
    }

    @media screen and (max-width: 667px)
    {
        display: flex;
    }

    @media screen and (max-width: 393px)
    {
        background-position: 60% -78px;
    }

    @media screen and (max-width: 324px)
    {
        height: auto;
        background-image: none;

        img
        {
            display: block;
            width: 100%;
        }
    }
}

#about::before
{
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    width: 100%;
    height: calc(100% - 22px);
    background-color: color-mix(in srgb, var(--c-logo), var(--c-background) 90%);
    z-index: -1;

    @media screen and (max-width: 1084px)
    {
        top: 0;
        height: 100%;
    }
}

/* ANCHOR #mainContents */
#mainContents
{
    padding: 40px 80px;

    .importantLinks
    {
        display: none;

        @media screen and (max-width: 1392px)
        {
            display: flex;
        }

        @media screen and (max-width: 1084px)
        {
            display: none;
        }

        @media screen and (max-width: 667px)
        {
            display: flex;
            .icon
            {
                --size: 80px;
                width: var(--size);
                height: var(--size);
                margin: 0 14px;
            }

            .icon.instagram
            {
                mask-size: calc(var(--size) / 2);
            }

            .icon.x
            {
                mask-size: calc(var(--size) / 2 - 3px);
            }

            .icon.recruitment
            {
                mask-size: calc(var(--size) / 2 + 8px);
            }

            a:nth-child(2)
            {
                padding: 0 7px;
                margin: 0 7px;
            }        }

        @media screen and (max-width: 520px)
        {

        }
    }

    @media screen and (max-width: 1604px)
    {
        padding: 30px;
    }

    @media screen and (max-width: 740px)
    {
        padding: 20px;
    }

    @media screen and (max-width: 365px)
    {
        padding: 5px;
    }
}

#videoSpecial
{
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    margin: 0 auto;
}

.description
{
    flex-wrap: wrap;
}

/* 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
            {
                width: 350px;
                min-width: 350px;
                max-width: 350px;
                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;
            }
        }
    }

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

    .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;
        }
    }
}

#otherFacilities, #moreNews, #youtubeVideos
{

    .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;
    }

    h3
    {
        width: fit-content;
        text-decoration: underline;
    }
}

/* ANCHOR #youtubeVideos */
#youtubeVideos
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 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%;
    }
}

/* !SECTION */

/* SECTION Footar */
/* !SECTION */