@charset "utf-8";

/*==================================================
機能編 4-2-9　背景色が四角に拡大（四隅へ）
===================================*/

/*========= ローディング画面のためのCSS ===============*/
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #2A397E;
	z-index: 9999999;
	text-align:center;
	color:#fff;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#splash-logo img,
#splash-logo canvas{
	width:50px;
}

/*画面遷移アニメーション*/

.splashbg{
	position: fixed;
	top: 0;
	right:0;
	bottom:0;
	left: 0;
	border-width: 0px;/*開始はボーダーの太さは0*/
	border-style:solid;
    border-color: #2A397E;/*拡大する四角の色*/
	animation-duration:.5s;
	animation-fill-mode:forwards;
}

@keyframes backBoxAnime{
	99.9% {/*アニメーション終了ぎりぎりまで*/
        z-index: 2;/*最前面に*/
		border-width: 0px;/*開始はボーダーの太さは0*/
	}
    100%{
       z-index: -1; /*最背面に*/
        border-width: 0px;/*終了はボーダーの太さは0*/
    }
}

/*画面遷移の後現れるコンテンツ設定*/
#container{
    position: relative;
	opacity: 0;/*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay:0.2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}
/* add */
/* ローディングがないページは、最初からコンテンツを100%表示する */
body.no-splash #container {
	opacity: 1;
	animation: none; /* アニメーションを無効化 */
}
/* bodyタグに「appear」クラスを直接追加する方法だと、ふわっと表示が残るため↑にした */
/* <body class="appear"> */


/*==================================================
機能編 5-1-16　クリックしたら円形背景が拡大（上から）
===================================*/

/*アクティブになったエリア*/
#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: #EDF6FD;
    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	top:-50px;
    left:calc(50% - 50px);/*50%から円の半径を引いた値*/
    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; /*クラスが付与されたら出現*/
}

/*ナビゲーション リストのcssはlayout.css*/
#g-nav ul {
	opacity: 0;/*はじめは透過0*/
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

@media screen and (max-width:580px) {
	#g-nav ul { top:40%;  }
}
/*背景が出現後にナビゲーションを表示*/
#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;
}
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

/*リストのレイアウト設定*/
#g-nav li{
	text-align: center; 
	list-style: none;
}

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

/*==================================================
機能編　5-2-9 3本線がジャンプして×に
===================================*/
/*ボタン外側*/
.openbtn{
	position:fixed;
    top:20px;
	right: 20px;    
    z-index: 9999;/*ボタンを最前面に*/
	background:#27347D;
	cursor: pointer;
    width: 50px;
    height:50px;
	border-radius: 10px;
	overflow: hidden;/*ジャンプしてはみ出た要素を消す*/
}
/*ボタン内側*/

.openbtn .openbtn-area{
    transition: all .4s;/*アニメーションの設定*/
}

.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: #fff;
  	width: 45%;
  }


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

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

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


/*activeクラスが付与されると .openbtn-areaが360度回転し、
その中の線のtopの位置や形状が変化して×に*/

.openbtn.active .openbtn-area{
	transform: rotateX(360deg);
}

.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%;
}

@media screen and (max-width: 400px) {
	.openbtn{
	    top:20px;
		right: 10px;
	    width: 40px;
	    height:40px;
	    border-radius: 8px; 
	}
	 /* 三本線の基本位置の調整 */
	  .openbtn span {
	    left: 11px; /* 横方向の中央寄せ */
	    width: 45%;
	  }

	  /* 三本線の縦位置（top）の間隔を等間隔に調整 */
	  .openbtn span:nth-of-type(1) {
	    top: 13px;
	  }
	  .openbtn span:nth-of-type(2) {
	    top: 19px;
	  }
	  .openbtn span:nth-of-type(3) {
	    top: 25px;
	  }

	  /* activeクラス（×印）がついた時の調整 */
	  .openbtn.active span:nth-of-type(1) {
	    top: 14px;
	    left: 14px;
	    transform: translateY(5px) rotate(-135deg);
	    width: 30%;
	  }

	  .openbtn.active span:nth-of-type(3) {
	    top: 24px;
	    left: 14px;
	    transform: translateY(-5px) rotate(135deg);
	    width: 30%;
	  }
	
}


/*==================================================
機能編 8 ページトップリンク
-ページの指定の高さを超えたら下から出現
===================================*/

/*リンクの形状*/
#page-top a {
	display: block;
	font-size:18px;
	background:#ccc;
	color:#fff;
	width:40px;
	height:40px;
	border:1px solid #fff;	
	border-radius:50%;
	box-shadow:0 4px 8px rgba(0,0,0,0.2);
	display: flex;
	justify-content: center;
	align-items: center;
}
#page-top a:hover{
	background: #ccc;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}


/*==================================================
機能編 6-1-1　横移動させて全画面で見せる
===================================*/
.slider {
    position:relative;
	z-index: 1;
	/*↑z-indexの値をh1のz-indexの値よりも小さくして背景に回す*/
	height: calc(100vh - 100px);/*スライダー全体の縦幅を(80vh）にする*/
}
/* 834px以下に適用(max-width) タブレット*/
@media screen and (max-width: 834px) {
	.slider{
	    height: calc(85vh - 100px);
	}
}

/*　背景画像設定　*/

.slider-item01 {
    background:url(../img/main_01.jpg);
}
.slider-item02 {
    background:url(../img/main_02.jpg);
}
.slider-item03 {
    background:url(../img/main_03.jpg);
}
.slider-item04 {
    background:url(../img/main_04.jpeg);
}
.slider-item05 {
    background:url(../img/main_05.jpeg);
}
.slider-item06 {
    background:url(../img/main_06.jpg);
}

.slider-item {
    width: 100%;/*各スライダー全体の横幅を画面の高さいっぱい（100%）にする*/
    height:calc(100vh - 100px);/*各スライダー全体の縦幅を（80vh）にする*/
    background-repeat: no-repeat;/*背景画像をリピートしない*/
    background-position: center;/*背景画像の位置を中央に*/
    background-size: cover;/*背景画像が.slider-item全体を覆い表示*/
    position: relative; /* 追加 */
}
/* 各スライド内のテキストの位置・見た目を調整 */
.lead-intext {
    position: absolute;
    bottom: 50px;/*修正*/
    left: 50px;/*修正*/
    z-index: 3;
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4); 
}
.lead-intext span {
    display: inline-block;
    width: 6em;/* 6文字分の横幅に固定 */
    text-align: center;
}
/* レスポンシブ対応*/
@media screen and (max-width: 834px) {
    .lead-intext {
        font-size: 3rem;
        bottom: 35%;
    	left: 70px;
    }
}
@media screen and (max-width: 600px) {
    .lead-intext {
        font-size: 2rem;
        left: 20px;
        bottom: 30%;
        line-height: 1.5;
    }
}


/*矢印の設定*/

/*戻る、次へ矢印の位置*/
.slick-prev, 
.slick-next {
    position: absolute;/*絶対配置にする*/
	z-index: 3;
    top: 42%;
    cursor: pointer;/*マウスカーソルを指マークに*/
    outline: none;/*クリックをしたら出てくる枠線を消す*/
    border-top: 2px solid #fff;/*矢印の色*/
    border-right: 2px solid #fff;/*矢印の色*/
    height: 25px;
    width: 25px;
}

.slick-prev {/*戻る矢印の位置と形状*/
    left:2.5%;
    transform: rotate(-135deg);
}

.slick-next {/*次へ矢印の位置と形状*/
    right:2.5%;
    transform: rotate(45deg);
}

/*ドットナビゲーションの設定*/

.slick-dots {
	position: relative;
	z-index: 3;
    text-align:center;
	margin:-50px 0 0 0;
}

.slick-dots li {
    display:inline-block;
	margin:0 5px;
}

.slick-dots button {
    color: transparent;
    outline: none;
    width:8px;/*ドットボタンのサイズ*/
    height:8px;/*ドットボタンのサイズ*/
    display:block;
    border-radius:50%;
    background:#fff;/*ドットボタンの色*/
}

.slick-dots .slick-active button{
    background:#ffec04;/*ドットボタンの現在地表示の色*/
}


/*==================================================
機能編 6-1-8　複数画像を流して見せる
===================================*/

/*slickのJSで書かれるタグ内、スライド左右の余白調整*/

.slider2 img {
    width:100%;/*スライダー内の画像を横幅100%に*/
    height:auto;
}

.slider2 .slick-slide {
    margin:0 10px;/*スライド左右の余白調整*/
}

/*==================================================
印象編 4 最低限おぼえておきたい動き
===================================*/


/* 4-1 ふわっ（その場で） */
.fadeIn{
animation-name: fadeInAnime;
animation-duration:1s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeInAnime{
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 4-2 ふわっ（下から） */

.fadeUp{
animation-name: fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(120px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/* 4-2 パタッ（左上へ） */
.flipLeftTop{
animation-name: flipLeftTopAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes flipLeftTopAnime{
  from {
   transform: translate(-20px,80px) rotate(-15deg);
 	opacity: 0;
  }

  to {
   transform: translate(0,0) rotate(0deg);
	opacity: 1;
  }
}

/* 4-2 パタッ（右上へ） */
.flipRightTop{
animation-name: flipRightTopAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes flipRightTopAnime{
  from {
   transform: translate(-20px,80px) rotate(25deg);
   opacity: 0;
  }

  to {
   transform: translate(0,1) rotate(0deg);
	opacity: 1;
  }
}

/* 4-4 ボンッ（拡大） */
.zoomIn{
	animation-name: zoomInAnime;
	animation-duration:0.5s;
	animation-fill-mode:forwards;
}

@keyframes zoomInAnime{
  from {
	transform: scale(0.6);
	opacity: 0;
  }

  to {
    transform: scale(1);
	opacity: 1;
  }
}
/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger,
.zoomInTrigger,
.flipLeftTopTrigger,
.flipRightTopTrigger{
    opacity: 0;
}

