/*TO DO LIST
- REPLACE FONT LINK
- ADD PRIMARY COLOR
*/

@media(max-width:767px) {
    .hide-for-small {
        display: none !important;
    }
}

@media(min-width:768px) {
    .show-for-small {
        display: none !important;
    }
}


/*LOADING*/

#loading {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9000;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../images/index/bg-loading.jpg);
    background-size: cover;
    background-position: center;
}

#loading .loading-inner {
    display: none;
}


/*BASE*/

html {
    font-size: 62.5%;
    overflow-y: scroll;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    -webkit-text-size-adjust: none;
    color: #333;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
    --primary-color: #000000;
}

a {
    transition: all 0.5s;
}

a:not(.btn):hover {
    opacity: 0.6;
}


/*GO TOP BUTTON*/

#go-top {
    position: fixed;
    bottom: -120px;
    right: 18px;
    opacity: 0;
    transition: all .3s;
    z-index: 99;
    box-shadow: 0 0 7px 0 rgba(146, 207, 221, 0.7);
    border-radius: 50%;
}

#go-top.show {
    opacity: 1;
    bottom: 18px;
}

#go-top a {
    display: flex;
    flex-direction: column;
    width: 90px;
    height: 90px;
    overflow: hidden;
}

#go-top a:hover {
    opacity: 0.7;
}

#go-top a img {
    margin: 0 auto;
}


/*FONT*/

.ff-maru {
    font-family: "Zen Maru Gothic", sans-serif;
}

.list-post img{
    height: auto;
}
/*ANIMATION*/
@media(min-width: 768px) {
   
main{
    min-height: 1400px;
}
}
.anim {
    opacity: 0;
}

.anim.blur {
    opacity: 1;
}
.anim.after-fadeup,.anim.before-fadeup {
    opacity: 1;
}
.anim.before-fadeup:before,.anim.after-fadeup:after{
    opacity: 0;
}
.anim.blur.is-animated,
.add-animation .anim.blur {
    animation-name: blurAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes blurAnime {
    from {
        filter: blur(10px);
        transform: scale(1.02);
    }
    to {
        filter: blur(0);
        transform: scale(1);
    }
}

.anim.fade {
    opacity: 0;
}

.anim.fade.is-animated {
    opacity: 1;
    animation-name: fade;
    animation-duration: 2s;
}

.anim.slideinBottom.is-animated {
    opacity: 1;
    animation-name: slideinBottom;
    animation-duration: 0.5s;
}

@keyframes slideinBottom {
    0% {
        transform: translateY(100px);
    }
    100% {
        transform: translateY(0);
    }
}

.anim.faderight.is-animated {
    opacity: 1;
    animation-name: faderight;
    animation-duration: 2s;
}

.anim.fade.is-animated {
    opacity: 1;
    animation-name: fade;
    animation-duration: 2s;
}

.anim.fadeleft.is-animated {
    opacity: 1;
    animation-name: fadeleft;
    animation-duration: 2s;
}

.anim.fadeup.is-animated,.anim.before-fadeup.is-animated:before,.anim.after-fadeup.is-animated:after {
    animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    opacity: 1;
}

.anim.fadeup-2.is-animated {
    opacity: 1;
    animation-name: fadeup-2;
    animation-duration: 0.5s;
}

.home .anim.fadedown.is-animated {
    opacity: 1;
    animation-name: fadedown;
    animation-duration: 0.5s;
}

.anim.zoomin.is-animated {
    animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes faderight {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadedown {
    from {
        opacity: 0;
        transform: translateY(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadeup {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeup-2 {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }
}

@keyframes fadeleft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.anim.effectfade {
    opacity: 0;
    transform: translate(0, 20px);
    transition: all 1.5s ease;
}

.anim.effectfade.is-animated {
    opacity: 1;
    transform: translate(0, 0);
}


/*HEADER*/

.header-main .logo-left .logo {
    margin-right: 0px;
    width: 368px;
    line-height: 1;
    padding: 0;
    position: relative;
}

.header-inner {
    position: static;
    padding-top: 50px;
    padding-left: 65px;
    padding-right: 110px;
}

#logo .header-logo {
    width: 100%;
}

.header-main .main-menu {
    flex: 1;
    margin-left: 20px;
}

.header-main .main-menu .nav {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 0;
}

.header-main .main-menu .nav>li {
    margin: 0;
    position: static;
    transition: .3s;
    padding-bottom: 0px;
    margin-right: 50px;
}

.header-main .main-menu .nav>li:last-child {
    margin-right: 50px;
}

.header-main .main-menu .nav>li>a {
    font-size: 2.2rem;
    font-weight: 500;
    padding: 0;
    color: #754c24;
    text-align: center;
    transition: .3s;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    letter-spacing: 0.05em;
    font-family: 'Zen Maru Gothic', sans-serif;
}
.header-main .main-menu .nav>li>a:hover{
    color: #39b04a;
}
.header-main .main-menu .nav>li>a::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    /*線になる丸の形状*/
    width: 10px;
    height: 10px;
    background: #39b04a;
    /*アニメーションの指定*/
    transition: all .3s;
    border-radius: 5px;
    opacity: 0;
    /*X方向にスケール拡大*/
}


/* .header-main .main-menu .nav>li>a span {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    padding-top: 5px;
} */

.header-main .main-menu .nav>li:nth-last-child(1) {
    border-right: none;
}

.box-main-menu {
    position: static;
}

.header-main .main-menu .nav>li>a:hover{
    
    color: #39b04a;
}
.header-main .main-menu .nav>li>a:hover,
.header-main .main-menu .nav>li.current>a {
    opacity: 1;
}

@media (min-width: 768px) {
    .header-main .main-menu .nav>li.current>a::after,
    .header-main .main-menu .nav>li:hover>a::after {
        opacity: 1;
        /*X方向にスケール拡大*/
        transform: translateX(-50%);
    }
    .header-main .main-menu .nav>li:hover>a::after {
        width: 100%;
        height: 4px;
    }

}

.main-menu li.nav-item:hover>a span::after,
.main-menu li.nav-item.current>a span::after {
    left: 50%;
    opacity: 1;
}

.loading-active main {
    opacity: 0;
}

.loading-active header {
    opacity: 0;
}

.loading-active footer {
    opacity: 0;
}


/*MEGA MENU*/

.mega-menu {
    left: 0;
    position: absolute;
    text-align: left;
    width: 100%;
    text-align: center;
    padding-top: 0px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
    visibility: hidden;
    top: 117px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-main .main-menu .nav>li.nav-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    top: 135px;
    z-index: 12;
}