/*全体の設定*/
body {
	margin:0 auto;
	width:1024px;
    line-height: 1.9;
    font-family: Helvetica, '游ゴシック', 'Yu Gothic', YuGothic, HiraKakuProN-W3, 'メイリオ', Meiryo, sans-serif;
    font-size: 14px;
    color: #333;
    background-color:#f1f1f1;
    
    }

h1{
	font-size:50px;
	padding:40px;
	margin:60px 0;
	float:left;
	font-family: 'Kite One', sans-serif;
	position:relative;
	z-index:100;/*重ね順　上にくる設定*/
	}
	
h2{
	padding-top:65px;
	margin-bottom:65px;
	font-size:40px;
	font-family:'Lato', sans-serif;
	font-weight:lighter;
	text-align:center;

	}

img{
	max-width:100%;
	height:auto;
	
	}

footer{
	margin:0;
	text-align:center;
	}

/*ふわっと表示させる*/
.js-animation {
	  opacity: 0;
	  visibility: hidden;
	  transform: translateY(40px);
	  transition: all 1s;
}

.js-animation.is-show {
	  opacity: 1;
	  visibility: visible;
	  transform: translateY(0px);
	}


/*黄色背景*/
header:after, header:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 770px;
    height: 150px;
    background-color:#f0e68c;
    transform: rotate(-15deg);
    transform-origin: left bottom;
  	z-index:-1;

}

footer:after, footer:before {
    content: '';
    position: fixed;
    bottom:0px;
    right: 0;
    width: 770px;
    height: 120px;
    background-color:#f0e68c;
    transform: rotate(-15deg);
    transform-origin: 700px -300px;
  	z-index:-1;
}

/*　ハンバーガーボタン　*/
.hamburger {
  display : block;
  position: fixed;
  z-index : 3;
  right : 13px;
  top   : 12px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}
.hamburger span {
  display : block;
  position: absolute;
  width   : 30px;
  height  : 2px ;
  left    : 6px;
  background : #555;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition   : 0.5s ease-in-out;
  transition        : 0.5s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}

/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top : 16px;
  left: 6px;
  background : #fff;
  -webkit-transform: rotate(315deg);
  -moz-transform   : rotate(315deg);
  transform        : rotate(315deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  background : #fff;
  -webkit-transform: rotate(-315deg);
  -moz-transform   : rotate(-315deg);
  transform        : rotate(-315deg);
}

nav.globalMenuSp {
  position: fixed;
  z-index : 2;
  top  : 0;
  right : 0;
  color: #fff;
  background: rgba(128,128,128,0.7);
  text-align: center;
  width: 30%;
  opacity: 0;
  transition: opacity .6s ease, visibility .6s ease;
  
}

nav.globalMenuSp ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

nav.globalMenuSp ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  transition: .4s all;
}

nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
}

nav.globalMenuSp ul li:hover{
  background :#ddd;
}

nav.globalMenuSp ul li a {
  display: block;
  color: #fff;
  padding: 1em 0;
  text-decoration :none;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
  opacity: 100;

}


/*-----トップページ-----*/
.mainimg{
    margin-bottom:150px;
	
    }

/*-----boxA  What's webデザイン科-----*/
.boxA{
	color:f1f1f1;
	margin-bottom:300px;
	
	}
	
.boxA p{
	text-align:left;
	font-size:20px;
	margin-top:150px;
	
	}

.boxA .textbox{
	padding-left:120px;
	line-height:70px;
	}


/*-----boxB  学んだこと-----*/
h3{
	font-size:20px;
	font-weight:lighter;
	margin-bottom:20px;
	
	}
	
.boxB{
	margin-bottom:300px;
	
	}
	
	
.boxB p{
	font-size:15px;
	
	}
	
i{
	font-size:150px;
	color:#add8e6;
	margin-bottom:20px;
	
 	}

.flexbox1{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-around;
	text-align:center;
	
	}

.flexitem1{
	width:40%;
	margin-bottom:50px;
	
	}
	
	
/*-----boxC  web制作-----*/
.boxC{
	margin-bottom:300px;
	
	}
	
.flexbox2{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-around;
	text-align:center;
	
	}
		
.flexitem2{
	width:40%;
	margin:40px;
	
	}

.boxC img{
	border-radius:15px;
	transition:transform 0.1s ease-in-out 0.1s;
	
	}

.boxC img:hover{
	transform:scale(2.3);
	
	}

	
/*ふわっと下から*/
#graydisplay {
	 display: none;
	 position: fixed;
	 top: 0;
	 left: 0;
	 width: 100%;
	 max-width: 100%!important;
	 height: 100%;
	 background: rgba(0,0,0,0.45);
	 
	}

#graydisplay img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width:1016px;
    height: 798px;
    
	}

/*-----boxD  logo制作-----*/
.boxD{
    margin-bottom:300px;
	}

.flexbox3{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-around;
	text-align:center;	
    margin-top:100px;
	}

.flexitem3{
	width:40%;
	margin:40px;
	}


/*-----boxE  About-----*/
.boxE p{
	font-size:15px;
	text-align:left;
	}

.abouttext{
	font-weight:20px;
	
	}

.boxE img{
    margin-top:30px;
    border-radius:15px;
	
	}

.boxE{
	margin-bottom:50px;
	}

.flexbox4{
	display:flex;
	justify-content:space-around;
	text-align:center;

	}

.flexitem4{
	width:40%;
	margin-bottom:50px;
	}



/*----- 600px以下 スマホ向け-----*/
@media(max-width:599px){
	/*全体*/
		body{
		width:auto;
		margin:0 8px; /*モバイル表示の時だけページ左右にスペースを作る*/
		
		}
	
	h1{
		font-size:15px;
		margin:5px 0;
		width:auto;
		
		}
	
	h2{
		font-size:20px;
		
		}
		
	/*-----トップページ-----*/
	.mainimg{
	    margin:90px auto;
		
	    }

	/*-----boxA  What's webデザイン科-----*/
	.boxA{
		color:f1f1f1;
		margin-bottom:100px;
		
		}
		
	.boxA p{
		font-size:20px;
		margin-top:150px;
		
		}

	.boxA .textbox{
		padding-left:0;
		line-height:50px;
		}


	/*-----boxB  学んだこと-----*/
	h3{
		font-size:15px;
		font-weight:lighter;
		margin-bottom:20px;
		
		}
		
	.boxB{
		margin-bottom:100px;
		
		}
		
		
	.boxB p{
		font-size:15px;
		
		}
		
	i{
		font-size:150px;
		color:#add8e6;
		margin-bottom:20px;
		
	 	}

	.flexbox1{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-around;
		text-align:center;
		
		}

	.flexitem1 {
		width:100%;
		margin:40px;
		
		}
	
	.flexitem1 p{
		width:100%;
		
		}
		
	/*-----boxC  web制作-----*/
	.boxC{
		margin-bottom:100px;
		
		}
		
	.flexbox2{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-around;
		text-align:center;
		
		}
			
	.flexitem2{
		width:40%;
		margin:40px;
		
		}

	.boxC img{
		border-radius:15px;
		transition:transform 0.1s ease-in-out 0.1s;
		
		}

	.boxC img:hover{
		transform:scale(2.3);
		
		}

		
	/*ふわっと下から*/
	#graydisplay {
		 display: none;
		 position: fixed;
		 top: 0;
		 left: 0;
		 width: 100%;
		 max-width: 100%!important;
		 height: 100%;
		 background: rgba(0,0,0,0.45);
		 
		}

	#graydisplay img {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		margin: auto;
		width:1016px;
	    height: 798px;
	    
		}

	/*-----boxD  logo制作-----*/
	.boxD{
	    margin-bottom:100px;
		}

	.flexbox3{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-around;
		text-align:center;	
	    margin-top:100px;
		}

	.flexitem3{
		width:40%;
		margin:40px;
		}


	/*-----boxE  About-----*/
	.boxE p{
		font-size:15px;
		text-align:left;
		}

	.abouttext{
		font-weight:20px;
		
		}

	.boxE img{
	    margin-top:30px;
	    border-radius:15px;
		
		}

	.boxE{
		margin-bottom:50px;
		}

	.flexbox4{
		display:flex;
		flex-wrap:wrap;
		text-align:center;

		}

	.flexitem4{
		width:100%;
		margin-bottom:30px;
		}
	
}


/*----- 768px以下 タブレット -----*/
@media(max-width:767px){
	/*全体*/
		body{
		width:auto;
		margin:0 8px; /*モバイル表示の時だけページ左右にスペースを作る*/
		
		}
	
	h1{
		font-size:40px;
		margin:30px 0;
		width:auto;
		
		}
	
	h2{
		font-size:30px;
		
		}

	
	/*boxA*/
	.boxA{
		color:f1f1f1;
		margin-bottom:200px;
		padding:0;
		
		}
	
	.boxA p{
		font-size:15px;
		padding-left:0;
		
		}
	
	/*boxB 学んだこと*/
	h3{
		font-size:20px;
		font-weight:lighter;
		margin-bottom:20px;
		
		}
		
	.boxB{
		margin-bottom:200px;
		
		}
		
	i{
		font-size:100px;
		color:#add8e6;
		margin-bottom:10px;
		
	 	}

	.flexbox1{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-around;
		text-align:center;
		
		}

	.flexitem1{
		width:40%;
		margin-bottom:50px;
		
		}

}