/*---------------------------------
 上からメニューが表示されるハンバーガーメニュー
---------------------------------*/

/* CSSコード */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  background: #fff;
  position:fixed;  /*ヘッダーの位置を固定*/
  top:0;  /*ヘッダーの位置を固定（上0）*/
  right:0; /*ヘッダーの位置を左固定（左０）*/
  z-index: 999;
}

.logo {
  font-size: 24px;
}

/* ここから下がハンバーガーメニューに関するCSS */

header {
  position: sticky; /*stickyで上部に固定*/
  top: -100px; /*スクロール前の要素の高さ分引くと画面外に消えてくれる*/
  margin: 0;
  z-index: 9999; /*重ね順を一番上に*/
}
  
/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 25px;
  z-index: 100;/* 重なり順を一番上にする */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}
  
/* メニューのデザイン*/
.nav_content {
  width: 100%;
  height: 100%;
  position: fixed;
  bottom: 95%;
  left: 0%; /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: rgb(194, 182, 175, 0.9);
  transition: .5s;
  text-align: left;
}

nav,ul{
    width:100%;
    margin:0;
    padding:0;
    flex-direction: column;
}

li{
    margin:0;
    text-align:center;
}
a{
    display:block;
}

/* メニュー黒ポチを消す */
.nav_list {
  list-style: none;
}

.nav_item a {
  color: #fff;
  text-decoration: none;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  bottom: 0;/* メニューを画面に入れる */
  
}

@media screen and (min-width: 1100px) {
  /*PC時非表示にする*/
  .drawer_open {
    display: none;
}
 .nav_content {
    display: none;
  }
}