body {
  margin: 0;
}

header {
  display: flex;
  justify-content: space-around;
}

button.slick-next {
  right: 0px;
}

header h1 {
  display: inline-block;
  color: white;
  text-decoration: none;
  background-color: rgb(68, 68, 68);
  padding: 0 10px;
}

header h1:hover {
  color: black;
  background-color: rgb(150, 150, 150);
}


#nav {
  display: flex;
  padding-top: 15px;
}

#nav p {
  padding: 0 20px;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  color: black;
}

#nav p:hover {
  color: gray;
}

.fade img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

#slick-slide01 {
  object-position: top;
}

#about {
  font-size: 38px;
  margin-top: 100px;
}

#about-div{
  margin: 0 auto;
}
#about-right {
  width: 50%;
}

#about-right p,#about-right h3 {
  width: 100%;
}

section {
  text-align: center;
}

section h1 {
  display: inline-block;
  border-bottom: 1px solid gray;
}


#about-left {
  background-image: url(image/about.jpg);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-size: cover;
	background-position: center center;
}

#about-right {
  margin-left: 20px;
}

.flex {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  opacity: 0;
  transform: translate(0,80px);
}

.fade-in {
  opacity: 1;
  transform: translate(0);
  transition: 1000ms;
}


#works {
  font-size: 38px;
  margin-top: 100px;
}

.flex div {
  padding: 0px;
}

.flex div img {
  max-width: 90%;
  width: 350px;
  height: 250px;
  object-fit: cover;
  padding: 20px;
}

#works2{
  object-position: bottom;
}

footer {
  text-align: center;
  margin-top: 150px;
}

#page-top {    
  position: fixed;
  bottom: 38px;
  right: 25px;
  margin-right: 10px;
  background-color: rgb(55, 55, 55);
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 28px 24px;  
  border-radius: 50%;
  font-family: "Noto Sans JP", sans-serif;
  display: none;
}

/* スマホ */
@media screen and (max-width: 1055px){
.flex {
  display: block;
  margin: 0 auto;
}

#works-div div {
  margin: 0 auto 20px auto;
}

#works {
  margin-bottom: 10px;
}

.flex div img {
  max-width: 100%;
  width: 85%;
  height: 450px;
  object-fit: cover;
  padding: 20px;
}

.flex div h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.flex div p {
  margin-top: 0;
  margin-bottom: 0;
}


#about-left {
  margin: 0 auto;
}

#about-right {
  margin: 0 auto;
  width: 100%;
}

#works-div div {
  width: 100%;
}

}
@media screen and (max-width: 450px){
  body {
    margin: 0 ;
    overflow-x: hidden;
    width: 100%;
  }
  header {
    display:block;
  }
  #profile {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  #nav a{
    margin: 0 auto;
  }
  section {
    width: 100%;
  }
#about-right {
  width: 100%;
  box-sizing: border-box;
}
  #about-right p{
    max-width: 90%;
  }

  #about-right h3 {
    width: 100%;
  }

  .flex div img {
    max-width: 100%;
    width: 280px;
    height: 200px;
    object-fit: cover;
    padding: 20px;
    box-sizing: border-box;
  }

  #main-pic {
    height: 400px;
    width: 100%;
  }

  a{
    text-decoration: none;
  }

  #page-top {
    margin-right:10px;
  }

  #works-div div {
    box-sizing: border-box;
  }
  button.slick-next {
    right: 0px;
  }

  /* .slick-track {
    width: 100%;
  } */
}
