/*---------------------- スマホ用ハンバーガーメニュー ----------------------*/
/* ページによって html の font-size が異なるため px で指定 */
.menu_btn,
.sp_menu {
    display: none;
}
@media (max-width: 800px) {
    .header .header_R {
        display: none;
    }
    .menu_btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-left: auto;
        width: 56px;
        height: 100%;
        padding: 0;
        border: none;
        background: none;
        color: #333;
        font-family: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .menu_btn_bar {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #333;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu_btn_txt {
        font-size: 10px;
        line-height: 1;
        margin-top: 2px;
        letter-spacing: 0.05em;
    }
    /* 開いているときは × に変形 */
    .menu_btn[aria-expanded="true"] .menu_btn_bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .menu_btn[aria-expanded="true"] .menu_btn_bar:nth-child(2) {
        opacity: 0;
    }
    .menu_btn[aria-expanded="true"] .menu_btn_bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .sp_menu {
        display: block;
        position: fixed;
        top: var(--menu-top, 48px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        overflow-y: auto;
        background-color: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        padding: 8px 24px 40px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }
    .sp_menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .sp_menu_list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .sp_menu_list li {
        border-bottom: 1px solid #e5e5e5;
    }
    .sp_menu_list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        font-size: 17px;
        color: #222;
        text-decoration: none;
    }
    .sp_menu_list a::after {
        content: "›";
        font-size: 22px;
        color: #A40033;
    }
    .sp_menu_list a[aria-current="page"] {
        color: #A40033;
        font-weight: bold;
    }
    .sp_menu_ttl {
        font-size: 12px;
        color: #888;
        margin: 24px 0 4px;
    }
    .sp_menu_tel {
        display: block;
        margin-top: 32px;
        padding: 14px;
        border-radius: 40px;
        background-color: #A40033;
        color: #fff;
        text-align: center;
        font-size: 16px;
        line-height: 1.5;
        text-decoration: none;
    }
    .sp_menu_tel + .sp_menu_tel {
        margin-top: 12px;
    }
    .sp_menu_tel span {
        display: block;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 0.05em;
    }
    /* メニューを開いている間は背面のスクロールを止める */
    html.is-menu-open,
    html.is-menu-open body {
        overflow: hidden;
    }
}
