@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-color: var(--color_primary);

        &.en {
            background-color: var(--color_secondary);
        }
    }

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

        &.en {
            background-color: var(--color_secondary);
        }
    }

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

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

    .globalMenuSp ul li.active a {
        color: var(--color_secondary);
        font-weight: bold;
    }

    .globalMenuSp.en ul li.active a {
        color: var(--color_primary);
        font-weight: bold;
    }

    .globalMenuSp ul li a {
        display: block;
        font-size: 15px;
        font-weight: bold;
        color: #FFFFFF;
        padding: 12px 0;
        text-decoration: none;
    }
    
    .globalMenuSp ul li a:hover {
        color: var(--color_secondary);
    }

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

    /* クリックで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;
    }

    .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: #FFFFFF;
    }

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

}

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

@media (width >= 1200px) {

    .hamburger {
        display: none;
    }

    .globalMenuSp {
        min-height: 1030px;

        &.en {
            min-height: 1150px;
        }
    }

    .menu {
        width: 250px;
        background-color: #000;
        border-bottom: 1px solid #000000;
    }

    .menu > li + li {
        margin-top: 1px;
    }

    .menu > li a {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 40px;
        margin-left: auto;
        margin-right: auto;
        background-color: #00646E;
        font-size: 16px;
        font-weight: bold;
        font-feature-settings: "palt";
        line-height: 1.2;
        color: #FFFFFF;
        text-decoration: none;
        transition: all 0.5s;
    }

    .menu.en > li a {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 40px;
        margin-left: auto;
        margin-right: auto;
        background-color: var(--color_secondary);
        font-size: 16px;
        font-weight: bold;
        font-feature-settings: "palt";
        line-height: 1.2;
        color: #FFFFFF;
        text-decoration: none;
        transition: all 0.5s;
    }


    .menu > li a > span {
        margin: 13px 17px;
    }

    .menu > li a:hover {
        background-color: #FFFFFF;
        text-decoration: none;
        color: var(--color_primary);
    }

    .menu.en > li a:hover {
        background-color: #FFFFFF;
        text-decoration: none;
        color: var(--color_secondary);
    }

    .menu > li.active a {
        background-color: #FFFFFF;
        pointer-events: none;
        color: var(--color_primary);
    }

    .menu.en > li.active a {
        background-color: #FFFFFF;
        pointer-events: none;
        color: var(--color_secondary);
    }
    
    .menu > li.active a:hover {
        cursor: default;
    }

    .lang__switch {
        position: relative;
        width: 100%;
        height: 40px;
        display: flex;
        background-color: var(--color_primary);
        font-size: 14px;
        font-weight: bold;

        &.en {
            background-color: var(--color_secondary);
        }

        &::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 10px;
            background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
            background-position: center bottom;
            background-repeat: no-repeat;
            background-size: 100% 10px;
            z-index: 2;
            bottom: 0;
            left: 0;
        }
    }

    .lang__switch > li {
        display: flex;
    }

    .lang__switch > li > span a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 125px;
        height: 40px;
        background-color: var(--color_secondary);
        clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
        text-decoration: none;
        color: var(--color_primary);
    }

    .lang__switch.en > li > span a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 125px;
        height: 40px;
        background-color: var(--color_primary);
        clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
        text-decoration: none;
        color: var(--color_secondary);
    }

    .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: 125px;
        height: 42px;
        color: rgba(255, 255, 255, 0.3);
        padding-right: 10px;
    }
    
}