@charset "utf-8";

/*==================================================
　メインタイトル
===================================*/

/*==================================================
共通　横並びのための設定
===================================*/

.gnavi{

   display: flex;
   flex-wrap: wrap;/*スマホ表示折り返し用なのでPCのみなら不要*/
   align-items: center;
   justify-content: space-center;
   margin:-13px 44px 0 0;
   list-style: none;

@media screen and (max-width: 767px){

   flex-direction: column;
   margin:-16px 37px 0 0;
   aligh-items: center
 }
}

.gnavi li a{
    display: block;
    padding:10px 30px;
    text-decoration: none;
    color: #333;
   font-size:0.8rem;


@media screen and (max-width: 767px){

    display: block;
    padding:10px 30px;
    text-decoration: none;
    color: #333;
   font-size:0.8rem;
}
}

.gnavi li{
    margin-bottom:30px;
}

/*==================================================
　5-3-7 上下に線が伸びて背景になる
===================================*/

.gnavi li a{
    /*線の基点とするためrelativeを指定*/
  position: relative;
    /*はみ出る要素を隠す*/
  overflow: hidden;
    /*アニメーションの指定*/
  transition: all .2s;
}

/*現在地とhoverの設定*/
.gnavi li.current a,
.gnavi li a:hover{
    /*背景色をつける*/
    background: #0099FF;
  color:#fff;
text-shadow: 1px 2px 3px #808080; 
}

/*背景がつくのアニメーションの開始を0.5秒遅らせる*/
.gnavi li a:hover{
  transition-delay: .5s;
}

/*線の設定*/
.gnavi li a:before,
.gnavi li a:after {
    content: "";
    /*絶対配置で線の位置を決める*/
    position: absolute;
    left: 0;
    /*線の形状*/
    height: 2px;
    width:100%;
    background: #0099FF;
    /*アニメーションの指定*/
  transition: all .5s;
}

/*線の位置と変化*/
.gnavi li a::before {
    top: 0;
  transform: translateX(-100%);/*X方向に-100%移動*/
}
.gnavi li a::after {
    bottom: 0;
  transform: translateX(100%);/*X方向に100%移動*/
}

/*hoverした際の線の変化*/
.gnavi li a:hover::before ,
.gnavi li a:hover::after {
  transform: translateX(0);/*X方向に0%移動*/
}

