header {
  padding: 20px 20px 20px 20px;
  background-color: #fff;
  position: fixed;
  z-index: 5;
  width: 100%;
  height: 157px;
}
header .header-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
header .header-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
header .header-logo-icon {
  width: 100%;
  max-width: 58px;
}
header .header-logo-name-bottom {
  width: 100%;
  max-width: 330px;
}
header .header-nav-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 610px;
}
header .nav-top-tel {
  width: 100%;
  max-width: 280px;
}
header .nav-top-tel .btn {
  display: block;
  color: #fff;
  font-size: 16px;
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  background-color: #62a393;
  border-radius: 10px;
  padding: 16px 0 16px 15px;
  height: 50px;
  position: relative;
}
header .nav-top-tel .btn::before {
  content: "";
  display: block;
  background-image: url(../img/header/header-tel-icon.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 14px;
  height: 16px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 60px;
}
header .nav-top-contact {
  width: 100%;
  max-width: 280px;
}
header .nav-top-contact .btn {
  display: block;
  color: #fff;
  font-size: 16px;
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  background-color: #64a36f;
  border-radius: 10px;
  padding: 16px 0 16px 15px;
  height: 50px;
  position: relative;
}
header .nav-top-contact .btn::before {
  content: "";
  display: block;
  background-image: url(../img/header/header-contact-icon.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 16px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 63px;
}
header .header-nav-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 60px;
  padding: 50px 65px 0 0;
}
header .nav-bottom-link a {
  display: block;
  font-size: 16px;
  color: #404040;
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 400;
  position: relative;
}
header .nav-bottom-link a::before {
  content: "";
  display: block;
  background-image: url(../img/header/header-nav-icon.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: -30px;
}

@media screen and (max-width: 1040px) {
  header .header-logo-icon {
    width: 100%;
    max-width: 45px;
  }
  header .header-logo-name-top {
    font-size: 14px;
  }
  header .header-logo-name-bottom {
    width: 100%;
    max-width: 300px;
    padding-right: 10px;
  }
  header .header-nav-top {
    max-width: 430px;
  }
  header .nav-top-tel .btn::before {
    left: 18px;
  }
  header .nav-top-contact .btn::before {
    left: 20px;
  }
  header .header-nav-bottom {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    padding: 50px 0 0 0;
  }
}
@media screen and (max-width: 767px) {
  header {
    padding: 0;
    z-index: 7;
    width: 100%;
    height: 65px;
  }
  header .header-sp-inner {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  header .header-nav-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0;
    max-width: unset;
    position: fixed;
    bottom: 0;
    z-index: 3;
  }
  header .nav-top-tel {
    width: 100%;
    max-width: unset;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  header .nav-top-tel .btn {
    font-size: 14px;
    border-radius: 0;
    padding: 16px 0 16px 15px;
  }
  header .nav-top-tel .btn::before {
    width: 14px;
    height: 16px;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 25px;
  }
  header .nav-top-contact {
    width: 100%;
    max-width: unset;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  header .nav-top-contact .btn {
    font-size: 14px;
    border-radius: 0;
    padding: 16px 0 16px 15px;
  }
  header .nav-top-contact .btn::before {
    width: 20px;
    height: 16px;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 25px;
  }
  header .header-nav-bottom {
    padding: 10px 10px 10px 10px;
    gap: 0;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
  }
  header .header-logo-icon {
    max-width: 38px;
  }
  header .header-logo-name-top {
    font-size: 12px;
    margin-bottom: 4px;
  }
  header .header-logo-name-bottom {
    width: 100%;
    max-width: 200px;
  }
  header .nav-bottom-link {
    position: relative;
  }
  header .nav-bottom-link a {
    display: block;
    font-size: 16px;
    color: #404040;
    font-family: "source-han-sans-japanese", sans-serif;
    font-weight: 400;
  }
  header .nav-bottom-link::before {
    content: "";
    display: block;
    background-image: url(../img/header/header-nav-icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: -30px;
  }
  header #g-nav {
    position: fixed;
    z-index: 2;
    top: -120%;
    left: 0;
    width: 100%;
    height: 50vh;
    background: #fff;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    overflow: scroll;
  }
  header .g-nav-wr {
    display: block;
    position: relative;
    z-index: 3;
    margin-top: 100px;
    padding: 10px 50px;
  }
  header .nav-bottom-link a {
    display: block;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  header #g-nav.panelactive {
    top: 0;
  }
  header .openbtn {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 7px;
    z-index: 6;
    cursor: pointer;
    background: #ded7cc;
  }
  header .openbtn span {
    display: inline-block;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    width: 32%;
  }
  header .openbtn span:nth-of-type(1) {
    top: 15px;
  }
  header .openbtn span:nth-of-type(2) {
    top: 23px;
  }
  header .openbtn span:nth-of-type(3) {
    top: 31px;
  }
  header .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-transform: translateY(6px) rotate(-45deg);
            transform: translateY(6px) rotate(-45deg);
    width: 35%;
  }
  header .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  header .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-transform: translateY(-6px) rotate(45deg);
            transform: translateY(-6px) rotate(45deg);
    width: 35%;
  }
}