@import url("./define.css");

/* 全体 */
nav{
    position: fixed;
    z-index: 5000;
    width: 100%;
    height: var(--menu-height);
    background: linear-gradient(#c13b96, 90%, transparent);
}
   
/* ナビ部分全体 */
.drawer{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--menu-height);
    padding: 0 1em;
}

/* タイトル */
.navbar_brand{
    color: #fc6eff;
}

/* トグルボタンのデザイン */
.navbar_toggle{
    position: relative;
    z-index:9999;
    height: 22px;
    margin-right: 1em;
}

.navbar_toggle_icon {
    position: relative;
    display: block;
    height: 2px;
    width: 30px;
    background: #ffffff;
    transition: ease .5s;
}

.navbar_toggle_icon:nth-child(1) {
    top: 0;
}

.navbar_toggle_icon:nth-child(2) {
    margin: 8px 0;
}

.navbar_toggle_icon:nth-child(3) {
    top: 0;
}

/* トグルボタンのOpen時の動き */
.navbar_toggle.open .navbar_toggle_icon:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.navbar_toggle.open .navbar_toggle_icon:nth-child(2) {
    transform: translateY(-50%);
    opacity: 0;
}

.navbar_toggle.open .navbar_toggle_icon:nth-child(3) {
    top: -10px;
    transform: rotate(-45deg);
}

/* ドロワーメニュー */
.drawer-menu{
    position: relative;
    transform: translateX(-100%);
    transition:ease .5s;
    z-index:1000;
    background: linear-gradient(to right, #f0f0f0, 80%, transparent);
    overflow-y: scroll;
    height: calc( 100vh - var(--menu-height) ) ;
}

.drawer-item > li{
    color: #303030;
    padding: 1em;
}

.drawer-subitem{
    padding-top: 1em;
}

.drawer-subitem > li{
    color: #303030;
    padding: 1em;
}

/* ドロワーメニュー OPEN時の動き */
.drawer-menu.open {
    transform:translateX(0);
    overflow-y: auto;
}