@charset "utf-8";


.header-nav {
    font-size: 18px;
    top: 0px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
.header-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.header-nav-flex-left {
    background-color: #3A3A3A;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-basis: 120px;
}
/*ロゴサイズ*/
.header-nav-flex-left img{
    width: 80px;
    margin-left: 20px;
    margin-top: 5px;
}
.header-nav-flex-right {
    background-color: #3A3A3A;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-basis: auto;
}
.header-nav-flex-right > div {
    text-align: center;
    padding: 0px 30px;
    height: 100%;
    color: #F6F6F6;
    line-height: 1.2em;
    display: flex;
    align-items: center;
}
.header-nav-flex-right > div.red {
    background-color: #C30D23;
    width: 100px;
    justify-content: center;
}
.header-nav-flex-right > div a:link, 
.header-nav-flex-right > div a:visited, 
.header-nav-flex-right > div a:active {
  color: #F6F6F6;
}
.header-nav-flex-right > div .jp {
    font-size: 11px;
}

/* サブメニュー */
.header-nav-flex-right > div .sub-menu {
    position: absolute;
    top: 80px;
    color: #838383;
    text-align: left;
    background-color: white;
    /* はじめは非表示 */
	visibility: hidden;
}
.header-nav-flex-right > div .sub-menu a:link, 
.header-nav-flex-right > div .sub-menu a:visited, 
.header-nav-flex-right > div .sub-menu a:active {
  color: #838383;
}
.header-nav-flex-right > div .sub-menu > div {
    padding: 10px 20px;
}
.header-nav-flex-right > div .sub-menu > div:first-of-type {
    border-bottom: 1px solid #838383;
}
/* hoverしたら表示 */
.header-nav-flex-right > div.has-child:hover .sub-menu {
    visibility: visible;
}

/* モバイル用メニューは隠しておく */
.header-nav-mobile {
    display: none;
}


@media screen and (max-width : 768px) {

    /* PCのメニューは隠す */
    .header-nav {
        display: none;
    }

    /* モバイル用メニューを表示 */
    .header-nav-mobile {
        display: block;
        top: 0px;
        position: fixed;
        width: 100%;
        z-index: 9999;
    }
    .header-nav-mobile-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }
    /*ロゴサイズ*/
    .header-nav-mobile-flex-left img {
        width: 75px;
        margin: 20px 0px 0px 10px;
    }

    /* ハンバーガーメニュー */
    .header-nav-mobile-flex-right-hamburger {
        position: fixed;
        z-index: 9999;
        top: 0px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        margin-top: 10px;
    }
    .header-nav-mobile-flex-right-hamburger span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #C30D23;
        width: 45%;
    }
    .header-nav-mobile-flex-right-hamburger span:nth-of-type(1) {
        top: 15px;
    }
    .header-nav-mobile-flex-right-hamburger span:nth-of-type(2) {
        top: 23px;
    }
    .header-nav-mobile-flex-right-hamburger.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        /* width: 30%; */
        background-color: #838383;
    }
    .header-nav-mobile-flex-right-hamburger.active span:nth-of-type(2) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        /* width: 30%; */
        background-color: #838383;
    }

    /* モバイルのメニュー */
    .header-nav-mobile-menu {
        position: fixed;
        z-index: 999;
        top: -200%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #3A3A3A;
        transition: all 0.6s;
        color: #F6F6F6;
        text-align: center;
        line-height: 1.2em;
    }
    .header-nav-mobile-menu div a:link, 
    .header-nav-mobile-menu div a:visited, 
    .header-nav-mobile-menu div a:active {
        color: #F6F6F6;
    }
    .header-nav-mobile-menu.active {
        top: 0;
    }
    .header-nav-mobile-menu.active .header-nav-mobile-menu-scroll {
        position: fixed;
        z-index: 9999; 
        width: 100%;
        height: 100vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav-mobile-menu-scroll > div:first-of-type {
        margin: 100px 0px 30px 0px;
    }
    .header-nav-mobile-menu-scroll > div {
        margin: 40px 0px;
        font-size: 22px;
    }
    .header-nav-mobile-menu-scroll > div .jp {
        margin: 10px 0px;
        font-size: 13px;
    }

    /*施工事例デザイン*/
    .menu-pg {
        margin-top: 20px;
    }

    /* 追加：施工事例（親）を非表示 */
    .header-nav-mobile-menu .menu-parent { 
      display: none; 
    }
}

