/* #D2003C, #00162B */

#navigation-area {
    position: absolute;
    z-index: 99999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    border: none;
    pointer-events: none;

    /* menuを固定して半透明にする */
    position:fixed;
    transform: translate3d(0, 0, 0);    
    top: 0;
    opacity:0.9;    
}

#navigation-area a {
    text-decoration: none;
}

#navigation {
    display: flex;
    margin: 0;
    box-sizing: border-box;
    pointer-events: all;
    background-color: #F5F5F5;
}

#menu-checkbox {
    display: none;
}

#navigation-title {
    margin: 0;
    flex: 1.6; /* originally 2.5 */
    height: 40px;
}

#navigation-title a {
    font-family: 'Montserrat Subrayada', 'Montserrat', 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 550; /* 100-900, bold = 700 */
    font-size: 1.375rem;
    /* color: #005087; */
    color: #00162B;
    padding: 5px;
    /* letter-spacing: 0.05em;    */
}

.navigation-title-redchar {
    font-family: 'Montserrat Subrayada', 'Montserrat', 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 550; /* 100-900, bold = 700 */
    font-size: 1.375rem;
    /* color: #005087; */
    color: #D2003C;
    padding: 5px;
    /* letter-spacing: 0.05em;    */
}

.inline-logo-redchar {
    font-family: 'Montserrat Subrayada', 'Montserrat', 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 550; /* 100-900, bold = 700 */
    font-size: 1.2rem;
    /* color: #005087; */
    color: #D2003C;
    padding: 4px;
    /* letter-spacing: 0.05em;    */
}

.inline-logo-blackchar {
    font-family: 'Montserrat Subrayada', 'Montserrat', 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 550; /* 100-900, bold = 700 */
    font-size: 1.2rem;
    /* color: #005087; */
    color: #00162B;
    padding: 0px;
    /* letter-spacing: 0.05em;    */
}

.inline-email {
    font-family: 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 450; /* 100-900, bold = 700 */
    font-size: 1.2rem;
    color: #D2003C;
    /* color: #00162B; */
    padding: 4em;
    /* letter-spacing: 0.05em;    */
}

.inline-email-nopadding {
    font-family: 'Noto Sans JP','Belanosima', sans-serif;
    font-weight: 450; /* 100-900, bold = 700 */
    font-size: 1.2rem;
    color: #D2003C;
    /* color: #00162B; */
    padding: 0em;
    /* letter-spacing: 0.05em;    */
}

#menu-checkbox-label {
    transition: background-color 0.15s;
    display: none;
    -webkit-user-select: none;
    user-select: none;
}

#menu-checkbox-label img {
    height: 50%;
}

#menu-checkbox-label::before {
    content: "　";
    display: none;
    opacity: 0;
    pointer-events: none;
}

.menu-item {
    font-family:  'Montserrat', 'Noto Sans JP','Belanosima', sans-serif;
    transition: background-color 0.15s;
    flex: 1;
    margin: 0;
    padding: 0;
    /* color: #005087; */
    color: #00162B;    
}

.menu-item:hover, #menu-checkbox-label:hover {
    background-color: #00000022;
}

.menu-item.menu-current, .menu-item:active {
    /* text-decoration: underline !important; */
    color: #00162B; /* #F5F5F5; */
    /* background-color: #005087; */
    background-color: #7edeff;
}

#navigation-title {
    /* font-weight: bold; */
    font-weight: 350;
    font-size: larger;
    line-height: 1.2em;
}

.menu-item {
    /* font-weight: bold; */
    font-weight: 600;
    font-size: normal;
    line-height: 1.2em;
}

@media screen and (max-width: 800px) {
    #navigation {
        display: block;
        height: auto;

	/* menuを固定して半透明にする */
	position: sticky;
	top: 0;
	/* opacity:0.9;     */
    }

    #menu-checkbox-label::before {
        transition: opacity 0.15s;
        display: block;
        background-color: white;
        /* background-color: #00162B; */
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .menu-item {
        transition: background-color 0.15s, height 0.15s !important;
        overflow: hidden;
        height: 0;
    }

    .menu-item.menu-current {
        transition: height 0.15s;
    }

    #menu-checkbox-label {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        height: 50px;
        width: 50px;
    }

    #menu-checkbox-label:hover {
        cursor: pointer;
    }

    #menu-checkbox:checked~#menu-checkbox-label {
        background-color: #FFFFFF;
    }

    #menu-checkbox:checked~#menu-checkbox-label::before {
        opacity: 0.75;
        pointer-events: all;
    }

    #menu-checkbox:checked~.menu-item {
        height: 40px;
    }
}
