@charset "utf-8";

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

.gnavi{
  display: flex;
  flex-wrap: wrap;/*スマホ表示折り返し用なのでPCのみなら不要*/
  list-style: none;
}

.gnavi li a{
  display: block;
  padding:35px 50px;
  text-decoration: none;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  
} 



/*==================================================
　5-3-1 中心から外に線が伸びる（下部）
===================================*/

.gnavi li a{
  /*線の基点とするためrelativeを指定*/
  position: relative;
}


.gnavi li a:hover{
color:#2DB0E6;
}

.gnavi li a::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 25%;
  left: 0%;
  
  /*線の形状*/
  width: 100%;
  height: 2px;
  background:#2DB0E6;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0, 1);/*X方向0、Y方向1*/
  transform-origin: center top;/*上部中央基点*/
}

/*現在地とhoverの設定*/
.gnavi li.current a::after,
.gnavi li a:hover::after {
  transform: scale(1, 1);/*X方向にスケール拡大*/
}