@charset "utf-8";

/* =========================================================
   令和9年度 日本植物病理学会大会
   MENU CSS

   Main : #104E19
   Sub  : #A4BB97
   ========================================================= */


/* -----------------------------------------
   Common
   ----------------------------------------- */

li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}


/* -----------------------------------------
   PC Global Navigation
   ----------------------------------------- */

#navi {
    width: 230px;
    float: left;
}


#globalNavi {
    width: 230px;

    overflow: hidden;

    background: #fff;
    color: #104E19;

    border: 1px solid #A4BB97;
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(16,78,25,.10);
}


/* logo */

#globalNavi > p {
    margin: 0;
    padding: 17px 10px 12px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #A4BB97;
}


#globalNavi > p img {
    width: auto;
    max-height: 54px;
}


/* menu list */

#globalNavi ul {
    margin: 0;
    padding: 5px 10px 10px;
}


#globalNavi ul li {
    width: 100%;
    min-height: 44px;

    margin: 0;

    border-bottom: 1px solid #A4BB97;
}


#globalNavi ul li:last-child {
    border-bottom: none;
}


/* menu link */

#globalNavi ul li a {
    width: 100%;
    min-height: 44px;

    padding: 8px 9px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    color: #333333;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* little dot */

#globalNavi ul li a::before {
    content: "";

    width: 5px;
    height: 5px;

    margin-right: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #104E19;

    opacity: .55;

    transition:
        width .2s ease,
        height .2s ease,
        opacity .2s ease;
}


/* hover */

#globalNavi ul li a:hover {
    color: #003919;

    background: #A4BB97;

    border-radius: 5px;

    opacity: 1;
}


#globalNavi ul li a:hover::before {
    width: 7px;
    height: 7px;

    opacity: 1;
}


/* -----------------------------------------
   Page / Drawer base
   ----------------------------------------- */

#page {
    position: relative;
    left: 0;

    z-index: 2;

    transition:
        left 400ms cubic-bezier(1,0,0,1);
}


/* -----------------------------------------
   Smartphone Drawer
   ----------------------------------------- */

#drawernav {
    position: fixed;

    top: 0;
    right: -290px;

    width: 290px;
    height: 100%;

    overflow-y: auto;

    box-sizing: border-box;

    padding-bottom: 30px;

    background: #fff;
    color: #333333;

    border-left: 1px solid #A4BB97;;

    box-shadow:
        -8px 0 25px rgba(16,78,25,.12);

    z-index: 4;

    transition:
        right 400ms cubic-bezier(1,0,0,1);
}


/* drawer logo */

#drawernav > p {
    margin: 0;
    padding: 20px 15px 14px;

    text-align: center;

    background: #ffffff;

    border-bottom: 1px solid #A4BB97;
}


#drawernav > p img {
    width: auto;
    max-height: 55px;
}


/* drawer menu */

#drawernav ul {
    margin: 0;
    padding: 0 15px;

    list-style: none;
}


#drawernav h4 {
    margin: 0;
    padding: 18px 12px 10px;

    color: #104E19;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: .08em;
}


/* Remove old decorative diamond */

#drawernav h4::before {
    content: none;
}


#drawernav ul li {
    margin: 0;

    border-bottom: 1px solid #A4BB97;
}


#drawernav ul li:last-child {
    border-bottom: none;
}


#drawernav ul li a {
    display: block;

    padding: 11px 12px;

    color: #333333;

    font-size: 14px;
    line-height: 1.45;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* drawer dot */

#drawernav ul li a::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin:
        0 9px 2px 0;

    border-radius: 50%;

    background: #104E19;

    opacity: .65;
}


/* drawer hover */

#drawernav ul li a:hover {
    color: #003919;

    background: #A4BB97;

    opacity: 1;
}


/* -----------------------------------------
   Hamburger
   ----------------------------------------- */

#humberger {
    position: fixed;

    top: 12px;
    right: 12px;

    width: 46px;
    height: 46px;

    padding: 12px 10px 8px;

    box-sizing: border-box;

    cursor: pointer;

    background: #104E19;

    border-radius: 8px;

    box-shadow:
        0 4px 14px rgba(0,0,0,.14);

    z-index: 5;
}


.icon-bar {
    display: block;

    height: 2px;

    margin-bottom: 7px;

    background: #fff;

    transition:
        all 300ms cubic-bezier(1,0,0,1);
}


/* -----------------------------------------
   Overlay
   ----------------------------------------- */

#overlay {
    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    opacity: 0;

    background: rgba(0,45,52,.55);

    transition:
        opacity 300ms ease;
}


/* -----------------------------------------
   Desktop
   ----------------------------------------- */

@media (min-width: 1001px) {

    #drawernav,
    #humberger {
        display: none;
    }

}


/* -----------------------------------------
   Tablet / Smartphone
   ----------------------------------------- */

@media (max-width: 1000px) {

    #navi {
        display: none;
    }


    body.drawer-opened #page {
        left: -290px;
    }


    body.drawer-opened #drawernav {
        right: 0;
    }


    /* hamburger → X */

    body.drawer-opened #humberger {
        background: #A4BB97;
    }


    body.drawer-opened #humberger .icon-bar {
        background: #104E19;
    }


    body.drawer-opened #humberger :nth-child(1) {
        transform:
            translate(0, 9px)
            rotate(45deg);
    }


    body.drawer-opened #humberger :nth-child(2) {
        transform:
            translate(-20px, 0);

        opacity: 0;
    }


    body.drawer-opened #humberger :nth-child(3) {
        transform:
            translate(0, -9px)
            rotate(-45deg);
    }


    /* overlay */

    body.drawer-opened #overlay {
        z-index: 3;
        opacity: 1;
    }

}


/* -----------------------------------------
   Small Smartphone
   ----------------------------------------- */

@media (max-width: 600px) {

    #drawernav {
        width: 285px;
        right: -285px;
    }


    body.drawer-opened #page {
        left: -285px;
    }


    #drawernav ul li a {
        padding: 10px 10px;

        font-size: 13px;
    }

}