@charset "utf-8";

/* 英語ページできるまでは英語ページへのリンクはクリックできないようにする */
.lang__switch li span a[href="./en/"] {
    pointer-events: none;
}

/* 準備中 */
.menu li a[href="./registration.html"]{
    color: #999!important;
    pointer-events: none;
}

.menu > li.parent .child li a[href="./abstracts-list.html"],
.menu > li.parent .child li a[href="./specified-abstracts.html"],
.menu > li.parent .child li a[href="./coi.html"],
.menu > li.parent .child li a[href="./program-schedule.html"],
.menu > li.parent .child li a[href="./participants.html"],
.menu > li.parent .child li a[href="./presenters.html"],
.menu > li.parent .child li a[href="./childcare.html"],
.menu > li.parent .child li a[href="./poster-flyer-application.html"]{
    color: #999!important;
    pointer-events: none;
}

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

@media (width <= 1199px) {
    /*　ハンバーガーメニューボタン　*/
    .hamburger {
        display: block;
        position: fixed;
        z-index: 4;
        right: 10px;
        top: 10px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
        background-color: #FFFFFF;

    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 30px;
        height: 2px;
        left: 6px;
        background: var(--color-secondary);
        -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: var(--color-secondary);
        -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: var(--color-secondary);
        -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(--color-secondary);
        background-color: #FFFFFF;
        width: 100%;
        transform: translateX(100%);
        transition: all 0.6s;
        overflow: auto;
        text-align: left;

    }

    .globalMenuSp > ul {
        margin: 0 auto;
        padding: 65px 30px 0 30px;
        width: 100%;
        font-family: "Yuji Syuku", serif!important;
    }

    .globalMenuSp > ul > li {
        list-style-type: none;
        padding: 0;
        width: 100%;
        transition: .4s all;
        border-bottom: 1px dotted var(--color-secondary);
    }

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

    .globalMenuSp > ul > li.active {
        color: var(--color-secondary);
    }

    .globalMenuSp > ul > li.active a {
        color: var(--color-secondary);
        font-weight: 700;
    }

    .globalMenuSp > ul > li a {
        display: block;
        font-size: 15px;
        color: var(--color-secondary);
        padding: 14px 0;
        text-decoration: none;
        font-family: "Yuji Syuku", serif;

        &.en,
        &.ja {
            color: var(--color-primary);
            font-weight: 700;
        }
    }

    .globalMenuSp > ul > li a:hover {
        color: var(--color-secondary);
    }

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

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

    .lang__switch {
        margin-bottom: 20px;
    }

    .lang__switch span a {
        border-bottom: 1px solid #FFFFFF;
        font-weight: bold;
    }

    .lang__switch span a::before {
        font-family: "Font Awesome 5 Free";
        content: "\f061";
        font-weight: 900;
        font-size: 0.8em;
        padding-right: .3em;
        position: relative;
        top: -1px;
        color: var(--color-secondary);
    }

    .lang__switch .current {
        display: none;
        height: 0;
    }

    /* 子メニューありのスタイル */

    .globalMenuSp > ul > li.parent > div {
        position: relative;
        display: block;
        font-size: 15px;
        color: var(--color-secondary);
        padding: 14px 0;
        text-decoration: none;
        font-family: "Yuji Syuku", serif;
    }

    .globalMenuSp > ul > li.parent.active > div {
        font-weight: 700;
    }

    .globalMenuSp > ul > li.parent > div::before {
        position: absolute;
        right: 0px;
        content: "";
        width: 10px;
        height: 10px;
        top: 50%;
        margin-top: -9px;
        border-top: 3px solid var(--color-secondary);
        border-right: 3px solid var(--color-secondary);
        transform: rotate(135deg);
        transition: 0.35s ease-in-out;
    }

    .globalMenuSp > ul > li.parent > div.clicked::before {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin-top: -4px;
    }

    .globalMenuSp > ul > li.parent > .child {
        display: none;
        margin-left: 10px;
    }

    .globalMenuSp > ul > li.parent > .child li a:before {   
        content: "\f0da";
        font-family: "Font Awesome 5 Free";
        font-size: 0.85em;
        font-weight: 900;
        margin-right: 5px;
    }

    .globalMenuSp > ul > li.parent.active > .child a {
        font-weight: 400;
    }

    .globalMenuSp > ul > li.parent > .child li.active a {
        color: #808080;
    }

}

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

@media (width >= 1200px) {

    /* PCでは、表示させない */
    .hamburger {
        display: none;
    }
    .nav_wrap {
        height: 60px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3;
    }

    /* PC用のglobalMenuSpスタイル */
    .globalMenuSp {
        position: static;
        height: auto;
        transform: none;
        background-color: transparent;
        width: 100%;
        overflow: visible;
    }

    
    .menu {
        width: 1200px;
        height: 50px;
        background-image: linear-gradient(#0A877D, #0A877D), linear-gradient(#87c3bf, #87c3bf);
        background-position: center center, center center; 
        background-repeat: no-repeat;
        background-size: 100% 100%, 100% 100%;
        border-right: 2px solid #0A877D;
        display: flex;
        justify-content: center;
        gap: 1px;
        margin-inline: auto;
    }
    
    .menu > li {
        list-style-type: none;
        padding: 0;
        width: auto;
        border-bottom: none;
    }
    
    .menu li {
        pointer-events: auto;
        transition: 0.3s;
        display: flex;
        align-items: center;
    }
    
    .menu > li > a {
        width: 149px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #87c3bf;
        padding: 0 15px;
        color: #0A877D;
        text-decoration: none;
        text-align: center;
    }
    
    .menu li > a > span {
        font-size: 16px;
        font-weight: bold;
        font-feature-settings: "palt";
        font-family: "Yuji Syuku", serif!important;
    }

    .menu li > a:hover {
        background-color: #0A877D;
        color: #FFFFFF;
        text-decoration: none;
    }

    .menu li.active > a {
        background-color: #0A877D;
        color: #FFFFFF;
        pointer-events: none;
    }

    .lang__switch {
        width: 300px;
        height: 50px;
        display: flex;
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bold;
        z-index: 2;
    }

    .lang__switch > li {
        display: flex;
        width: 300px;
        height: 50px;
        background-color: #87c3bf;
    }

    .lang__switch > li > span a {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 160px;
        height: 50px;
        background-color: var(--color-tertiary);
        clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
        text-decoration: none;
        color: #FFFFFF;
        padding-right: 10px;
    }

    .lang__switch > li > span a:hover {
        text-decoration: none;
        filter: brightness(90%) contrast(110%);
        transition: all 0.5s;
    }

    .lang__switch > li > span.current {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 160px;
        height: 50px;
        color: #FFFFFF;
        padding-right: 10px;
    }

    /* 子メニューありの親スタイル */

    .menu > li.parent {
        position: relative;
    }

    .menu > li.parent > div {
        width: 149px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #87c3bf;
        padding: 0 5px;
        font-size: 15px;
        color: #0A877D;
        text-decoration: none;
        pointer-events: all;
        text-align: center;

        /* &.en {
            padding: 0 13px;
            font-size: 14px;
        } */
    }

    .menu > li.parent > div > span {
        font-weight: bold;
        font-feature-settings: "palt";
        font-family: "Yuji Syuku", serif!important;
    }

    .menu > li.parent > div:hover {
        background-color: #FFFFFF;
        color: #0A877D;
        text-decoration: none;
    }

    .menu > li.parent:hover div {
        background-color: #0A877D;
        color: #FFFFFF;
        cursor: default;
    }

    .menu > li.parent.active div {
        background-color: #0A877D;
        color: #FFFFFF;
        pointer-events: none;
    }

    .menu > li.parent.active div:hover {
        background-color: #0A877D;
        color: #FFFFFF;
        cursor: default;
    }

    /* 子メニューありの子スタイル */

    /* PC用で子メニューを表示 */
    .globalMenuSp > ul > li.parent > .child {
        display: block !important;
        margin-left: 0;
        padding: 0;
        list-style: none;
    }

    .menu > li.parent .child {
        display: block !important;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #87c3bf;
        line-height: 1.2;
        z-index: 100;
        min-width: 230px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        margin: 0;
        padding: 0;
        list-style: none;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .menu > li.parent:last-child .child {
        left: auto;
        right: 0;
    }

    .menu > li.parent .child li {
        overflow: visible;
        display: block;
    }

    .menu > li.parent .child li a {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: start;
        background-image: linear-gradient(#87c3bf, #87c3bf);
        background-position: left top;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding: 10px 20px;
        color: #0A877D;
        text-decoration: none;
        pointer-events: all;
    }

    .menu > li.parent .child.en li a {
        padding: 10px 13px;
    }

    .menu > li.parent .child li a:hover {
        background-image: linear-gradient(var(--color-secondary), var(--color-secondary)),linear-gradient(var(--color-secondary), var(--color-secondary));
        background-position: left 0px, left top;
        background-repeat: no-repeat;
        background-size: 100% 1px, 100% 100%;
        color: #FFFFFF;
        cursor: pointer;
    }

    .menu > li.parent .child li:first-child a:hover {
        background-image: linear-gradient(var(--color-secondary), var(--color-secondary)),linear-gradient(var(--color-secondary), var(--color-secondary));
        cursor: pointer;
    }

    .menu > li.parent:hover .child {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .menu > li.parent:hover .child li {
        width: 230px;
    }

    /* .menu > li.parent:hover .child.en li {
        width: 236px;
    } */

    .menu > li.parent .child li a > span {
        margin-top: 2px;
        font-size: 14px;
    }

    .menu > li.parent .child li.active a {
        background-image: linear-gradient(var(--color-secondary), var(--color-secondary)),linear-gradient(var(--color-secondary), var(--color-secondary));
        background-position: left 0px, left top;
        background-repeat: no-repeat;
        background-size: 100% 1px, 100% 100%;
        color: #FFFFFF;
        pointer-events: none;
    }
}