@charset "UTF-8";

*{
  padding: 0;
  margin: 0;
  line-height: 1;
  box-sizing: border-box;
  font-family: "Lobster", serif;
}


a{
  color: inherit;
}

img{
  max-width: 100%;
  max-height: 100%;
  vertical-align: bottom;
}


header{
  position: relative;
  height: 100vh;
  background-image: url(../img/main_pc_01.png);
  background-size: cover;
}

.head_text{
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 10px;
}

h1{
  margin: 20px 0;
}
p{
  line-height: 1.6;
  margin: 10px;
}
h2{
  text-align: center;
  margin: 60px auto;
}

h3{
  text-align: center;
  margin: 30px auto;
}

.contents_box{
  max-width: 480px;
}



.main_contents{
  margin: 30px auto;
  display: flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 20px;
}
.fadeIn picture img{
filter:grayscale(100%);
}
.main_contents picture{
  max-width: 100%;
}

.fadeIn:nth-child(1){
  transform: translateY(-10%);
  opacity: 0;
  transition: 1s;
}

.fadeIn:nth-child(2){
  transform: translateY(-20%);
  opacity: 0;
  transition: 1.1s;
}

.fadeIn:nth-child(3){
  transform: translateY(-30%);
  opacity: 0;
  transition: 1.2s;
}

.fadeIn.is-show {
  transform: translateY(0%);
  opacity: 1;
}
.fadeIn picture img:hover{
  display: block;
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
  filter:grayscale(0%);

}

@media (width <= 500px ) {

  header{
    background-image: url(../img/main_sp_01.png);
    background-size: cover;
  }


  .head_text{
    width: 100%;
    color: azure;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0);
    text-shadow: 30px;

  }


  .fadeIn picture img{
    filter:grayscale(0%);
  }
  
}


footer{
  margin-top: 60px;
  padding: 20px;
  text-align: center;
}