#header {
    background: #fff;
}

#headerInner {
    width: 980px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#headerTitle {
    width: 980px;
    height: 60px;
    background: url(../../img/header.png) left center no-repeat;
    background-size: contain;
    overflow: hidden;
}

#headerTitle a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

#headerNav ul,
#headerNav ul li {
    display: flex;
}

/* ボタン共通 */
.btn-policies,
.btn-help {
    display: inline-block;
    width: 90px;
    height: 60px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

/* 利用規約 */
.btn-policies {
    background-image: url(../../img/rule_h60w90.png);
    border-left: 1px solid #ccc;
}

/* 使い方 */
.btn-help {
    background-image: url(../../img/manual_h60w90.png);
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}


/* ハンバーガー（PC時は非表示） */
#hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

#hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: .3s;
}

#hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* オーバーレイ */
#drawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 999;
    /* ヘッダーより上 */
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

#drawerOverlay.show {
    opacity: 1;
    pointer-events: auto;
}


@media (max-width: 980px) {
    #headerInner {
        width: 100%;
    }

    #headerTitle {
        width: -webkit-fill-available;
    }
}

/* 510px以下でドロワー化 */
@media (max-width:510px) {
    #headerInner {
        justify-content: space-between;
        align-items: center;
    }

    #hamburger {
        display: flex;
        z-index: 1002;
    }

    /* ナビを右サイドの引き出しに */
    #headerNav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        /* width: 30vw; */
        max-width: 320px;
        background: #fff;
        border-left: 1px solid #ddd;
        box-shadow: -8px 0 20px rgba(0, 0, 0, .08);
        transform: translateX(100%);
        transition: transform .25s ease;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
        /* ヘッダー高さ分 */
        z-index: 1001;
    }

    #headerNav.open {
        transform: translateX(0);
    }

    /* 縦並びメニュー */
    #headerNav ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #headerNav ul li {
        display: flex;
        flex-direction: column;
    }

    .btn-policies,
    .btn-help {
        /* width: 100%; */
        height: 56px;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        background-repeat: no-repeat;
        background-position: 0px center;
        /* アイコン分の余白 */
        text-indent: 0;
        overflow: visible;
        /* テキスト表示にしたい場合はここで */
    }

    /* 画像だけで表示したいなら上の2行を以下に戻す
     text-indent:-9999px; overflow:hidden; */

    /* ロゴは少し縮める */
    #headerTitle a {
        width: 220px;
        height: 48px;
        background-size: contain;
    }
}

/* PCホバー */
@media (hover:hover) {

    .btn-policies:hover,
    .btn-help:hover {
        background-color: #f7f7f7;
    }
}