@charset "utf-8";

#nav-bar {
	position: fixed;
    top: 0;
    z-index: 1000;
	background-color: #fff;
	width: 100%;
	padding: 10px 30px 0 30px;
	box-shadow: 0px 15px 8px -8px rgba(0,0,0,0.03);
	transition: .5s;
}

#nav-bar.hide{
    transform: translateY(-100%);
}

#nav-bar #nav-logo {
	float: left;
}

#nav-bar small {
	margin-top: 10px;
	letter-spacing: 0;
}


#nav-bar #logo-tel table tr th {
	padding: 0 20px 0 0;
}

#nav-bar #logo-tel table p {
	font-size: 10px;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	line-height: 1;
	letter-spacing: 1px;
	color: #1c4370;
}

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
nav{
  background:#fff;
  color:#fff;
  text-align: center;
	font-size: 14px;
	letter-spacing: 1px;
}
/*ナビゲーションを横並びに*/
nav ul{
  list-style: none;
  display: flex;
  justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
  display: block;
}

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

/*ナビゲーションのリンク設定*/
nav ul li a{
  display: block;
  text-decoration: none;
  color: #1c4370;
  padding:20px 35px;
  transition:all .3s;
}

nav ul li li a{
  padding:10px 35px;
  padding: 10px 0px;
}

nav ul li a:hover{
  color: #4e7cb1; 
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
  content:'';
  position: absolute;
  left:6px;
  top:17px;
  width:6px;
  height:6px;
    border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(45deg);
}

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

/*下の階層を持っているulの指定*/
nav li.has-child ul{
    /*絶対配置で位置を指定*/
  position: absolute;
  left:0;
  top:62px;
  z-index: 4;
    /*形状を指定*/
  background:#1c4370;
  width:180px;
    /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
    /*アニメーション設定*/
  transition: all .3s;
}

/*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:#416c9d;
}

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


/*==768px以下の形状*/

@media screen and (max-width:768px){
  nav{
    padding: 0;
  }
  
  nav ul{
    display: block;
  }
  
  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;
}

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

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

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

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

}


/*========= レイアウトのためのCSS ===============*/

section{
  padding:30px;
}

section:nth-child(2n){
  background:#f3f3f3; 
}


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

/*------------------------------

  ここから下がハンバーガーメニュー
  に関するCSS

------------------------------*/
  
/* チェックボックスは非表示に */
.drawer-hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer-open {
  display: flex;
  height: 30px;
  width: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10000;/* 重なり順を一番上に */
  cursor: pointer;
	float: right;
}

/* ハンバーガーメニューのアイコン */
.drawer-open span,
.drawer-open span:before,
.drawer-open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

/* 三本線のうち一番上の棒の位置調整 */
.drawer-open span:before {
  bottom: 8px;
}

/* 三本線のうち一番下の棒の位置調整 */
.drawer-open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer-check:checked ~ .drawer-open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer-check:checked ~ .drawer-open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer-check:checked ~ .drawer-open span::after {
  top: 0;
  transform: rotate(-45deg);
}
  
/* メニューのデザイン*/
.drawer-content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 50px;
  left: 100%;/* メニューを画面の外に飛ばす */
  z-index: 1000;
  background:rgba(255,255,255,0.96);
  transition: .5s;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer-check:checked ~ .drawer-content {
  left: 0;/* メニューを画面に入れる */
}
	
.header ul {
	margin: 0 0 0 -20px;
}
	
.header ul li.btn-app {
	padding-top: 20px;
}

}

/*追加*/

@media screen and (max-width:768px){
	
#nav-bar {
padding: 10px 30px 10px 30px;
	}
	
#nav-bar #nav-mb-logo img {
	width: 130px;
	margin: 3px 0;
	float: left;
}
	
	#nav ul {
		overflow: auto;
  -webkit-overflow-scrolling: touch;
		height:80%;
	}
	
	#nav ul table p {
		font-size: 10px;
		font-weight: normal;
		font-family: 'NotoSerifJP-Light';
		color: #1c4370;
		margin: 0 0 0 0;
		padding: 0 0 0 0;
		letter-spacing: 0;
		line-height: 1;
	}
	
#nav ul table img {
	height: 16px;
	}
	
}

@media print, screen and (min-width: 768px) {
	
#nav-bar #logo-tel table {
	float: right;
	margin-top: 14px;
}
	
nav ul{
	justify-content: flex-start;
	padding-left: 0;
}
	
nav ul ul{
	margin-top: -16px;
}
	
nav ul ul ul{
	margin-top: 0;
}
	
nav ul li a{
  padding:3px 50px 8px 0;
  transition:all .3s;
}
	
#nav {
	clear: both;
}
	
}

@media screen and (max-width:1660px){
	
#nav-bar .inner {
  width: 100%;
}
	
}

@media print, screen and (min-width: 1660px) {
	
#nav-bar .inner {
  max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
}
	
}

@media (min-width:760px) and (max-width:900px) {
	
nav ul li a{
  padding:3px 30px 8px 0;
}
	
}
