@charset "UTF-8";

html,
body {
  overflow-x: hidden;
}

header {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4%;
}

.header-wrapper {
  margin: 121px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.logo-image {
  width: 120px;
  height: 27px;
}

.instagram img {
  height: 20px;
  width: 20px;
}

.mainvisual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

h1 {
  font-size: 24px;
  font-weight: bold;
}

.about {
  max-width: 960px;
  text-align: left;
  margin: 0 auto;
  padding: 0 4%;
  font-size: 14.4px;
}

.about h1 {
  margin-top: 80px;
  margin-bottom: 65px;
  text-align: center;
}

.name {
  margin-bottom: 30px;
}

.info {
  margin-bottom: 30px;
}

.text {
  margin-bottom: 130px;
}

.works {
  max-width: 960px;
  padding: 0 4%;
  margin: 0 auto;
  text-align: center;
}

.works h1 {
  margin-bottom: 68px;
  text-align: center;
}

.images-list {
  display: flex;
  flex-wrap: wrap;
  gap: 29.8px;
  margin-bottom: 150px;
}

.images-list img {
  width: calc(
    (100% - 59.6px) / 3
  ); /* gapが29.8pxなので 29.8*2=59.6px を引いて3等分 */
  height: auto;
}

.news {
  text-align: center;
  max-width: 960px;
  padding: 0 4%;
  margin: 0 auto;
}

.news-item-wrapper {
  margin-bottom: 130px;
}

.news h1 {
  text-align: center;
  margin-bottom: 65px;
}

.news-item {
  font-size: 14.4px;
  display: flex;
  gap: 80px;
  width: 100%;
  border-bottom: 1px solid #c8c8c8;
  padding: 15px;
}

.news-item:first-of-type {
  border-top: 1px solid #c8c8c8;
  width: 100%;
}

.contact {
  max-width: 960px;
  padding: 0 4%;
  margin: 0 auto;
}
.contact h1 {
  text-align: center;
  margin-bottom: 65px;
}

form {
  width: 100%;
}

.form-group {
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
}

label {
  text-align: left;
}

input,
textarea {
  height: 44px;
  border: 1px solid #c8c8c8;
  width: 729px;
  margin-bottom: 10px;
}

textarea {
  resize: vertical;
}

#message {
  height: 166px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

button {
  padding: 15px;
  margin-top: 45px;
  background-color: #24292e;
  color: white;
  border: none;
  font-size: 14.4px;
  cursor: pointer;
  width: 200px;
}

footer {
  margin-top: 130px;
  padding: 10px 0 10px;
  text-align: center;
  background-color: #24292e;
  color: #fff;
  font-size: 8px;
}

@media screen and (max-width: 600px) {
  .header-wrapper {
    padding: 0 4%;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .logo-image {
    margin: 0 auto;
    display: block;
    margin-bottom: 10px;
  }

  .nav-list {
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: 0 4%;
    margin: 0 auto;
    gap: 20px;
    font-size: 12.8px;
  }

  .mainvisual {
    height: 420px;
    object-fit: cover;
    background-repeat: no-repeat;
    box-sizing: inherit;
  }

  .text {
    margin-bottom: 70px;
  }

  .works h1 {
    margin-bottom: 43px;
  }

  .images-list {
    flex-direction: column;
    margin-bottom: 90px;
  }

  .images-list img {
    display: block;
    width: 100%;
  }

  .news-item {
    display: block;
    text-align: left;
  }

  .news-item-wrapper {
    margin-bottom: 70px;
  }

  .contact {
    width: 345px;
    width: 100%;
  }

  .contact h1 {
    margin-bottom: 40px;
  }

  .form-group {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0;

  }

  input,
  textarea {
    height: 44px;
    border: 1px solid #c8c8c8;
    width: 100%;
  }

  button {
    margin-top: 30px;
  }

  footer {
    margin-top: 70px;
  }
}
