@charset "utf-8";

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

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

        @media (width >= 768px) {
            & {
                right: 20px;
                top: 20px;
            }
        }
    }

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

    }

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

    .globalMenuSp > ul > li {
        list-style-type: none;
        padding: 0;
        width: 100%;
        transition: .4s all;
    }

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

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

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

    .globalMenuSp > ul > li a {
        display: block;
        font-size: 15px;
        color: #FFFFFF;
        padding: 14px 0;
        text-decoration: none;
    }

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

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

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

}

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

@media (width >= 1200px) {

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

    /* PC用のglobalMenuSpスタイル */
    .globalMenuSp {
        width: 1200px;
        margin-inline: auto;
        overflow: visible;
    }

    
    .menu {
        width: 850px;
        height: 35px;
        background-color: var(--color-primary);
        display: flex;
        padding: 0 0 0 20px;
    }
    
    .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 {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-primary);
        color: #FFFFFF;
        text-decoration: none;
        text-align: center;
    }
    
    .menu li > a > span {
        font-family: "Roboto Condensed";
        font-weight: 500;
        font-size: 15px;
        font-feature-settings: "palt";
        line-height: 1.2;
        hyphens: auto;
        border-left: 1px solid #FFFFFF;
        padding: 0 11px;
    }

    .menu li:last-child > a > span {
        border-right: 1px solid #FFFFFF;
    }

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

    .menu li.active > a {
        color: var(--color-tertiary);
        pointer-events: none;
    }
}