body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #FAF8EE;
    font-size: 16px;
    color: #313131;
    font-weight: 400;
    line-height: 1.6;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
}



/* 汎用クラス */
.flex {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* インナー */
.inner1080 {
    max-width: 1080px;
    width: 75%;
    margin: 0 auto;
}

.inner1160 {
    max-width: 1160px;
    width: 80.56%;
    margin: 0 auto;
}

.inner1240 {
    max-width: 1240px;
    width: 86.11%;
    margin: 0 auto;
}

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

    .inner1080,
    .inner1160,
    .inner1240 {
        width: 100%;
        padding: 0 40px;
    }
}

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

    .inner1080,
    .inner1160,
    .inner1240 {
        width: 100%;
        padding: 0 20px;
    }
}

/* マージン */
.section-margin {
    margin-bottom: 150px;
}

@media screen and (max-width:768px) {
    .section-margin {
        margin-bottom: 100px;
    }
}

/* リンク位置調整 */
.block-heading {
    padding-top: 100px;
    margin-top: -100px;
}

/* スクロールでふわっと表示 */
/* .fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

 .fade-in.visible {
     opacity: 1;
     transform: translateY(0);
 } */

/* ヘッダー */
.header {
    width: 100%;
    height: 80px;
    position: fixed;
    z-index: 3;
    top: 0;
    background: rgba(250, 248, 238, 0.80);
}

.header-inner {
    width: 91.67%;
    max-width: 1320px;
    margin: 0 auto;
}

.gnav-li {
    margin-left: 40px;
}

.gnav-li a {
    position: relative;
    display: inline-block;
    transition: 0.4s ease-in-out;
}

.gnav-li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -20px;
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #9FDFB9;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform 0.4s ease-in-out;
}

.gnav-li a:hover::after {
    transform: scale(1, 1);
    transform-origin: left top;
}

.gnav-li:first-child {
    text-transform: capitalize;
}

.gnav-li a:hover {
    color: #9FDFB9;
}

/* ハンバーガーメニュー */
@media screen and (max-width:950px) {

    .sp-button {
        position: relative;
        display: inline-block;
    }

    .hamburger {
        position: absolute;
        z-index: 4;
        top: 30px;
        right: 20px;
        width: 40px;
        height: 30px;
    }

    .hamburger-line {
        position: absolute;
        width: 40px;
        height: 3px;
        background-color: #009044;
        top: 0;
        right: 0;
    }

    .hamburger-line1 {
        top: 1px;
    }

    .hamburger-line2 {
        top: 15px;
    }

    .hamburger-line3 {
        top: 30px;
    }

    .active .hamburger-line1 {
        top: 13px;
        transform: rotate(-45deg);
        background-color: #FAF8EE;
    }

    .active .hamburger-line3 {
        top: 13px;
        transform: rotate(45deg);
        background-color: #FAF8EE;
    }

    .active .hamburger-line2 {
        opacity: 0;
    }

    .gnav-li-wrap {
        position: absolute;
        z-index: 3;
        top: 0;
        left: 0;
        flex-direction: column;
        justify-content: center;
        background-color: #9FDFB9;
        width: 100%;
        height: 100vh;
        transform: translateX(-100%);
        transition-duration: 1s;
    }

    .active .gnav-li-wrap {
        transform: translateX(0);
    }

    .gnav-li {
        margin-top: 60px;
        margin-left: auto;
        margin-right: auto;
        font-size: 20px;
    }

    .gnav-li a:hover {
        color: #313131;
    }

    .gnav-li a::after {
        content: "";
        bottom: -5px;
        background-color: #313131;
    }
}

/* topに戻るボタン */
 .totop {
     position: fixed;
     right: 20px;
     bottom: 20px;
     z-index: 10;
     width: 40px;
     height: 40px;
     background-color: #FAF8EE;
     border: 1px solid #009044;
     border-radius: 50%;
     text-indent: -99999em;
     font-size: 12px;
     transition: .4s;

 }

 .totop::before {
    position: absolute;
    top: 1.5em;
    left: calc(50% - 0.5em);
     content: '';
     display: block;
     width: 1em;
     height: 1em;
     border: 1px solid #009044;
     border-bottom: 0;
     border-left: 0;
     transform: rotate(-45deg);
 }


/* フッター */
.footer {
    background-color: #9FDFB9;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.copyright {
    margin-top: 10px;
}