@charset "UTF-8";
/* CSS Document */

*, *:before, *:after {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   -o-box-sizing: border-box;
   -ms-box-sizing: border-box;
   box-sizing: border-box;
}

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


.main{
	padding-top: 210px;
	margin-bottom: 200px;
}
.btn{
	margin-top: 100px;
}

/*ギャラリーのためのcss*/
.gallery{
columns: 4;/*段組みの数*/
padding:0 15px;/*ギャラリー左右に余白をつける*/
}

.gallery li {
    margin-bottom: 20px;/*各画像下に余白をつける*/
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img{
  width:100%;
  height:auto;
  vertical-align: bottom;/*画像の下にできる余白を削除*/}

/*　横幅900px以下の段組み設定　*/
@media only screen and (max-width: 900px) {
  .gallery{
  columns:3;
  } 
}
@media only screen and (max-width: 768px) {
  .gallery{
  columns: 2;
  } 
}

/* モーダルCSS */
.modalArea {
  display: none;
  position: fixed;
  z-index: 10; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30,39,44,0.95);
}
.modalWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:translate(-50%,-80%);
  height: 55%;
  padding: 40px 0px;
  margin-bottom: 10px;
}
.modalContents h3{
	font-size: 24px;
}
.modalContents h2{
	padding-top: 4px;
	font-size: 16px;
}
.modalContents h1{
	padding-top: 10px;
	font-size: 16px;
	font-family: 'Special Elite', cursive;
}
.modalContents p{
	padding: 10px 0 30px;
	font-size: 14px;
}
.modalimage {
	display: flex;
	height: 100%;
	justify-content: center;
}
.modalimage_sub{
	padding-left: 20px;
}
.modalimage_sub img{
	padding-bottom: 10px;
	height: 50%;
}
.modalimage_sub img:last-child{
	padding-bottom: 0px;
}

.closeModal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}

@media(max-width:960px){
	.modalimage{
		display: block;
	}
	.modalimage_sub{
		padding: 10px 0 0;
		display: flex
	}
	.modalimage_sub img{
		width: 80%;
	}
}

