@charset "UTF-8";

html {
    font-size: 100%;
}
body {
    color: #40210F;
    font-weight: 400;
    background-image: url("../image/bg.png");
    background-repeat: repeat;
}
img {
    max-width: 100%;
    vertical-align: bottom;
}
li {
    list-style: none;
}
a {
    color: #40210F;
    text-decoration: none;
}
a:hover {
    opacity: 0.7;
}

#header {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 0 20px;
}
#header .logo {
    width: 100%;
    max-width: 300px;
}
#header .logo a {
    display: block;
}
#header .navi .menu {
    display: flex;
    align-items: center;
}
#header .navi .menu li{
    font-size: 20px;
    margin-right: 80px;
}



/*------------------------------------
スマートフォン
------------------------------------*/
@media screen and (max-width: 767px) {

main {
        padding-top: 60px;
    }
#header {
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
#header .logo {
    max-width: 120px;
}
#header .hamburger {
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: fixed;
    top: 5px;
    right: 10px;
    z-index: 30;
}
#header .hamburger span {
    width: 30px;
    height: 3px;
    background-color: #000;
    display: inline-block;
    position: absolute;
    left: 10px;
    transition: all 0.4s;
}
#header .hamburger span:nth-of-type(1) {
    top: 16px;
}
#header .hamburger span:nth-of-type(2) {
    top: 25px;
}
#header .hamburger span:nth-of-type(3) {
    top: 34px;
}
#header .navi {
    width: 80%;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    top: 0;
    right: -80%;
    z-index: 20;
    transition: all 0.6s;
}
#header .navi .menu {
    width: 100%;
    height: 100vh;
    flex-direction: column;
    padding: 60px 0;
    overflow: auto;
}
#header .navi .menu li {
    padding: 10px 0;
    margin-left: 0;
}
#header .navi.active {
    right: 0;
}
#header .hamburger.active span:nth-of-type(1) {
    top:24px;
    transform: rotate(-45deg);
}
#header .hamburger.active span:nth-of-type(2) {
    opacity: 0;
}
#header .hamburger.active span:nth-of-type(3) {
    top: 24px;
    transform: rotate(45deg);
}
}
