/*--------------------------------------------------------------
  nav
--------------------------------------------------------------*/
#header-nav {
  /*グローバルナビの設定*/
  /*margin-bottom: 10px;*/
  background: url('../img/pattern.png') repeat;
  border-top: 3px solid #edea55;
  -webkit-box-shadow: 0 1px 1px 1px #f3f3f3;
  -moz-box-shadow: 0 1px 1px 1px #f3f3f3;
  box-shadow: 0 1px 1px 1px #f3f3f3;
}

.navbar-header {
  /*スマホ時のtoggleの枠*/
  padding: 0 10px;
}
#header-nav .navbar-toggle {
  /*スマホ時のtoggleの設定*/
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 5px;
	color: #fff;
	background: #999;
	line-height: 1.5;
}
.nav a {
  /*グローバルナビのリンクの設定*/
	text-decoration : none ;
  position: relative;
  height: 70px;
  color: #347596;
}

.nav li {
  /*グローバルナビのリストの設定*/
  font-size: 1.6rem;
	margin : 0 ;
  height: 70px;
  line-height: 1.3;
	position: relative ;
  z-index: 20;
  border-left: 1px solid #eaeaea;
}

.nav li:last-child {
  /*グローバルナビのリストの設定*/
  border-left: 1px solid #eaeaea;
  border-right: 1px solid #eaeaea;
}

.nav > li:first-child > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 26px 5px 10px 50px;
}

.nav li:first-child ::before{
  content: ' ';
  background: url('../img/home-icon.png');
  width: 41px ;
  height: 38px ;
  position: absolute;
  top: 15px ;
  left: 10px ;
}

.nav > li:nth-child(2) > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 26px 10px 10px 55px;
}

.nav li:nth-child(2) ::before{
  content: ' ';
  background: url('../img/subvisu-greeting.png');
  width: 39px ;
  height: 37px ;
  position: absolute;
  top: 15px ;
  left: 18px ;
}

.nav > li:nth-child(3) > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 26px 10px 10px 45px;
}

.nav li:nth-child(3) ::before{
  content: ' ';
  background: url('../img/subvisu-medical-info.png');
  width: 30px ;
  height: 39px ;
  position: absolute;
  top: 15px ;
  left: 15px ;
}

.nav > li:nth-child(4) > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 16px 5px 10px 45px;
}

.nav li:nth-child(4) ::before{
  content: ' ';
  background: url('../img/subvisu-clinic-info.png');
  width: 34px ;
  height: 38px ;
  position: absolute;
  top: 15px ;
  left: 12px ;
}

.nav > li:nth-child(5) > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 26px 10px 10px 52px;
}

.nav li:nth-child(5) ::before{
  content: ' ';
  background: url('../img/subvisu-access.png');
  width: 36px ;
  height: 35px ;
  position: absolute;
  top: 15px ;
  left: 23px ;
}

.nav > li:last-child > a {
  /*グローバルナビの画像アイコン使用の設定*/
  position: relative;
  padding: 26px 3px 10px 52px;
}

.nav li:last-child ::before{
  content: ' ';
  background: url('../img/subvisu-notice.png');
  width: 41px ;
  height: 31px ;
  position: absolute;
  top: 20px ;
  left: 24px ;
}

/*recruitment*/
/*.nav > li:last-child > a {*/
  /*グローバルナビの画像アイコン使用の設定*/
  /*position: relative;
  padding: 26px 3px 10px 45px;
}*/

/*.nav li:last-child ::before{
  content: ' ';
  background: url('../img/subvisu-recruitment.png');
  width: 43px ;
  height: 53px ;
  position: absolute;
  top: 10px ;
  left: 7px ;
}*/



/*.nav > li:last-child > a {
  /*グローバルナビの画像アイコン使用の設定*/
  /*position: relative;
  padding: 26px 10px 10px 58px;
}*/

/*.nav li:last-child ::before{
  content: ' ';
  background: url('../img/subvisu-recruitment.png');
  width: 43px ;
  height: 53px ;
  position: absolute;
  top: 10px ;
  left: 18px ;
}*/

.nav li ul,
.nav li ul li {
	width: 100%;
	list-style: none;
}
.sub-menu {
  /*グローバルナビの入れ子ナビの設定*/
	position : absolute ;
	padding : 0 ;
	margin : 0 ;
	top: 0;
	left: 0;
	box-sizing: border-box;
	z-index: 0;
  opacity: 0;
}
.nav li .sub-menu li a {
  /*入れ子ナビのリンクの設定*/
	display: block;
	height: 50px;
	line-height: 50px;
  background: #fdfdfd;
}
.nav li .sub-menu li a:hover {
  /*入れ子ナビのホバー時の設定*/
  background: #dfdfdf;
}
.nav li:hover .sub-menu {
  /*入れ子ナビの表示の設定*/
  top: 50px;
  transition: 0.3s all;
  opacity: 1;
}
.nav li .sub-menu li:last-child a {
  /*入れ子ナビの一番下の設定*/
	border-bottom-right-radius: 5px ;
	border-bottom-left-radius: 5px ;
}
.nav li a:hover,
.current-menu-item a,
.current-menu-parent a,
.current-menu-ancestor a,
.current_page_ancestor a {
  /*現在のページの設定*/
	width: 100%;
	display: block;
  background: #edea55;
}

.nav > li > a:hover,
.nav > li > a:focus {
  /*ホバー時の設定*/
	background: #edea55;
}

@media screen and (min-width : 768px) {
	.nav {
    /*768以上のグローバルナビの設定*/
		max-width: 960px;
		margin: 0 auto;
	}
	.nav li {
		text-align: center;
	}
	.nav > li {
    /*グローバルナビのリストの設定　６枠の設定　減らす場合は幅の調整が必要*/
		width: 16.6666667%;
		float: left;
	}
	.nav > li > a {
    /*グローバルナビのリンクの設定*/
		/*padding: 10px 0;*/
	}
}
@media screen and (max-width : 768px) {
  /*768px以下のグローバルナビの設定*/
	.sub-menu {
    /*入れ子ナビの表示の設定*/
    position: relative;
    top: 0;
    opacity: 1;
	}
  .sub-menu li {
    /*入れ子ナビのリストの設定*/
    padding-left: 20px;
  }
  .sub-menu li a {
    /*入れ子ナビのリストのリンクの設定*/
    padding-left: 20px;
  }
  .nav li:hover .sub-menu {
    /*入れ子ナビの表示の設定*/
    top: 0;
    transition: 0.3s all;
    opacity: 1;
  }
	#header-nav.fixed {
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 9999;
	}
  #header-nav .navbar-toggle {
    /*スマホ時のtoggleの設定*/
    border-radius: 0;
		background: #327495;
		line-height: 1.5;
  }
  .navbar-header {
    /*スマホ時のtoggleの枠*/
    padding: 0;
  }
  .navbar-toggle{
    padding: 15px 10px;
  }
  .navbar-toggle span{
    font-size: 1.8rem;
    font-weight: bold;
  }
  .fa-bars {
    margin-left: 5px;
  }
  .nav li {
    /*グローバルナビのリストの設定*/
    border-left: none;
    border-bottom: 1px dashed #eaeaea;
    font-size: 2.0rem;
    font-weight: bold;
  }
  .nav li:last-child {
    /*グローバルナビのリストの設定*/
    border-left: none;
    border-right: none;
  }
  .nav > li:first-child > a,
  .nav > li:nth-child(2) > a,
  .nav > li:nth-child(3) > a,
  .nav > li:nth-child(4) > a,
  .nav > li:nth-child(5) > a,
  .nav > li:last-child > a {
    /*グローバルナビの画像アイコン使用の設定*/
    position: inherit;
    padding: 20px 0;
    text-align: center;
    line-height: 1.5;
  }
  .nav li:first-child ::before,
  .nav li:nth-child(2) ::before,
  .nav li:nth-child(3) ::before,
  .nav li:nth-child(4) ::before,
  .nav li:nth-child(5) ::before,
  .nav li:last-child ::before {
    content: ' ';
    background: none;
    width: 0;
    height: 0;
    position: inherit;
  }
  .navbar-collapse{
    padding-left: 0;
    padding-right: 0;
  }
}
