@charset "utf-8";
/* 基本色 */
:root{
	--main-color: #eee8d6;
	--accent-color: #e6c79a;
	--accent-color: #c19d9a;
	--accent-color: #534151;
  --accent-color: #ece4e7;
  --accent-color: #293d46;
}

#top{
  position: relative;
  background-position: center top;
  background-size: cover;
  min-height: 100vh;
  z-index: 3;
}
.tittle{
  width: 70%;
  position: absolute;
  top: 20%;
  left: 10%;
}
h1{
  width: 60%;
  height: 150px;
  position: absolute;
  padding-top: 25px;
  padding-left: 25px;
  text-align: left;
  font-size: 5rem;
  background-image: linear-gradient(to right, #c19d9a 0%, #fff 50%, #e1d2d0 100%);
  border-radius: 5px;
}
.works_word h2{
  color: #293d46;
  font-size: 4rem;
  text-align: left;
  margin: 100px auto 60px 70px;
  padding-bottom: 2rem;
}
.works_word{
  display: flex;
  align-items: center;
}
.works_word::after{
  border-top: 1px solid;
  content: "";
  flex-grow: 1;
  background-color: #293d46;
  margin-left: 1rem;
}


/* profile*/
#profile{
  width: 70%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20%;
  overflow:hidden;
  margin: 50px auto 0 auto;
  /* border: #000 1px solid; */
}
.box{
  position:relative;
  padding: 70% 0 ;
  margin-bottom: 50px;
  clip-path: polygon(0 0, 100% 0,100% 100%,0% 100%);
  /* border: rgb(255, 0, 0) 1px solid; */
}
.box img{
  cursor: pointer;
  position:absolute;
  top: 0;
  left: 0;
  border-radius: 5px 5px 5px 5px;
}
.box img:last-child{
  top: 100%;
  transition: 1s;
  opacity: 0;
}
.box:hover img:last-child{
  top:0;
  opacity: 1;
}


/* スマホ対応 */
@media (max-width:768px){
  #top{
    min-height: auto;
  }
  .tittle{
    top: 15%;
    left: 5%;
  }
  h1{
    width: 330px;
    height: 100px;
    text-align: left;
    padding-top: 20px;
    padding-left: 20px;
    font-size: 3rem;
  }
  .works_word h2{
    color: #293d46;
    font-size: 3.5rem;
    text-align: left;
    margin: 100px auto 60px 10px;
    padding-bottom: 2rem;
  }
  #profile{
    width: 90%;
    grid-template-columns: 1fr;
    gap: 0;
  }


}


/* *{border: 1px solid #000;} */