@charset "utf-8";

/*========= ヘッダー追従のためのCSS ===============*/

#header{
  position: fixed;/*追従ナビのためpositionをfixedにする*/
  top:0;/*ポジション設定topを0*/
  /*height: 70px;*/ /*headerの高さを指定*/
  width:100%;/*position:fixed;にしたため、横幅100%を設定*/
  background:#fff;
  color:#000;
  text-align: center;
  padding: 0px;
  border-bottom: 2px solid #00f;
}

/*========= レイアウトのためのCSS ===============*/

h1{
  font-size:1.2rem;
}

h2{
  font-size:1.2rem;
  text-align: center;
  margin: 0 0 30px 0;
}

p{
  margin-top:20px;  
}

small{
  background:#333;
  color:#fff;
  display: block;
  text-align: center;
  padding:20px;
}

#main-vidual{
  margin-top:52px;/*上部にheader分の高さの余白を持たせる*/
}

#main-vidual img{
  width: 100%;
}

section{
  padding:30px;
	text-align: left;
}

section:nth-child(2n){
  background:#f3f3f3; 
	text-align: left;
}

#footer{
  position: relative;
  z-index: 2;
  padding:10px 20px 40px;
}

#page-link{
  display: flex;
  justify-content: center;
  padding: 6px;
}

#page-link li{
  list-style: none;
}

#page-link li a{
  color: #333;
  padding:0 8px;
  text-decoration: none;
}

#page-link li a::before{
  content:'▼';
  font-size:0.8rem;
  padding:0 4px 0 0;
  color: #00f;
}


/*========= ページトップのためのCSS ===============*/
/*リンクを右下に固定*/
#page-top {
  position: fixed;
  right: 10px;
  bottom:10px;
  z-index: 2;
    /*はじめは非表示*/
  opacity: 0;
  transform: translateY(150px);
}

/*　上に上がる動き　*/
#page-top.UpMove{
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 0;
  transform: translateY(150px);
  }
  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(150px);
  }
}

/*画像の切り替えと動き*/
#page-top a {
    /*aタグの形状*/
  display: block;
  width: 68px;
  height: 64px;
  color: #333;
  text-align: center;
  text-transform: uppercase; 
  text-decoration: none;
  font-size: 10px; /*0.6rem;*/
    /*背景画像の指定*/
  background: url("../pic/page-top_01.gif") no-repeat center;
  background-size: contain;
}

#page-top.floatAnime a{
  width: 68px;
  height: 64px;
    /*背景画像の指定*/
  background: url("../pic/page-top_02.gif") no-repeat center;
  background-size: contain;
    /*アニメーションの指定*/
  animation: floatAnime 2s linear infinite;
  opacity: 0;
}

@keyframes floatAnime {
  0% { transform: translateX(0); opacity: 0; }
  25% { transform: translateX(-6px);opacity: 1; }
  50% { transform: translateX(0) }
  100% { transform: translateX(6px);opacity: 1; }
}

/*Page Topと書かれたテキストの位置*/
#page-top span{
    position: absolute;
    bottom: -20px;
    right: 20px;
  color: #666;
}

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

.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*/

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

