@charset "utf-8";

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /*height: 70px;*/
  background: #fff;
  color: #333;
  transition: top 0.4s ease; /* アニメーションを滑らかにする */
  z-index: 900;
}

.nav_inner {
  display: flex;
  align-items: center;
  margin: 0 0 0 20px;
  padding: 15px 0;
}

.top_link,#g-nav-list ul li a {
  transition: opacity .3s ease-out 0s;
}
.top_link:hover,#g-nav-list ul li a:hover {
  opacity: .7;
}

.nav_inner img {
  width: 100px;
}

.nav_inner p {
  margin-left: 15px;
  font-size: 20px;
  font-weight: bold;
}

.navigation {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px 0px;
  font-weight: bold;
  text-align: center;
  margin-left: auto;
  padding: 0;
  font-size: 13px;
}
@media (max-width: 1060px) {
.navigation {
  display: none;
}
}

.nav_con a {
  color: #333;
  text-decoration: none;
  transition: all  0.3s ease;
}

.nav_con a:hover {
  color: #e83e43;
}

#g-nav {
  position:fixed;
  z-index: 999;
  top:-120%;
  left:0;
  width:100%;
  height: 100vh;
  background:#e83e43;
  transition: all 0.6s;
}

#g-nav.panelactive {
  top: 0;
}

#g-nav.panelactive #g-nav-list {
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100vh;
  overflow: auto;
}

#g-nav ul {
  position: absolute;
  z-index: 999;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  padding: 0;
  margin: 0;
  width: max-content;
  font-size: 20px;
  text-transform: none;
}

#g-nav li {
  list-style: none;
  text-align: center; 
}

#g-nav li a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
  letter-spacing: 0.1em;
  font-weight: bold;
  text-align: justify;
}

.openbtn {
  position:fixed;
  z-index: 1000;
  top: 10px;
  right: 20px;
  cursor: pointer;
  width: 50px;
  height:50px;
  background-color: #ffd400;
  border-radius: 5px;
  display: none;
}
@media (max-width: 1060px) {
.openbtn {
  display: block;
  right: 10px;
}
}

.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top:15px; 
}

.openbtn span:nth-of-type(2) {
  top:23px;
}

.openbtn span:nth-of-type(3) {
  top:31px;
}

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  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(45deg);
  width: 30%;
}