﻿@charset "UTF-8";

/* header */
#top-head {
  top: 0;
  position: absolute;
  width: 100%;
  margin: 0 auto;
  height: 5rem;
  line-height: 1;
  z-index: 40;
  background-color: #6FC083;
}
#top-head,
#top-head a {
  color: #fff;
  text-decoration: none;
  transition: color 0.5s, transform 0.2s;
}


#top-head a span {
  display: inline-block; /* transformを効かせるため必須 */
  transition: transform 0.2s, color 0.5s;
}
#top-head a:hover span {
  transform: scale(1.2);
  color: #a7e4b6;
}



#top-head .inner {
  position: relative;
}

/* Toggle Button */
#mobile-head {
  width: 100%;
  position: relative;
}
#nav-toggle {
  position: absolute;
  right: 0;
  top: 0;
  box-sizing: border-box;
  padding: 1rem;
  width: 5rem;
  height: 4.5rem;
  cursor: pointer;
  z-index: 40;
}
#nav-toggle div {
	position: relative;
}
#nav-toggle span {
	display: block;
	position: absolute;
	height: 0.3333em;
	width: 100%;
  border-radius: 1rem;
	background: #FFF;/*ハンバーガーの色*/
	left: 0;
	transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
	top: 0;
}
#nav-toggle span:nth-child(2) {
	top: 1.2em;
}
#nav-toggle span:nth-child(3) {
	top: 2.4em;
}

/* logo */
.top-logo{
  display: flex;
}

.logo , .Sicon , .Xicon , .Yicon{
  transition: 0.5s;
}


@media screen and (min-width: 768px) {
.logo:hover , .Sicon:hover , .Xicon:hover , .Yicon:hover{
transform: scale(1.3);
}}

#top-head.fixed .logo ,
#top-head .logo
{
  position: absolute;
  top: -0.3rem;
  box-sizing: border-box;
  margin: 0 0 0 0.5rem;
}

#top-head .Sicon{
  position: absolute;
  left: 30%;
  margin: 1rem 0 0 2rem;
}

#top-head .Xicon{
  position: absolute;
  left: 45%;
  margin: 1rem 0 0 2rem;
}

#top-head .Yicon{
  position: absolute;
  left: 60%;
  margin: 1rem 0 0 2rem;
}


@media (max-width: 768px)
{
#top-head .Sicon , .Xicon , .Yicon{
  transform: scale(0);
}



#top-head .Yicon{
    left: 58%;
}

}



#global-nav {
  position: absolute;
  top: -100vh;/* 開いてないときは画面外に配置、.open #global-navと連動 */
  background-color: #6FC083;
  width: 100%;
  height: calc(100vh - 4.5rem);/* 画面いっぱい-ナビ */
  text-align: center;
  transition: .5s ease-in-out;
}
#global-nav ul {
  list-style: none;
  position: static;
  right: 0;
  bottom: 0;
}
#global-nav ul li {
  position: static;
}
#global-nav ul li a,
#global-nav ul li a {
  font-family: "Dela Gothic One", serif;
  display: block;
  width: 100%;
  color: #fff;
  padding: 1.5rem 0;
  font-size: 1rem;
}
#global-nav ul li a span:hover {
  color: #449658;
}

/* Fixed */
#top-head.fixed {
  position: fixed;
  top: 0;
  background: #6FC083;
}
.fixed #nav-toggle span {
	background: #FFF;/*ハンバーガーの色*/
}

/* #nav-toggle 切り替えアニメーション */
.open #nav-toggle span:nth-child(1) {
  top: 1em;
  transform: rotate(315deg);
}
.open #nav-toggle span:nth-child(2) {
  width: 0;
  left: 50%;
}
.open #nav-toggle span:nth-child(3) {
  top: 1em;
  transform: rotate(-315deg);
}

/* #global-nav スライドアニメーション */
.open #global-nav {
  top: 4.5rem;/* ヘッダーの高さ */
}

div#contents {
	margin-top: 4.5rem;/*ヘッダー分コンテンツを下げる*/
}


/*▼ デスクトップPC対応 ▼*/ 
@media screen and (min-width:768px) {
  #global-nav ul li a:hover {
  background-color: #6FC083;
  color: #449658;
}



  #top-head {
    position: static;
  }
  #top-head .inner {
    display: flex;
  }
  #top-head.fixed .logo,
  #top-head .logo {
      position: absolute;
      left: 5%;
    text-align: left;
  }
  #mobile-head {
	  display: none;
  }
  #global-nav {
    position: absolute;
    left: 18rem;
    top: 0;
    width: 50%;
    height: 4.5rem;
    background-color: #6FC083;
  }
  #global-nav ul {
    display: flex;
    justify-content: center;
  }


  #global-nav ul li {
    width: 20%;/* =100÷項目数(5) */
    margin: 0 1.5rem;
  }
  #global-nav ul li a {
    box-sizing: border-box;
  }

  /* Fixed */
  #top-head.fixed {
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
  }
  #top-head.fixed #global-nav {
    background: transparent;
  }
  #top-head #global-nav,
  #top-head.fixed #global-nav {
    transition-duration: 0s;
  }

  div#contents {
    margin-top: 0;/*ヘッダー分下げた分のリセット*/
  }
}
/*▲ デスクトップPC対応 ▲*/

/*▼ デスクトップPC対応02 ▼*/ 
@media screen and (min-width:768px) {

  #top-head {
    width: 100%;
  }
  #top-head.fixed {
    width: 100%;/* base.cssの#wrapperに同じ */
  }


  #top-head .Sicon{
  position: absolute;
  left: 75%;
  top: -0.3rem;
  margin: 1rem 0 0 2rem;
}


  #top-head .Xicon{
  position: absolute;
  left: 80%;
  top: -0.3rem;
  margin: 1rem 0 0 4rem;
}

  #top-head .Yicon{
  position: absolute;
  left: 85%;
  top: -0.3rem;
  margin: 1rem 0 0 6rem;
}


}
/*▲ デスクトップPC対応02 ▲*/




/* タブレットPC対応 */

@media screen and (max-width:960px) {

  #top-head {
    width: 100%;
  }
  #top-head.fixed {
    width: 100%;/* base.cssの#wrapperに同じ */
  }


  #top-head .Sicon{

  transform: scale(0.6);
  }

  #top-head .Xicon{

  transform: scale(0.6);
}

  #top-head .Yicon{

  transform: scale(0.6);
}



}