@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  /*元の画像サイズより大きくならないように*/

  height: auto;
  /*縦横の比率は元のままであるように*/

  vertical-align: middle;
  /*画像の下にできる隙間を無くす*/
}

/*-------共通部分-------*/

.main {
  margin: 120px 0;
}

.section {
  margin-bottom: 200px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
}

.section-inner-box {
  display: flex;
  justify-content: space-between;
}

.section-card p {
  display: flex;
  justify-content: center;
  font-size: 18px;
  margin-top: 20px;
}

/*---ホバー---------------------*/

.gnav-list a:hover {
  color: #ed8a3f;
  transition: 0.3s;
}

.section-card:hover {
  transform: translate(0.2em, 0.2em);
  transition-duration: 0.35s;
}

.trace-card:hover {
  transform: translate(0);
  opacity: 1;
}

/*header---------------------*/

.gnav {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  margin: 40px 25px;
}

.gnav-list li {
  list-style: none;
  letter-spacing: 0.07em;
}

.gnav-list a {
  display: block;
  color: #40592e;
  font-family: "futura";
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
}

/*footer------------------*/

.footer {
  display: flex;
  justify-content: center;
}

.footer p {
  margin: 20px 0;
  color: #484229;
  font-size: 18px;
  font-weight: bold;
}

/*---MV----------------------*/

.works-mv {
  position: relative;
  background: url("../../img/IMG_works.jpg");
  width: 100vw;
  height: 60vh;
  background-size: cover;
  background-position: center bottom 55%;
  background-repeat: no-repeat;
}

.works-mv::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #484229;
  opacity: 0.25;
}

.works-title {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: transrate(-50%, 50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "futura";
  font-size: 84px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/*---main-----------------*/

.main {
  margin: 120px 0;
}

.section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 200px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 100px;
}

.section-card {
  width: 30%;
  text-align: center;
}

.section-card a {
  color: #333;
  text-decoration: none;
}

.section-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-card p {
  display: flex;
  justify-content: center;
  font-size: 18px;
  margin-top: 10px;
}

/*---セクションカラム-----------------*/

.section-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: calc(100% - 30px * 2);
  margin: auto;
}

.section-card {
  width: calc((100% - 50px * 2) / 3);
}

.section-card:not(:nth-child(3n-2)) {
  margin-left: 50px;
}

.section-card:nth-child(n + 4) {
  margin-top: 100px;
}

/*---web制作-----------------*/

.website-card img {
  object-fit: contain;
}

/*---バナー制作-----------------*/

/*---バナー模写-----------------*/
.trace-card {
  width: calc((100% - 20px * 1) / 2);
}

.trace-card:not(:nth-child(3n-2)) {
  margin-left: 0;
}

.trace-card:nth-child(2n) {
  margin-left: 20px;
}

.trace-card:nth-child(n + 3) {
  margin-top: 100px;
}

/*---SP-----------------------*/
@media (max-width: 767px) {
  /*ハンバーガー*/
  .gnav-btn {
    display: block;
    width: 70px;
    height: 70px;
    background: #ed8a3f;
    border-radius: 50%;
    padding: 18px 15px;
    position: fixed;
    top: 20px;
    right: 5%;
    z-index: 10;
  }

  .gnav-btn span {
    display: block;
    width: 40px;
    height: 5px;
    background: #fff;
    margin-top: 10px;
  }

  .gnav-btn span:first-child {
    margin-top: 0;
  }

  .gnav.show {
    bottom: 0;
  }

  .gnav-btn span {
    transition: 0.3s;
  }

  .show span:nth-of-type(1) {
    transform: translate(-50%, -120%) rotate(45deg);
    margin: 50%;
  }

  .show span:nth-of-type(2) {
    opacity: 0;
  }

  .show span:nth-of-type(3) {
    transform: translate(50%, -320%) rotate(-45deg);
    margin: -50%;
  }

  .gnav {
    background: rgba(255, 255, 255, 0.8);
    flex-direction: column;
    padding: 125px 0 80px;
    width: 100vw;
    height: 100vh;
    position: fixed;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    transition: 0.3s;
  }

  .gnav-list {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .gnav-list a {
    font-size: 25px;
    height: 90px;
    line-height: 90px;
    margin-bottom: 10px;
  }

  /*---------*/

  .works-mv {
    height: 30vh;
  }

  .works-title {
    font-size: 50px;
  }

  .main {
    margin: 60px 0 120px;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .section {
    margin-bottom: 120px;
  }

  .section-card {
    width: calc((100% - 50px * 1) / 2);
  }

  .section-card:not(:nth-child(3n-2)) {
    margin-left: 0;
  }

  .section-card:nth-child(2n) {
    margin-left: 50px;
  }

  .section-card:nth-child(n + 3) {
    margin-top: 100px;
  }

  /*---バナー模写------------*/
  .trace-card {
    width: calc(100% - 20px * 1);
  }

  .trace-card:not(:nth-child(3n-2)) {
    margin-left: 0;
  }

  .trace-card:nth-child(2n) {
    margin-left: 0px;
  }

  .trace-card:nth-child(n + 1) {
    margin-top: 100px;
  }
}
