/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

header ul {
    padding: 0;
    list-style: none;
}

.hd_wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 4.4vw;
    margin-right: 3.3vw;
}

.hd_wrap .logo h1 {
  margin-bottom: 0;
  margin-top: 0;
}

.nav_menu {
    width: 100%;
    padding: 0 1.7vw 0 4.8vw;

}

.hd_wrap .nav_pc {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: right;
    gap: 5%;
}

.hd_wrap .nav_sp {
    display: none;
}

.hd_wrap .nav-item {
    height: 100%;
}

.hd_wrap .nav-item .nav-link {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 1.1vw;
    line-height: 1.5;
    color: #000;
    text-decoration: none;
    height: 100%;
    transition: .3s;
    font-weight: normal;
}

.hd_wrap .has-child ul li {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.hd_wrap .has-child ul li a {
    display: flex;
    align-items: center;
    font-size: 1.1vw;
    line-height: 1.5;
    width: 100%;
    color: #fff;
    padding: .8rem 0;
    font-weight: normal;
}

/*== 2・3階層目の共通設定 */
.hd_wrap ul li.has-child {
    position: relative;
}

.contact-item {
    position: relative;
  list-style:none;
}

.contact-item .contact-child {
    position: absolute;
    top: 44px;
    left: 0;
    width: auto;
    padding: 10%;
    background: #222222;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    z-index: 4;
}

/* ホバーで表示 */
.contact-item:hover .contact-child,
.contact-item:active .contact-child {
    visibility: visible;
    opacity: 1;
}

/* 子要素のスタイル */
.contact-child li {
    display: block;
}

.contact-child li a {
    display: flex;
    align-items: center;
    font-size: 1.1vw;
    line-height: 1.5;
    width: 100%;
    color: #fff;
    padding: .8rem 0;
    font-weight: normal;
}

/*下の階層を持っているulの指定*/
.hd_wrap ul li.has-child ul {
    /*絶対配置で位置を指定*/
    position: absolute;
    top: 44px;
    left: 0;
    width: auto;
    background: #222222;
    visibility: hidden;
    padding: 40%;
    transition: all .3s;
    opacity: 0;
    z-index: 4;
}

/*hoverしたら表示*/
.hd_wrap ul li.has-child:hover>ul,
.hd_wrap ul li.has-child ul li:hover>ul,
.hd_wrap ul li.has-child:active>ul,
.hd_wrap ul li.has-child ul li:active>ul {
    visibility: visible;
    opacity: 1;
}

/*2階層目以降は横並びにしない*/
.hd_wrap ul ul {
    display: block;
    padding: 18px 0 23px;
}

.hd_wrap .nav-link {
    position: relative;
    height: 100%;
    transition: .3s;
}

.hd_wrap .sp-menu {
    display: none;
}

/**ナビの上棒*/

.hd_wrap .nav-link:hover::after {
    content: "|";
    position: absolute;
    top: -1.7vw;
    left: 50%;
    color: #0071b3;

}

/**上棒終わり*/

.hd_wrap .contact-item {
    font-size: 1.1vw;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    border: 2px solid #0071B3;
    margin: 0 1vw 0 0;
    transition: .3s;
}

.hd_wrap .contact {
  color: #0071B3;
  padding: 1vw 2vw 1vw 2vw;
  display: block;
}

.hd_wrap .contact:hover {
    color: #fff;
    background: #0071B3;
}

.hd_wrap .contact i {
    margin-right: 5%;
}

.hd_wrap .info {
    font-size: 1.1vw;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    background: #0071B3;
    border: 2px solid #0071B3;
    margin: 0;
    padding: 1vw 2vw 1vw 2vw;
    color: #FFF;
      transition: .3s;
}

.hd_wrap .info:hover {
    color: #0071B3;
    background: #fff;
}

h1 img {
    display: block;
    height: 4.4vw;
}

.hd_wrap .info i {
    margin-right: 5%;
}

/**********************************************
  ****************  ハンバーガーメニュー  ********************
  ***********************************************/
.hamburger {
    position: relative;
    width: 59px;
    height: 4.4vw;
    padding: 0;
    margin: 0;
    z-index: 99;
}

@media screen and (min-width: 961px) {
    .hamburger {
        display: none;
        margin: 0;
    }
}

.hamburger div {
    width: 26px;
    height: 1px;
    border: 1px solid #222222;
    background: #222222;
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s;
}

.hamburger div:nth-child(1) {
    top: 37%;
}

.hamburger div:nth-child(2) {
    top: 50%;
    transition: 0s;
    visibility: visible;
}

.hamburger div:nth-child(3) {
    position: relative;
    top: 63%;
}

.close {
    display: none;
}

.hamburger.active div:nth-child(1) {
    transform: translate(-50%, 5px) rotate(-45deg);
    background: #222222;
}

.hamburger.active div:nth-child(2) {
    display: none;
}

.hamburger.active div:nth-child(3) {
    transform: translate(-50%, -10px) rotate(45deg);
    background: #222222;
    transition: .3s;
}

.hamburger.active .close {
    display: block;
  color: #fff;
}

.hamburger.active .open {
    display: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
}

header .logo {
    margin: 0 auto 0 0;
}

@media screen and (min-width:641px) and (max-width: 960px) {
    .hd_wrap {
        display: flex;
        align-items: center;
        margin-right: 0;
        height: 8.4vw;
    }
  
  h1 img {
    display: block;
    height: 8.4vw;
  }
  
  .hamburger {
    height: 7.4vw;
  }

    .nav_menu {
        position: absolute;
        top: 8.4vw;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 2rem 3rem;
        background: #222222;
        z-index: 99;
        transform: translateX(100%);
        transition: .3s;
        opacity: 0;
    }

    .nav_menu.view {
        transform: translateX(0);
        opacity: 1;
    }

    .hd_wrap .nav_sp {
        display: grid;
        grid-template-columns: 25% 35% 35%;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .hd_wrap .nav_pc {
        display: none;
    }

    .hd_wrap ul li {
        width: 100%;
    }

    .hd_wrap .nav-item a.nav-link {
        color: #fff;
        display: block;
        font-size: 0.9rem;
        line-height: 2.5;
        font-weight: 700;
        height: auto;
    }

    .hd_wrap .nav-item a {
        color: #fff;
        display: block;
        font-size: 0.9rem;
        line-height: 2.05;
        font-weight: 400;
    }

    .hd_wrap ul li ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .hd_wrap ul li.has-child ul {
        /*絶対配置で位置を指定*/
        position: relative;
        left: 0;
        width: auto;
        visibility: visible;
        opacity: 1;
    }

    .hd_wrap .has-child ul li a {
        display: block;
        font-size: 14px;
        line-height: 2.05;
        color: #fff;
        text-decoration: none;
        height: auto;
        width: 100%;
        background: #222222;
    }
  
  .hd_wrap .contact,
  .hd_wrap .info {
    font-size: 2.1vw;
    padding: 1.7vw 3.5vw;
    margin: 0 2vw 0 0;
  }

    .contact {
        width: auto;
        margin: 0 10px;
        padding: 10px 24px;
    }

    .info {
        width: auto;
        margin: 0 10px;
        padding: 10px 24px;
    }

    .hd_wrap .sp-menu {
        display: block;
    }
}

@media screen and (max-width: 640px) {

    header{
        overflow-y: visible;
    }
    
    .hd_wrap{
        display: flex;
        align-items: center;
        height: 48px;
        margin: 0;
    }
    
    .nav_menu{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 48px);
        padding: 4.5rem 3rem;
        background: #222222;
        z-index: 99;
        transform: translateX(100%);
        transition: .3s;
        opacity: 0;
        overflow-y: scroll;
    }
    
    .nav_menu.view{
        transform: translateX(0);
        opacity: 1;
    }
    
    .hd_wrap .nav_sp{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        height: auto;
        margin: 0;
        padding-bottom: 8rem;
    }
    
    .hd_wrap .nav_pc{
        display: none;
    }
    
    .hd_wrap ul li{
        width: 100%;
    }
    
    .hd_wrap .nav-item a.nav-link{
        color: #fff;
        display: block;
        font-size: 0.9rem;
        line-height: 2.05;
        font-weight: 700;
    }
    
    .hd_wrap .nav-item a{
        color: #fff;
        display: block;
        font-size: 0.9rem;
        line-height: 1.99;
        font-weight: 400;
    }
    
    .hd_wrap ul li ul{
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    
    .hd_wrap ul li.has-child ul {
        position: relative;
        left: 0;
        width: auto;
        visibility: visible;
        opacity: 1;
    }
    
    .hd_wrap .has-child ul li a{
        display: block;
        font-size: 14px;
        line-height: 2.05;
        color: #fff;
        text-decoration: none;
        height: auto;
        width: 100%;
        background: #222222;
    }
    
    .hd_wrap .contact-item, .hd_wrap .info{
        display: none;
    }
    
    .hd_wrap .sp-menu{
        display: block;
    }
    
    h1 img{
        height: 48px;
    }
    
    .hamburger {
        position: relative;
        width: 48px;
        height: 48px;
        padding: 0;
        margin: 0 5px 0 0;
        z-index: 99;
    }
    
    .hamburger div {
        width: 26px;
        height: 1px;
        border: 1px solid #222222;
        background: #222222;
        position: absolute;
        top: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .3s;
    }
    
    .hamburger div:nth-child(1) {
        top: 32%;
    }
    
    .hamburger div:nth-child(2) {
        top: 52%;
    }
    
    .hamburger div:nth-child(3) {
        top: 70%;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: translate(-50%, 8px) rotate(-45deg);
      background: #fff;
    }
    
    .hamburger.active div:nth-child(2) {
        display: none;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: translate(-50%, -10px) rotate(45deg);
      background: #fff;
    }
}
