@charset "utf-8";

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

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

    .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: 16px;
        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: 16px;
        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: #FFFFFF;
        background-color: var(--key-color);
        width: 70%;
        transform: translateX(100%);
        transition: all 0.6s;
        overflow: auto;
        text-align: left;
    }

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

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

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

    .globalMenuSp ul li:hover {
        
    }

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

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

    .globalMenuSp ul li a {
        display: block;
        font-size: 15px;
        color: var(--theme-color);
        padding: 12px 0;
        text-decoration: none;
    }

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

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

    .globalMenuSp ul li.lang__switch a {
        display: flex;
        align-items: baseline;
        gap: 20px;
        font-size: 1.1em;
    }

    .globalMenuSp ul li.lang__switch a::after {
        content: "\f0da";
        font-family: "Font Awesome 5 Free";
        margin-right: 0.5em;
        font-size: 1em;
        font-weight: 900;
        color: #fff;
    }
}

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

/* ナビゲーションメニュー：PC */
@media (min-width: 922px) {

    /* PCでは、表示させない */
    .hamburger {
        display: none;
    }

    .nav.child {
        top: 0px;
    }

    .nav {
        height: 70px;
        position: relative;
        top: -70px;
    }

    .menu {
        height: 70px;
        display: flex;
        justify-content: center;
        border-image-source: linear-gradient(rgba(30, 60, 100, 0.9),rgba(30, 60, 100, 0.9));
        border-image-slice: fill 0;
        border-image-outset: 0 100vw 0 100vw;

        &.en {
            display: none;
        }
    }

    
    .menu li {
        pointer-events: auto;
        transition: 0.3s;
        display: flex;
        align-items: center;
    }

    .menu li.lang__switch {
        display: none;
    }

    .menu > li:nth-child(2) {
        background-image: linear-gradient(#FFFFFF, #FFFFFF);
        background-position: left center;
        background-repeat: no-repeat;
        background-size: 1px 70px;
    }

    .menu > li.active:nth-child(2) {
        background-image: none;
    }
    
    .menu > li > a {
        min-width: 200px;
        height: 70px;
        background-image: linear-gradient(#FFFFFF, #FFFFFF);
        background-position: right center;
        background-repeat: no-repeat;
        background-size: 1px 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 22px 18px 0;
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 700;
        transition: all 1s;
        line-height: .5;
    }
    
    .menu li > a > span {
        position: relative;
        font-size: 14px;
        font-weight: 700;
    }

    .menu li > a[href="./tour_ticket.html"] > span {
        /* padding-left: 38px; */
    }

    .menu li > a[href="./sponsors.html"] > span {
        /* padding-left: 33px; */
    }
    
    .menu li > a:hover {
        background-image: linear-gradient(#FFFFFF, #FFFFFF);
        background-size: 100% 70px;
        color: var(--key-color);
        text-decoration: none;
        transition: all 1s;
    }

    .menu li.active > a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image: linear-gradient(#e6f1f9, #e6f1f9);
        background-size: 100% 70px;
        color: var(--key-color);
        pointer-events: none;
        transition: none;
    }

    .menu li > a > span::before {
        position: absolute;
        content: '';
        background-repeat: no-repeat;
        background-size: cover;
        top: -10px;
        left: 50%;
        transform: translate(-50%, -100%);
    }

    .menu li > a[href="./"] > span::before {
        width: 18px;
        height: 20px;
        background-image: url(../images/ico_top.svg);
    }

    .menu li.active > a[href="./"] > span::before,
    .menu li > a[href="./"]:hover > span::before {
        background-image: url(../images/ico_top__active.svg);
    }

    .menu li > a[href="./topics.html"] > span::before {
        width: 21px;
        height: 21px;
        background-image: url(../images/ico_topics.svg);
    }

    .menu li.active > a[href="./topics.html"] > span::before,
    .menu li > a[href="./topics.html"]:hover > span::before {
        background-image: url(../images/ico_topics__active.svg);
    }

    .menu li > a[href="./program.html"] > span::before {
        width: 22px;
        height: 22px;
        background-image: url(../images/ico_program.svg);
    }

    .menu li.active > a[href="./program.html"] > span::before,
    .menu li > a[href="./program.html"]:hover > span::before {
        background-image: url(../images/ico_program__active.svg);
    }

    .menu li > a[href="./tour_ticket.html"] > span::before {
        width: 32px;
        height: 20px;
        background-image: url(../images/ico_ticket.svg);
    }

    .menu li.active > a[href="./tour_ticket.html"] > span::before,
    .menu li > a[href="./tour_ticket.html"]:hover > span::before {
        background-image: url(../images/ico-ticket__active.svg);
    }

    .menu li > a[href="./sponsors.html"] > span::before {
        width: 26px;
        height: 13px;
        background-image: url(../images/ico_sponsors.svg);
    }

    .menu li.active > a[href="./sponsors.html"] > span::before,
    .menu li > a[href="./sponsors.html"]:hover > span::before {
        background-image: url(../images/ico_sponsors__active.svg);
    }

}

