@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;900&display=swap');
*{
    margin: 0;
    padding: 0;
}
header{
    background-color: #F7F5F5;
}
/* ロゴ */
.logo a{
     display: block;
     width: 180px;
     margin: auto;
     padding: 30px;
}
.logo a img{
    width: 100%;
}
/* メニュー */
.l-header_wrap {
    max-width: 1000px;
    margin: 0 auto;
}
nav{
    text-align: center;
}
nav ul li{
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
}
nav ul li a{
    text-decoration: none;
    color: #000000;
    font-size: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight:900;
}
/* スクロールで固定 */
header.HeightMin{
    position: fixed;
    width: 100%;
    z-index: 100;
    height: 90px;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
}
header.HeightMin .l-header_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    height: 90px;
}
header.HeightMin .l-header_wrap .logo a {
    width: auto;
    padding: 0;
}
header.HeightMin .l-header_wrap .logo a img {
    width: 90px;
}
header.HeightMin nav ul li {
    margin: 10px;
}

@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(-170px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
}
/* ロゴをスクロール時小さく */
.logoMin{
    width: 90px !important;
}
/* navフォントをスクロール時小さく */
.fontMin{
    font-size: 15px !important;
}
/* スマホの時メニュー非表示 */
@media screen and (max-width: 768px){
    header .logo{
        display: none;
    }
    nav .nav{
        display: none;
    }
    nav ul li a{
        font-size: 20px;
        padding: 15px !important;
    }
    nav ul li{
        margin: 0;
    }
    header.HeightMin .l-header_wrap {
        padding: 0;
        height: 0;
    }
    header.HeightMin{
    padding: 0;
    height: 55px;
    box-shadow: none;
    animation: none;
    }
}
/* メニューの下線 */
.gnavi li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

.gnavi li.current a,
.gnavi li a:hover{
	color:#b32d2d;
}

.gnavi li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 2px;
    background:#b32d2d;
    /*アニメーションの指定*/
    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方向にスケール拡大*/
}
