
nav ul ul {
  display: block;
}
nav ul li {
  position: relative;
  font-size: 0.938em;
}

/*ナビゲーションのリンク設定*/
nav ul li a {
  display: block;
  text-decoration: none;
  color: #999;
  padding: 10px 25px;
  transition: all .3s;
}
nav ul li a:hover {
  display: block;
  text-decoration: none;
  color: #FFF;
  background-color: #1e60ad;
  padding: 10px 25px;
  transition: all .3s;
}

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

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before {
  font-size: 10px;
  font-family: FontAwesome;
  content: "\f107";
  position: absolute;
  left: 12px;
  top: 11px;


}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before {
  font-size: 10px;
  font-family: FontAwesome;
  content: "\f105";
  position: absolute;
  left: 6px;
  top: 17px;

}

/*== 2・3階層目の共通設定 */

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

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

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

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

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
  background: #3577CA;
}

/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul {
  top: 0;
  left: 182px;
  background: #66ADF5;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active {
  background: #448ED3;
}



@media (max-width:768px) {

  a.top-button {
    scale: .7;
    right: 0;
  }

  ul#globalNav {
    display: none;
    width: 100%;
  }

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

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

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

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

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

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

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

  .openbtn1 {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 48px;
    height: 48px;
    background: #1e60ad;
    border-radius: 0 0 0 0;
  }

  header#header>a {
    display: none
  }

  nav {
    padding: 0;
  }

  nav li.has-child ul,
  nav li.has-child 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;
  }

  /*矢印の位置と向き*/

  nav ul li.has-child::before {
    left: 20px;
  }

  nav ul ul li.has-child::before {
    transform: rotate(175deg);
    left: 20px;
  }

  nav ul li.has-child.active::before {
    transform: rotate(-90deg);
  }

}