@charset "UTF-8";

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



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

/* スクロールのロゴを入れ替え */
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;
}

header.scroll-nav{
width: 100%;
height:50px;
background-color: rgba( 255, 255, 255, 0.8 );
transition: 0.5s;
}



/* ---------------------- */
/* ------index 以外のlogo------ */
/* ---------------------- */
/* スクロールのロゴを非表示 */
#no_index header h1.no_sc{display: none;}

/* スクロールのロゴを入れ替え */
#no_index header.scroll-nav 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;
}
#no_index header{
width: 100%;
height:50px;
background-color: rgba( 255, 255, 255, 0.8 );
transition: 0.5s;
}







/* ---------------------- */
/* ------ハンバーガー------ */
/* ---------------------- */
.menu_btn {
width:55px;
height:50px;
position: fixed;
top: 0;
right: 0;
z-index: 10;
background-color: var(--color-green);
}
.menu {
width:55px;
height:50px;
background-color: transparent;
border: none;
cursor: pointer;
outline: none;
padding: 0;
appearance: none;
}
.menu_btn .menu span {
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
width: 34px;
height: 1px;
background-color: var(--color-white);
transition-duration: 0.3s;
}
.menu span:nth-of-type(1) {top: 15px;}
.menu span:nth-of-type(2) {top: 25px;}
.menu span:nth-of-type(3) {bottom: 15px;}
.menu.active span:nth-of-type(1) {
background-color: var(--color-white);
-webkit-transform: translateY(20px) rotate(-45deg);
transform: translateY(10px) rotate(-45deg);
}
.menu.active span:nth-of-type(2) {opacity: 0;}
.menu.active span:nth-of-type(3) {
background-color: var(--color-white);
-webkit-transform: translateY(-20px) rotate(45deg);
transform: translateY(-9px) rotate(45deg);
}




/* ---------------------- */
/* ------表示／非表示------ */
/* ---------------------- */
nav {
z-index: 9;
width: 100%;
height: 100%;
position: relative;
}

/*非表示*/
nav {
z-index: 8;
width: 100%;
height: 100vh;
position: fixed;
opacity: 0;
visibility: hidden;
background-color: rgba(255, 255, 255, 0.9);
transition: all 0.5s ease-in-out;
}
/*表示*/
nav.active {
right: 0;
opacity: 1;
visibility: visible;
}







/* ---------------------- */
/* ----メニュー内コンテンツ---- */
/* ---------------------- */
nav ul {
margin-top: -30px;
display: -moz-box;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
height: 100%;
align-items:center;
justify-content: center;
flex-direction:column; /* 無理矢理行替え */
}
nav ul li {
margin: 5px 0;
font-size: 1.3rem;
font-family: var(--font-en-h);
}
/* 英語 */
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);}

nav ul li a {
padding: 10px 30px;
display: block;
color: var(--color-black);
}




