@charset "utf-8";

#wrapper{
  position: relative;
  margin:0 auto;
}


/*========= ナビゲーション ===============*/

#g-nav{
  position:fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top:0;
  right: -100%;
  width:30%;
  height: 100vh;
  background-image: linear-gradient(90deg, rgba(211, 230, 213, 1), rgba(232, 245, 233, 1) 10%, rgba(232, 245, 233, 1));
  transition: all 0.6s;
}

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

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 30%;
  height: 100vh;/*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 768px) {
  #g-nav,
  #g-nav.panelactive #g-nav-list{
      width:100%;
  }
}


#g-nav{
  list-style: none;
  }

#g-nav li{
list-style: none;
}

#g-nav li a{
color: #333;
border-bottom: 2px dotted #ccc;
text-decoration: none;
padding:10px;
margin-bottom: 10px;
display: block;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: bold;
transition: all .5s;
}

#g-nav li a:hover{
  color:#ccc;
}

.openbtn{
  position:fixed;
  top:10px;
  right:10px;
  z-index: 9999;
  background:#008855;
  cursor: pointer;
  width: 50px;
  height: 50px;
}
	
/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff;
  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%;
}

.openbtn,
#g-nav {
  display: none;
}

@media screen and (max-width: 1465px) {
  .openbtn {
    display: block;
  }

  #g-nav {
    display: block;
  }
}


/*==================================================
ボタン設定
===================================*/

.button {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 300px; 
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  color: #008855; 
  border: 1px solid #008855; 
  background: transparent; 
  transition: all 0.3s ease-in-out;
}

.button::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  right: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.button:hover {
  background: #008855;
  color: #FFF;
}
.button:hover::after {
  right: 1.4rem;
}

@media (max-width: 768px) {
  .button {
      width: 100%;
      max-width: 100%;
  }
}

.button-green {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  position: relative;
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: #008855;
  border: 1px solid #fff;
  transition: all 0.3s ease-in-out;
}

.button-green::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  right: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.button-green:hover {
  background: #fff;
  color: #008855;
}
.button-green:hover::after {
  right: 1.4rem;
}

.button-top {
  display: inline-block;
  background: #c7ed68;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  padding: 7px 20px;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.button-top:hover {
  background: #b2e63f;
}

.button-access{
  display: inline-block;
  padding: 15px 24px;
  margin-bottom: 30px;
  position: relative;  
  width: 90%;
  text-align: center;
  border-radius: 100px;
  border:1px solid #fff;
  color: #008855;
  background:#fff;
  outline: none;
  transition: all 0.3s ease-out;
}


.button-access::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  right: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.button-access:hover {
  background: #008855;
  color: #fff;
}
.button-access:hover::after {
  right: 1.4rem;
}

.button-access-map{
  display: inline-block;
  padding: 15px 24px; 
  color: #fff;
  text-align: center;
  border-radius:100px;
  border:solid 1px #fff;
  background:#008855;
  transition: all 0.3s ease-out;
}

.button-access-map:hover{
  color: #008855;
  background:#fff;
}



/*==================================================
ページトップボタン
===================================*/

#topbtn{
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background-color: #acd642;
  cursor: pointer;
  z-index: 999;
  transition: 0.3s;
}

#topbtn::before {
  content: "";
  width: 10px;
  height: 10px;
  margin: 0px 0px -4px;
  border-top: 3px #fff solid;
  border-right:  3px #fff solid;
  transform: rotate(-45deg);
}

#topbtn:hover {
    background: #7e9c32;
}

.facility-box{
  opacity: 0;
}

/*==================================================
フェードイン
===================================*/

.lead-first {
  animation: fade-in 1s ease-out 0.5s 1 normal backwards;
}
.lead-second {
  animation: fade-in 1s ease-out 0.8s 1 normal backwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-30%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 下から */

.fadeUp{
  animation-name: fadeUpAnime;
  animation-duration:0.5s;
  animation-fill-mode:forwards;
  opacity:0;
  }
  
  @keyframes fadeUpAnime{
    from {
      opacity: 0;
    transform: translateY(100px);
    }
  
    to {
      opacity: 1;
    transform: translateY(0);
    }
  }

/* 左から */

.fadeLeft{
  animation-name: fadeLeftAnime;
  animation-duration:1.2s;
  animation-fill-mode:forwards;
  opacity:0;
  }
  
  @keyframes fadeLeftAnime{
    from {
      opacity: 0;
    transform: translateX(-100px);
    }
  
    to {
      opacity: 1;
    transform: translateX(0);
    }
  }

/* フェードイン */
.fadeIn{
  animation-name: fadeInAnime;
  animation-duration:1.2s; /*出現する速さ*/
  animation-fill-mode:forwards;
  opacity:0;
  }
  
  @keyframes fadeInAnime{
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger,
.fadeLeftTrigger,
.fadeIn{
    opacity: 0;
}
