﻿/* ECI_COMMON_DRAWER.CSS */

:root {
    --navigation-height: 46px;
}

.page-navigation {
    position: fixed;
    background-color: white;
    border-bottom: 1px solid #353535;
    color: black;
    top: 0;
    left: 0;
    height: var(--navigation-height);
    width: 100%;
    z-index: 999;
}

.page-navigation .page-navigation-container {
    align-items: center;
    display: flex;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
    padding-left: 8px;
    padding-right: 8px;
}

.has-offset-for-navigation {
    top: var(--navigation-height) !important;
}

.has-padding-for-navigation {
    padding-top: var(--navigation-height) !important;
}

.drawer {
    width: 100%;
    height: 100%;
}

.drawer .drawer-container {
    align-items: center;
    display: flex;
    height: 100%;
}

.drawer .drawer-logo {
    display: flex;
    flex: 1 1 auto;
    height: 100%;
    margin-right: auto;
}

@media screen and (max-width: 576px) {
    .drawer .drawer-logo {
        height: 75%;
    }
}

.drawer .drawer-logo a {
    height: 100%;
}

.drawer .drawer-logo img {
    height: 100%;
    margin-left: 8px;
    margin-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.drawer .drawer-menu {
    display: flex;
    align-items: center;
}

.drawer a {
    text-decoration: none;
}

.drawer .icon-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 8px;
    margin-right: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.drawer .icon-label img {
    height: 24px;
}

.drawer .icon-label p {
    color: #333333;
    font-size: 7pt;
    margin-bottom: 0;
    padding-top: 2px;
}

@media screen and (max-width: 576px) {
    .drawer .icon-label p {
        font-size: 5pt;
    }
}

.drawer .drawer-tabifuku-navigation {
    margin-left: 24px;
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 10000;
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button.active {
    position: relative;
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button div {
    background-color: #333333;
    margin-top: 4px;
    margin-bottom: 4px;
    width: 80%;
    height: 3px;

    transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    -webkit-transition: .35s ease-in-out;
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button.active div:not(:first-child, :last-child) {
    display: none;
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button.active div:first-child {
    position: absolute;
    width: 100%;
    transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    -webkit-transform: rotate(315deg);
}

.drawer .drawer-tabifuku-navigation .drawer-hamburger-button.active div:last-child {
    position: absolute;
    width: 100%;
    transform: rotate(-315deg);
    -moz-transform: rotate(-315deg);
    -webkit-transform: rotate(-315deg);
}

.drawer .drawer-tabifuku-navigation-content {
    background: #fff;
    color: #000;
    margin: 0;
    overflow-y: scroll;
    padding: 50px 30px;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 9999;

    filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.2));
    -moz-filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.2));
    -ms-filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.2));
    -webkit-filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.2));

    transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    -webkit-transition: .35s ease-in-out;
}

.drawer .drawer-tabifuku-navigation-content:not(.active) {
    padding-top: 40px;
    right: -100%;
}

.drawer .drawer-tabifuku-navigation-content.active {
    right: 0;
}

.drawer .drawer-tabifuku-navigation-content li {
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 2em;
    list-style: none;
    padding: 5px 10px;
    width: 250px;
}

.drawer .drawer-tabifuku-navigation-content a {
    color: #333333;
}

.drawer .drawer-tabifuku-navigation-content .search-form {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.drawer .drawer-tabifuku-navigation-content .search-field {
    box-sizing: border-box;
    border-radius: 5px 0 0 5px;
    border: 1px solid #ccc;
    border-right: none;
    height: 35px;
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.drawer .drawer-tabifuku-navigation-content .search-field::placeholder {
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.drawer .drawer-tabifuku-navigation-content .search-submit {
    background: #1f2a66;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #fff;
    height: 35px;
    padding: 0 10px;
}
