@charset "utf-8";


#container{
	/* opacity: 0; */
    position: relative;
    z-index: 1;
}

/*===========================================================*/
/*機能編  5-1-9スクロール途中でヘッダーが消え、上にスクロールすると復活*/
/*===========================================================*/

#header{
    /*fixedで上部固定*/
	position: fixed;
	width:100%;
    height: 80px;
    z-index: 99;
}

#header .container1400{
	display: flex;
	justify-content: space-between;
	align-items: center;
    height: 80px;
}

@media screen and (max-width:1200px) {
    #header .container1400{
        flex-direction: column;
        justify-content: flex-end;
        height: 90px;
    }

    #header{
        height: 90px;
    }
}

@media screen and (max-width:900px) {
    #header .container1400{
        flex-direction: row;
        justify-content: space-between;
    } 
}

@media screen and (max-width:767px) {
#header{
    height:50px;    
}

#header .container1400{
    height:50px;
}
    
}


/*===========================================================*/
/*機能編  5-1-21 クリックしたら円形背景が拡大（右下から）*/
/*===========================================================*/
/*========= ナビゲーションのためのCSS ===============*/
@media screen and (max-width:900px) {

/*アクティブになったエリア*/
#g-nav.panelactive{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
	top: 0;
	width:100%;
    height: 100vh;
}

/*丸の拡大*/
.circle-bg{
    position: fixed;
	z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0,0,0);
    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	right:-50px;
    bottom:-50px;
    transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;/*はじめは表示なし*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    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: 999;
    /* top:50%; */
    top: 100px;
    /* left:50%; */
    left: 0;
    /* transform: translate(-50%,0); */
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity:1;
}


/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li{
animation-name:gnaviAnime;
animation-duration:1s;
animation-delay:.2s;/*0.2 秒遅らせて出現*/
animation-fill-mode:forwards;
opacity:0;
}


/*リストのレイアウト設定*/
#g-nav li{
	text-align: center; 
	list-style: none;
    margin: 0 0 10px 0;
}

#g-nav li a{
	text-decoration: none;
	padding:10px;
	display: block;
	/* font-weight: bold; */
}

    
}

@media screen and (max-width:767px) {
    #g-nav ul {
        top: 80px;
    }

    #g-nav ul.nav05b{
        margin-bottom: 50px;
    }

    #g-nav li{
        text-align: center; 
        list-style: none;
        margin: 0;
    }
}

@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

/*===========================================================*/
/*機能編  5-2-1　3本線が×に*/
/*===========================================================*/


.openbtn{
    display: none;
}


@media screen and (max-width:900px) {

.openbtn{
    display: block;
	position:fixed;
	top:10px;
	right:20px;
	z-index: 9999;/*ボタンを最前面に*/
	cursor: pointer;
    width: 60px;
    height:60px;
    border-radius: 50%;
    border: 3px solid #fff;
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 15px;
    height: 3px;
    border-radius: 2px;
	background-color: #fff;
  	width: 45%;
  }

.openbtn span:nth-of-type(1) {
	top:16px;	
}

.openbtn span:nth-of-type(2) {
	top:26px;
}

.openbtn span:nth-of-type(3) {
	top:36px;
}

.openbtn.active span:nth-of-type(1) {
    top: 20px;
    left: 11px;
    transform: translateY(6px) rotate(-45deg);
    width: 60%;
}

.openbtn.active span:nth-of-type(2){
display: none;
}

.openbtn.active span:nth-of-type(3){
    top: 32px;
    left: 11px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%;
}
}

@media screen and (max-width:767px) {
    .openbtn{
        width:40px;
        height: 40px;
        top: 5px;
        right: 5px;
        border: 2px solid #fff;
    }
/*×に変化*/	
.openbtn span{
    left: 10px;
    height: 2px;
 }

.openbtn span:nth-of-type(1) {
	top:12px;	
}

.openbtn span:nth-of-type(2) {
	top:18px;
}

.openbtn span:nth-of-type(3) {
	top:24px;
}


.openbtn.active span:nth-of-type(1) {
    top: 11px;
    left: 7px;
}

.openbtn.active span:nth-of-type(3){
    top: 22px;
    left: 7px;
}
    
}


/*==================================================
機能編 　7-1-5	背景が流れる（中央から横全体）
===================================*/

/*== ボタン共通設定 */
.btn{
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
	overflow: hidden;
    /*ボタンの形状*/
	text-decoration: none;
	display: inline-block;
   	border-bottom: 4px solid #144b7d;
    padding: 10px 1em;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
	font-weight: bold;
	font-size: 1.5em;
}

.btn.bgcenterout{
   	border: 1px solid #fff;/* ボーダーの色と太さ */
    padding: 8px 40px;
}

/*ボタン内spanの形状*/
.btn span {
	position: relative;
	z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
	/* color:#33; */
}

.btn span::after{
	content: url(../img/btn_arrow.svg);
	padding-left: .5em;
}

.btn:hover span{
	color:#fff;
}

.btn.bgcenterout span{
	color:#fff;
}

.btn.bgcenterout:hover span{
	color:#144b7d;
}

.btn:hover span::after{
	content: url(../img/btn_arrow_white.svg);
	padding-left: .5em;
}

/*== 中央から横全体 */
.bgcenterx:before {
	content: '';
    /*絶対配置で位置を指定*/
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
    /*色や形状*/
	background: #144b7d;
	width: 100%;
	height: 100%;
    /*アニメーション*/
	transition: transform .3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
	transform: scale(0, 1);
	transform-origin: top;
}

/*hoverした際の形状*/
.bgcenterx:hover:before{
	transform:scale(1, 1);
}



/*== 中央から外 */
.bgcenterout:before {
	content: '';
    /*絶対配置で位置を指定*/
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
    /*色や形状*/
	background: #fff;
	width: 100%;
	height: 100%;
    /*アニメーション*/
	transition: transform .3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
	transform: scale(0, 0);
	transform-origin:center;
}

/*hoverした際の形状*/
.bgcenterout:hover:before{
	transform:scale(1, 1);
}

@media screen and (max-width:768px) {
    .btn{
        font-size: 1.1rem;
    }
}

a.nav-hover, ul.foot-nav-child li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

a.nav-hover::after, ul.foot-nav-child li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 20%;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 1px;
    background:#fff;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: left top;/*左上基点*/
}

ul.foot-nav-child li a::after{
    background: #000;
    bottom: 0;
    width: 100%;
    left: 0;
}

@media screen and (min-width:900px) {

/*現在地とhoverの設定*/
a.nav-hover:hover::after, ul.foot-nav-child a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}

}


/*==================================================
機能編 　7-1-33	外の線が伸びる
===================================*/

/*== 線が伸びる1 */

.btnlinestretches{
    /*線の基点とするためrelativeを指定*/
	position:relative;
    /*ボタンの形状*/
	color:#333;
	border:1px solid #333;
    padding:30px 0;
	display:inline-block;
    text-decoration: none;
    outline: none;
    /*アニメーションの指定*/
	transition:all 0.3s ease-in-out;
}

/*hoverした際の背景の形状*/
.btnlinestretches:hover{
	background:#333;
	color: #fff;
	border-color:transparent;
}

/*線の設定*/
.btnlinestretches::before,
.btnlinestretches::after {
	content:'';
    /*絶対配置で線の位置を決める*/   
	position:absolute;
	border:solid #333;
	width:10px;
	height:10px;
    /*アニメーションの指定*/
	transition:all 0.3s ease-in-out;
}

/*線の位置と形状*/
.btnlinestretches::before{
	top:-6px;
	left:-6px;
	border-width:1px 0 0 1px;
}

/*線の位置と形状*/
.btnlinestretches::after{
	bottom:-6px;
	right:-6px;
	border-width:0 1px 1px 0;
}

/*hoverした際の線の形状*/
.btnlinestretches:hover::before,
.btnlinestretches:hover::after{
    width:calc(100% + 11px);
	height:calc(100% + 11px);
	border-color:#666
}


/*==================================================
印象編 4 最低限おぼえておきたい動き
===================================*/

/* 4-2 パタッ（下へ） */

.flipDown{
animation-name: flipDownAnime;
animation-duration:1s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes flipDownAnime{
  from {
    transform: perspective(2500px) rotateX(100deg);
 	opacity: 0;
  }

  to {
    transform: perspective(2500px) rotateX(0);
	opacity: 1;
  }
}

/* 4-1 ふわっ（下から） */

.box{
	opacity: 0;
}

.fadeUp{
animation-name: fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
animation-timing-function:ease-in-out;
opacity:0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}


/* 4-1 ふわっ（左から）*/



.fadeLeft{
animation-name: fadeLeftAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
animation-timing-function:ease-in-out;
opacity:0;
}

@keyframes fadeLeftAnime{
  from {
    opacity: 0;
	transform: translateX(-100px);
  }

  to {
    opacity: 1;
	transform: translateX(0);
  }
}

/* 4-1 ふわっ（右から） */

.fadeRight{
animation-name: fadeRightAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
animation-timing-function:ease-in-out;
opacity:0;
}

@keyframes fadeRightAnime{
  from {
    opacity: 0;
	transform: translateX(100px);
  }

  to {
    opacity: 1;
	transform: translateX(0);
  }
}

/* 4-1 ふわっ（上から） */

.fadeDown{
animation-name: fadeDownAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
animation-timing-function:ease-in-out;
opacity:0;
}

@keyframes fadeDownAnime{
  from {
    opacity: 0;
	transform: translateY(-100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeDownTrigger,
.fadeUpTrigger,
.fadeLeftTrigger,
.fadeRightTrigger{
    opacity: 0;
}


.btnfootb{
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
	overflow: hidden;
    /*ボタンの形状*/
	text-decoration: none;
	display: inline-block;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
}

/*ボタン内spanの形状*/
.btnfootb span {
	position: relative;
	z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
	/* color:#333; */
}

.btnfootb:hover span{
	/* color:#fff; */
}

/*== 背景が流れる（左から右） */
.bgleft:before {
 	content: '';
    /*絶対配置で位置を指定*/
 	position: absolute;
 	top: 0;
 	left: 0;
 	z-index: 10;
    /*色や形状*/
 	background:rgba(255,255,255,0.3);/*背景色*/
 	width: 100%;
	height: 100%;
    /*アニメーション*/
 	transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
 	transform: scale(0, 1);
	transform-origin: right top;
}

/*hoverした際の形状*/
.bgleft:hover:before{
	transform-origin:left top;
	transform:scale(1, 1);
}




