@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  color: #24292e;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto 130px auto;
  font-size: 0.9rem;
  padding: 0 4%;
}
.site-title {
  line-height: 1px;
}
.site-title a {
  display: block;
}
.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 65px;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 270px;
  margin: 0 auto;
  padding: 0 4%;
}
#header ul {
  display: flex;
  padding: 10px 0;
}
#header li {
  font-size: 0.9rem;
  margin-left: 30px;
}
#header li a {
  color: #24292e;
}
#header li a:hover {
  opacity: 0.7;
}
#header li img.icon {
  width: 20px;
}

#header a i {
  font-family: "Font Awesome 5 Free";
  content: "\f0e0";
  font-weight: 300;
  font-size: 25px;
}

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
  margin-bottom: 80px;
}
#mainvisual img {
  width: 100%;
  max-width: 1920px;
  height: 420px;
  object-fit: cover;
}

/*-------------------------------------------
About
-------------------------------------------*/
#about ul {
  margin-bottom: 30px;
}
#about li:first-child {
  margin-bottom: 30px;
}
#about p {
  text-align:justify;
}

/*-------------------------------------------
Works
-------------------------------------------*/
#works ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
#works li {
  width: 31%;
  margin-bottom: 23px;
}

#works a {
  color: #333333;
}

#works a:hover {
  border-bottom: 1px solid #000;
}


/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #ECECEC;
  color: #333333;
  font-size: 0.5rem;
  padding: 10px 20px;
  text-align: center;
}

/*-------------------------------------------
page-topボタン
-------------------------------------------*/

#page-top {
  position: fixed;
  background-color: #ECECEC;
  padding: 15px;
  bottom: 65px;
  right: 35px;
  opacity: 0;
  transition: opacity .5s;
  margin: 0;
}

#page-top.scrolled {
  opacity: 1;
}

#page-top i::before {
  font-family: "Font Awesome 5 Free";
  content: "\f077";
  font-weight: 600;
  color: #333333;
  font-size: 26px;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 600px) {
  .wrapper {
    margin-bottom: 70px;
  }
  .site-title {
    margin-top: 20px;
  }
  .sec-title {
    margin-bottom: 40px;
  }

  /*-------------------------------------------
  ヘッダー
  -------------------------------------------*/
  #header {
    max-width: 100%;
    height: auto;
    flex-direction: column;
  }
  #header li {
    font-size: 0.8rem;
    margin-left: 20px;
  }
  #header li:first-child {
    margin-left: 0;
  }

  /*-------------------------------------------
  Works
  -------------------------------------------*/
  #works ul {
    flex-direction: column;
    justify-content: end;
  }
  #works li {
    width: 100%;
  }

  #works li + li {
    margin-top: 50px;
  }

  #works a {
    display: flex;
    flex-wrap: nowrap;
    color: #333333;
    font-size: 15px;
  }

  #works a:hover {
    border-bottom: 1px solid #000;
  }

  #works li a#work1 {
    width: 90px;
  }
  #works li a#work2 {
    width: 90px;
  }
  #works li a#work3 {
    width: 90px;
  }
  #works li a#work4 {
    width: 70px;
  }
  #works li a#work5 {
    width: 130px;
  }
  #works li a#work6a {
    width: 190px;
  }
  #works li a#work6b {
    width: 190px;
  }

  /*-------------------------------------------
  page-topボタン
  -------------------------------------------*/

  #page-top {
    padding: 13px;
    bottom: 35px;
    right: 15px;
}

#page-top i::before {
  font-size: 15px;
}

 /*-------------------------------------------
  animate
  -------------------------------------------*/

  .animate {
    opacity: 0;
    transition: opacity .3s, transform .3s;
  }
  
  .animate.slide-from-left {
    transform: translateX(-40px);
  }
  
  .animate.slide-from-right {
    transform: translateX(40px);
  }
  
  .animate.appear {
    opacity: 1;
    transform: none;
  }

}

  /*-------------------------------------------
  animate
  -------------------------------------------*/

  .animate {
    opacity: 0;
    transition: opacity .3s, transform .3s;
    transform: translateY(20px);
  }
  
  .animate.appear {
    opacity: 1;
    transform: none;
  }