/*==================== 
header
====================*/
header:after {
    content: "";
    clear: both;
    display: block;
}
header {
    color: #000;
}

#top-head {
    width: 100%;
    position: relative;
    padding: 10px 0;
    line-height: 1;
    z-index: 99;
}
#top-head a,#top-head .logo
#top-head {
    text-decoration: none;
}
#top-head .inner {
    position: relative;
}
#top-head .logo {
    float: left;
    font-size: 36px;
    margin-left: 30px;
    width: 70px;
	/*width: 130px;*/
}
#global-nav ul {
    list-style: none;
    position: absolute;
    right: 0;
    bottom: 10px;
    font-size: 18px;
    line-height: 2em;
}
#global-nav ul li {
    display: inline-block;
}
#global-nav ul li a {
    margin-right: 2em;
}
#global-nav ul li:last-of-type a {
    margin-right: 60px;
}

/* Fixed */
#top-head.fixed {
    margin-top: 0;
    top: 0;
    position: fixed;
    background: #fff;
    background: rgba(255,255,255,.7);
    transition: top 0.65s ease-in;
    -webkit-transition: top 0.65s ease-in;
    -moz-transition: top 0.65s ease-in;
}
main.pt {
    padding-top: 160px;
}

/* Toggle Button */
#nav-toggle {
    display: none;
    position: absolute;
    right: 12px;
    top: 14px;
    width: 34px;
    height: 36px;
    cursor: pointer;
    z-index: 101;
}
#nav-toggle div {
    position: relative;
}
#nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #666;
    left: 0;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
    top: 0;
}
#nav-toggle span:nth-child(2) {
    top: 11px;
}
#nav-toggle span:nth-child(3) {
    top: 22px;
}



@media screen and (max-width: 1279px) {
    #top-head .logo {
        margin-left: 10px;
        width: 100px;
    }
    #global-nav ul li a {
        margin-right: 1em;
    }
    #global-nav ul li:last-of-type a {
        margin-right: 20px;
    }
    main.pt {
        padding-top: 120px;
    }
}

@media screen and (max-width: 1023px) {
    #global-nav ul li a {
        margin-right: 0.5em;
    }

}
@media screen and (max-width: 767px) {

    main {
        padding-top: 55px !important;
    }

    #top-head,
    .inner {
        width: 100%;
        padding: 0;
    }
    
    #top-head {
        top: 0;
        position: fixed;
        margin-top: 0;
    }

    /* Fixed reset */
    #top-head.fixed {
        padding-top: 0;
        background: transparent;
    }
    #mobile-head {
        background: #fff;
        height: 55px;
        background: rgba(255,255,255,0.7);
        width: 100%;
        z-index: 999;
        position: relative;
    }
    #top-head.fixed .logo,
    #top-head .logo {
        position: absolute;
        left: 0;
        top: 0;
        width: 55px;
        color: #333;
        font-size: 26px;
    }
    #global-nav {
        position: absolute;
        /* 開いてないときは画面外に配置 */
        top: 100%;
        transform: translateY(-120%);
        background: #333;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        
    }
    #global-nav ul {
        list-style: none;
        position: static;
        right: 0;
        bottom: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #global-nav ul li {
        float: none;
        position: static;
        width: 100%;
    }
    #global-nav ul li:nth-last-of-type(-n+2) {
        width: 5em;
    }
    #top-head #global-nav ul li a,
    #top-head.fixed #global-nav ul li a {
        width: 10em;
        display: inline-block;
        color: #fff;
        height:3em;
    }
    #top-head #global-nav ul li:nth-last-of-type(-n+2) a,
    #top-head.fixed #global-nav ul li:nth-last-of-type(-n+2) a {
        width: 5em;
    }
    #nav-toggle {
        display: block;
    }
    /* #nav-toggle 切り替えアニメーション */
    .open #nav-toggle span:nth-child(1) {
        top: 11px;
        -webkit-transform: rotate(315deg);
        -moz-transform: rotate(315deg);
        transform: rotate(315deg);
    }
    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }
    .open #nav-toggle span:nth-child(3) {
        top: 11px;
        -webkit-transform: rotate(-315deg);
        -moz-transform: rotate(-315deg);
        transform: rotate(-315deg);
    }
    /* #global-nav スライドアニメーション */
    .open #global-nav {
        transform: translateY(0);
    }
}









/*==================== 
footer
====================*/

footer {
    background: #fffcf0;
    padding: 50px 0;
    text-align: center;
}
footer ul {
    padding: 30px 0 50px;
}
footer li {
    display: inline-block;
    margin: 0 1em;
    font-size: 18px;
}
footer .copy {
    color: #acacac;
    font-size: 14px;
}

@media screen and (max-width: 1280px) {


    .footlogo img {
        height: 120px;
    }
}
@media screen and (max-width: 1023px) {
    
    footer li {
        margin: 0 0.5em;
    }
    
}

@media screen and (max-width: 767px) {
    
    footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    footer li {
        width: 100%;
    }
    footer li a {
        display: block;
        width: 8em;
        margin: 0 auto;
    }
    footer li:nth-last-of-type(-n+2) {
        width: 4em;
        margin: 0;
    }
    footer li:nth-last-of-type(-n+2) a {
        display: block;
        width: 4em;
    }
}