:root {
    --nav-height: 80px;
}
body,
html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
* {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 300;
}

nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 99;
    padding-left: 1rem;
    padding-right: 1rem;
}

.logo a {
    font-size: 36px;
    font-weight: 900;
    color: #066D1D;
    display: block;
}

ul#menu {
    padding: 0;
    margin: 0;
    right: 0;
    display: flex;
}

ul#menu li {
    display: block;
    width: 130px;
    height: var( --nav-height);
    color: #000;
    margin: 0;
    padding: 0;
}

ul#menu li a {
    display: flex;
    width: 100%;
    height: 100%;
    color: #000;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.2s ease-in-out;
}

ul#menu a:hover {
    color: #066D1D;
}

ul#menu a:after {
    content: '';
    height: 0;
    transition: height 0.2s ease-in-out;
}

ul#menu a:hover:after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

ul#menu a.active {
    background-color: #eb5e52;
    color: #fff;
}

#site-menu {
    display: flex;
}

#site-menu a {
    width: 8vw;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 500;

}

#site-menu a:hover {
    color: #066D1D;
}

#hero {
    position: relative;
    background-image: url(../img/various-raw-chicken-meat-portions-set-uncooked-chicken-fillet-thigh-wings-strips-legs-white-cooking-table-background-with-spices.jpg);
    background-size: cover;
    min-height: 100vh;
}

#hero .slogan {
    position: absolute;
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    top: 40%;
    right: 10%;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
}

#about {
    background-color: #fff;
}

h2 {
    font-size: 48px;
    font-weight: 600;
    color: #066D1D;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#mclick {
    display: none;
}
a#gotoTop {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    width: 7vh;
    height: 7vh;
    display: block;
    z-index: 998;
    opacity: 0;
    background-color: #fff;
    overflow: hidden;
    border-radius: 999px;
  
  }
  a#gotoTop.fadeIn{
    opacity: 1;
  }
@media (max-width: 768px) {
    nav{
        flex-wrap: wrap;
    }
    ul#menu {
        position: absolute;
        top: var( --nav-height);
        width: 100%;
        right: -100%;
        height: calc(100vh -  var( --nav-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #999;
        transition: right 0.2s ease;
    }

    ul#menu li {
        width: 70%;
    }

    ul#menu.mOpen {
        right:0;
    }

    ul#menu li a {
        border-bottom: 1px solid #000;
        line-height: 60px;
        height: 60px;
        margin: 0 auto;
        background: #fff;
        color: #007d7d;
        font-size: 24px;
    }

    ul#menu li a.active {
        background: #fff;
        color: #007d7d;
    }
    #hero .slogan {
        width: 100%;
        font-size: 40px;
        color: #fff;
        right: 0;
        text-align: center;
    }

    h2 {
        font-size: 36px;
    }

    a#mclick {
        height:  var(--nav-height);
        display: flex;
        align-items: center;
    }

    a#mclick:after {
        content: '';
        display: block;
        width: 2rem;
        height: 2rem;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g fill="%23066D1D"><path d="M0 64H448V96H0V64zM0 224H448v32H0V224zM448 384v32H0V384H448z"/></g></svg>');
    }

    a#mclick.close:after {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g fill="%23066D1D"><path d="M420.7 36.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6L246.6 256 443.3 452.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L224 278.6 27.3 475.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L201.4 256 4.7 59.3c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L224 233.4 420.7 36.7z"/></g></svg>');
    }
}