@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}
body {
  color: #24292e;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}

/*-------------------------------------------
共通設定
-------------------------------------------*/

.wrapper {
  width: 100%;
  max-width: 960px;
  padding: 0 4%;
  margin: 0 auto;
  text-align: center;
}

.site-title {
  line-height: 0;
}
.site-title a {
  display: block;
  width: 120px;
  height: auto;
}

.sec-title {
  margin-bottom: 60px;
}

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade.active {
  opacity: 1;
  transform: translateY(0);
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/

#header {
  height: 270px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#nav .nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  color: #24292e;
}

.nav-list .icon {
  width: 20px;
}

.nav-list a:hover {
  opacity: 0.5;
}

/*-------------------------------------------
メインビジュアル
-------------------------------------------*/

#mainvisual {
  margin-bottom: 80px;
}

#mainvisual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

/*-------------------------------------------
About
-------------------------------------------*/

#about {
  margin-bottom: 130px;
}

#about .about-list,
#about .text {
  text-align: left;
}

#about .about-list {
  margin-bottom: 30px;
}

#about .about-list li:first-child {
  margin-bottom: 30px;
}

/*-------------------------------------------
Works
-------------------------------------------*/

#works {
  margin-bottom: 130px;
}

#works .works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}

/*-------------------------------------------
News
-------------------------------------------*/

#news {
  margin-bottom: 130px;
}

#news .news-list {
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  border-top: 1px solid #c8c8c8;
}

#news .news-list dt {
  width: 20%;
  border-bottom: 1px solid #c8c8c8;
  padding: 15px;
}

#news .news-list dd {
  width: 80%;
  border-bottom: 1px solid #c8c8c8;
  padding: 15px;
}

/*-------------------------------------------
Contact
-------------------------------------------*/

#contact {
  margin-bottom: 130px;
}

#contact dl {
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 30px;
}

#contact dt {
  width: 15%;
}

#contact dd {
  width: 85%;
}

#contact dd input,
#contact dd textarea {
  width: 100%;
  height: 2.75rem;
  border: 1px solid #c8c8c8;
  margin-bottom: 10px;
}

#contact dd textarea {
  height: 10.375rem;
}

#contact .button {
  text-align: center;
}

#contact .button input {
  width: 200px;
  height: 52px;
  background-color: #24292e;
  border: 1px solid #24292e;
  color: #fff;
}

#contact .button input:hover {
  background-color: #fff;
  color: #24292e;
}

/*-------------------------------------------
フッター
-------------------------------------------*/

#footer {
  text-align: center;
  padding: 10px;
  background-color: #24292e;
}

#footer .copyright {
  color: #fff;
  font-size: 0.5rem;
}

/*-------------------------------------------
SP
-------------------------------------------*/

@media screen and (max-width: 600px) {
  .wrapper {
    margin-bottom: 70px;
  }
  .site-title {
    margin-top: 20px;
  }
  .sec-title {
    margin-bottom: 40px;
  }

  /*-------------------------------------------
ヘッダー
-------------------------------------------*/

  #header {
    height: auto;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }
  #nav .nav-list {
    gap: 20px;
  }

  /*-------------------------------------------
Works
-------------------------------------------*/

  #works .works-list {
    grid-template-columns: 1fr;
  }

  /*-------------------------------------------
News
-------------------------------------------*/

  #news .news-list {
    flex-direction: column;
  }
  #news .news-list dt {
    border-bottom: none;
    width: 100%;
    padding-bottom: 0;
  }
  #news .news-list dd {
    width: 100%;
    border-bottom: 1px solid #c8c8c8;
    padding-top: 0;
  }

  /*-------------------------------------------
contact
-------------------------------------------*/

  #contact dl {
    flex-direction: column;
  }

  #contact dt {
    width: 100%;
  }

  #contact dd {
    width: 100%;
  }
}
