@charset "utf-8";

/* 準備中メニュー */
.menu a[href*="program"],
.menu a[href*="co-hosted_seminar"],
.menu a[href*="cfa"],
.menu a[href*="accepted_abstract"],
.menu a[href*="registration"],
.menu a[href*="participant"],
.menu a[href*="speaker"],
.menu a[href*="accommodation"],
.menu a[href*="nursery"],
.menu a[href*="poster"],
.menu a[href*="flyer"],
.menu a[href*="press"]{
    opacity: 0.55;
    pointer-events: none;
}

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

@media screen and (max-width:767px) {
    /*　ハンバーガーメニューボタン　*/
    .hamburger {
        display: block;
        position: fixed;
        z-index: 4;
        right: 15px;
        top: 15px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
        background-color: var(--point-color);
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 30px;
        height: 2px;
        left: 6px;
        background: #000000;
        -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: #000000;
        -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: #000000;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    /* メニュー背景　*/
    .globalMenuSp {
        height: 100%;
        position: fixed;
        z-index: 3;
        top: 0;
        right: 0;
        color: #FFFFFF;
        background-color: var(--point-color);
       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;
        width: 100%;
        transition: .4s all;
    }

    .globalMenuSp ul li:last-child {
        padding-bottom: 0;
    }

    ..globalMenuSp ul li a > span::before {
        position: absolute;
        content: "▶";
        font-size: 0.7em;
        left: -13px;
        color: var(--point-color);
    }


    .globalMenuSp ul li.active a {
        color: #FFFFFF;
        font-weight: bold;
    }

    .globalMenuSp ul li a {
        display: block;

        font-size: 15px;
        font-weight: bold;
        color: #000000;
        padding: 12px 0;
        text-decoration: none;
    }

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

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

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

    /* 日本語、英語切り替え */

    .globalMenuSp ul li.lang_switch {
        display: flex;
        justify-content: center;
        align-items: center;
        /* gap: 50px; */
        padding: 5px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .globalMenuSp ul li.lang_switch a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .globalMenuSp ul li.lang_switch a:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.5);
    }
}

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

@media (min-width: 768px) {

    .hamburger {
        display: none;
    }

    .menu {
        background-color: #FFFFFF;
    }

    .menu li:not(:first-child) a {
        display: flex;
        align-items: center;
        width: 215px;
        height: 45px;
        background-image: linear-gradient(170deg, transparent 10%, rgba(0, 0, 0, 0.1) 100%);
        background-position: left top;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-left: 15px;
        font-size: clamp(0.75rem, 0.67rem + 0.342vi, 0.875rem);
        font-weight: bold;
        font-feature-settings: "palt";
        color: var(--primary-color);
        text-decoration: none;
        transition: all 0.5s;
    }

    .menu li:not(:first-child) a > span {
        position: relative;
        margin-left: 10px;
    }

    .menu li:not(:first-child) a > span::before {
        position: absolute;
        content: "▶";
        font-size: 0.7em;
        left: -13px;
        color: var(--point-color);
    }

    .menu li:not(:first-child) a:hover {
        width: 230px;
        background-image: linear-gradient(var(--point-color), var(--point-color));
        padding-left: 0px;
        text-decoration: none;
        color: #FFFFFF;
    }

    .menu li:not(:first-child) a:hover > span::before {
        content: none;
    }

    .menu li:not(:first-child).active a {
        width: 230px;
        background-image: linear-gradient(var(--point-color), var(--point-color));
        padding-left: 0px;
        pointer-events: none;
        color: #FFFFFF;
    }

    .menu li:not(:first-child).active a > span::before {
        content: none;
    }
    
    .menu li:not(:first-child).active a:hover {
        cursor: default;
    }

    .menu li.lang_switch {
        position: relative;
        width: 100%;
        height: 42px;
        display: flex;
    }

    .menu li.lang_switch::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 5px;
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        bottom: 0;
    }

    .menu li.lang_switch a {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        font-weight: bold;
        color: #BE9628;
    }

    .menu li.lang_switch.ja a.en {
        position: relative;
        width: 51%;
        background-color: #00A69A;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
        color: #FFFFFF;
        padding-right: 10px;
    }

    .menu li.lang_switch.ja a.en::after {
        position: absolute;
        content: "";
        width: 5px;
        height: 47px;
        background-image: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
        transform: rotate(32deg);
        right: 9%;
        top: -5px;
    }

    .menu li.lang_switch.ja a:hover.en {
        text-decoration: none;
        cursor: pointer;
        filter: brightness(90%) contrast(110%);
        transition: all 1s;
    }

    .menu li.lang_switch.ja a.ja {
        color: #BE9628;
        cursor: default;
        padding-left: 20px;
    }

    .menu li.lang_switch.ja a:hover.ja {
        text-decoration: none;
        cursor: default;
    }
    
}