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

function

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

base

---------------------------------*/
* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #ffffff;
  max-width: 100%;
  margin: auto;
  color: #524e4d;
}
body.no-scroll {
  overflow: hidden;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: #524e4d;
  text-decoration: none;
}

input[type=text] {
  border: #524e4d 1px solid;
}

.container {
  width: 100%;
  padding: 0 4vw;
}
@media screen and (min-width: 768px) {
  .container {
    margin: auto;
    max-width: 56.25rem;
    padding: 0 0.9375rem;
  }
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

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

header

---------------------------------*/
.header {
  padding: 4vw 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
@media screen and (min-width: 768px) {
  .header {
    position: relative;
    padding: 3.75rem 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.heading1 {
  margin: auto;
}
@media screen and (min-width: 768px) {
  .heading1 {
    margin: 0;
  }
}

.logo {
  width: 40vw;
  display: block;
  margin: auto;
}
@media screen and (min-width: 768px) {
  .logo {
    width: 9.375rem;
  }
}

.nav {
  position: absolute;
  top: 7.4666666667vw;
  right: 4vw;
}
@media screen and (min-width: 768px) {
  .nav {
    top: 5rem;
    right: 0;
  }
}

.hamburger-menu {
  z-index: 1000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 8vw;
  height: 5.3333333333vw;
  cursor: pointer;
}
@media screen and (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }
}
.hamburger-menu__border {
  display: block;
  width: 100%;
  height: 0.8vw;
  background-color: #000000;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  transform-origin: center;
}
@media screen and (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }
}

.active .hamburger-menu__border {
  background-color: #ffffff;
}
.active .hamburger-menu__border:nth-child(1) {
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
}
.active .hamburger-menu__border:nth-child(2) {
  opacity: 0;
}
.active .hamburger-menu__border:nth-child(3) {
  position: absolute;
  top: 50%;
  transform: rotate(-45deg);
}

.navi {
  z-index: 900;
  list-style: none;
  flex-direction: column;
  top: 0;
  left: 0;
  border-radius: 5px;
  padding: 2.6666666667vw;
  gap: 4vw;
  font-size: 5.3333333333vw;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  transform: translateX(-100%);
}
@media screen and (min-width: 768px) {
  .navi {
    position: inherit;
    display: flex;
    flex-direction: row;
    background-color: inherit;
    justify-content: flex-end;
    gap: 1.875rem;
    font-size: 1rem;
    padding: 0;
    opacity: 1;
    visibility: visible;
  }
}
.navi__insta {
  width: 6.4vw;
}
@media screen and (min-width: 768px) {
  .navi__insta {
    width: 1.25rem;
  }
}
.navi__insta.active {
  background-color: #ffffff;
  border-radius: 8px;
}
.navi.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.navi.active a {
  color: #ffffff;
}

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

hero

---------------------------------*/
.hero {
  background-image: url(./img/mainvisual-pc.jpg);
  background-size: cover;
  height: 80vw;
}
@media screen and (min-width: 768px) {
  .hero {
    height: 25rem;
  }
}

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

main

---------------------------------*/
.heading {
  text-align: center;
  font-size: 7.4666666667vw;
  padding: 12vw 0 8vw 0;
  margin: auto;
}
@media screen and (min-width: 768px) {
  .heading {
    font-size: 2rem;
    padding: 1.875rem;
  }
}

.about__title {
  font-size: 5.3333333333vw;
  margin-bottom: 4vw;
}
@media screen and (min-width: 768px) {
  .about__title {
    font-size: 1.25rem;
    margin-bottom: 0.9375rem;
  }
}

.works {
  display: flex;
  flex-wrap: wrap;
  gap: 4vw;
}
@media screen and (min-width: 768px) {
  .works {
    gap: 0.9375rem;
  }
}
@media screen and (min-width: 768px) {
  .works__img {
    width: calc(33.3333333333% - 0.9375rem);
  }
}

.news {
  border-top: #524e4d 1px solid;
  display: flex;
  flex-direction: column;
  gap: 1.0666666667vw;
  padding: 4vw;
  font-size: 3.7333333333vw;
}
.news:last-of-type {
  border-bottom: #524e4d 1px solid;
}
@media screen and (min-width: 768px) {
  .news {
    gap: 1.875rem;
    padding: 1.875rem;
    font-size: 0.875rem;
  }
}
@media screen and (min-width: 768px) {
  .news__date {
    width: 12.5rem;
  }
}

.contact__form {
  display: flex;
  flex-direction: column;
  font-size: 5.3333333333vw;
  padding: 2.1333333333vw;
}
@media screen and (min-width: 768px) {
  .contact__form {
    font-size: 1.25rem;
    padding: 1.875rem;
  }
}
.contact__form--item {
  display: flex;
  gap: 2.1333333333vw;
  padding: 4vw 0;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .contact__form--item {
    flex-direction: row;
    gap: 1.875rem;
    padding: 0.9375rem 0;
  }
}
.contact__form--label {
  width: 21.3333333333vw;
}
@media screen and (min-width: 768px) {
  .contact__form--label {
    width: 8.75rem;
  }
}
@media screen and (min-width: 768px) {
  .contact__form--text {
    width: 60%;
  }
}
.contact__form--submit {
  display: block;
  color: #ffffff;
  background-color: #524e4d;
  font-size: 4.2666666667vw;
  width: 100%;
  margin: 8vw auto;
  padding: 4vw 8vw;
}
@media screen and (min-width: 768px) {
  .contact__form--submit {
    font-size: 1rem;
    width: 12.5rem;
    margin: 1.875rem auto;
    padding: 0.9375rem 1.875rem;
  }
}

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

footer

---------------------------------*/
.footer {
  padding: 8vw;
  background-color: #524e4d;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .footer {
    padding: 1.875rem;
  }
}
.footer__copy {
  font-size: 5.3333333333vw;
  color: #ffffff;
}
@media screen and (min-width: 768px) {
  .footer__copy {
    font-size: 1.25rem;
  }
}