@charset "utf-8";


/*===========================================================*/
/*機能編  5-1-1 ドロップダウンメニュー（上） */
/*===========================================================*/

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

/*ナビゲーションを横並びに*/
nav ul{
	list-style: none;
	display: flex;
  flex-wrap: nowrap;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
	display: block;
}

#g-nav-list ul{
	margin: 0!important;
	padding: 0!important;
}
.nochild:active{pointer-events: none;}

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

/*ナビゲーションのリンク設定*/
nav ul li a{
	display: block;
	text-decoration: none;
	padding:25px 10px;
	transition:all .3s;
	border-right: 1px solid #fff;
	font-weight: 600;
	font-size: 15px!important;
	background-color: #fff;
	color:#4b4b4b ;	
	font-family: 'Noto Serif JP', serif!important;
	height: 100%;
}

nav ul li li a{
	padding:10px 5px!important;
}
nav ul li a:hover{
/*	background:#E2E4E6;*/
	color:#1e3c72!important;	
}
@media screen and (max-width:1400px) {
nav ul li a{
	padding:25px 5px;
}
}
@media screen and (max-width:1300px) {
nav ul li a:hover{
	background:none;
	color:#a29281;	
}
}
nav ul li a:focus, nav ul li a:hover {
  color: #fff;
}

/*==矢印の設定*/

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


@media screen and (max-width:1300px) {
nav ul li a{
	font-size: 14px!important;
}	
	
nav ul li.has-child::before{
	border-top: 2px solid #1e3c72;
    border-right:2px solid #1e3c72;
}
}
/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
	position: absolute;
	left:0;
	top:72px;
	z-index: 4;
	visibility: hidden;
	opacity: 0;
	transition: all .3s;
	padding: 0;
	width: 100%;
}

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

@media screen and (min-width:1400px){
nav ul li.has-child::before{
	top:34px;
}
nav li.has-child ul{
	top:75px;
}
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a{
	color: #4b4b4b!important;
	padding:10px 5px;
	border-top:solid 1px #fff;
	background-color: rgba(255,255,255,0.95);
	border-right: none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
	background-color:rgba(232,242,250,0.95);
	color:#4b4b4b!important;	
}

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

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

.nochild:active{pointer-events: inherit;
	  visibility: visible;
  opacity: 1;
}

nav{padding: 0;}

nav ul{display: block;}
	
nav ul li a{
	border-bottom:1px solid #887c6e;
	border-right:none;
	background-color: rgba(255,255,255,0);
}
	
nav li.has-child ul li a{
	color: #4b4b4b!important;
	padding:10px 5px;
	border-top:solid 1px #fff;
	background-color: rgba(198,224,245,0.55);
	border-right: none;
}


nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
	background-color:rgba(206,224,232,.95);
	color:#4b4b4b!important;	
}
	
nav ul li.has-child::before{
	top:20px;
}
/*矢印の位置と向き*/

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);
}

}

/*===========================================================*/
/*機能編  5-1-6 スクロール途中から上部固定 */
/*===========================================================*/

#header{
	position: relative;
	width:100%;/*横幅指定*/
    z-index: 9999!important;/*最前面へ*/
	/*以下はレイアウトのためのCSS*/
	justify-content: space-between;
	align-items: center;
	text-align: center;
	padding:0 15px 0 0;
    background: rgba(255,255,255,1.00);
}

#header .row{
	margin: auto!important;
}


/*==ふわっと出現させるためのCSS*/

/*　上に上がる動き　*/

#header.UpMove{
	position: fixed;
	width:100%;
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
	transform: translateY(0);
  }
  to {
    opacity: 0;
	transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

#header.DownMove{
	position: fixed;
	width:100%;
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(-100px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
}

@media screen and (max-width:991px) {
#header,
#header.UpMove,
#header.DownMove{
    animation:none;
	height: auto;
    padding: 0;
    display: block;
}
    
}


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

@media screen and (max-width:1300px) {
#g-nav {
    /* position:fixed;にし、z-indexの数値を大きくして前面へ */
    position: fixed;
    z-index: 999;
    
    /* --- 変更箇所: 右側から60%の幅で出現させる --- */
    top: 0;
    right: -60%;     /* メニューの幅分だけ右に隠す */
    width: 60%;      /* 幅を指定 */
    /* ----------------------------------------- */
    
    height: 100vh;
    background: rgba(255,255,255,0.95);
    transition: all 0.6s;
}

#g-nav-list ul { border-right: none;}

/* --- 変更箇所: アクティブ時に右端を0にする --- */
#g-nav.panelactive {
    right: 0;
}
/* ------------------------------------------- */

/* ナビゲーションの縦スクロール */
#g-nav.panelactive #g-nav-list {
    position: fixed;
    z-index: 999; 
    width: 70%;      /* 親の幅に合わせる */
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* ナビゲーション内のリスト調整 */
#g-nav ul {
    width: 80%;      /* 70%のメニュー内でのリストの横幅 */
    margin: 100px auto 0 auto !important;
    padding: 0;
}

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

/* プルダウンナビ */
#g-nav ul li.has-child ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    opacity: 1;
    display: none;
    transition: none;
    transform: none;
    margin: 0 !important;
}

#g-nav li {
    list-style: none;
    text-align: center; 
}

#g-nav li a {
    text-decoration: none;
    padding: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: #4b4b4b;
}
}

/* 768px以下の調整 */
@media screen and (max-width:768px) {
#g-nav {
    width: 70%;      /* スマホサイズでも70%を維持 */
    right: -70%;
}
#g-nav.panelactive #g-nav-list {
    width: 70%;
}
#g-nav ul {
    width: 90%;      /* リストを少し広めに */
    height: auto;
    margin: 80px auto 120px auto !important;
}
}


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

.g-nav-openbtn{
    display: none;
}
 
@media screen and (max-width:1300px) {
.g-nav-openbtn{
    display: block;
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:15px;
	right: 5px;
	cursor: pointer;
    width: 40px;
    height:40px;
	background-color: #1e3c72;
}

/*ボタン内側*/

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

.g-nav-openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 11px;
    height: 1px;
	background: #fff;
  	width: 45%;
    z-index: 9999;/*ボタンを最前面に*/
  }


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

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

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

/*activeクラスが付与されると
線と周りのエリアが回転して×になる*/
.g-nav-openbtn.active span{
    display: inline-block;
    z-index: 9999;/*ボタンを最前面に*/
  }
.g-nav-openbtn.active span:nth-of-type(1) {
    top: 12px;
    left: 14px;
    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: 24px;
    left: 14px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
}
}
