@charset "UTF-8";

/*
 * 北陸電力公式ヘッダー/フッター導入後、
 * 旧節電ページ用CSS（new_reset.min.css 等）との干渉を打ち消す
 * ※ SP（959px以下）の sp_global_nav のみ対象。PCヘッダーには影響させない。
 */

@media screen and (max-width: 959px) {
    /* new_reset.min.css: header { height, border-bottom, z-index ... } */
    #header {
        height: auto;
        border-bottom: none;
        z-index: 100;
        background-color: transparent;
        background-position: initial;
        padding: 0;
    }

    #header .sp_global_nav * {
        max-height: none;
    }

    /* new_reset.min.css: header nav ul li — ハンバーガーメニュー内のみ打ち消し */
    #header .sp_global_nav nav:not(.personal_nav) ul li {
        height: auto;
        color: inherit;
        box-sizing: border-box;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        border-bottom: none;
        position: static;
        cursor: inherit;
    }

    #header .sp_global_nav nav:not(.personal_nav) li a {
        color: inherit !important;
        text-decoration: inherit;
    }

    #header .sp_global_nav nav:not(.personal_nav) li a:hover {
        opacity: inherit;
    }

    #header .sp_global_nav .personal_nav ul li {
        height: auto;
        color: inherit;
        border-bottom: none;
        line-height: 1;
    }

    #header .sp_global_nav .personal_nav ul li a {
        color: inherit !important;
        text-decoration: inherit;
    }
}

/* SPヘッダー（1140px以下）: personal_nav の表示・サイズ調整 */
@media screen and (max-width: 1140px) {
    #header .sp_global_nav .personal_nav ul li a.inquiry {
        display: flex;
    }

    #header .sp_global_nav .head {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #header .sp_global_nav .logo {
        padding: 36px 0 30px 26px;
    }

    #header .sp_global_nav .logo img {
        width: 244px !important;
        max-width: inherit !important;
        height: auto !important;
    }

    #header .sp_global_nav .personal_nav {
        margin-left: auto;
        margin-right: 20px;
        position: initial;
        transform: none;
    }

    #header .sp_global_nav .personal_nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    #header .sp_global_nav .personal_nav ul li {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 112px;
    }

    #header .sp_global_nav .personal_nav ul li .login {
        margin: 0 0 0 10px;
        border: none;
    }

    #header .sp_global_nav .personal_nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 0;
        text-align: center;
        line-height: 1;
    }

    #header .sp_global_nav .personal_nav ul li a img {
        display: block;
        width: 60px !important;
        height: auto !important;
        max-width: none !important;
        margin: 0;
        flex-shrink: 0;
    }

    #header .sp_global_nav .personal_nav ul li a p {
        display: block;
        width: 100%;
        margin: 0;
        padding-top: 4px;
        color: #000;
        font-size: 20px;
        line-height: 1;
        letter-spacing: 0.1em;
        word-break: keep-all;
        text-align: center;
        font-feature-settings: "palt";
    }
}

@media screen and (max-width: 750px) {
    #header .sp_global_nav .logo {
        padding: 4.8vw 0 4vw 3.46666vw;
    }

    #header .sp_global_nav .logo img {
        width: 32.53333vw !important;
        max-width: inherit !important;
        height: auto !important;
    }

    #header .sp_global_nav .personal_nav {
        margin-right: 2.66666vw;
    }

    #header .sp_global_nav .personal_nav ul li {
        width: 14.93333vw;
    }

    #header .sp_global_nav .personal_nav ul li .login {
        margin: 0 0 0 1.33333vw;
    }

    #header .sp_global_nav .personal_nav ul li a img {
        width: 8vw !important;
    }

    #header .sp_global_nav .personal_nav ul li a p {
        padding-top: 0.53333vw;
        font-size: 2.66666vw;
    }
}

#footer {
    margin-top: 0;
}
