@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

/* --- 共通・スマホ用 (既存の動きを維持) --- */
.header-logo {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 10001;
  font-size: 1.5rem;
  font-weight: bold;
}
.header-logo a {
  text-decoration: none;
  color: #333;
}

.header-logo {
  display: none;
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 10001;
  font-size: 1.5rem;
  font-weight: bold;
}



/*アクティブになったエリア*/
#g-nav.panelactive{
    position:fixed;
    z-index: 999;
	top: 0;
	width:100%;
    height: 100vh;
}

/*丸の拡大*/
.circle-bg{
    position: fixed;
	z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #201f4b;
	transform: scale(0);
    top:calc(50% - 50px);
    left:calc(50% - 50px);
    transition: all .6s;
}

.circle-bg.circleactive{
	transform: scale(50);
}

/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
     display: block;
}

/*ナビゲーション*/
#g-nav ul {
	opacity: 0;
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width: 100%;
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity:1;
}

/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li{
animation-name:gnaviAnime;
animation-duration:1s;
animation-delay:.2s;
animation-fill-mode:forwards;
opacity:0;
}
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}


/*リストのレイアウト設定*/
#g-nav li{
	text-align: center; 
	list-style: none;
  width: 100%;
  position: relative;
  transition: all 0.3s;
}

#g-nav li a{
	color: #fff;
  text-decoration: none;
  padding: 20px;
  display: block;
  width: 100%;
  /* text-transform: uppercase; */
  letter-spacing: 0.1em;
  font-weight: bold;
  box-sizing: border-box;
  transition: all 0.3s;
}

#g-nav li::before,
#g-nav li::after{
  content: '';
  position: absolute;
  top: 50%;
  width: 50%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .3s;
  width: calc(50% - 85px);
}

#g-nav li::before{
  left: 0;
  transform-origin: left center;
}

#g-nav li::after{
  right: 0;
  transform-origin: right center;
}

#g-nav li:hover::before,
#g-nav li:hover::after{
  transform: scaleX(1);
}


/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: #201f4b;
  /* background: transparent;  */
  border-radius: 50%;
  transition: all 0.3s;
}

/* メニューが開いている（activeクラスがある）時だけ背景色を出す。
   もし「閉じている時だけ消したい」のであれば、ここだけに色を書きます。
*/
.openbtn.active ,.openbtn.active:hover {
  background: transparent;
}

.openbtn:hover {
  /* ホバー時の挙動はお好みで。activeでない時は背景なしにしたいなら調整してください */
  background: #08081f;
}


	
/*×に変化*/	
.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%;
}










/* --- PC用のスタイル (960px以上) --- */
@media screen and (min-width: 960px) {
  
  /* ヘッダーの土台を上部に固定 */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 70px; */
    height: auto;
    background: #201f4b; /* PC版の背景色 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0 30px; */
    padding: 15px 30px;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* スマホ専用パーツを消す */
  .openbtn, .circle-bg {
    display: none !important;
  }

  /* ロゴの位置をリセット */
  .header-logo {
    position: static;
    display: block;
  }

  /* ナビゲーションの「全画面・非表示設定」をすべて解除 */
  #g-nav {
    position: static !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: auto !important;
  }

  #g-nav-list {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
  }

  /* リストを横並びに */
  #g-nav ul {
    display: flex !important;
    position: static !important;
    flex-direction: row;
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
            align-items: center;
  }

  #g-nav li {
    width: auto !important;
    padding: 0;
    opacity: 1 !important;
    animation: none !important;
  }

  #g-nav li a {
    padding: 15px;
    font-size: 14px;
    color: #fff;
  }

  /* コンテンツがヘッダーの下に潜り込まないように */
  /* body {
    padding-top: 70px;
  } */

  .header-logo a {
  color: #fff;
}

#g-nav li::after{
	background: #fff;
  content: '';
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
  z-index: -1;
}





#g-nav li:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}
}