
/*==ナビゲーション全体の設定*/
nav {
    color: #ddd;
    text-align: center;
    margin:0;
    font-size:1.4rem;	/* 10px×1.4 rem×0.75 = 10.5pt */
    z-index: 999;
}

/*ナビゲーションを横並びに*/
nav ul {
    list-style: none;
    justify-content: center;
    top: 0;
    left: 0;
    background:#fff;                    /* 帯全体の色:スマホ版は白 */
    border-top: solid 1px #ccc;     /* 帯のトップラインの色:PC版はグレー */
    border-bottom: solid 1px #ccc;  /* 帯のアンダーラインの色:PC版はグレー */
    margin: 0;
    margin: 0 auto;
    padding:0;
}

/*2階層目以降は横並びにしない*/
nav ul ul {
    display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
    position: relative;
}


/*ナビゲーションのリンク設定*/
nav ul li a {
    display: block;
    text-decoration: none;
    color: #000;                        /* 帯にのせる第一階層の色:PC版は黒 */
    padding: 10px 25px;
    transition: all .3s;
}

nav ul li li a {
    padding: 10px 15px;
}

nav ul li a:hover {
    color: #fff;
    background: #0090aa;
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.menu-item-has-children::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    border-top: 2px solid #696969;
    border-right: 2px solid #696969;
    transform: rotate(135deg);
}


/*下の階層を持っているulの指定*/
nav li.menu-item-has-children ul {
    position: absolute;
    left: 0;
    top: 61px;
    top: 42px;
    z-index: 4;
    background: #ccc;
    width: 180px;
    width: 160px;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    margin: 0;
}

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

/*ナビゲーションaタグの形状*/
nav li.menu-item-has-children ul li a {
    color: #000;
    border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

nav li.menu-item-has-children ul li:last-child a {
    border-bottom: none;
}

nav li.menu-item-has-children ul li a:hover,
nav li.menu-item-has-children ul li a:active {
    background: #0090aa;
}

.menu li.selected_menu,
.menu li.selected_menu a {     /*選択された子メニューの親をグレーに*/
    background: #ccc;
    color: #000;
}


/*************************************************************************/
/* タブレット */
@media (max-width:900px) {
    
    /*ナビゲーションのリンク設定*/
    nav ul li a {
        padding: 10px 10px 12px 18px;
    }   
    /*2階層目を持つliの矢印の設定*/
    nav ul li.menu-item-has-children::before {
        left: 4px;
    }
    //.site_description {display:none;}
} 


/*************************************************************************/
/* スマホ */
@media (max-width:768px) {
    
  ul#nav_list {
    display: none;
    width: 100%;
  }

  .hamburger_openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: calc(50% + -13px);
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 26px;
  }

  .hamburger_openbtn span:nth-of-type(1) {
    top: calc(31% - 1px)
  }

  .hamburger_openbtn span:nth-of-type(2) {
    top: calc(50% - 1px)
  }

  .hamburger_openbtn span:nth-of-type(3) {
    top: calc(69% - 1px)
  }

  .hamburger_openbtn.active span:nth-of-type(1) {
    top: 15px;
    left: 9px;
    transform: translateY(6px) rotate(-45deg);
    width: 60%
  }

  .hamburger_openbtn.active span:nth-of-type(2) {
    opacity: 0
  }

  .hamburger_openbtn.active span:nth-of-type(3) {
    top: 27px;
    left: 9px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%
  }

  .hamburger_openbtn {
    position: fixed;
    z-index: 9999;
    top: 35px;
    top: 30px;
    right: 1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    background: #008080;
    border-radius: 5px;
  }

  header#header>a {
    display: none
  }

  nav {
    padding: 0;
    position: fixed; 
  }

  nav li.menu-item-has-children ul,
  nav li.menu-item-has-children ul ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    /*JSで制御するため一旦表示*/
    opacity: 1;
    /*JSで制御するため一旦表示*/
    display: none;
    /*JSのslidetoggleで表示させるため非表示に*/
    transition: none;
    /*JSで制御するためCSSのアニメーションを切る*/
  }

  nav ul li a {
    border-bottom: 1px solid #ccc;
    color: #fff;                        /* 帯にのせる第一階層の色:スマホ版は白 */
    padding: 20px 35px;
  }

  /*矢印の位置と向き*/
  nav ul li.menu-item-has-children::before {
    left: 20px;
  }

  nav ul ul li.menu-item-has-children::before {
    transform: rotate(135deg);
    left: 20px;
  }

  nav ul li.menu-item-has-children.active::before {
    transform: rotate(-45deg);
  }
    
    
    
    #contents {}
        #main {margin-top:92px;}    
    
    nav ul {
        background:#333;                    /* 帯全体の色:スマホ版は黒 */
        margin-top:92px;
        position: fixed;
    }
    /*2階層目を持つliの矢印の設定*/
    nav ul li.menu-item-has-children::before {
        top: 25px;                            /* 矢印の縦の位置 */
        border-top: 2px solid #ccc;
        border-right: 2px solid #ccc;         /* 矢印の色 */
    }

    /*ハンバーガーメニュー表示時のコンテンツの網掛け設定*/   
    #layer-panel {
        display: none;
        z-index: 99;
        background: #666;
        opacity: 0.5;
        width: 100%;
        height: 100%;
        position: fixed;
        top:0;
    }
    #layer-panel.on {
        display: block;
    }
    

}




