img {
  pointer-events: none;
}

header {
  display: flex;
  margin: 3em 3em 2em;
}

body {
  background-color: #F6EFE4;
  width: 100%;
  font-family: 'Times New Roman', Times, serif, sans-serif;
}

a {
  text-decoration: none;
  color: #000;
}

ul {
  list-style: none;
}

h2 {
  font-size: 1em;
  text-align: center;
  margin-bottom: 3em;
}

h3 {
  font-size: 1em;
  text-align: center;
  margin-bottom: 3em;
  color: #5f5f5f;
}

header span {
  font-size: 0.8em;
}


/*---------ハンバーガーメニュー-----------*/
@media screen and (max-width: 3000px) {
  header {
    align-items: center;
  }

  /* ボタンの塊 */
  .header-button {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    width: 2.5em;
    height: 2.5em;
    margin: 2.5em 3em;
    z-index: 100;
  }

  /* ボタンの線 */
  .header-button .icon {
    display: block;
    position: relative;
    top: 0;
    margin: 0 auto;
    width: 2.5em;
    height: 0.8px;
    background-color: #000000;
    transition: .3s ease;
  }

  /* ボタンの一番上と一番下の線 */
  .header-button .icon:before, .header-button .icon:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.8px;
    transition: all .3s;
    background-color: #000000;
  }

  /* 一番上の線の位置 */
  .header-button .icon:before {
    top: -0.5em;
  }

  /* 一番下の線の位置 */
  .header-button .icon:after {
    top: 0.5em;
  }

  /* メニューを開いた時の真ん中の線を透明にする */
  .open .header-button .icon {
    background-color: transparent;
  }

  /* メニューを開いた時上と下の線を黒くする */
  .open .header-button .icon:before, .open .header-button .icon:after {
    top: 0;
    background-color: #F6EFE4;
  }

  /* メニューを開いた時下の線を-45度回転させる */
  .open .header-button .icon:after {
    transform: rotate(-45deg);
  }

  /* メニューを開いた時上の線を45度回転させ→✖️になる*/
  .open .header-button .icon:before {
    transform: rotate(45deg);
  }

  .open .header-button {
    background-color: transparent;
  }

  .open .header-gnav {
    transform: translateX(0);
  }

  .header-gnav {
    position: fixed;
    right: 0;
    top: 0;
    text-align: left;
    width: 25%;
    height: 100%;
    background-color: #E63B2E;
    transform: translateX(100%);
    transition: .3s ease;
    z-index: 100;
  }

  .header-gnav ul {
    display: flex;
    height: 100%;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .header-gnav li {
    padding-bottom: 4em;
    color: #F6EFE4;
    font-size: 0.8em;
  }

  .header-gnav li a {
    color: #F6EFE4;
    font-weight: lighter;
  }

  /* PC用の時にmargin-rightを-0.8にしたので0に訂正して中心に表示している */
  .header-gnav li:last-of-type a {
    margin-right: 0;
  }
}

/*---------ハンバーガーメニューここまで-----------*/

/*-------------------top-title--------------------------*/
.home-nada-blanco {
  position: relative;
  margin: 0 auto 3em;
  text-align: center;
  width: 100%;
  height: 510px;
}

.home-nada-blanco img {
  width: 80%;
  margin: 0 auto;
}


#nada-blanco {
  top: 110%;
  left: 50%;
  transform: translate(0%, 30%);
}

#nada-blanco-sp {
  display: none;
}

.home-gallery {
  position: absolute;
  text-align: center;
  width: 100%;
  top: 0%;
  z-index: -1;
}

.home-gallery img {
  width: 25%;
  margin: 0 auto;
}


.home-top-under {
  display: flex;
  margin: 0 3em;
  justify-content: space-between;
}

.home-top-under p {
  color: #E63B2E;
  font-size: 0.8em;
  margin: 1px 0;
}

.home-top-under span {
  font-size: 0.8em;
  margin: 1px 0;
}

@media screen and (min-width: 2501px) {
  .home-nada-blanco {
    height: 1000px;
  }

}

@media screen and (max-width: 2500px) {
  .home-nada-blanco {
    height: 1000px;
  }

}

@media screen and (max-width: 2200px) {
  .home-nada-blanco {
    height: 700px;
  }

}

@media screen and (max-width: 1700px) {
  .home-nada-blanco {
    height: 600px;
  }

}

@media screen and (max-width: 1530px) {
  .home-nada-blanco {
    height: 550px;
  }

}

@media screen and (max-width: 1340px) {
  .home-nada-blanco {
    height: 450px;
  }

}

@media screen and (max-width: 1100px) {
  .home-nada-blanco {
    height: 380px;
  }

}

@media screen and (max-width: 950px) {
  .home-nada-blanco {
    height: 290px;
  }

}

@media screen and (max-width: 820px) {
  header {
    margin: 2em 1em 2em;
  }

  .header-button {
    margin: 1.5em 1em;
  }

  .home-nada-blanco {
    height: 290px;
  }

}

@media screen and (max-width: 600px) {
  .home-nada-blanco {
    height: 160px;
  }

}

@media screen and (max-width: 500px) {
  .header-gnav {
    width: 30%;
  }

  .home-nada-blanco {
    height: 540px;
  }

  .home-gallery img {
    width: 100%;
    margin: 0 auto;
  }

  #nada-blanco {
    display: none;
    top: 110%;
    left: 50%;
    transform: translate(0%, 200%);
    width: 90%;
  }

  #nada-blanco-sp {
    display: block;
    top: 110%;
    left: 50%;
    transform: translate(0%, 70%);
    width: 90%;
  }

  .home-top-under {
    margin: 0 1em;
  }

  .home-top-under p {
    font-size: 0.5em;
  }

  .home-top-under span {
    font-size: 0.5em;
  }

}




.gallery {
  width: 90%;
  margin: 3em auto;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-content: space-between;
}





.gallery img {
  width: 30%;
  padding-bottom: 2em;
  height: auto;
}

footer {
  text-align: center;
  margin-top: 2em;
}

footer img {
  width: 1em;
  height: auto;
}

footer p {
  font-size: 0.7em;
}

/*-------------about--------------*/
.top-img img {
  width: 100%;
}

.top-wrapper {
  margin: 3em;
  text-align: center;
}

.top-wrapper p {
  font-size: 0.8em;
  letter-spacing: 0.1em;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.line {
  margin: 0 1rem;
  width: 4px;
  background-color: #000;
}

.merit {
  margin-top: 3em;
}

.let {
  margin-top: 10em;
  margin-bottom: 10em;
}

.mail {
  margin-top: 3em;
}

@media screen and (max-width: 500px) {
  .top-wrapper p, footer p {
    font-size: 0.6em;
  }

  footer p {
    margin-top: 0;
  }

  footer a img {
    width: 0.7em !important;
  }

  .gallery {
    width: 100%;
  }

  .gallery img {
    width: 45%;
    padding-bottom: 2em;
  }
}

.gallery-portfolio-full {
  width: 90%;
  margin: 3em auto;
  text-align: center;
}

.gallery-portfolio-full img {
  width: 100%;
  margin-top: 2em;
}

.gallery-portfolio {
  width: 90%;
  margin: 3em auto;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: flex-start;
}

.gallery-portfolio img {
  width: 30%;
  padding-bottom: 2em;
  height: auto;
}

.design {
  margin-top: 7em;
}

.link-button {
  text-align: center;
  margin-top: 4em;
}

.link-button a {
  border: 1px solid #5f5f5f;
  padding: 1em;
  margin: 1em;
  color: #5f5f5f;
  border-radius: .3rem;
  transition: all .2s;
}

.link-button a:hover {
  background: #ffffff;
}

@media screen and (max-width: 500px) {
  .gallery-portfolio {
    width: 100%;
  }

  .gallery-portfolio img {
    width: 45%;
    padding-bottom: 2em;
  }

  .link-button a {
    width: 45%;
    padding: 0.5em;
    margin: 0.5em;
  }
}