@charset "UTF-8";

/*-------------------------------------------------------------------------------------------------------------------
    navi.css
---------------------------------------------------------------------------------------------------------------------
*/

:root {
    --nav-background: rgba(255, 0, 0, 0.5);
    --nav-background2: rgba(73, 0, 0, 0.9);
    --nav-barcolor: rgb(255, 255, 255);
    --nav-fontcolor: #ffffff;
    --nav-hovercolor: #c0c0c0;
}

nav {
    display: flex;
    position: relative;
    padding: 0;
    align-items: center;
    width: 100%;
    height: var(--nav-height);
    text-align: right;
    z-index: 1000;
    /*background-color: red;*/
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 64px 0 auto;
    height: var(--nav-height);
    /*background-color: red;*/
}

.nav-links li {
    list-style: none;
    margin: 0 16px;
    padding: 16px 0 0 0;
    height: var(--nav-height);
    line-height: var(--nav-height);
    text-align: center;
    position: relative;
    /*background-color: green;*/
}

.nav-links li a {
    display: block;
    position: relative;
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    color: var(--nav-fontcolor);
    transition: color 0.2s ease-in;
    cursor: pointer;
    /*background-color: blue;*/
}

.nav-links li a:hover {
    text-shadow: 0.7px 0 0 var(--nav-fontcolor);
}

.nav-links ul {
    display: none;
    margin: 8px 0 0 0;
    padding: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-links ul li {
    padding: 0 16px 0 16px;
    margin: 0;
    height: 32px;
    line-height: 32px;
    /*background-color: rgba(0, 0, 255, 0.2);*/
}

.nav-links ul li a {
    letter-spacing: normal;
    text-align: left;
    /*background-color: rgba(255, 0, 0, 0.2);*/
}

.nav-links li:hover ul {
    display: block;
}

/*-------------------------------------------------------------------------------------------------------------------
*/

.menu_check {
    display: none;
}

.menu {
    position: fixed;
    top: 4px;
    right: 10px;
    width: 48px;
    height: 48px;
    display: none;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    z-index: 99999;
    /*background-color: transparent;*/
    background-color: rgba(7, 7, 60, 0.9);
    transition: all 1.0s ease;
}

.menu:hover {
}

.menu span,
.menu span:before,
.menu span:after {
    content: '';
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 5px;
    background-color: var(--nav-barcolor);
    opacity: 1;
    visibility: visible;
    transition: 0.5s ease;
    transform-origin: center;
    position: absolute;
    box-shadow: 0.5px 0.5px 0.5px #000000;
}

.menu span:before {
    bottom: 6.5px;
}

.menu span:after {
    top: 6.5px;
}

#menu_check:checked ~ .menu span {
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
}

#menu_check:checked ~ .menu span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#menu_check:checked ~ .menu span::after{
    top: 0;
    transform: rotate(-45deg);
}

/*-------------------------------------------------------------------------------------------------------------------
    PC narrow
---------------------------------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 1000px) {
    .nav-links {
        flex-direction: column;
        justify-content: start;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 100%;
        width: 300px;
        height: 100%;
        background-color: rgba(7, 7, 60, 0.7);
        padding-top: calc(var(--nav-height) + 16px);
        margin-top: 0;
        transition: 0.3s ease-out;
    }

    .nav-links li {
        height: calc(var(--nav-height) - 24px);
        line-height: calc(var(--nav-height) - 24px);
        margin: 6px 0;
        padding: 0 0 0 24px;
        text-align: left;
        width: 100%;
        display: block;
    }

    .nav-links li a {
        margin: 0 0 0 0;
        color: #ffffff;
    }

    .nav-links ul {
        display: block;
        margin: 2px 0 0 0;
        background-color: transparent;
    }

    .nav-links ul li {
        padding: 0 24px;
    }

    .menu {
        display: flex;
    }

    #menu_check:checked ~ .nav-links {
        transform: translateX(-100%);
    }
}

/*-------------------------------------------------------------------------------------------------------------------
    Smartphone portrait
---------------------------------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 520px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
    .nav-links {
        width: 45%;
    }

    .nav-links li a {
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
    }

    .nav-links ul li {
        padding: 0 16px;
        margin: 0;
        height: 32px;
        line-height: 32px;
    }

    .menu {
        display: flex;
    }
}

/*-------------------------------------------------------------------------------------------------------------------
    Smartphone landscape
---------------------------------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 896px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .nav-links {
        width: 30%;
        padding-top: 56px;
        padding-bottom: 0;
    }

    .nav-links li {
        height: 22px;
        line-height: 22px;
        margin: 8px 0;
        padding-left: 24px;
    }

    .nav-links li a {
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
    }

    .nav-links ul {
        margin: -4px 0 0 0;
        padding: 0;
    }

    .nav-links ul li {
        padding: 0 16px;
        margin: 0;
        height: 24px;
        line-height: 24px;
    }

    .menu {
        display: flex;
    }
}