@charset "utf-8";

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

/*ナビゲーションを横並びに*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
}
nav ul ul{display: block;}
nav ul li{position: relative;}
nav ul li a{
	display: block;
	text-decoration: none;
	padding:20px 35px 20px 20px;
	transition:all .3s;
	word-break:keep-all;
}
nav ul li li a{padding:10px 35px;}


@media all and (min-width:961px) {
	#g-nav-list{
		display: flex;
		justify-content: center;
		align-items: center;
	}

	#g-nav li > a{
white-space: nowrap !important;
}
}

/*ナビゲーションのフォント指定*/
.nav_top,
.nav_foot{
	font-family: a-otf-ud-shin-go-pr6n, sans-serif;
	font-style: normal;
	font-weight: 400;
	line-height: 1.8em;
}
.nav_top .has-child:nth-of-type(1) a{color:#2d9c50;;}
.nav_top .has-child:nth-of-type(2) a{color:#004c87;}
.nav_top .has-child:nth-of-type(3) a{color:#ec6a02;}
.nav_top .has-child:nth-of-type(5) a{color:#dc007a;}
.nav_top .no-child a{color:#04a5d8;}
.nav_top ul li a::before{
  content: "+ ";
}

@media all and (min-width:961px) {
.nav_top ul li a{font-size: 80%;}
}

/*==矢印の設定*/
/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::after{
	content:'';
	position: absolute;
	right:0;
	top:30px;
	width:6px;
	height:6px;
	border-top: 2px solid rgba(0,80,255,1);
  border-right:2px solid rgba(0,80,255,1);
  transform: rotate(135deg);
}

nav ul li.no-child::after{
	content:'';
	position: absolute;
	right:20px;
	top:30px;
	width:6px;
	height:6px;
	border-top: 2px solid rgba(0,80,255,1);
  border-right:2px solid rgba(0,80,255,1);
  transform: rotate(45deg);
}


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

/*hoverしたら表示*/
nav li.no-child:hover > ul,
nav li.no-child ul li:hover > ul,
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{
	border-bottom:solid 1px rgba(0,80,255,0.1);
}

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:rgba(0,80,255,0.1);
}

/*ランゲージ　ナビゲーション*/
.language li:nth-child(2) a:hover,
.language li a{
display: block;
background: rgba(0,80,255,1);
color: #fff;
font-size: 80%;
margin:.2em 0;
padding:.2em .5em;
text-align: center;
border-radius: 4px;
transition:0.5s ;
}

.language li:nth-child(2) a,
.language li a:hover{
background: #a0a0a0;
transition:0.5s ;
}


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

@media all and (max-width:960px){
nav{
		padding: 0;
}

nav ul{
		display: block;
}

nav ul li a{
	border-bottom:1px solid rgba(0,80,255,0.1);
}

/*矢印の位置と向き*/
nav ul li.has-child::after{
	right:20px;
}

nav ul ul li.has-child::after{
  transform: rotate(135deg);
	right:20px;
}

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



/*ランゲージ　ナビゲーション*/
.language{
position:absolute;
z-index: 9999;/*ボタンを最前面に*/
top:5px;
right:50px;
}
}


/*==================================================
機能編 　5-1-11 クリックしたらナビが上から下に出現
===================================*/

@media all and (max-width:960px) {
#g-nav{
/*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  z-index: 999;
/*ナビのスタート位置と形状*/
	top:-120%;
  left:0;
	width:100%;
  height: 100vh;/*ナビの高さ*/
	background:rgba(255,255,255,1);
/*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
  top: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
/*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;/*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    width: 90%;
    margin:100px auto 0 auto;
}

#g-nav ul ul{
    width: 100%;
    margin: 0;
}

/*プルダウンナビのCSS*/
#g-nav ul li.has-child ul{
  position: relative;
	left:0;
	top:0;
	width:100%;
	visibility:visible;/*JSで制御するため一旦表示*/
	opacity:1;/*JSで制御するため一旦表示*/
	display: none;/*JSのslidetoggleで表示させるため非表示に*/
	transition:none;/*JSで制御するためCSSのアニメーションを切る*/
  transform: none;
}

/*リストのレイアウト設定*/
#g-nav li{
	list-style: none;
}
#g-nav li a{
	text-decoration: none;
	display: block;
	letter-spacing: 0.1em;
	font-weight: bold;
	word-break:keep-all;
}
}

/*==================================================
　機能編 5-2-7 3本線が奥行きを持って回転して×に
===================================*/

.g-nav-openbtn{
	display: none;
}

@media all and (max-width:960px) {
.g-nav-openbtn{
  display: block;
	position:absolute;
  z-index: 9999;/*ボタンを最前面に*/
	top:0;
	right:0;
	cursor: pointer;
  width: 50px;
  height:50px;
}

.g-nav-openbtn.active{
	position:fixed !important;
}

/*ボタン内側*/

.g-nav-openbtn .openbtn-area{
    transition: all .4s;
}

.g-nav-openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
		background:rgba(0,80,255,1);
  	width: 45%;
  }


.g-nav-openbtn span:nth-of-type(1) {
	top:15px;
}

.g-nav-openbtn span:nth-of-type(2) {
	top:23px;
}

.g-nav-openbtn span:nth-of-type(3) {
	top:31px;
}

/*activeクラスが付与されると
線と周りのエリアが回転して×になる*/

.g-nav-openbtn.active .openbtn-area{
	transform: rotateY(-360deg);
}

.g-nav-openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
}

.g-nav-openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.g-nav-openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
}
}

/*==================================================
　機能編 5-3-3 左から右に線が伸びる（下部）
===================================*/
.nav_top li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

.nav_top li.current a{
	color:#eee;
}

.nav_top li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 16px;
    left: 25%;
    /*線の形状*/
    width: 50%;
    height: 1px;
    background:#eee;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: left top;/*左上基点*/
}

.nav_top li li a::after {
    display: none;
}

/*現在地とhoverの設定*/
.nav_top li.current a::after,
.nav_top li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}
@media all and (max-width:960px) {
.nav_top li a::after {
    display: none;
}
}


/*=======　閉じるための×ボタン　========*/
.close-btn{
	position: absolute;
	top:10px;
	right:10px;
	z-index: 2;
	cursor: pointer;
    width: 60px;
    height:60px;
}

.close-btn span{
    display: inline-block;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: #fff;
 }

/*×マーク*/
.close-btn span:nth-of-type(1) {
    top: 21px;
    left: 16px;
    transform: translateY(6px) rotate(-135deg);
    width: 50%;
}

.close-btn span:nth-of-type(2){
    top: 32px;
    left: 16px;
    transform: translateY(-6px) rotate(135deg);
    width: 50%;
}

/*=======　sns　icon　========*/
ul.sns_icon{
	display: flex;
	justify-content: center;
	align-items: center;
}

.instagram_icon,
.twitter_icon{
	background-color: rgba(0,80,255,1);
	border-radius:50%;
}
.instagram_icon a{	display: block;
	background: url(../img/sns_instagram.png) center center no-repeat;
	background-size: contain;
}
.twitter_icon a{	display: block;
	background: url(../img/sns_x.png) center center no-repeat;
	background-size: contain;
}

.sns_icon{
margin-left:.5em;
}
.sns_icon li{
margin-left:1em;
}
.instagram_icon,
.twitter_icon{
width: 50px;
height: 50px;
}
.instagram_icon a,
.twitter_icon a{
width: 30px !important;
height: 30px !important;
padding:0 !important;
margin:10px !important;
}


@media all and (min-width:961px) {
.sns_icon li:hover{opacity: 0.8;}
}
@media all and (max-width:960px) {
	ul.sns_icon{margin-top:2em !important;}
}



/*=======　footer nav　========*/
#footer{
	background:rgba(0,80,255,1);
}
#footer a{
	color:#fff;
}
#footer ul.nav_foot ul li a::before{
  content: "+ ";
	color: #fff;
}

@media all and (min-width:961px) {
#footer ul.nav_foot{
	display: flex;
	justify-content:space-around;
	margin:auto;
	padding:6em 0;
	width: 980px;
}
#footer ul.nav_foot > li{
padding: 0 .5em;
min-width: 10%;
}

#footer ul li li a{font-size: 80%;}
}

#footer ul a:hover{opacity: 0.8;}


@media all and (max-width:960px) {
ul.nav_foot ul{display: block;}
ul.nav_foot ul{display: none;}


li.has-child:hover > ul,
li.has-child ul li:hover > ul,
li.has-child:active > ul,
li.has-child ul li:active > ul{
	  visibility: visible;
	  opacity: 1;
}

ul.nav_foot li{position: relative;}
ul.nav_foot{
		display: block;
		width: 90%;
    margin: 0 auto;
		padding:3em 0;
}

ul.nav_foot li.has-child::after{
	content:'';
	position: absolute;
	right:0;
	top:30px;
	width:6px;
	height:6px;
	border-top: 2px solid rgba(255,255,255,1);
  border-right:2px solid rgba(255,255,255,1);
  transform: rotate(135deg);
}
ul.nav_foot li.no-child::after{
	content:'';
	position: absolute;
	right:20px;
	top:30px;
	width:6px;
	height:6px;
	border-top: 2px solid rgba(255,255,255,1);
  border-right:2px solid rgba(255,255,255,1);
  transform: rotate(45deg);
}


ul.nav_foot li a{
		border-bottom:1px solid rgba(255,255,255,1);
		padding: 20px;
}


ul.nav_foot li{
	list-style: none;
}
ul.nav_foot li a{
	text-decoration: none;
	display: block;
	letter-spacing: 0.1em;
	font-weight: bold;
}

/*矢印の位置と向き*/
ul.nav_foot li.has-child::after{
	right:20px;
}
ul.nav_foot ul li.has-child::after{
  transform: rotate(135deg);
	right:20px;
}
ul.nav_foot li.has-child.active::after{
  transform: rotate(-45deg);
}
}
