@charset "UTF-8";
/* ///// gnav ///////////////////////////////// */
input {
 display: none;
}

#nav-drawer {
 position: sticky;
 top: 0;
 right: 0;
 z-index: 1;
 background-color: #ffffff;
}

/* #nav-content ul li:not(:last-child) {
 border-right: 1px solid #000000;
} */

#nav-content {
 display: flex;
 overflow: hidden;
 align-items: flex-start;
 flex-direction: row;
 justify-content: space-between;
 padding: 0;
 width: 100%;
 height: 100%;
}

.logo {
 padding: 0 0 0 0;
 width: 100%;
 text-align: center;
}

#nav-content .logo ul {
 display: flex;
 align-items: flex-start;
 flex-direction: row;
 justify-content: flex-start;
 padding: 1.5%;
 background: #ffffff;
}

#nav-content ul li {
 display: flex;
 align-items: flex-start;
 flex-direction: column;
 justify-content: flex-start;
 padding: 0 2%;
}

#nav-content ul li a {
 color: #000000;
 text-decoration: none;
 word-break: keep-all;
 font-weight: bold;
 font-style: italic;
 font-size: clamp(14px, 1.7vw, 20rem);
 font-family: "Poppins";
}

#nav-content ul li > a img {
 width: auto;
 height: 4vh;
}

/*ソーシャルボタン*/
.social {
 display: flex;
 position: absolute;
 right: 2%;
 bottom: 22%;
 z-index: 99;
 flex-direction: row;
 justify-content: flex-end;
 width: 10%;
}

.social a {
 display: block;
 margin: 0 1%;
 width: 33%;
}

.social a img {
 width: 100%;
}

.social a:hover {
 opacity: .7;
}

section[id^=n_] {
 scroll-margin-top: 80px;
}

@media screen and (max-width:1000px) {
 #nav-drawer {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 50px;
  background: #ffffff;
  background-size: cover;
  background-repeat: repeat-y;
 }

 #nav-content .logo ul {
  flex-direction: column;
  margin: 40% 5% 0;
 }

 #nav-content ul li a {
  font-size: 22px;
 }

 #nav-content ul li > a img {
  height: 3.5vh;
 }

 .social {
  bottom: 2%;
  justify-content: center;
  margin: 0 6%;
  width: 75%;
 }
 #nav-open:hover {
  opacity: .7;
  cursor: pointer;
 }

 /*チェックボックス等は非表示に*/
 .nav-unshown {
  display: none;
 }

 /*アイコンのスペース*/
 #nav-open {
  display: inline-block;
  position: absolute;
  top: 5px;
  right: 0;
  z-index: 99999999;
  margin: 10px 5px 0 10px;
  width: 30px;
  height: 22px;
  vertical-align: middle;
 }

 #nav-content ul li:not(:last-child) {
  margin-bottom: 2%;
  border-right:none;
 }

 /*ハンバーガーアイコンをCSSだけで表現*/
 #nav-open span ,
 #nav-open span:before ,
 #nav-open span:after {
  display: block;
  position: absolute;
  width: 25px;
  height: 4px;
  border-radius: 3px;
  background: #000000;
  content: "";
  cursor: pointer;
 }

 #nav-open span:before {
  bottom: -8px;
 }

 #nav-open span:after {
  bottom: -16px;
 } /*閉じる用の薄黒カバー*/
 #nav-close {
  display: none;
  /*はじめは隠しておく*/
  position: fixed;
  top: 0;
  /*全体に広がるように*/
  left: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  transition: .3s ease-in-out;
 }

 /*中身*/
 #nav-content {
  position: fixed;
  top: 0;
  right: 0;
  left: unset;
  z-index: 9999;
  overflow: auto;
  /*最前面に*/
  width: 150px;
  /*右側に隙間を作る（閉じるカバーを表示）*/
  height: 100%;
  transition: .3s ease-in-out;
  /*滑らかに表示*/
  transform: translateX(105%);

  /*左に隠しておく*/
 }

 /*チェックが入ったらもろもろ表示*/
 #nav-input:checked ~ #nav-close {
  display: block;
  /*カバーを表示*/
  opacity: .5;
 }

 #nav-input:checked ~ #nav-content {
  background: #ffffff;
  /*中身を表示（右へスライド）*/
  box-shadow: 6px 0 25px rgba(0, 0, 0, .15);
  transform: translateX(0%);
 }
}
