@charset "UTF-8";

/* ---------------------- */
/* --------header-------- */
/* ---------------------- */
header{
position: fixed;
width: 100vw;
z-index: 100;
display: -moz-box;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
top:0;
}

header h1.no_sc{
width:clamp(12rem,20vw, 20rem);/* 最小値, それ以外, 最大値 */
margin-right: auto;
padding: 10px 10px 0 15px;
}
/* スクロールのロゴを非表示 */
header h1.yes_sc{display: none;}

header nav ul{
display: -moz-box;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:space-between;
align-items: center;
height: 100%;
}
/* 英語 */
body:lang(en) header nav ul li{font-family: var(--font-en); font-weight: 300;}
/* 中国 */
body:lang(zh-cmn-Hans) header nav ul li{font-family: var(--font-zh);}




header nav ul li{margin-right: 1.5vw;}
header nav ul li a{color: var(--color-white);}
/* ボタンアニメ */
header nav ul li a{position: relative;}
header nav ul li a:hover{
color: var(--color-blue-d3);
transition: 0.5s;
}
header nav ul li a::after {
content: '';
position: absolute;
bottom: -7px;
left: 0;
width: 100%;
height: 2px;
background:var(--color-blue-d2);
transition: all .3s;
transform: scale(0, 1);
transform-origin: left top;
}
header nav ul li a:hover::after {transform: scale(1, 1);}

/* contact */
header nav ul li:last-child{margin-right: 0;}
header nav ul li:last-child a{
color: var(--color-white);
background-color:var(--color-green);
padding: 20px 3vw 20px 3vw;
display: -moz-box;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
height: 100%;
align-items:center;
justify-content: center;
}
header nav ul li:last-child a:hover{
background-color: var(--color-blue-d3);
transition: 0.5s;
}
header nav ul li:last-child a::before{
content: "";
background-image: url(../img/icon_mail.svg);
background-repeat: no-repeat;
padding: 10px 10px 5px 10px;
margin-right: 10px;
}
/* contact アニメ打ち消し */
header nav ul li:last-child a::after {transform: scale(0, 0);}






/* ---------------------- */
/* ---スクロール後--- */
/* ---------------------- */
header.scroll-nav{
background-color: rgba( 255, 255, 255, 0.8 );
transition: 0.5s;
}
header.scroll-nav nav ul li a{color: var(--color-black);}
header.scroll-nav nav ul li:last-child a{color: var(--color-white);}
/* スクロールのロゴを入れ替え */
header.scroll-nav h1.no_sc{display: none;}
header.scroll-nav h1.yes_sc{
display:inline;
width:clamp(12rem,20vw, 20rem);/* 最小値, それ以外, 最大値 */
margin-right: auto;
padding: 10px 10px 0 15px;
}

/* ハンバーガー非表示 */
.menu_btn{display: none;}




/* ---------------------- */
/* ---TOP以外--- */
/* ---------------------- */
#no_index header{
background-color: rgba( 255, 255, 255, 0.8 );
transition: 0.5s;
}
#no_index header nav ul li a{color: var(--color-black);}
#no_index header nav ul li:last-child a{color: var(--color-white);}
/* スクロールのロゴを入れ替え */
#no_index header h1.no_sc{display: none;}
#no_index header h1.yes_sc{
display:inline;
width:clamp(12rem,20vw, 20rem);/* 最小値, それ以外, 最大値 */
margin-right: auto;
padding: 10px 10px 0 15px;
}
