@charset "utf-8";
html {
    visibility: hidden;
}

html.wf-active {
    visibility: visible;
}

body{
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #F7F8F8 url(images/common/background.svg) center/cover no-repeat fixed;
    font-family: "a-otf-ud-shin-maru-go-pr6n", sans-serif;
    @media screen and (max-width: 991px){
        background: #27AF9F;
    }
}

h1{
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% * (1560 / 1920));
    height: calc(75 / 1080 * 100dvh);
    margin: calc(50 / 1080 * 100dvh) auto calc(75 / 1080 * 100dvh);
    color: #fff;
    font-size: calc(40 / 1080 * 100dvh);
    font-weight: bold;
    text-align: center;
    line-height: 1;
    border-radius: 100px;
    background-color: #27AF9F;
    position: relative;
    @media screen and (max-width: 991px){
        width: 100%;
        height: 90px;
        margin: 0;
        /* font-size 991px→28px　575px→20px */
        font-size: clamp(1.25rem, 0.559rem + 1.92vw, 1.75rem);
        border-radius: 0;
    }
}

.h1-title {
    font-size: 35px; 
    margin: 0;
    @media screen and (max-width: 991px){
        /*font-size: clamp(0.9375rem, 0.1875em + 1.92vw, 2.1875rem);*/
        font-size: 1.6em;
    }
    @media screen and (max-width: 575px){
        font-size: 1.3em;
    }
}

.h1-subtitle {
    font-size: 24px;
    display: block;
    margin-bottom: -10px;
    @media screen and (max-width: 991px){
        /*font-size: clamp(0.25rem, 0.1875em + 1.92vw, 1.5rem);*/ 
        font-size: 0.9em; 
    }
    @media screen and (max-width: 575px){
        font-size: 0.6em;
    }
}

main{
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 calc((40 / 1920) * 100vw);
    @media screen and (max-width: 991px){
        height: calc(100dvh - 90px);
        padding: 0;
        border-radius: 20px 20px 0 0;
        background: #F7F8F8 url(images/common/background.svg) center/cover no-repeat fixed;
    }
    .menu_area{
        @media screen and (max-width: 991px){
            overflow-y: auto;
            height: calc(100dvh - 90px  - 100px);
            padding: 35px 30px 7px 30px;
        }
        ul{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(5, 1fr);
            grid-column-gap: calc(60 / 1080 * 100dvh);
            grid-row-gap: calc(50 / 1080 * 100dvh);
            @media screen and (max-width: 1199px){
                grid-column-gap: 1rem;
            }
            @media screen and (max-width: 991px){
                display: flex;
                gap: 25px;
                flex-direction: column;
            }
            li a{
                position: relative;
                @media screen and (max-width: 991px){
                    width: 100%;
                }
                div{
                    display: flex;
                    align-items: center;
                    height: calc(110 / 1080 * 100dvh);
                    padding: 5px;
                    background-color: #fff;
                    border-radius: calc(20 / 1080 * 100dvh);
                    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
                    @media screen and (max-width: 991px){
                        /* height: 991px→80px; 575px→60px*/
                        height: clamp(3.75rem, 2.022rem + 4.81vw, 5rem);
                        border-radius: 10px;
                    }
                    p{
                        display: flex;
                        align-items: center;
                        height: 100%;
                        max-height: 100px;
                        margin-block: calc((1em - 1lh) / 2);
                        color: #666;
                        font-size: calc(30 / 1080 * 100vh);
                        line-height: 1.5;
                        &::before{
                            display: block;
                            content: '';
                            width: calc((100 / 1920) * 100vw);
                            height: 100%;
                        }
                        @media screen and (min-height: 1080px){
                            font-size: 30px;
                        }
                        @media screen and (max-width: 1199px){
                            font-size: 20px;
                        }
                        @media screen and (max-width: 991px){
                            /* font-size 991px→24px　575px→18px */
                            font-size: clamp(1.125rem, 0.607rem + 1.44vw, 1.5rem);
                            br{
                                display: none;
                            }
                            &::before{
                                width: 48px;
                                margin-right: 10px;
                            }
                        }
                        @media screen and (max-width: 575px){
                            br{
                                display: block;
                            }
                        }
                    }
                }
                &::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    border-radius: calc(20 / 1080 * 100dvh);
                    background-color: rgba(0, 0, 0, 0.2);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }
                @media screen and (max-width: 991px){
                    &::before{
                        border-radius: 10px;
                    }
                }
                &:hover{
                    &::before{
                        opacity: 1;
                    }
                } 
            }
            a[href="question"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon01.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="practice"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon02.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="word"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon03.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="movie"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon04.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="nhkmovie"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon05.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="toukei"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon06.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="access"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon07.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="topograph"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon13.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="projection"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon14.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="summary"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon08.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="active"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon09.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="tool"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon10.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="geograph"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon11.svg) center/contain no-repeat;
                    }
                }
            }
            a[href="link"] {
                p{
                    &::before{
                        background: url(images/common/menu_icon12.svg) center/contain no-repeat;
                    }
                }
            }
        }
    }
}


.footer_logo{
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(24 / 1080 * 100dvh);
    img{
        width: auto;
        height: 100%;
        @media screen and (max-width: 991px){
            /* width 991px→105px　575px→80px */
            width: clamp(5rem, 2.84rem + 6.01vw, 6.563rem);
            height: auto;
        }
    }
}

.terms_of_service{
    position: fixed;
    bottom: 30px;
    right: 9.375%;
    a{
        display: flex;
        align-items: center;
        background-color: #E2E2E2;
        border-radius: 5px;
        box-shadow: 0px 0px calc(7 / 1080 * 100dvh) #00000033;
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 5px;
            background-color: rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        &:hover{
            &::before{
                opacity: 1;
            }
        }
        img{
            height: calc(40 / 1080 * 100dvh);
            @media screen and (max-width: 991px){
                /* width 991px→30px　575px→25px */
                width: clamp(1.563rem, 1.131rem + 1.2vw, 1.875rem);
                height: auto;
            }
        }
        p{
            margin-left: calc(10 / 1080 * 100dvh);
            padding-right: calc(10 / 1080 * 100dvh);
            font-size: calc(25 / 1080 * 100dvh);
            @media screen and (max-width: 991px){
                /* font-size 991px→19px　575px→14px */
                font-size: clamp(0.875rem, 0.443rem + 1.2vw, 1.188rem);
            }
        }
    }
}