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

.header {
	background-color:transparent;
	position: absolute;
}
.header h1 {
	margin: 0;
}
.section-gallerytop {
  background-image: url("../images/gallery.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 300px;
}
.gallerytop_wrapper {
  background-color: rgba(0, 0, 0, 0.60);
  height: 300px;
  padding-top: 150px;
}
.gallerytop_wrapper h1 {
  color: #FFF;
  text-align: center;
  font-size: 2.0rem;
  letter-spacing: 0.5vw;
  text-decoration-line: underline;
}
@media(max-width:1000px){
	.section-gallerytop{
		height: 200px;
	}
	.gallerytop_wrapper{
		height: 200px;
		padding-top: 100px;
	}
	.gallerytop_wrapper h1 {
		padding-top: 0;
		margin: 0 auto;
	}
}

.items{
	margin-top: 50px;
	margin-bottom: 50px;
}
.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 ===============*/

ul{
  margin:0;
  padding: 0;
  list-style: none;
}

a{
  color: #333;
}

a:hover,
a:active{
  text-decoration: none;
}

h1{
  text-align: center;
  font-size:6vw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin:30px 0;
}

p{
  margin:0 10px 10px 10px;
  word-wrap : break-word;
}

/*画像を出現させるアニメーションCSS*/

.flipLeft{
animation-name: flipLeft;
animation-duration:0.5s;
animation-fill-mode:forwards;
perspective-origin: left center;
opacity: 0;
}

@keyframes flipLeft{
  from {
   transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
  opacity: 0;
  }

  to {
  transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
  opacity: 1;
  }
}

.footer h1 {
	letter-spacing: 0rem;
	margin: 0;
}