@charset "utf-8";
/* reset html */
*{
  margin: 0;
  padding: 0;
}
ul,li{
  list-style: none;
}
a{
  text-decoration: none;
  color: inherit;
  display: block;
}
img{
  vertical-align: bottom;
  max-width: 100%;
  box-sizing: border-box;
}
body{
  font-family: 'Hiragno Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1;
}
.container{
  max-width: 960px;
  margin: 0 auto;
}
.btn, .mbnav{
  display: none;
}
/* header */
header{
  background:url(../img/411.webp) no-repeat center/auto 1900px;
  height:calc(100vh - 40px) ;
  color:#333;
}

h1{
  padding:12px 0 0 20px;
  background: #fff; 
}
h1 img{
  height: 50px;
  width: auto;
}

/* navigation hover */
  .gnav ul {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin: 0 auto;
    padding: 18px 0 ;
    background-color: rgba(255, 255, 255, 0.8);
  }
  .gnav li a{
   display: block;
   position: relative;
   padding: 0 20px 5px;
   font-size: 14px;
  }
  .gnav li a:hover{
    color: #333;
  }
  .gnav li a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: #333;
    transition: .3s;
    transform: scale(0, 1);
    transform-origin: center top;
  }
  .gnav li a:hover::after{
    transform: scale(1, 1);
  } 

/* footer */  
footer{
  padding: 10px;
  text-align: right;
  color: #333;
}
/* :::::::::::::::::::::::::::::::::::::: */
@media screen and (max-width:768px){
  header{
    background: url(../img/411.webp)no-repeat center/cover;
    height: calc(100vh - 30px) ;
  }
  h1{
    text-align: left;
    padding-right: 10px;
    height: 50px;
  }
  h1 img{
    height: 40px;
  }
  footer{
    font-size: 10px;
  }
  .btn, .mbnav{
    display: block;
    color: #aaa;
  }

 /*  mb nav btn */
 .openbtn{
  z-index: 1000;
  position: fixed;
  top: 8px;
  right: 10px;
  cursor: pointer;
  width: 60px;
  height:60px;
}
.openbtn .openbtn-area{
    transition: all .7s;
}
.openbtn span{
    display: inline-block;
    transition: all .7s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: rgb(207, 206, 206);
    width: 50%;
  }
.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 .openbtn-area{
  transform: rotateY(-360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width:45%;
}

.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: 45%;
}

  /* mb nav */
   .gnav {
    display: none;
  }
  .mbnav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #f9f7f7cc;
    transition: 500ms;
  }
  .slide {
    right: 0;
  }
  .mbnav ul {
    width: 90%;
  }
  .mbnav li {
    font-size: 15px;
    line-height: 60px; 
  }
  .mbnav li:first-child a {
    border-top: 1px solid #aaa;
  }
  .mbnav a {
    display: block;
    border-bottom: 1px solid #aaa;
    color: #333;
    padding-left: 30px;
  }
}


