@charset "utf-8";

/*========= スクロール途中でヘッダーが表示＆非表示するためのCSS ===============*/

/*　上に上がる　*/
#header.UpMove{
  animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

/*　下に下がる　*/
#header.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
nav ul li a{
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  padding:10px 15px;
  transition:all 0.3s;
}
nav ul li.current a,
nav ul li a:hover,
nav ul li a:active{
  color:#fff;
}
nav ul li.reji a{
  background: #e11d2f;
  padding: 7px 15px;
  margin-left: 10px;
}
nav ul li.reji a::before {
  content: '\f2c2';
  font-family: "Font Awesome 6 Free";
  margin-right: 5px;
}

.header-phone{
  border: solid 1px;
  margin: 0 10px;
}
.header-mail {
  background: #f00;
}

@media only screen and (max-width:1120px){
  .openbtn{
    display: block;
    position:fixed;
    z-index: 9999;
    top:10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height:50px;
    background: rgb(0 0 0 / 50%);
    border: solid 1px #fff;
  }
  .openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 45%;
  }
  .openbtn span:nth-of-type(1) {
    top:15px;
  }
  .openbtn span:nth-of-type(2) {
    top:23px;
  }
  .openbtn span:nth-of-type(3) {
    top:31px;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
  #g-nav.panelactive{
    position:fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width:100%;
    height: 100vh;
  }
  .circle-bg{
    position: fixed;
    z-index:3;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #999;
    transform: scale(0);
    top:-50px;
    left:calc(50% - 50px);
    transition: all .6s;
  }
  .circle-bg.circleactive{
    transform: scale(50);
  }
  #g-nav-list{
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #g-nav.panelactive #g-nav-list{
    display: block;
  }
  #g-nav ul {
    opacity: 0;
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
  }
  #g-nav.panelactive ul {
    display: block;
    opacity:1;
  }
  #g-nav.panelactive ul li{
    animation-name:gnaviAnime;
    animation-duration:1s;
    animation-delay:.2s;
    animation-fill-mode:forwards;
    opacity:0;
  }
  @keyframes gnaviAnime{
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  #g-nav li{
    text-align: center;
    list-style: none;
  }
  #g-nav li a{
    color: #fff;
    text-decoration: none;
    padding:10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
  nav ul li.reji a{
    margin: 0 0 10px;
  }
  .header-phone {
    margin: 0 0 10px;
  }

}
