@charset "utf-8";
#header {
  position: fixed;
  top: 0;
  left: 0;
  height: auto;
  width: 100%;
  background: #fff;
  border-bottom: solid 1px #00000017;
  z-index: 100;
}
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav > .nav-header {
  display: inline;
}

.nav > .nav-header > .nav-title {
  display: inline-block;
  margin: 1em 1em 0.7em;
  width: 200px;
  max-width: 96%;
}

.nav > .nav-btn {
  display: none;
}

.nav > .nav-links {
  display: inline;
}

.nav > .nav-links > a {
  display: inline-block;
  margin: 1em 0.65em;
  color: #000;
}
.nav > #nav-check {
  display: none;
}

/* add */
.nav > .nav-links > a {
  position: relative;
}
.nav > .nav-links > a::after {
  position: absolute;
  left: calc(50% - 12px);
  content: "";
  width: 24px;
  height: 2px;
  background: #b2550e;
  bottom: -8px;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s;
}
.nav > .nav-links > a:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}
.nav > .nav-links > a:hover {
  color: #b2550e;
}
.nav > .nav-links > a.contact {
  background: #b2550e;
  color: #fff;
  padding: 8px 20px;
  box-sizing: border-box;
  border-radius: 20px;
  position: static;
  border: solid 1px #b2550e;
}
.nav > .nav-links > a.contact::after {
  position: static;
  left: 0;
  content: "";
  width: 0;
  height: 0px;
  bottom: 0;
}
.nav > .nav-links > a.contact:hover {
  background: #fff;
  color: #b2550e;
  border: solid 1px #b2550e;
}
.nav > .nav-links > a.onMenu::after {
  transform: scale(1, 1);
}
.nav {
  width: calc(1400px - 1%);
  max-width: 90%;
  margin: 0 auto;
}
.nav-linksSub {
  display: none !important;
}
@media (max-width: 1024px) {
  .nav > .nav-header {
    display: block;
    width: 100%;
  }
  .nav > .nav-header > .nav-title {
    margin: 15px 0 11px 8px;
  }
  .nav > .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 0px;
  }
  .nav > .nav-btn > label {
    display: inline-block;
    width: 60px;
    height: 60px;
    cursor: pointer;
  }
  .nav > .nav-btn > label > span {
    display: inline-block;
    transition: all 0.4s; /*アニメーションの設定*/
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background-color: #000;
  }

  .nav > .nav-links {
    position: absolute;
    display: block;
    width: 100%;
    background-color: #fff;
    height: 0px;
    transition: all 0.3s ease-in;
    overflow-y: hidden;
    top: 60px;
    left: 0px;
  }
  .nav > .nav-links > a {
    display: block;
    width: 100%;
    margin: 0;
  }
  .nav > #nav-check:not(:checked) ~ .nav-links {
    height: 0px;
  }
  .nav > #nav-check:checked ~ .nav-links {
    height: calc(100vh - 60px);
    padding-bottom: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    border-top: solid 1px #00000017;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .openbtn span:nth-of-type(1) {
    top: 29px;
    width: 60%;
  }

  .openbtn span:nth-of-type(2) {
    top: 36px;
    width: 60%;
  }

  .openbtn.active span:nth-of-type(1) {
    top: 32px;
    left: 50%;
    transform: translateY(-6px) translateX(-50%) rotate(-30deg);
    width: 60%;
  }

  .openbtn.active span:nth-of-type(2) {
    top: 32px;
    left: 50%;
    transform: translateY(-6px) translateX(-50%) rotate(30deg);
    width: 60%;
  }

  /* add */
  .nav > .nav-header > .nav-title img {
    width: 200px;
  }
  .nav > .nav-links > a {
    position: relative;
    padding: 1.5em 2.5em;
    box-sizing: border-box;
    border-bottom: solid 1px #e9e9e9;
    font-weight: bold;
  }
  .nav > .nav-links > a::after {
    left: 2.5em;
    content: "";
    width: calc(100% - 5em);
    bottom: 17px;
  }
  .nav > .nav-links > a.contact {
    background: #fff;
    color: #000;
    padding: 1.5em 2.5em;
    border: none;
    border-bottom: solid 1px #e9e9e9;
    border-radius: 0;
  }
  .nav > .nav-links > a.contact::after {
    position: static;
    left: 0;
    content: "";
    width: 0;
    height: 0px;
    bottom: 0;
  }
  .nav {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .nav-linksSub {
    display: block !important;
    font-size: 0.8em;
    color: #b2550e;
  }

  .nav-btn.onBtn .openbtn span:nth-of-type(1) {
    top: 39px;
    left: 10px;
    transform: translateY(-6px) rotate(-20deg);
  }

  .nav-btn.onBtn .openbtn span:nth-of-type(2) {
    top: 33px;
    left: 16px;
    transform: translate(-6px) rotate(20deg);
  }
}
