.openbtn1 {
  display: none;
}

#mg-nav {
  display: none;
}

#header {
  /*fixedで上部固定*/
  position: fixed;
  height: 70px;
  width: 100%;
  z-index: 999;
  /*最前面へ*/
  /*以下はレイアウトのためのCSS*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff6c6;
  color: #A46305;
  text-align: center;
  padding: 0px;
}

.logoIng {
  height: 70px;
  margin-left: 25px;
}

#header.UpMove {
  animation: UpAnime 0.5s forwards;
}

#header.DownMove {
  animation: DownAnime 0.5s forwards;
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: #A46305;
  padding: 10px;
  transition: all 0.3s;
}

nav ul li.current a,
nav ul li a:hover,
nav ul li a:active {
  color: #99733e;
}

nav ul ul {
  display: block;
}

nav ul li {
  position: relative;
  width: fit-content;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: #A46305;
  padding: 20px 14px;
  white-space: nowrap;
  transition: all .3s;
}

nav ul li ul li {
  width: 100%;
}

nav ul li li a {
  padding: 10px 35px;
}

nav ul li a:hover {
  color: #99733e;
}

nav ul li.has-child::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 25px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
  transform: rotate(135deg);
}

nav ul ul li.has-child::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

nav li.has-child ul {
  /*絶対配置で位置を指定*/
  position: absolute;
  left: 0;
  top: 62px;
  z-index: 999;
  /*形状を指定*/
  background: #99733e;
  width: 220px;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  /*アニメーション設定*/
  transition: all .3s;
}

nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul {
  visibility: visible;
  opacity: 1;
}

nav li.has-child ul li a {
  color: #fff;
  border-bottom: solid 1px rgba(255,255,255,0.6);
}

nav li.has-child ul li:last-child a {
  border-bottom: none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
  background: #FEEE8E;
  width: 100%;
}

nav li.has-child ul ul {
  top: 0;
  left: 182px;
  background: #99733e;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active {
  background: #99733e;
}

@media screen and (max-width:1150px) {
  #header {
    display: flex;
  }

  #g-navi {
    display: none;
  }

  .openbtn1 {
    display: block;
  }

  .logoIng {
    height: 56px;
    margin-left: 15px;
  }
}

#mg-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#g-nav.panelactive #g-nav-list {
  display: block;
  /*クラスが付与されたら出現*/
}

#mg-nav ul {
  display: block;
  opacity: 0;
  /*はじめは透過0*/
  /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

#mg-nav.panelactive ul {
  opacity: 1;
}

#mg-nav li {
  text-align: center;
  list-style: none;
}

#mg-nav li a {
  color: #A46305;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.openbtn1 {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9999;
  /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}

.openbtn1 span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 45%;
}

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

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

.openbtn1 span:nth-of-type(3) {
  top: 31px;
}

.openbtn1.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn1.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

#header {
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 20px;
}

#g-navi {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0 40px 0 0;
}

#g-navi li a {
  color: #8a5a12;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 6px;
  position: relative;
  display: block;
  white-space: nowrap;
}

#g-navi li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #d8a84f;
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 999px;
}

#g-navi li a:hover::after {
  width: 80%;
}

#g-navi li a:hover {
  color: #b47518;
}

#g-navi li {
  position: relative;
  padding: 0 10px;
}

#g-navi li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(164, 99, 5, 0.25);
}

@media screen and (max-width:1150px) {
  #header {
    display: none;
  }

  .openbtn1 {
    display: block;
  }
}

@media screen and (max-width:1150px) {
  #header {
    display: flex;
    height: 60px;
    background: #fff6c6;
    color: #A46305;
    padding: 0;
    z-index: 999;
  }

  #g-navi {
    display: none;
  }

  .logoIng {
    display: block;
    height: 56px;
    width: auto;
    margin-left: 15px;
  }

  .openbtn1 {
    display: block;
    position: fixed;
    top: 5px;
    right: 10px;
    z-index: 1000;
  }
}