@charset "utf-8";
/*========= ナビゲーションのためのCSS ===============*/

/* --- 共通・スマホ用 (既存の動きを維持) --- */
.header-logo {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 10001; /* ボタン(10000)より前面に */
  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の数値を大きくして前面へ*/
    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: #950000;
    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
    right:-50px;
    top:calc(50% - 50px);/*50%から円の半径を引いた値*/
    transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#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;/*はじめは透過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;/*0.2 秒遅らせて出現*/
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::after{
	position: absolute;
  left: 0;
  content: "";
  width: 100%;
  transform: scale(0, 1);
          background: #ba4700;
  display: block;
  height: 100%;
  bottom: 0;
  transform-origin: right top;
  transition: transform .3s;
  z-index: -1;
}





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

  transform-origin: left top;
} */



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


#g-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 60px; 
    display: inline-block;
    font-weight: bold;
    position: relative;
    /* overflow: hidden;  これを有効にするとaタグの範囲外でアイコンが消えます */
}

#g-nav li a::before,
#g-nav li a::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
        transform: translateY(-50%);
}

/* --- バイク（右から左へ走り去る） --- */
#g-nav li a::before {
    left: 0;
    background-image: url(../images/bike-icon-black.svg);
}

/* --- 擬音（カクカク揺れる） --- */
#g-nav li a::after {
    right: 0;
    background-image: url(../images/bike-sound-black.png);
}

/* --- ホバー時のアニメーション適用 --- */
#g-nav li a:hover::before {
    /* 0.8sに少し速度を落とし、加速しながら左へ(ease-in) */
    animation: bikeRunLeft 0.8s forwards ease-in;
}

#g-nav li a:hover::after {
    /* 0.1sだと速すぎたため、0.3sにスローダウン */
    animation: soundShakeSlow 0.3s infinite steps(2); 
}

/* --- アニメーション定義 --- */

/* バイクが右から左へ消える */
@keyframes bikeRunLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-150px); /* 左方向へ */
    }
}

/* 擬音のカクカク揺れ（コマ送りのような動き） */
/* steps(2) を使うことで、中間アニメーションを省き「カクカク」させます */
@keyframes soundShakeSlow {
    0% {
        opacity: 1;
        transform: translateY(-55%) translateX(2px) rotate(3deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-45%) translateX(-2px) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-55%) translateX(2px) rotate(3deg);
    }
}




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

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

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


	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: #fff;
  	width: 45%;
    transition: all 0.3s;
  }
  .openbtn:hover span{
	background-color: #333;
  }

.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;
    background: #950000; /* PC版の背景色 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 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;
  }

  .logo img {
    max-width: 275px;
}

  #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;
  }

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

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



  /* 擬音（after）の位置調整：ここが本題 */
  #g-nav li a::after {
    width: 45px;
    height: 20px;
    /* もし上下位置を微調整したい場合は top を上書きしてください */
    bottom: -10px;
    top: auto;
  }

  /* PCでは「右から左」への移動距離が長すぎると隣のメニューに被るので調整 */
  @keyframes bikeRunLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-80px); /* 距離を短く */
    }
  }

  


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