@charset "utf-8";

/* ロゴ */
.header-logo img {
    /* これを入れないとレイアウトに合わせて拡大縮小されてしまう */
    max-width: none;
}

/* ヘッダコンテナ */
#header-container {
    position: fixed;
    width: 100%;
    top: 0px;
    background-color: #A6B727;
    z-index: 998;
    color: white;
}

/* 画面名 */
#header-screen-name-area {
    background-color: white;
    padding: 10px;
}
#header-screen-name {
    border-left: 5px solid #A6B727;
    color: black;
    font-weight: bold;
    padding-left: 10px;
}

/* 戻るボタン */
#header-backbutton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    color: #D7DE9A;
    padding: 5px;
    line-height: 1em;
}
#header-backbutton img {
    vertical-align: middle;
    margin-right: 10px;
}
#header-backbutton a {
    color: #A6B727;
}

/* メニュー */
#header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}
#header-menu-left {
    display: flex;
}
#header-menu-right {
    display: flex;
    align-items: center;
}
.header-menu-responsive {
    display: none;
}
.header-menu-item {
    display: flex;
    margin-top: 10px;
}
.header-menu-item-text {
    text-align: left;
    font-weight: normal;
    color: white;
    margin-left: 5px;
    line-height: 1.2em;
}

/* ユーザアイコンホバー時に画像を切り替え */
#header-menu-login-user-img:hover {
    content: url('/img/icon_user_gray.png');
    cursor: pointer;
}

/* ユーザアイコンクリック時に表示するメニュー */
.header-menu-login-user {
    text-align: right;
    font-weight: normal;
    color: white;
    margin-left: 5px;
    line-height: 1.2em;
    margin-right: 10px;
}
#header-menu-login-user-menu {
    display: none;
    position: absolute;
    z-index: 999;
    border: 1px solid silver;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 2px 2px 5px gray;
    white-space: nowrap;
}
#header-menu-login-user-menu a {
    color: gray;
}
#header-menu-login-user-menu div {
    margin: 10px 0px;
}

/* ハンバーガーメニュー */
.hamburger {
    margin: 0px auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.hamburger .btn-gNav {
    position: fixed;
    top: 10px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 12;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
    margin-top: 10px;
}
.hamburger .gNav-menu a {
    text-decoration: none;
    color: #3B4043; /* ハンバーガーの色 */
}
@media (hover: hover) {
    .hamburger .gNav-menu a:link,
    .hamburger .gNav-menu a:visited,
    .hamburger .gNav-menu a:active,
    .hamburger .gNav-menu a:hover {
        color: #3B4043;
    }
}
.hamburger .btn-gNav span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #3B4043;
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
.hamburger .btn-gNav span:nth-child(1) {
    top: 0;
}
.hamburger .btn-gNav span:nth-child(2) {
    top: 10px;
}
.hamburger .btn-gNav span:nth-child(3) {
    top: 20px;
}
.hamburger .btn-gNav.open span:nth-child(1) {
    top: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.hamburger .btn-gNav.open span:nth-child(2) {
    opacity: 0;
}
.hamburger .btn-gNav.open span:nth-child(3) {
    top: 6px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}
.btn-gNav {
    display: none;
}
.gNav .gNav-menu {
    display: flex;
    justify-content: flex-end;
    font-weight: bold;
    align-items: center;
    padding-right: 20px;
}
.gNav .gNav-menu ol,
.gNav ul {
    list-style: none;
    list-style-type: none;
    margin: 0;
}
.gNav .gNav-menu li {
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}


/* レスポンシヴ */
/* タブレット縦向き以下の場合、メニューをハンバーガー化する */
@media screen and (max-width: 1024px) {

    /* ヘッダコンテナ */
    #header-menu-right {
        display: none;
    }
    .header-menu-responsive {
        display: block;
    }

    /* ハンバーガーメニュー */
    .btn-gNav {
        display: block;
    }
    .gNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: #A6B727;
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 50px;
        transition: .3s;
    }
    .gNav.open {
        right: 0;
    }
    .gNav .gNav-menu {
        padding: 0;
        width: 100%;
        height: 100%;
        display: block;
        flex-direction: column;
        text-align: center;
    }
    .gNav .gNav-menu li {
        width: 86%;
        padding: 15px;
        background-image: url("/img/icon_arrow_right.png");
        background-repeat: no-repeat;
        background-position: right center;
    }

}