@charset "utf-8";

/*==================================
　スマートフォン用ナビゲーション
===================================*/

@media (width <= 1199px) {
    /*　ハンバーガーメニューボタン　*/
    .hamburger {
        display: block;
        position: fixed;
        z-index: 4;
        right: 15px;
        top: 15px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
        background-image: linear-gradient(to bottom, #457c37 0%, #005425 100%);

        &.active {
            background-image: linear-gradient(to bottom, #457c37 0%, #457c37 100%);
        }
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 30px;
        height: 2px;
        left: 6px;
        background: #ffffff;
        -webkit-transition: 0.3s ease-in-out;
        -moz-transition: 0.3s ease-in-out;
        transition: 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 20px;
    }

    .hamburger span:nth-child(3) {
        top: 30px;
    }

    /* スマホメニューを開いてる時のボタン */
    .hamburger.active span:nth-child(1) {
        top: 20px;
        left: 6px;
        background: #ffffff;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 20px;
        background: #ffffff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    /* メニュー背景　*/
    .globalMenuSp {
        height: 100%;
        position: fixed;
        z-index: 3;
        top: 0;
        right: 0;
        color: var(--primary-color);
        background-image: linear-gradient(to bottom, #457c37 0%, #005425 100%);
        text-align: left;
        width: 100%;
        transform: translateX(100%);
        transition: all 0.6s;
        overflow: auto;
    }

    .globalMenuSp ul {
        margin: 0 auto;
        padding: 45px 0 0 0;
        width: 100%;
    }

    .globalMenuSp ul li {
        list-style-type: none;
        padding: 0 40px;
        transition: 0.4s all;
    }

    .globalMenuSp ul li.active a {
        color: #1a0b08;
        font-weight: bold;
    }
    /* 準備中 */
    .globalMenuSp ul li a[href="./program.html"],
    .globalMenuSp ul li a[href="./hands_on.html"],
    .globalMenuSp ul li a[href="./call_for_papers.html"],
    .globalMenuSp ul li a[href="./online_registration.html"],
    .globalMenuSp ul li a[href="./credits.html"],
    .globalMenuSp ul li a[href="./chair_presenter.html"],
    .globalMenuSp ul li a[href="./participants.html"],
    .globalMenuSp ul li a[href="./sponsor.html"],
    .globalMenuSp ul li a[href="./accommodation.html"],
    .globalMenuSp ul li a[href="./nursery.html"],
    .globalMenuSp ul li a[href="./links.html"],
    .globalMenuSp ul li a[href="./related_poster.html"] {
        color: #aaa;
    }

    .globalMenuSp ul li a {
        display: block;
        font-size: 15px;
        font-weight: bold;
        color: #ffffff;
        padding: 8px 0;
        text-decoration: none;
    }

    .globalMenuSp ul li a:hover {
        color: #1a0b08;
    }

    /* クリックでjQueryで追加・削除 */
    .globalMenuSp.active {
        opacity: 100;
        display: block;
        transform: translateX(0%);
    }

    .globalMenuSp ul li a span > br {
        display: none;
    }
}

/*==================================
　PC用ナビゲーション
===================================*/

@media (width >= 1200px) {
    .hamburger {
        display: none;
    }

    .menu {
        padding-bottom: 230px;
    }

    .menu li a {
        position: relative;
        display: flex;
        align-items: center;
        width: 250px;
        height: auto;
        min-height: 50px;
        box-sizing: border-box;
        border: 0px solid transparent;
        background-clip: padding-box, border-box;
        background-origin: padding-box, border-box;
        background-image: linear-gradient(to left top, #d8d8d6 0%, transparent 60%);
        background-position: left top;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        font-size: 15px;
        font-weight: bold;
        font-feature-settings: "palt";
        line-height: 1.2;
        color: var(--primary-color);
        text-decoration: none;
        transition: all 0.5s;
    }

    /* 準備中 */
    .menu li a[href="./program.html"],
    .menu li a[href="./hands_on.html"],
    .menu li a[href="./call_for_papers.html"],
    .menu li a[href="./online_registration.html"],
    .menu li a[href="./credits.html"],
    .menu li a[href="./chair_presenter.html"],
    .menu li a[href="./participants.html"],
    .menu li a[href="./sponsor.html"],
    .menu li a[href="./accommodation.html"],
    .menu li a[href="./nursery.html"],
    .menu li a[href="./links.html"],
    .menu li a[href="./related_poster.html"] {
        color: #aaa;
    }

    .menu li a > span {
        margin: 0.58em 10px;

        & > span {
            display: block;
        }
    }

    .menu li a:hover {
        border: 2px solid transparent;
        background-image: linear-gradient(to bottom, #457c37 0%, #005425 100%), linear-gradient(to top, #457c37 0%, #005425 100%);
        text-decoration: none;
        color: #ffffff;
    }

    .menu li.active a {
        border: 2px solid transparent;
        background-image: linear-gradient(to bottom, #457c37 0%, #005425 100%), linear-gradient(to top, #457c37 0%, #005425 100%);
        pointer-events: none;
        color: #ffffff;
    }

    .menu li.active a:hover {
        cursor: default;
    }
}
