@charset "utf-8";

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

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

    }

    .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-tertiary);
        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%;
    }

    .globalMenuSp > ul > li {
        list-style-type: none;
        padding: 0;
        width: 100%;
        transition: .4s all;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

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

    .globalMenuSp > ul > li:hover {
        
    }

    .globalMenuSp > ul > li.active {
        color: rgba(255, 255, 255, 0.75);
    }

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

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

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

    .globalMenuSp > ul > li a:hover {
        color: rgba(255, 255, 255, 0.75);
    }

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

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

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

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

    .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 #FFFFFF;
        border-right: 3px solid #FFFFFF;
        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: 1100px;
        height: 60px;
        background-image: linear-gradient(#FFFFFF, #FFFFFF), linear-gradient(var(--color-tertiary), var(--color-tertiary));
        background-position: center center; 
        background-repeat: no-repeat;
        background-size: 60% 100%, 100% 100%;
        display: flex;
        justify-content: center;
        gap: 1px;
        margin-left: auto;
        margin-right: 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 {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-tertiary);
        padding: 0 29px;
        color: #FFFFFF;
        text-decoration: none;
        text-align: center;

        &.en {
            background-color: var(--color-primary);
            color: var(--color-secondary);

            &:hover {
                background-color: var(--color-secondary);
                color: var(--color-primary);
            }
        }
    }
    
    .menu li > a > span {
        font-size: 14px;
        font-weight: bold;
        font-feature-settings: "palt";
    }

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

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

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

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

    .menu > li.parent > div {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-tertiary);
        padding: 0 29px;
        font-size: 16px;
        color: #FFFFFF;
        text-decoration: none;
        pointer-events: all;
    }

    .menu > li.parent > div > span {
        font-weight: bold;
        font-feature-settings: "palt";
    }

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

    .menu > li.parent:hover div {
        background-color: #FFFFFF;
        color: var(--color-tertiary);
        cursor: default;
    }

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

    .menu > li.parent.active div:hover {
        background-color: var(--color-tertiary);
        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: 60px;
        left: 0;
        background-color: var(--color-tertiary);
        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(#FFFFFF, #FFFFFF),linear-gradient(var(--color-secondary), var(--color-secondary));
        background-position: left 0px, left top;
        background-repeat: no-repeat;
        background-size: 100% 1px, 100% 100%;
        padding: 10px 20px;
        color: #FFFFFF;
        text-decoration: none;
        pointer-events: all;
    }

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

    .menu > li.parent .child li:first-child a:hover {
        background-image: linear-gradient(#FFFFFF, #FFFFFF),linear-gradient(#FFFFFF, #FFFFFF);
        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 .child li a > span {
        margin-top: 2px;
        font-size: 14px;
    }

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

    .menu > li.parent .child li:active a {
        background-image: linear-gradient(#FFFFFF, #FFFFFF),linear-gradient(#FFFFFF, #FFFFFF);
        color: var(--color-secondary);
    }
}