@charset "utf-8";

/*===================================
  スマホ用ヘッダー（ハンバーガーメニュー）
  ※ .l-header に is-new が付いたページだけに効く
===================================*/

@media screen and (max-width: 767px) {

    /*----- ヘッダー -----*/
    .l-header.is-new {
        justify-content: space-between;
        gap: 0;
        height: 57px;
        padding: 0 12px 0 19px;
        background: #74b4bd;
        box-sizing: border-box;
    }

    .l-header.is-new .l-header_logo {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        text-shadow: none;
    }

    .l-header.is-new .l-header_logo_link {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .l-header.is-new .l-header_logo_img img {
        display: block;
        width: 110px;
        height: auto;
    }

    .l-header.is-new .l-header_logo_img-20th {
        width: 62px;
        height: auto;
    }

    /* 色付きのナビボタンはメニューに移動 */
    .l-header.is-new ~ nav {
        display: none;
    }

    /*----- ハンバーガーボタン -----*/
    .hamburger {
        flex-shrink: 0;
        position: relative;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
    }

    .hamburger_line,
    .hamburger_line::before,
    .hamburger_line::after {
        position: absolute;
        left: 8px;
        width: 28px;
        height: 1.5px;
        background: #fff;
        content: "";
    }

    .hamburger_line {
        top: calc(50% - 0.75px);
    }

    .hamburger_line::before {
        top: -7.5px;
        left: 0;
    }

    .hamburger_line::after {
        top: 7.5px;
        left: 0;
    }

    /*----- メニュー -----*/
    .drawer {
        position: fixed;
        inset: 0;
        z-index: 10000;
        visibility: hidden;
        transition: visibility 0s 0.3s;
    }

    .drawer.is-open {
        visibility: visible;
        transition: none;
    }

    .drawer_bg {
        position: absolute;
        inset: 0;
    }

    .drawer_panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 80%;
        height: 100%;
        padding: 74px 0 40px;
        overflow-y: auto;
        background: #74b4bd;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .drawer.is-open .drawer_panel {
        transform: translateX(0);
    }

    .drawer_close {
        position: absolute;
        top: 6px;
        right: 9px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
    }

    .drawer_close::before,
    .drawer_close::after {
        position: absolute;
        top: calc(50% - 0.75px);
        left: 7px;
        width: 30px;
        height: 1.5px;
        background: #fff;
        content: "";
    }

    .drawer_close::before {
        transform: rotate(30deg);
    }

    .drawer_close::after {
        transform: rotate(-30deg);
    }

    .drawer_list {
        width: 192px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
    }

    .drawer_list li {
        border-bottom: 1px solid #fff;
    }

    .drawer_list li:last-child {
        border-bottom: none;
    }

    .drawer_list a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        text-align: center;
        text-decoration: none;
        color: #fff;
        font-family: sans-serif;
    }

    /* メニューを開いている間は後ろのページをスクロールさせない */
    html.is-drawer-open {
        overflow: hidden;
    }
}

/* PCでは表示しない */
@media screen and (min-width: 768px) {

    .hamburger,
    .drawer {
        display: none !important;
    }
}
