@charset "UTF-8";
header {
  display: flex;
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 30;
  width: 100%;
  transition: background 0.5s;
}
header.change-color {
  background-color: rgba(0, 0, 0, 0.6);
}
.logo {
  flex: 1;
  padding-left: 40px;
  border-bottom: 1px #fff solid;
}
.logo a {
  display: flex;
  height: 100%;
  align-items: center;
}
.pc-nav li {
  border-bottom: 1px #fff solid;
  border-left: 1px #fff solid;
}
.pc-nav li a {
  font-weight: 500;
  display: flex;
  padding: 20px 40px;
  color: #fff;
  width: 100%;
  align-items: center;
  height: 100%;
  font-size: 1.4rem;
  background: transparent;
  position: relative;
  z-index: 1;
  transition: 0.3s;
}
.pc-nav li a::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: #fff;
  transform-origin: 50% 0%;
  transform: scaleY(0);
  transition: transform ease 0.3s;
}
.pc-nav li a:hover {
  color: #b27d30;
}
.pc-nav li a:hover::before {
  transform-origin: 50% 100%;
  transform: scaleY(1);
}
.pc-nav li.contact {
  border-bottom: 1px #b27d30 solid;
  border-left: 1px #b27d30 solid;
}
.pc-nav li.contact a {
  color: #b27d30;
}
.pc-nav li.contact a::before {
  background: #b27d30;
}
.pc-nav li.contact a:hover {
  color: #fff;
}
@media only screen and (min-width: 861px) {
  .logo a img {
    width: 338px;
  }
  .pc-nav {
    display: flex;
  }
  #g-nav {
    display: none;
  }
  .openbtn {
    display: none;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1200px) {
  .pc-nav li a {
    padding: 20px 30px;
    font-size: 1.2rem;
  }
}
@media only screen and (min-width: 768px) and (max-width: 977px) {
  .pc-nav li a {
    padding: 20px 20px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 860px) {
  .pc-nav {
    display: none;
  }
  header {
    border-bottom: 1px solid #fff;
  }
  .logo {
    border: none;
    padding: 10px;
  }
  .logo img {
    width: 338px;
  }
  .openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    cursor: pointer;
    width: 50px;
    height: 50px;
    right: 5px;
    top: 5px;
    /*ボタン内側*/
    /*activeクラスが付与されると線が回転して×になる*/
  }
  .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    /*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 1px;
    background: #fff;
  }
  .openbtn span:nth-of-type(1) {
    top: 10px;
    width: 45%;
  }
  .openbtn span:nth-of-type(2) {
    top: 18px;
    width: 35%;
  }
  .openbtn span:nth-of-type(3) {
    top: 26px;
    width: 20%;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
  }
  #g-nav {
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position: fixed;
    z-index: -1;
    opacity: 0;
    /*はじめは透過0*/
    /*ナビの位置と形状*/
    top: -100%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: rgba(5, 10, 19, 0.8);
    /*動き*/
    transition: all 0.3s;
    /*アクティブクラスがついたら透過なしにして最前面へ*/
  }
  #g-nav.panelactive {
    top: 0;
    opacity: 1;
    z-index: 999;
  }
  #g-nav.panelactive ul {
    display: block;
    width: 100%;
  }
  #g-nav #g-nav-list {
    /*ナビゲーションの縦スクロール*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*リストのレイアウト設定*/
  }
  #g-nav ul li {
    margin: auto;
    list-style: none;
    text-align: center;
    width: 70%;
    display: block;
  }
  #g-nav ul li a {
    width: 100%;
    color: #333;
    padding: 20px 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: #fff solid 1px;
    font-size: 1.5rem;
    color: #fff;
  }
}
@media only screen and (max-width: 767px) {
  /*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
  .pc-nav {
    display: none;
  }
  .logo {
    border: none;
    padding: 10px;
  }
  .logo img {
    width: 200px;
  }
  header {
    border-bottom: 1px solid #fff;
  }
  .openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    cursor: pointer;
    width: 50px;
    height: 50px;
    right: 5px;
    top: 5px;
    /*ボタン内側*/
    /*activeクラスが付与されると線が回転して×になる*/
  }
  .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    /*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 1px;
    background: #fff;
  }
  .openbtn span:nth-of-type(1) {
    top: 15px;
    width: 45%;
  }
  .openbtn span:nth-of-type(2) {
    top: 23px;
    width: 35%;
  }
  .openbtn span:nth-of-type(3) {
    top: 31px;
    width: 20%;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
  }
  #g-nav {
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position: fixed;
    z-index: -1;
    opacity: 0;
    /*はじめは透過0*/
    /*ナビの位置と形状*/
    top: -100%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: rgba(5, 10, 19, 0.8);
    /*動き*/
    transition: all 0.3s;
    /*アクティブクラスがついたら透過なしにして最前面へ*/
  }
  #g-nav.panelactive {
    top: 0;
    opacity: 1;
    z-index: 999;
  }
  #g-nav.panelactive ul {
    display: block;
    width: 100%;
  }
  #g-nav #g-nav-list {
    /*ナビゲーションの縦スクロール*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*リストのレイアウト設定*/
  }
  #g-nav ul li {
    list-style: none;
    text-align: center;
    width: 100%;
    display: block;
  }
  #g-nav ul li a {
    width: 100%;
    padding: 20px 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: #919191 solid 1px;
    font-size: 1.5rem;
    color: #919191;
  }
  #g-nav ul li.contact a {
    color: #b27d30;
    border-bottom: #b27d30 solid 1px;
  }
}
