@charset "utf-8";
:root {
     --nav-height: 70px;
}

/* ########################### PC ###########################  */
@media screen and (min-width:769px) {
.hd{
    height: var(--nav-height);
}
#header{
    position: fixed;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: #32328C;
    justify-content: center;
    width: 100%;
        
}
.menu-item{
    text-align: left;
    margin-right: auto;
    margin-left: auto;
    display: inline-block;
}
.menu-item img{

    height: var(--nav-height);
}
#header.UpMove{
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
  transform: translateY(0);
  }
  to {
    opacity: 0;
  transform: translateY(-100px);
  }
}

#header.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 0;
  transform: translateY(-100px);
  }
  to {
    opacity: 1;
  transform: translateY(0);
  }
}

small{
  background:#333;
  color:#fff;
  display: block;
  text-align: center;
  padding:20px;
}
main {
      padding-top: 70px;
}

section:nth-child(2n){
  background:#f3f3f3; 
}
}
@media screen and (max-width:768px) {
/*ハンバーガー*/
.hd{
    display: none;
}
nav img{
    height: auto;
    width: 50%;
}
#g-nav{
    position: fixed;
    z-index: 200;
    top: -200%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #32328C;
    transition: all 0.6s;
    padding-top: 4em;
}

#g-nav.panelactive{
    top: 0;
}

#g-nav.panelactive #g-nav-list{
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav .menu {
    width: 100%;
    position: static;
    z-index: 999;
    top: 100%;
    left: 100%;
}

#g-nav menu-item{
    width: 100%;
    list-style: none;
    text-align: center;
    font-size: 150%;
    border-bottom: thin solid #FFFFFF;
}

#g-nav .menu-item a{
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 120%;
}
.openbtn1{
    position: fixed;
    z-index: 500;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: rgba(50,50,141,0.91);
    border-radius: 30px;
}
 
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #FFFFFF;
    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%;
}

}
