@charset "utf-8";

#header {
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  z-index: 999;
  justify-content: space-between;
}

.logo-container {
  width: 25%;
  padding-left: 5%;
}

.logo {
  margin: 0;
}

.logo img {
  width: 300px;
  height: auto;
}

.g-nav {
  width: 70%;
  padding-right: 5%;
  margin-top: 20px;
}

.g-nav-menu {
  width: 100%;
  display: flex;
  color: #ffffff;
  justify-content: flex-end;
  text-align: center;
  padding-right: 5%;
}

/*.slottextbtn:not(:first-child) {
  border-left: 1px solid #ffffff;
}*/

.slottextbtn {
  padding-left: 3.1%;
  padding-right: 3.1%;
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: fit-content;
  width: 15%;
  height: 40px; /* 縦幅 */
  line-height: 20px; /* 行の高さ(heightと同じ値にする) */
  overflow-y: hidden; /* はみ出し部分を隠す */
  cursor: pointer; /* カーソルをポインターにする */
}

.slottext{
  position: absolute;
  color: #ad9a7a;
  transition: all 0.3s; /* アニメーション実行時間 */
  white-space: normal;
}

/* ボタンのテキスト(デフォルトのテキスト) */
.slottext:nth-child(1) {
  top: 0;
  width: 100%;
}

.slottextbtn:hover .slottext:nth-of-type(1) {
  top: 100%;
}

/* ボタンのテキスト(隠れているテキスト) */
.slottext:nth-child(2) {
  top: -200%;
  width: 100%;
  color: #d2b978;
}

/* ボタンのテキスト(隠れているテキスト) */
.slottextbtn:hover .slottext:nth-of-type(2) {
  top: 0;
  width: 100%;
}

.humburgermenu-container {
  display: none;
}

.humburgermenu {
}


@media screen and (max-width: 1024px) {
  .logo {
    margin: 0;
    width: 230px;
  }

  .slottextbtn{
    width: 20%;
  }

  .g-nav-menu{
    padding-right: 5.5%;
    padding-left: 5.5%;
  }

  .logo-container {
    padding-left: 5%;
  }

  .g-nav {
    width: 55%;
  }

  .g-nav-menu {
    justify-content: space-around;
  }
}

@media screen and (max-width: 768px) {
  #header{
    height: 60px;
    justify-content: space-between;
  }

  .logo-container{
    width: 75%;
    padding-left: 5%;
  }

  .logo img {
    width: 100%;
    height: auto;
  }

  #g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 998;
    top: 40px;
    right: -120%;
    width:100%;
    height: 100vh;/*ナビの高さ*/
    display: block;
    background: rgba(255, 255, 255, 0.9);
    /*動き*/
    transition: all 0.6s;
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive{
    right: 0%;
    padding: 0;
  }

  #g-nav .g-nav-menu{
      flex-direction: column;
      margin-top: 0px;
      padding: 0;
  }

  #g-nav .g-nav-menu .slottextbtn{
    border-left: none;
    text-align: center;
    margin: 0 auto;
    height: 60px!important;
    line-height: 70px!important;
    width: 75%!important;
  }

  #g-nav.panelactive .g-nav-menu .slottextbtn::after{
    content: "";
    width: 75%;
    border-bottom: 1px solid #d2b978;
  }

  #g-nav.panelactive .g-nav-menu .slottextbtn{
    font-size: 1.3em;
    border: none;
    height: 75px;
    line-height: 100px;
  }

  #g-nav.panelactive .g-nav-menu .slottextbtn:not(:first-child){
    border-left: none;
  }

  #g-nav.panelactive .g-nav-menu .slottextbtn:last-child{
    border-bottom: none;
  }

  .humburgermenu-container {
    display: block;
    width: 12%;
    min-width: 100px;
    height: 60px;
  }

  .humburgermenu {
    display: block;
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
  }

  .humburgermenu {
    display: block;
    width: 80px;
    height: 60px;
    position: relative;
    cursor: pointer;
  }

  .humburgermenu span {
    display: inline-block;
    transition: all 0.4s; /*アニメーションの設定*/
    position: absolute;
    right: 20px;
    top: 10px;
    height: 2px;
    background-color: #d2b978;
  }

  .humburgermenu span:nth-of-type(1) {
    top: 20px;
    width: 50%;
  }

  .humburgermenu span:nth-of-type(2) {
    top: 35px;
    width: 50%;
  }

  /*activeクラスが付与されると線が回転して×に*/

  .humburgermenu.active span:nth-of-type(1) {
    top: 20px;
    right: 20px;
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
  }

  .humburgermenu.active span:nth-of-type(2) {
    top: 32px;
    right: 20px;
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
  }

}

