html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}


.page_up {
    width: 65px;
    height: 65px;
    position: fixed;
    z-index: 150;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: default;
    pointer-events: none;
}

.page_up.scrolled {
    cursor: pointer;
    opacity: 0.5;
    pointer-events: auto;
}
.page_up.scrolled:hover {
    opacity: 1;
}


.hamburger_menu {
    display: none;
    position: absolute;
    z-index: 160;
    width: 50px;
    height: 50px;
    top: 30px;
    left: 10px;
    background: white;
    transition: top 0.3s ease;
    border: 1px solid black;
    border-radius: 20%;
    cursor: pointer;
}
@media screen and (max-width: 1000px) {
    .hamburger_menu {
        display: block;
    }
}

.burgerline_top {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    margin-top: 12px;
    margin-left: 12px;
    margin-bottom: 7.5px;
}
.burgerline_middle {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    margin-top: 8px;
    margin-left: 12px;
    margin-bottom: 7.5px;
}
.burgerline_bottom {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    margin-top: 8px;
    margin-left: 12px;
    margin-bottom: 10px;
}
.burgerline_bottom {
    margin-bottom: 0;
}
.burgerline_top.opened {
    position: absolute;
    margin-top: 25px;
    transform: rotate(45deg);
}
.burgerline_middle.opened {
    display: none;
}
.burgerline_bottom.opened {
    position: absolute;
    margin-top: 25px;
    transform: rotate(-45deg);
}
.hamburger_menu:hover {
    background-color: rgb(1, 178, 1);
}
.hamburger_menu:hover .burgerline_top {
    background-color: white;
}
.hamburger_menu:hover .burgerline_middle {
    background-color: white;
}
.hamburger_menu:hover .burgerline_bottom {
    background-color: white;
}
.hamburger_menu.scrolled {
    top: 5px;
}
.submenu_burger {
    display: none;
    width: 400px;
    height: 600px;
    margin-top: 0;
    margin-left: 0;
    padding-left: 10px;
    left: 0;
    background-color: white;
    overflow-y: scroll;
}
.submenu_burger li{
    align-items: center;
    list-style: none;
    text-decoration: none;
    width: 100%;
    height: 40px;
    margin-left: 0;
    margin-bottom: 0;
    padding-top: 21px;
    padding-bottom: 6px;
    border-top: 1px solid rgb(219, 219, 219);
    border-bottom: 1px solid rgb(219, 219, 219);
}
.submenu_burger a {
    text-decoration: none;
    white-space: nowrap;
}
.submenu_burger a:visited {
    color: black;
}

.submenu_burger li:hover{
    background-color: rgb(222, 221, 221);
    color: rgb(137, 190, 59);;
}
.submenu_burger.opened {
    display: grid;
}



header {
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.head_menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 80%;
    height: 60px;
    transition: height 0.3s ease;
    transition: margin 0.3s ease;
    padding-left: 10%;
    flex-wrap: wrap;
}
.head_menu.scrolled {
    margin: 0;
    height: 60px;
}

@media screen and (max-width: 1590px) {
    .head_menu {
        height: 160px;
    }
    .head_menu.scrolled {
        height: 140px;
    }
}
@media screen and (max-width: 1000px) {
    .head_menu {
        height: 60px;
    }
    .head_menu.scrolled {
        height: 60px;
    }
}



.text-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 992px;
    height: 60px;
    transition: height 0.3s ease;
    transition: padding 0.3s ease;
}
.text-menu.scrolled {
    padding-top: 0;
    height: 60px;
}
@media screen and (max-width: 1000px) {
    .text-menu {
        display: none;
    }
}


.img_logo {
    width: 280px;
    height: 60px;
    object-fit: contain;
    padding-top: 10px;
    cursor: pointer;
    transition: height 0.3s ease;
    transition: padding-top 0.3s ease;
}
.img_logo.scrolled {
    padding-top: 0px;
    height: 60px;
}

.head_menu li {
    list-style: none;
    text-align: center;
    font-size: 14px;
}
.head_menu li a {
    text-decoration: none;
    white-space: nowrap;
}
.head_menu li a:visited {
    color: black;
}
.head_menu li a:hover {
    color: rgb(137, 190, 59);
}

.select-menu {
/*
    padding-top: 5px;
*/
    border-bottom: 1.5px solid rgb(137, 190, 59);
}

.head_menu span {
    font-size: 8pt;
}



/*サブメニュー　会社案内*/
.menu-about {
    position: relative;
    width: 68px;
    height: 42px;
    top: 0;
    left: 0;
}

.submenu-about {
    display: none;
    position: absolute;
    z-index: 110;
    transition: top 0.3s ease;
    top: 40px;
    left: -105px;
}
.submenu-about.scrolled {
    top: 43px;
}
.submenu-about li {
    width: 200px;
    height: 28px;
    background-color: rgb(255, 255, 255, 1);
    border: 0.5px solid rgb(188, 187, 187);
    padding-top: 10px;
}
.submenu-about li:hover {
    background-color: rgb(234, 233, 233);
    color: rgb(137, 190, 59);
    cursor: pointer;
}
.head_menu li:hover .submenu-about {
    display: block;
}

/*サブメニュー　製品一覧*/
.menu-products {
    position: relative;
    width: 68px;
    height: 42px;
    top: 0;
    left: 0;
}

.submenu-products {
    display: none;
    position: absolute;
    z-index: 110;
    transition: top 0.3s ease;
    top: 40px;
    left: -130px;
}
.submenu-products.scrolled {
    top: 43px;
}
.submenu-products li {
    width: 250px;
    height: 28px;
    background-color: rgb(255, 255, 255, 1);
    border: 0.5px solid rgb(188, 187, 187);
    padding-top: 10px;
}
.submenu-products li:hover {
    background-color: rgb(234, 233, 233);
    color: rgb(137, 190, 59);
    cursor: pointer;
}
.head_menu li:hover .submenu-products {
    display: block;
}


/*サブメニュー　技術開発*/
.menu-technology {
    position: relative;
    width: 68px;
    height: 42px;
    top: 0;
    left: 0;
}

.submenu-technology {
    display: none;
    position: absolute;
    z-index: 110;
    transition: top 0.3s ease;
    top: 40px;
    left: -107px;
}
.submenu-technology.scrolled {
    top: 43px;
}
.submenu-technology li {
    width: 200px;
    height: 28px;
    background-color: rgb(255, 255, 255, 1);
    border: 0.5px solid rgb(188, 187, 187);
    padding-top: 10px;
}
.submenu-technology li:hover {
    background-color: rgb(234, 233, 233);
    color: rgb(137, 190, 59);
    cursor: pointer;
}
.head_menu li:hover .submenu-technology {
    display: block;
}


/*サブメニュー　品質管理*/
.menu-quality {
    position: relative;
    width: 85px;
    height: 42px;
    top: 0;
    left: 0;
}

.submenu-quality {
    display: none;
    position: absolute;
    z-index: 110;
    transition: top 0.3s ease;
    top: 40px;
    left: -95px;
}
.submenu-quality.scrolled {
    top: 43px;
}
.submenu-quality li {
    width: 200px;
    height: 28px;
    background-color: rgb(255, 255, 255, 1);
    border: 0.5px solid rgb(188, 187, 187);
    padding-top: 10px;
}
.submenu-quality li:hover {
    background-color: rgb(234, 233, 233);
    color: rgb(137, 190, 59);
    cursor: pointer;
}
.head_menu li:hover .submenu-quality {
    display: block;
}



/*サブメニュー　環境*/
.menu-environment {
    position: relative;
    width: 100px;
    height: 42px;
    top: 0;
    left: 0;
}

.submenu-environment {
    display: none;
    position: absolute;
    z-index: 110;
    transition: top 0.3s ease;
    top: 40px;
    left: -90px;
}
.submenu-environment.scrolled {
    top: 43px;
}
.submenu-environment li {
    width: 200px;
    height: 28px;
    background-color: rgb(255, 255, 255, 1);
    border: 0.5px solid rgb(188, 187, 187);
    padding-top: 10px;
}
.submenu-environment li:hover {
    background-color: rgb(234, 233, 233);
    color: rgb(137, 190, 59);
    cursor: pointer;
}
.head_menu li:hover .submenu-environment {
    display: block;
}


