@charset "utf-8";

body {
  margin: 0;
  background-color: black;
}

/*========= ナビゲーションのためのCSS ===============*/
/*ナビゲーション*/
.ham_nav {
  display: none;
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#g-nav.panelactive .ham_nav {
  display: block;
  width: 80%;
  list-style: none;
  padding: 0;
}

/*アクティブになったエリア*/
#g-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}

.circle-bg {
  position: fixed;
  z-index: 99;
  width: 100%;
  height: 100%;
  clip-path: polygon(100% 40%, 0 60%, 0 60%, 100% 40%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  opacity: 0;
  -ms-transform: translate(-50%, -50%);
  background-color: #fff;
  transition: all 0.6s ease-out;
  /*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive {
  clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
  opacity: 1;
}

/*ナビゲーションの縦スクロール*/
#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.panelactive ul {
  opacity: 1;
}

/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li ,.ham_logo{
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: .1s;
  /*0.2 秒遅らせて出現*/
  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: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}


/*========= ボタンのためのCSS ===============*/
.openbtn1 {
  position: fixed;
  top: 22px;
  right: 10px;
  z-index: 9999;
  /*ボタンを最前面に*/
  cursor: pointer;
  width: 75px;
  height: 50px;
}

/*×に変化*/
.openbtn1 span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 1px;
  background-color: #fff;
  width: 38px;
}

.openbtn1 span:nth-of-type(1) {
  top: 15px;
}

.openbtn1 span:nth-of-type(2) {
  top: 23px;
}


.openbtn1.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 38px;
  background-color: #000;
}

.openbtn1.active span:nth-of-type(2) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 38px;
  background-color: #000;
}

.ham_ttl {
  margin: 0;
  font-size: 25px;
}

.ham_txt {
  margin: 0;
  font-size: 11px;
  width: 90%;
  margin-top: -2%;
}

.ham_txt_area {
  width: 90%;
}

.ham_logo {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}
#g-nav.panelactive .ham_nav {
  display: block;
  width: 80%;
  height: 65vh;
  list-style: none;
  padding: 0;
}

.ham_nav {
  display: none;
  position: absolute;
  z-index: 999;
  top: 50%;
  max-width: 500px;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ham_logo {
  width: 206.07px;
    height: 35.24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
}
.ham_logo img{
  width: 100%;
}
#g-nav ul{
  padding: 0;
  text-align: left;
}
#g-nav.panelactive ul li{
  text-align: left;
}
#g-nav li a{
  font-family: din-2014;
  font-weight: 700;
  font-style: normal;
  padding: 0;
  margin: 30px 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  column-gap: 15px;
}
#g-nav.panelactive ul {
    opacity: 1;
    width: 83%;
    margin: 0 auto;
  }
  .ham_border{
    width: 20px;
    height: 3px;
    background-color: #000;
  }
@media screen and (min-width:1024px) {
  .ham_txt {
    margin: 0;
    font-size: 13px;
    width: 90%;
    margin-top: -1%;
  }

  #g-nav.panelactive .ham_nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
  }
  .ham_border{
    width: 30px;
    height: 6px;
    background-color: #000;
  }
  .ham_nav{
    max-width: none;
  }
  #g-nav li a{
    font-size: 30px;
  }
  .ham_logo{
    width: 397.93px;
  }
}
@media screen and (min-width:1200px) {
  #g-nav li a{
    font-size: 40px;
  }
}
@media screen and (min-width:1900px) {
  #g-nav li a{
    font-size: 50px;
  }
}
@media screen and (min-height:768px) {
  #g-nav li a{
    font-size: 35px;
  }
}
