@charset "UTF-8";

/*******************************

 ナビゲーション

 *******************************/

/*ナビゲーションをトップで固定*/
.fixed-top {
    position: fixed;
    z-index: 9998;
    width: 100%;
}

/*ナビが開いたら画面をスクロールしない*/
.bodyfixed {
    position: fixed;
    width: 100%;
    height: 100%;
}

.Menu {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
}

.Menu.-fixed {
    position: fixed;
    top: 0;
    height: 60px;
    margin-top: 0;
    padding-top: 0;
    transition: top .65s ease-in;

    -webkit-transition: top .65s ease-in;
    -moz-transition: top .65s ease-in;
}

.Menu__inner {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.Menu__btnContent {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
    cursor: pointer;
}

/* チェックボックスを非表示 */
/***メニューボタン***/
/* チェックボックスを非表示 */
.Menu__check, .Menu__btn {
    display: none;
}
/* チェックボックスオンの時 */
html.menu-open, body.menu-open {
    height: 100%;
    overflow: hidden;
}
.Menu__btn {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color: #000;
    cursor: pointer;
}

.Menu__check:checked ~ .Menu__btn {
    background-color: #000;
}

.Menu__bar {
    display: block;
    position: absolute;
    top: 16px;
    right: 0;
    left: 0;
    width: 24px;
    height: 2px;
    margin: auto;
    background: #fff;
    transition: all .5s;

    transform-origin: left top;
}

.Menu__bar.-middle {
    opacity: 1;
    top: 23px;
}

.Menu__bar.-bottom {
    top: 30px;

    transform-origin: left bottom;
}
.Menu__check:checked ~ .Menu__btn .Menu__bar.-top {
    left: 10px;
    transform: rotate(45deg);
}

.Menu__check:checked ~ .Menu__btn .Menu__bar.-middle {
    opacity: 0;
}

.Menu__check:checked ~ .Menu__btn .Menu__bar.-bottom {
    top: 32px;
    left: 10px;
    transform: rotate(-45deg);
}


.Menu__content {
    display: none;
    width: 100%;
    height: auto;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding-top: 50px;
    padding-left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background: linear-gradient(180deg,#fff 0%,#fff 50px,rgba(0,0,0,.5) 50px,rgba(0,0,0,.5) 100%);
    table-layout: fixed;

    -webkit-overflow-scrolling: touch;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
}

.Menu__item {
    display: block;
    position: relative;
    float: none;
    width: 100%;
    text-align: left;
}

/*iphone時、上下のバーのための記述*/
.Menu__item:nth-last-child(1) {
    margin-bottom: 100px;
    border-bottom: 1px solid #87c4ee;
}

.Menu__link {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 25px 5%;
    border-top: 1px solid #87c4ee;
    background: #00a7eb;
    color: #fff;
    letter-spacing: .05em;
    text-decoration: none;
}

/* 600px〜959px：タブレット
------------------------------ */
@media screen and (min-width:600px) {
    .Menu__content {
        height: auto;
    }

    /*iphone時、上下のバーのための記述*/
    .Menu__item:nth-last-child(1) {
        margin-bottom: 0;
    }

    .Menu__link {
        padding: 30px 5%;
        font-size: 1.6rem;
    }
}

/* 960px〜1279px：小型PC
------------------------------ */
@media screen and (min-width:960px) {
    .Menu {
        position: relative;
        height: 40px;
        margin: 0;
    }

    .Menu__inner {
        /* max-width: 735px; */
        margin: 0 auto;
    }

    .Menu__mobileHead {
        display: none;
    }

    .Menu__content {
        display: flex;
        flex-wrap: wrap;
        justify-content:space-between;
        width: 100%;
        height: 40px;
        height: auto;
        max-height: auto;
        padding: 0;
        overflow-y: visible;
        background: none;
        
    }

    .Menu__item {
        position: relative;
        width: auto;
        height: 100%;
        text-align: center;
        cursor: pointer;
    }

    .Menu__item.-contact {
        width: 15%;
    }

    .Menu__item.-contact .Menu__link {
        display: flex;
        align-items: center;
        border: 1px solid #000;
        border-radius: 5px;
    }

    /*iphone時、上下のバーのための記述*/
    .Menu__item:nth-last-child(1) {
        border-bottom: none;
    }

    .Menu__link {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        padding: 0;
        border-top: none;
        border-right: none;
        background: none;
        color: #000;
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .Menu__item:nth-child(1) > a {
        border-left: none;
    }

    .Menu__link:hover {
        border-top: none;
        background: none;
        color: #000;
        font-weight: normal;
    }

    /*ホバーアニメーション*/
    .Menu__link:after {
        display: block;
        opacity: .7;
        position: absolute;
        right: 0;
        bottom: 3px;
        left: 0;
        transform: scale(0, 1);
        width: 40%;
        height: 3px;
        margin: 0 auto;
        background: #000;
        content: "";
        transition: transform .3s;

        transform-origin: center top;
    }

    .Menu__link:hover:after {
        transform: scale(1, 1);
    }

    .Menu__item.-contact .Menu__link:hover {
        background: #000;
        color: #fff;
    }

    .Menu__item.-contact .Menu__link:after {
        display: none;
    }
}


/*******************************

ナビ内で プルダウンメニューを開閉する

 *******************************/

.Menu__innerList {
    display: block;
    padding: 0;
    background: #00a7eb;
}
.Menu__item .Menu__innerList {
    position: relative;
    overflow: visible;
}

.Menu__list02 {
    padding: 0 0 10px 0;
}

.Menu__link02 {
    display: block;
    width: 100%;
    padding: 10px 8%;
    color: #fff;
    text-align: left;
}

.Menu__link02:before {
    margin-right: 5px;
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    content: "\f105";
}

.Menu__item02:nth-child(1) a {
    padding-top: 0;
}

.Menu__link02:hover {
    text-decoration: none;
}


/* 960px〜1279px：小型PC
------------------------------ */

@media screen and (min-width:960px) {
    .Menu__item:hover .Menu__innerList {
        display: block;
        max-height: 9999px;
    }

    .Menu__innerList {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 99;
        width: 100%;
        max-height: 0;
        padding: 0 0 0 0;
        overflow: hidden;
        transition: all .2s ease-in;

        -webkit-filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, .3));
        filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, .3));
    }

    .Menu__list02 {
        justify-content: center;
        width: 100%;
        padding: 10px 30px;
        background: #fff;
    }

    .Menu__link02 {
        padding: 10px 0;
        color: inherit;
        white-space: nowrap;
    }

    .Menu__link02:before {
        color: #00a7eb;
    }

    .Menu__item02:nth-child(1) a {
        padding: 10px 0;
    }

    .Menu__link02:hover {
        color: #00a7eb;
    }
}
