@charset "utf-8";

/*===========================================================*/
/*機能編  　5-3-4 左から右に線が伸びる（上部）
/*===========================================================*/

.gnavi{
	display: flex;
	justify-content: center;
	list-style: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

.gnavi a{
	display: block;
	padding:10px 30px;
    color: rgb(255,255,255);
    text-decoration: none;
}

.nav01d li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

.nav01d li.current a,
.nav01d li a:hover{
	color: rgba(255,255,255,0.7);
}

.nav01d li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    top: 50%;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 1.5px;
    background:rgba(255,255,255,0.7);
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: center top;/*左上基点*/
}

/*現在地の形状の設定*/
.nav01d li.current a::after,
.nav01d li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}

/*===========================================================*/
/* 順番に現れる（CSS） 機能停止中
/*===========================================================

.nav01d li:nth-of-type(1){
    animation-delay: .2s;
}

.nav01d li:nth-of-type(2){
    animation-delay: .3s;
}

.nav01d li:nth-of-type(3){
    animation-delay: .4s;
}

.nav01d li:nth-of-type(4){
    animation-delay: .5s;
}
*/

/*===========================================================*/
/*機能編  　5-1-20 クリックしたら円形背景が拡大（右上から）
/*===========================================================*/

/*========= ナビゲーションのためのCSS ===============*/
@media screen and (max-width:768px) {

/*アクティブになったエリア*/
#g-nav.panelactive{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
	top: 0;
    right: inherit;
	width:100%;
    height: 100vh;
}

/*丸の拡大*/
.circle-bg{
    position: fixed;
	z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgb(80,80,80);
    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	left:-10px;
    bottom:-5px;
    transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}


/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;/*はじめは表示なし*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 2000;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
     display: block; /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
	opacity: 0;/*はじめは透過0*/
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 2000;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity:1;
    flex-wrap: wrap;
}

/*リストのレイアウト設定*/
#g-nav.panelactive li{
	text-align: center;
    width: 100%;
}

#g-nav.panelactive li a{
    padding:10px 0;
	display: block;
}

}

/*==================================================
機能編 　5-2-6 3本線が回転して×に
===================================*/

.openbtn{
    display: none;
}

@media screen and (max-width:768px) {

/*ボタン外側*/
.openbtn{
	position:fixed;
    display: block;
	bottom:20px;
	left:7px;
	z-index: 9999;/*ボタンを最前面に*/
	cursor: pointer;
    width: 50px;
    height:50px;
  /*background: #d87514;*/
	border-radius: 5px;
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: white;
  }


.openbtn span:nth-of-type(1) {
	top:15px;
  	width: 45%;
}

.openbtn span:nth-of-type(2) {
	top:23px;
  	width: 35%;
}

.openbtn span:nth-of-type(3) {
	top:31px;
  	width: 20%;
}

/*activeクラスが付与されると線が回転して×になる*/

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
}

}



/*===========================================================*/
/*機能編  9-6-3 リンクをクリックすると、背景が暗くなり動画や画像やテキストを表示
/*===========================================================*/

/*========= モーダル表示のためのCSS ===============*/

/*全て共通：hideエリアをはじめは非表示*/
.hide-area{
	display: none;
}

/*全て共通：モーダルのボタンの色を変更したい場合*/
.modaal-close:after,
.modaal-close:before{
	background:#ccc;
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#666;
}

/*余白を少なくする*/
.modaal-content-container{
 padding:10px;
}




/*===========================================================*/
/* 印象編 4 最低限おぼえておきたい動き
/*===========================================================*/

/* 4-1　ふわっ（上から） */

.fadeDown{
animation-name: fadeDownAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeDownAnime{
  from {
    opacity: 0;
	transform: translateY(-100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}

.fadeDownTrigger{
	  z-index: 10000;
    opacity: 1;
		margin-top: 14px;
		margin-left: 14px;
}


/*===========================================================*/
/*印象編　8-5 テキストが流れるように出現（下から上）
/*===========================================================*/

.slide-in {
	overflow: hidden;
    display: inline-block;
}

.slide-in_inner {
	display: inline-block;

}

/*上下のアニメーション*/

.upAnime,
.downAnime{
    opacity: 0;/*事前に透過0にして消しておく*/
}

.slideAnimeDownUp {
	animation-name: slideTextY100;
	animation-duration:1s;
	animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes slideTextY100 {
  from {
	transform: translateY(100%);/*要素を上の枠外に移動*/
    opacity: 0;
  }

  to {
	transform: translateY(0);/*要素を元の位置に移動*/
    opacity: 1;
  }
}

.slideAnimeUpDown {
	animation-name: slideTextY-100;
	animation-duration:1s;
	animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes slideTextY-100 {
  from {
	transform: translateY(-100%);/*要素を下の枠外に移動*/
    opacity: 0;
  }

  to {
	transform: translateY(0);/*要素を元の位置に移動*/
    opacity: 1;
  }
}
