@charset "utf-8";

/* ロゴ */
.header-logo img {
    /* これを入れないとレイアウトに合わせて拡大縮小されてしまう */
    max-width: none;
}

/* ヘッダコンテナ */
#header-container {
    position: fixed;
    width: 100%;
    top: 0px;
    background-color: #418AB3;
    z-index: 998;
    color: white;
}

/* ティッカー */
#header-ticker {
    background-color: white;
    color: black;
    border: 1px solid lightgray;    
    white-space: nowrap;
    width: 100%;
    height: 25px;
    margin: 0px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
#header-ticker ul {
    display: flex;
    align-items: center;
    animation: header_ticker 20s linear infinite;
    margin: 0px;
}
#header-ticker li {
    margin: 0px 100px 0px 0px;
    list-style-type: none;
    padding: 0px;
}
@keyframes header_ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%);}
}

/* 画面名 */
#header-screen-name-area {
    background-color: white;
    padding: 10px 10px 5px 10px;
}
#header-screen-name {
    border-left: 5px solid #418AB3;
    color: black;
    font-weight: bold;
    padding-left: 10px;
}
#header-screen-name.green {
    border-color: #40B3A3;
}

/* 戻るボタン */
#header-backbutton-link {
    margin-left: 20px;
}
#header-backbutton-link img {
    /* width: 20px;
    height: 20px; */
    vertical-align: top;
}
#header-backbutton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    color: #418AB3;
    padding: 5px;
    line-height: 1em;
}
#header-backbutton.green a {
    color: #40B3A3;
}
#header-backbutton img {
    vertical-align: middle;
    margin-right: 10px;
}

/* メニュー */
#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-item {
    display: flex;
    margin-top: 10px;
}
.header-menu-responsive {
    display: none;
}
.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;
    }

    /* 画面名 */
    #header-screen-name-area {
        padding: 10px 10px 0px 10px;
    }

    /* ハンバーガーメニュー */
    .btn-gNav {
        display: block;
    }
    .gNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: #418AB3;
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 50px;
        padding-bottom: 50px; /* フッターの高さ分を追加 */
        transition: .3s;
        
        overflow-y: auto; /* スクロールを有効にする */
        -webkit-overflow-scrolling: touch; /* スマホで慣性スクロール有効化 */
    }
    .gNav.open {
        right: 0;
    }
    .gNav .gNav-menu {
        padding: 0;
        width: 100%;
        /* min-height: 100%;
        height: 100%; */
        /* display: block; */
        display: flex;
        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;
    }

}