  @charset "UTF-8";

.maintitle{
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 60px 0 20px;
}
.category{
  font-size: 12px;
  justify-content: flex-end;
  margin-bottom: 33px;
}
.category .slash::after{
  content: "/";
  margin: 0 12px;
}
.category .slash:last-of-type::after{ /* ::afterあとにつけないと消えない */
  content: none;
}
.category .slash:hover{
  color: #9e9c9c;
}
.slash:hover::after{ /* .slash::after:hoverはできない */
  color: #333;
 } 
button{
  color: #333;
  background: #fff;
  cursor: pointer;/* マウスポインターの表示を変える(指に) */
}
.fhoto{
  width: 80vw;
  margin: 0 auto;
}
.fhoto .flex-wrap{
  flex-wrap: wrap;
}
/* 最後の行を左寄せにする */
.fhoto .flex-wrap::after{
  content: "";
  display: block;
  width: 25.5vw;
}
/* ここまで */

.project{
  width: 25.5vw;
}
.project img{
  width: 25.5vw;
}
.project h3{
  font-weight: bold;
  margin: 10px 0 43px;
  line-height: 24px;
}

/* ホバーで画像暗く */
.project figure{
  position: relative;
  overflow: hidden;
  background-color: black;
  width: 25.5vw; /* 幅指定しないと隙間が黒くなる */
}
.project figure:hover img{
  opacity: 0.7;
  transition: .6s;
}
/* ホバーここまで */

.project figure img{
  cursor: pointer;
}
.contact-page img{
  display: none;
}

@media screen and (max-width: 768px) {
  .fhoto,.fhoto .flex-wrap::after,.project,.project img,.project figure,footer{
    width: auto;
  }
  .project h3{
    margin-left: 12px;
  }
  .category{
    text-align: center;
    margin-bottom: 20px;
  }
  /* 幅指定しないと隙間が黒くなる */
  .project img{
    width: 100%;
  }
  .project figure{
    width: 100%;
  }
  /* ここまで */

  .project br{
    display: none;
  }
  .project .sp{
    display: block;
  }
  .project span::before{
    content: "/";
  }
  .contact-page{
    display: inline; 
    position: fixed;
    z-index: 100;
    right: 1vw;
    bottom: 20px;
  }

  .contact-page img{
    width: 50px;
    display: block;
    margin: 0 10px 0 auto;
  }

}

