/*A11Y Presentation*/
@import 'normalize.css';
@import 'cscroll.css';

/*@page
{
    size:   A4 landscape;
    margin: 0;
}*/

body
{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-direction: column;

    & p
    {
        line-height: 40px;
    }

    & ul,
    & ol
    {
        & li
        {
            margin-bottom: 8px;
            line-height: 40px;
        }
    }

    & aside
    {
        background: rgba(var(--lightgray), 0.2);
        padding: 60px calc(var(--step) * 2) 60px calc(var(--step) * 1.5);
        margin: 0 0 60px;
        max-width: 1920px;
        width: 100%;
        box-shadow: 0 30px 20px -20px rgba(var(--black), 0.05);
        position: relative;

        @media all and (width < 1000px)
        {
            padding: 40px;

            & h2
            {
                font-size: 20pt;
                letter-spacing: 0;
                line-height: 30px;
            }
        }

        @media all and (width < 680px)
        {
            padding: 30px 20px;
        }
    }

    & article
    {
        border: 1px solid rgba(var(--gray), 0.75);
        background: url('../i/bg.svg') repeat-y center center/100% auto;
        width: 100%;
        max-width: 1920px;
        aspect-ratio: 16/9;
        position: relative;
        display: flex;
        align-items: flex-start;
        align-content: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        box-shadow: 0 30px 20px -20px rgba(var(--black), 0.05);
        counter-increment: ac;

        @media all and (width < 1922px)
        {
            border-left: none;
            border-right: none;
        }

        @media all and (width < 1100px)
        {
            padding-bottom: 40px;
            aspect-ratio: unset;
        }

        @media all and (width < 680px)
        {
            padding: 0 20px 40px;
        }

        &:before
        {
            content: counter(ac) '';
            font-size: 14pt;
            font-weight: 500;
            margin: 60px 0 0 auto;
            background: rgb(var(--darkyellow));
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            align-content: center;
            justify-content: center;
            order: 3;

            @media all and (width < 1100px)
            {
                margin: 0 0 0 auto;
                order: 2;
            }

            @media all and (width < 680px)
            {
                margin-right: -20px;
            }
        }

        & button
        {
            &.toc
            {
                margin: 60px calc(var(--step) * 1.5) 0 60px;
                position: relative;
                order: 1;

                @media all and (width < 1100px)
                {
                    margin: 40px calc(var(--step) * 1.5) 0 60px;
                }

                @media all and (width < 800px)
                {
                    margin: 20px 0 0 20px;
                }

                @media all and (width < 680px)
                {
                    margin: 20px 0 0;
                }

                & img
                {
                    width: 200px;

                    @media all and (width < 680px)
                    {
                        width: 160px;
                    }
                }
            }
        }

        & h1
        {
            margin: 100px 0 0;
            width: calc(var(--step) * 7);
            height: 160px;
            order: 2;

            @media all and (width < 1441px)
            {
                font-size: 36pt;
                line-height: 55px;
                height: 120px;
            }

            @media all and (width < 1100px)
            {
                font-size: 28pt;
                line-height: 40px;
                margin: 20px 0 0 60px;
                width: calc(100% - 120px);
                height: 90px;
                order: 3;
            }

            @media all and (width < 1000px)
            {
                font-size: 24pt;
                margin: 20px 0;
                width: 100%;
                height: unset;
            }

            @media all and (width < 800px)
            {
                margin: 20px 0 0 20px;
            }

            @media all and (width < 680px)
            {
                font-size: 20pt;
                line-height: 32px;
                margin: 20px 0;
            }
        }

        & h2
        {
            @media all and (width < 1100px)
            {
                font-size: 24pt;
                line-height: 30px;
                letter-spacing: 0;
            }

            @media all and (width < 1000px)
            {
                font-size: 20pt;
            }
        }

        & > dl,
        & > div
        {
            order: 4;
        }

        & dl
        {
            padding: 0;
            width: 100%;
            display: flex;
            align-items: flex-start;
            align-content: flex-start;
            justify-content: flex-start;

            @media all and (width < 1000px)
            {
                flex-direction: column;
            }

            & dt
            {
                margin: 0 0 20px calc(var(--step) * 1.5);
                max-width: 640px;
                width: calc(var(--step) * 4);
                display: flex;
                align-items: flex-start;
                align-content: flex-start;
                justify-content: center;
                flex-wrap: wrap;

                @media all and (width < 1100px)
                {
                    margin: 0 0 20px calc(var(--step) * 0.5);
                }

                @media all and (width < 1000px)
                {
                    margin: 0 auto 40px;
                    width: 100%;
                    max-width: 640px;
                }

                & img,
                & video
                {
                    max-width: 100%;
                    max-height: 720px;

                    &.middle
                    {
                        margin: 10px 5px 0;
                        max-width: calc(70% - 10px);
                    }

                    &.small
                    {
                        margin: 10px 5px 0;
                        max-width: calc(25% - 10px);
                    }
                }
            }

            & dd
            {
                padding: 0 0 0 100px;
                max-width: 860px;
                width: calc(var(--step) * 5.5);

                @media all and (width < 1100px)
                {
                    padding: 0 0 0 40px;
                    width: calc(var(--step) * 6.5);
                }

                @media all and (width < 1000px)
                {
                    padding: 0;
                    margin: 0 auto;
                    width: 100%;
                    max-width: 640px;
                }

                & img
                {
                    max-width: 100%;
                }

                & h2
                {
                    margin: 0 0 20px;
                }

                & ul,
                & ol
                {
                    margin-bottom: 20px;
                }
            }
        }

        & > div
        {
            display: flex;
            align-items: flex-start;
            align-content: flex-start;
            justify-content: center;
            width: 100%;

            &.imgset
            {
                padding: 0;
                justify-content: flex-start;
                height: calc(100% - 30%);

                @media all and (width < 1100px)
                {
                    min-height: 440px;
                }

                @media all and (width < 1000px)
                {
                    align-items: center;
                    align-content: center;
                    min-height: unset;
                    flex-direction: column;
                }

                & > img
                {
                    max-width: 23%;

                    @media all and (width < 1000px)
                    {
                        max-width: 360px;
                        width: 100%;
                    }

                    &:nth-of-type(2)
                    {
                        margin: 8% 0 0 -9%;
                    }

                    &:nth-of-type(3)
                    {
                        margin: auto 0 6% -6.5%;
                    }

                    &:nth-of-type(4)
                    {
                        margin: 2% 0 0 -13%;
                    }

                    &:nth-of-type(5)
                    {
                        margin: auto 0 4% -9%;
                    }

                    &:nth-of-type(6)
                    {
                        margin: 0 0 0 -12%;
                    }

                    &:nth-of-type(7)
                    {
                        margin: auto 0 3% -12%;
                    }

                    @media all and (width < 1000px)
                    {
                        &:nth-of-type(1),
                        &:nth-of-type(2),
                        &:nth-of-type(3),
                        &:nth-of-type(4),
                        &:nth-of-type(5),
                        &:nth-of-type(6),
                        &:nth-of-type(7)
                        {
                            margin: 0 0 20px;
                        }
                    }
                }

                &.wrap
                {
                    flex-wrap: wrap;
                }

                &.two_cols
                {
                    @media all and (width < 1100px)
                    {
                        min-height: unset;
                    }

                    & div
                    {
                        margin: 0 auto;
                        flex-basis: 50%;
                        display: flex;
                        align-items: center;
                        align-content: center;
                        justify-content: center;
                        flex-direction: column;

                        & h2
                        {
                            margin: 0 0 -20px;
                            position: relative;
                        }

                        & img
                        {
                            max-width: 75%;

                            @media all and (width < 481px)
                            {
                                margin: 10px 0 20px;
                            }
                        }
                    }
                }
            }

            & img,
            & video
            {
                max-height: 720px;

                @media all and (width < 1441px)
                {
                    max-height: 440px;
                }

                @media all and (width < 1000px)
                {
                    width: 100%;
                    max-width: 640px;
                    max-height: unset;
                }
            }
        }

        &.end
        {
            background: url('../i/bg_end.svg') repeat-y center center/100% auto;

            &:before
            {
                display: none;
            }

            & > div
            {
                margin-top: -60px;
                padding: 0;

                @media all and (width < 1000px)
                {
                    margin-top: 0;
                    align-content: center;
                    align-items: center;
                    flex-direction: column;
                }

                & div.img
                {
                    padding: 0 20px 0 0;
                    margin: 0;
                    min-width: calc(var(--step) * 6);
                    display: flex;
                    align-items: stretch;
                    align-content: stretch;
                    justify-content: flex-end;
                    aspect-ratio: 1/1;

                    @media all and (width < 1000px)
                    {
                        padding: 0 0 40px;
                        min-width: unset;
                        max-width: 740px;
                        width: 100%;
                        justify-content: center;
                    }

                    & img
                    {
                        width: unset;
                        height: calc(100% - 20px);
                        max-height: unset;

                        @media all and (width < 1000px)
                        {
                            height: unset;
                            width: 100%;
                        }
                    }
                }

                & div.text
                {
                    min-width: calc(var(--step) * 5.5);
                    max-width: 640px;
                    padding: 120px 40px 0 20px;

                    @media all and (width < 1100px)
                    {
                        padding: 80px 20px 0 60px;
                    }

                    @media all and (width < 1000px)
                    {
                        max-width: 640px;
                        padding-left: 0;
                        padding-right: 0;
                    }

                    & h1
                    {
                        margin: 0 0 40px;
                        width: 100%;
                        height: unset;

                        @media all and (width < 1441px)
                        {
                            margin: 0 0 20px;
                        }
                    }
                }
            }
        }
    }
}