@charset UTF-8;

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family:serif;
    color: #3e3c41;
    background-color:rgb(175, 176, 179)
}

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

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #3e3c41;
}

header {
    width: 100%;
    height: 100px;
    padding: 15px 20px 15px 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: rgb(175, 176, 179);
}

.logo {
    width: 100%;
    max-width: 70px;
    padding: 20px;
}

.logo a {
    display: block;
}

.navi {
    display: flex;
    align-items: center;
    padding-right: 50px;
}

.navi li {
    font-size: 16px;
    font-weight: bold;
    margin-left: 30px;
}

h2 {
    font-size: 24px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 50px;
    font-weight: bold;
}

footer {
    background-color: #3e3c41;
    padding: 50px 0;
    color: #f1f1f3;
    margin-top: 150px;
}

.menu {
    line-height: 3em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 16px;
    padding-left: 50px;
    margin-bottom: 40px;
}

.menu a {
    color: #f1f1f3;
}

footer p {
    font-size: 12px;
    padding-right: 50px;
    text-align: right;
}

.sns {
  width: 70px;
  display: flex;
  justify-content: space-between;
  margin-left: 50px;
}

.sns img {
  max-width: 25px;
}


@media screen and (max-width: 767px) {
  main {
      padding-top: 100px;
      max-width: 767px;
    }
  
  header {
      max-width: 767px;
      width: 100vh;
      height: 100px;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 30;
  }

  .logo {
    width: 100%;
    max-width: 70px;
    padding: 10px;
}

  nav {
      width: 100%;
      height: 100vh;
      background-color: rgb(175, 176, 179);
      position: fixed;
      top: 0;
      right: -100%;
      z-index: 20;
      transition: all 0.4s;
    }

  nav.active {
      right: 0;
    }

  nav ul {
      display: flex;
      flex-direction: column;
      padding: 60px 0;
      margin: 0 auto;
    }

  nav ul li {
      font-size: 40px;
      padding: 30px;
      margin: 0 auto;
    }

  .hamburger {
      width: 70px;
      height: 70px;
      cursor: pointer;
      position: fixed;
      top:30px;
      right:10px;
      z-index: 30;
    }
  
  .hamburger span {
      width: 30px;
      height: 3px;
      background-color: #3e3c41;
      display: inline-block;
      position: absolute;
      left: 10px;
      transition: all 0.4s;
    }
  .hamburger span:nth-of-type(1) {
      top: 20px; 
    }
  .hamburger span:nth-of-type(2) {
      top: 30px;
    }
  .hamburger span:nth-of-type(3) {
      top: 40px;
    }
  .hamburger.active span:nth-of-type(1) {
      top: 25px;
      transform: rotate(-45deg);
    }
  .hamburger.active span:nth-of-type(2) {
      opacity: 0;
    }
  .hamburger.active span:nth-of-type(3) {
      top: 25px;
      transform: rotate(45deg);
    }

  h2 {
    font-size: 20px;
  }

  footer {
    padding: 30px 0;
    color: #f1f1f3;
    margin-top: 100px;
  }

  .menu {
      font-size: 14px;
      padding-left: 20px;
      margin-bottom: 40px;
  }

  footer p {
      font-size: 12px;
      padding: 0;
      text-align: center;
  }

  .sns {
    margin-left: 20px;
    margin-bottom: 20px;
  }
}