header {
    position:fixed;
    top:0;
    left:0;
    z-index: 99;
    width:100%;
    background:linear-gradient(180deg, black, transparent)
}
header h1 {
    float:left;
    width: 30%;
    color:#edc242;
    padding:0.32em;
}

header img {
    width: 145px;
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

header nav {
    float:right;
    width: 70%;
}

header nav span {
    position:absolute;
    top:2.5em;
    right:2em;
    display:none;
}

header nav span img {
    width: 30px;
}

header nav ul {
    position:relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

header nav ul li {
    padding:1.2em 0.5em 0.5em 0.5em;
}

header nav ul li a{
    color:#fff;
    font-size:22px;
    display:block;
    padding-bottom:0.5em;
    border-bottom:2px solid transparent;
}

header nav ul li a:hover {
    border-bottom:2px solid #edc242;
}

.hover {
    border-bottom:2px solid #edc242;
}

.container h2 {
    font-size:86px;
    font-weight:900;
    margin-bottom:1rem
}

.container h3 {
    font-size:50px;
    display: inline;
    border-bottom: 1px solid #212121;
    font-weight: 400;
}

.popup_box h3 {
    font-size:50px;
    display: inline;
    border-bottom: 1px solid #212121;
    font-weight: 700;
}

.mobile_bg {
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    background:rgba(0,0,0,.6);
    z-index: 99;
    display:none;
}

.mobile_bg_on {
    display:block;
}

/******************************************free_visual************************************************/

.free_visual {
    position: relative;
    width:100%;
    height:100vh;
    max-height: 550px;
    background:url('../images/free_visual.jpg')no-repeat top left;
    background-size:cover;
    z-index: 9;
}

.free_visual_text {
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    font-size:48px;
    color:#fff;
    width: 100%;
    text-shadow: 0 0 2px rgba(11,11,11,1);
    text-align:center;
}

/********************************************media*******************************************************************/

@media screen and (max-width:1280px) {
    header h1 {
        float: none;
        width: 100%;
    }
    header nav {
        float: none;
        width: 240px;
    }
    header nav span {
        position: absolute;
        top: 2em;
        right: 2em;
        display:block;
        z-index: 999;
        transition: all ease-in .2s;
    }
    .mobile_menu {
        right: 1em;
        top: 1.5em;
        transition: all ease-in .2s;
    }
    header nav ul {
        position:fixed;
        top:0;
        right:-240px;
        display:block;
        width:240px;
        height:100vh;
        background:#000;
        z-index: 99;
        padding-top:4.5em;
        transition: all ease-in .2s;
    }
    .mobile_menu_all {
       right:0;
       transition: all ease-in .2s;
    }
    header nav ul li {
        padding:0;
    }
    header nav ul li a {
        color: #fff;
        font-size: 18px;
        padding:1em 0 1em 1em;
        border-bottom:0;
    }
    header nav ul li a:hover, .hover {
        border-bottom: 0;
        background:#edc242;
        color:#000;
        transition: all ease-in .2s;
    }
    
}

@media screen and (max-width:1080px) {
    .container h2 {
        font-size: 200%;
    }
    .free_visual_text {
        font-size:40px;
    }
    .container h3, .popup_box h3 {
        font-size: 40px;
    }
}

@media screen and (max-width:930px) {
    .container h2 {
        font-size: 200%;
    }
    .free_visual_text {
        font-size:30px;
    }
}

@media screen and (max-width:768px) {
    header img {
        width: 106px;
    }
    header h1 {
        font-size: 20px;
        font-weight: 400;
    }
    header nav span {
        position: absolute;
        top: 1.5em;
    }
    .free_visual_text {
        font-size: 24px;
    }
    .container h3, .popup_box h3 {
        font-size: 30px;
    }
}
@media screen and (max-width:500px) {
    header {
        padding: 1em;
    }
    header h1 {
        padding:0;
        font-size:18px;
    }
    header img {
        width: 95px;
        margin-right: 5px;
    }
    header nav span img {
        width: 25px;
    }
    header nav span, .mobile_menu {
        top: 1.3em;
        right: 1em;
    }
    header nav ul li a {
        font-size:16px;
    }
    .free_visual {
        height: 80vh;
    }
    .free_visual_text {
        font-size: 18px;
    }

    footer {
        padding: 2em 1em;
        font-size: 14px;
    }
}
@media screen and (max-width:280px) {
    header {
        padding: 0.5em 1em;
    }
    header img {
        display:block;
    }
    header nav span, .mobile_menu {
        top: 1.4em;
        right: 1em;
    }
}