/* =========================================================
   Header
   ヘッダー
========================================================= */

h1.site-header-logo {
    padding-top: 10px;
    margin-bottom: 10px;
}

.site-header-logo img {
    max-height: 50px;
}

.site-mobile-menu-btn {
    display: none;
}


/* =========================================================
   Header Contact
   ヘッダー：お問い合わせ
========================================================= */

.menu .nav-contact > a {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: nowrap;
    background-color: #05AFF2;
    border: 2px solid #05AFF2;
    color: #ffffff;
    font-weight: 700;
    transition: .3s;
}

.menu .nav-contact > a::before {
    content: 'mail';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
}

.menu .nav-contact > a:hover {
    background-color: #ffffff;
    color: #05AFF2;
    text-decoration: none;
}


/* =========================================================
   Header Scroll
   スクロール時もロゴを表示
========================================================= */

.header_scrolled .site-header-logo {
    display: block !important;
}


/* =========================================================
   Mobile Menu
   SPヘッダー・ハンバーガーメニュー調整
========================================================= */

@media (max-width: 782px) {

    :root {
        --mobile-header-height: 52px;
    }

    /* Lightning標準ボタン非表示 */
    #vk-mobile-nav-menu-btn {
        display: none !important;
    }

    /* 固定ヘッダー */
    body .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
    }

    .header_scrolled.admin-bar .site-header {
        top: 0 !important;
    }

    /* ヘッダー内レイアウト */
    #site-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header-logo {
        flex: 1;
    }

    /* ヘッダーお問い合わせ */
    .menu .nav-contact > a {
        justify-content: center;
    }

    /* 自作ハンバーガー */
    #site-mobile-menu-btn.site-mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 48px;
        height: 48px;
        margin-left: auto;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    #site-mobile-menu-btn.site-mobile-menu-btn > span:not(.screen-reader-text) {
        display: block !important;
        width: 24px;
        height: 2px;
        background-color: #05AFF2;
        transition: transform .3s ease, opacity .3s ease;
    }

    #site-mobile-menu-btn.is-open > span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #site-mobile-menu-btn.is-open > span:nth-child(2) {
        opacity: 0;
    }

    #site-mobile-menu-btn.is-open > span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* モバイルメニュー */
    #vk-mobile-nav {
        display: none;
        top: var(--mobile-header-height) !important;
        height: calc(100vh - var(--mobile-header-height)) !important;
    }

    body.is-mobile-menu-open #vk-mobile-nav {
        display: block;
    }

    /* ウィジェット非表示 */
    body .vk-mobile-nav-widget {
        display: none;
    }

    /* メニュー罫線 */
    body .vk-mobile-nav nav ul li a {
        border-color: #05AFF2;
    }

    body .vk-mobile-nav nav > ul {
        border-top-color: #05AFF2;
    }

    /* 子メニュー常時表示 */
    #vk-mobile-nav .sub-menu,
    #vk-mobile-nav li.menu-item-has-children > ul.sub-menu {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #vk-mobile-nav .acc-btn {
        display: none !important;
    }

    #vk-mobile-nav .sub-menu li a {
        padding-left: 2rem;
        font-size: 0.9rem;
    }
}


/* =========================================================
   SP Header
========================================================= */

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

    h1.site-header-logo {
        padding-top: 5px;
        margin-bottom: 5px;
    }

    .site-header-logo img {
        max-height: 40px;
    }
}