/*
 * SETTAR Header
 * v7 - Desktop / Mobile Stable + Arkhe Drawer Fix
 */


/* =========================================================
   HEADER BASE
========================================================= */

.l-header,
#header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;
    min-height: 76px;

    background: rgba(7, 23, 47, .97) !important;

    border-bottom:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   HEADER INNER
========================================================= */

.l-header__inner,
.l-header__body,
.l-header__content {
    width: min(1200px, calc(100% - 40px));
    min-height: 76px;

    margin-inline: auto;

    display: flex !important;
    align-items: center !important;

    background: transparent !important;
}


/* =========================================================
   LOGO
========================================================= */

.l-header img,
.site-header img,
#header img {
    display: block;

    max-height: 48px;
    width: auto;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.l-header nav,
.site-header nav,
#header nav {
    margin-left: auto !important;
}


.l-header nav ul,
.site-header nav ul,
#header nav ul,
.l-header .menu {
    display: flex !important;
    align-items: center;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.l-header a,
.l-header nav a,
.l-header .menu a,
.site-header a,
#header a {
    color: rgba(255, 255, 255, .84) !important;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.l-header nav a:hover,
.l-header .menu a:hover,
.site-header nav a:hover,
#header nav a:hover {
    color: #ffffff !important;
}


/* =========================================================
   DESKTOP CONTACT CTA
========================================================= */

.l-header .menu li:last-child,
.l-header nav li:last-child,
.site-header .menu li:last-child,
#header .menu li:last-child {
    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
}


.l-header .menu li:last-child > a,
.l-header nav li:last-child > a,
.site-header .menu li:last-child > a,
#header .menu li:last-child > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* 実寸を固定 */
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;

    padding:
        0
        20px !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    border:
        1px solid rgba(90, 168, 255, .46) !important;

    border-radius: 999px !important;

    background:
        linear-gradient(
            135deg,
            #3179c8 0%,
            #3b8cdc 100%
        ) !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    box-shadow:
        0 5px 14px rgba(49, 121, 200, .20);

    transform: translateY(0);

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        filter .20s ease,
        border-color .20s ease;
}


.l-header .menu li:last-child > a:hover,
.l-header nav li:last-child > a:hover,
.site-header .menu li:last-child > a:hover,
#header .menu li:last-child > a:hover {
    /* 上への移動量も抑える */
    transform: translateY(-1px);

    filter: brightness(1.10);

    border-color:
        rgba(125, 195, 255, .90) !important;

    box-shadow:
        0 6px 16px rgba(49, 121, 200, .30),
        0 0 14px rgba(90, 168, 255, .38),
        0 0 28px rgba(90, 168, 255, .20);
}

/* =========================================================
   WORDPRESS ADMIN BAR
========================================================= */

.admin-bar .l-header,
.admin-bar #header,
.admin-bar .site-header {
    top: 32px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       HEADER
    ===================================================== */

    .l-header,
    #header,
    .site-header {
        position: sticky;

        width: 100% !important;
        max-width: none !important;

        min-height: 56px;
        height: 56px;

        margin: 0 !important;
        padding: 0 !important;

        background: #07172f !important;

        border-bottom:
            1px solid rgba(255, 255, 255, .08);

        box-sizing: border-box;

        /*
         * Arkhe Drawer Fix
         * fixed要素の基準がヘッダー側へ固定されるのを防ぐ
         */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }


    /* =====================================================
       HEADER INNER
    ===================================================== */

    .l-header__inner,
    .l-header__body,
    .l-header__content {
        position: relative;

        width: 100% !important;
        max-width: none !important;

        min-height: 56px !important;
        height: 56px;

        margin: 0 !important;

        padding:
            0
            56px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #07172f !important;

        box-sizing: border-box;
    }


    /* =====================================================
       PC NAVIGATION
       スマホではヘッダー内PCナビだけ非表示
    ===================================================== */

    .l-header__right > nav,
    .l-header__right > .c-gnav,
    .l-header__right > .p-gnav,
    .l-header__right > .menu-main-container,
    .l-header__right > .menu-header-container {
        display: none !important;
    }


    /* =====================================================
       CENTER LOGO
    ===================================================== */

    .l-header img,
    .site-header img,
    #header img {
        display: block;

        max-height: 38px;
        width: auto;

        margin:
            0
            auto !important;
    }


    /* =====================================================
       LEFT AREA
    ===================================================== */

    .l-header__left {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 56px !important;
        min-width: 56px !important;

        height: 56px !important;
        min-height: 56px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #07172f !important;

        border: 0 !important;

        box-shadow: none !important;
    }


    .l-header__left button,
    .l-header__left a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 56px !important;
        height: 56px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        color: rgba(255, 255, 255, .92) !important;
    }


    /* =====================================================
       RIGHT AREA
    ===================================================== */

    .l-header__right {
        position: absolute !important;

        top: 0 !important;
        right: 0 !important;

        width: 56px !important;
        min-width: 56px !important;

        height: 56px !important;
        min-height: 56px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #07172f !important;

        border: 0 !important;

        box-shadow: none !important;

        overflow: hidden;
    }


    /*
     * 右エリア内のPCナビだけ非表示
     */

    .l-header__right > nav,
    .l-header__right > ul,
    .l-header__right > .menu {
        display: none !important;
    }


    /* =====================================================
       SEARCH BUTTON
    ===================================================== */

    .l-header__right > button,
    .l-header__right > a,
    .l-header__right .c-iconBtn,
    .l-header__right .c-searchBtn,
    .l-header__right .arkhe-search-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 56px !important;
        min-width: 56px !important;

        height: 56px !important;
        min-height: 56px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        color: rgba(255, 255, 255, .92) !important;
    }


    /* =====================================================
       MOBILE ICON COLOR
    ===================================================== */

    .l-header__left svg,
    .l-header__right svg,
    .c-iconBtn svg,
    .c-searchBtn svg,
    .arkhe-search-btn svg {
        width: 21px !important;
        height: 21px !important;

        margin: 0 !important;

        color: rgba(255, 255, 255, .92) !important;

        stroke: currentColor !important;
    }


    .l-header__left svg *,
    .l-header__right svg *,
    .c-iconBtn svg *,
    .c-searchBtn svg *,
    .arkhe-search-btn svg * {
        stroke: currentColor !important;
    }


    /* =====================================================
       SEARCH ICON
    ===================================================== */

    .l-header__right svg,
    .c-searchBtn svg,
    .arkhe-search-btn svg {
        fill: none !important;
        stroke: currentColor !important;

        stroke-width: 2;
    }


    /* =====================================================
       HAMBURGER LINES
    ===================================================== */

    .l-header__left .c-iconBtn__line,
    .l-header__left .c-iconBtn__line::before,
    .l-header__left .c-iconBtn__line::after,
    .drawerBtn__bar,
    .drawerBtn__bar::before,
    .drawerBtn__bar::after {
        background: rgba(255, 255, 255, .92) !important;
    }


    /* =====================================================
       HOVER / FOCUS
    ===================================================== */

    .l-header__left button:hover,
    .l-header__left a:hover,
    .l-header__right button:hover,
    .l-header__right a:hover,
    .l-header__left button:focus,
    .l-header__right button:focus {
        color: #ffffff !important;
    }


    .l-header__left button:hover svg,
    .l-header__right button:hover svg,
    .l-header__left a:hover svg,
    .l-header__right a:hover svg,
    .l-header__left button:focus svg,
    .l-header__right button:focus svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }


    .l-header__left button:hover .c-iconBtn__line,
    .l-header__left button:hover .c-iconBtn__line::before,
    .l-header__left button:hover .c-iconBtn__line::after,
    .drawerBtn:hover .drawerBtn__bar,
    .drawerBtn:hover .drawerBtn__bar::before,
    .drawerBtn:hover .drawerBtn__bar::after {
        background: #ffffff !important;
    }


    /* =====================================================
       ARKHE DRAWER FIX
    ===================================================== */

    #drawer_menu.p-drawer {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;

        max-width: none !important;
    }


    #drawer_menu .p-drawer__inner {
        width: 100% !important;

        height: 100% !important;
        min-height: 100vh !important;
    }


    #drawer_menu .p-drawer__body {
        width: 100% !important;

        min-height: 100vh !important;
    }


    #drawer_menu .p-drawer__nav {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        visibility: visible !important;
        opacity: 1 !important;
    }


    /* =====================================================
       SETTAR MOBILE DRAWER MENU
    ===================================================== */

    .p-drawer__nav .settar-drawer-menu {
        display: block !important;

        width: 100%;

        margin: 0 !important;

        padding:
            20px
            24px !important;

        list-style: none !important;

        box-sizing: border-box;
    }


    .p-drawer__nav
    .settar-drawer-menu
    > li {
        display: block !important;

        width: 100%;

        margin: 0 !important;

        border-bottom:
            1px solid rgba(255, 255, 255, .10);
    }


    .p-drawer__nav
    .settar-drawer-menu
    > li
    > a {
        display: flex !important;
        align-items: center !important;

        width: 100%;

        min-height: 58px;

        padding:
            0
            6px !important;

        color: #ffffff !important;

        font-size: 16px !important;
        font-weight: 600 !important;

        text-decoration: none !important;

        box-sizing: border-box;
    }


    .p-drawer__nav
    .settar-drawer-menu
    > li
    > a:hover {
        background:
            rgba(255, 255, 255, .06) !important;
    }


    .p-drawer__nav
    .settar-drawer-menu
    > li:last-child {
        padding:
            18px
            0;

        border-bottom: 0;
    }


    .p-drawer__nav
    .settar-drawer-menu
    > li:last-child
    > a {
        justify-content: center !important;

        min-height: 48px;

        padding:
            0
            20px !important;

        border-radius: 999px;

        background: #3179c8 !important;
        color: #ffffff !important;

        box-shadow:
            0 8px 22px rgba(49, 121, 200, .28);
    }


    /* =====================================================
       ADMIN BAR
    ===================================================== */

    .admin-bar .l-header,
    .admin-bar #header,
    .admin-bar .site-header {
        top: 46px;
    }
}