@charset "utf-8";

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

@media (width <= 1199px) {
    /*　ハンバーガーメニューボタン　*/
    .hamburger {
        display: block;
        position: fixed;
        z-index: 5;
        right: 15px;
        top: 15px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
        background-color: var(--primary-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 {
        top: 15px;
    }
    .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: 100vh;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        color: #fff;
        background-color: var(--primary-color);
        text-align: left;
        width: 100%;
        transform: translateX(-100%);
        transition: all 0.6s;
        overflow: auto;
    }

    .globalMenuSp ul {
        margin: 0 auto;
        padding: 60px 0 0 0;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    .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:hover {
        background: var(--primary-color);
    }

    .globalMenuSp ul li.active {
        background: rgba(255, 255, 255, 0.7);
    }

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

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

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

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

    
}

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

@media (width >= 1200px) {

    .hamburger {
        display: none;
    }

    .menu {
        width: 230px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
    }

    .menu > * + * {
        margin-top: 2px;
    }

    .menu li a {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 48px;
        box-sizing: border-box;
        border: 2px solid transparent;
        background-clip: padding-box, border-box;
        background-origin: padding-box, border-box;
        background-image: linear-gradient(to bottom, #00235A 0%, #113380 100%), linear-gradient(to top, #00235A 0%, #113380 100%);
        background-position: left top;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        font-size: 15px;
        font-weight: bold;
        font-feature-settings: "palt";
        line-height: 1.2;
        color: #FFFFFF;
        text-decoration: none;
        transition: color .5s;
      }

    .menu li a > span {
        margin-left: 7px;
    }

    .menu li a > span > span {
        display: block;
    }

    .menu li a:hover {
        background-image: linear-gradient(to bottom, #FFFFFF 0%, #B2B2B2 100%), linear-gradient(to bottom, #B2B2B2 0%, #FFFFFF 100%);
        color: #D6171D;
        text-decoration: none;
    }

    .menu li.active a {
        background-image: linear-gradient(to bottom, #FFFFFF 0%, #B2B2B2 100%), linear-gradient(to bottom, #B2B2B2 0%, #FFFFFF 100%);
        color: #D6171D;
        pointer-events: none;
    }

    .menu li.active a:hover {
        cursor: default;
    }
    
}