/* ヘッダー基本設定 */
.fix_menu {
    position: fixed;
    width: 100%;
    top: 32px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ロゴ */
.rogo {
    height: 100%;
    width: 300px;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.rogo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* PCメニュー */
#pc-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}

.header_menu {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header_menu li {
    height: 100%;
    margin: 0 20px;
    display: flex;
    align-items: center;
}

.header_menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #737272;
    font-size: 15px;
    white-space: nowrap;
    padding: 0 10px;
    position: relative;
}

.header_menu li a span {
    font-size: 12px;
    color: #094E7D;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* 電話番号部分 */
.p-global-header__tel {
    margin: 0;
    color: #ffffff;
    background: #084e7d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    margin-left: 20px;
    min-width: 230px;
}

.p-global-header__tel-number {
    font-size: 20px;
    margin: 0;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.05em;
}

.p-global-header__tel-desc {
    font-size: 11px;
    margin: 6px 0 0;
    text-align: center;
    line-height: 1;
}

.p-global-header__tel-text {
    white-space: nowrap;
}

/* PC用お問い合わせ・LINEボタン */
.pc-contact-buttons {
    display: flex;
    height: 100%;
}

.pc-contact-buttons .p-global-header__contact {
    width: 80px;
    background: #75bb2a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pc-contact-buttons .p-global-header__contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* モバイルメニューボタン */
#switch {
    display: none;
}

#switch~label {
    display: none;
}

/* モバイルメニュー */
#mobile-nav {
    display: none;
}

/* スマホ用固定お問い合わせボタン */
.mobile-contact-buttons {
    display: none;
}

/* アイコン共通スタイル */
.p-global-header__contact-btn.mail::before {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1;
    display: block;
}

.p-global-header__contact-btn.line::before {
    content: '\f3c0';
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1;
    display: block;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1458px) {

    /* PCメニューを非表示 */
    #pc-nav {
        display: none;
    }

    /* ロゴの余白調整 */
    .rogo {
        padding-left: 15px;
    }

    /* モバイルメニューボタンを表示 */
    #switch~label {
        display: flex;
        width: 60px;
        height: 60px;
        position: relative;
        cursor: pointer;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    #switch~label span {
        position: relative;
        width: 24px;
        height: 2px;
        background: #333;
        transition: all 0.3s;
    }

    #switch~label span::before,
    #switch~label span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: #333;
        transition: all 0.3s;
        left: 0;
    }

    #switch~label span::before {
        top: -8px;
    }

    #switch~label span::after {
        top: 8px;
    }

    /* モバイルメニューを表示 */
    #mobile-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.9);
        padding: 0;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 998;
    }

    #switch:checked~#mobile-nav {
        display: block;
    }

    #switch:checked~label span {
        background: transparent;
    }

    #switch:checked~label span::before {
        top: 0;
        transform: rotate(45deg);
    }

    #switch:checked~label span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* モバイルメニューのスタイル */
    #mobile-nav .header_menu {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    #mobile-nav .header_menu li {
        margin: 0;
        height: auto;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobile-nav .header_menu li a {
        color: #fff;
        font-size: 14px;
        padding: 20px 0;
        width: 100%;
    }

    #mobile-nav .header_menu li a span {
        color: #fff;
        opacity: 0.7;
        margin-top: 5px;
    }

    /* スマホ用固定お問い合わせボタンを表示 */
    .mobile-contact-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        z-index: 1000;
        gap: 10px;
        background: #fff;
    }

    .mobile-contact-buttons .p-global-header__contact {
        flex: 1;
        height: 50px;
    }

    .mobile-contact-buttons .p-global-header__contact a {
        color: #ffffff;
        text-decoration: none;
        font-size: 10px;
        text-align: center;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
        background: #75bb2a;
        border-radius: 5px;
    }
}

/* WordPress管理バー対応 */
@media screen and (max-width: 782px) {
    .fix_menu {
        top: 46px;
    }

    #mobile-nav {
        top: 106px;
        height: calc(100vh - 106px);
    }

    /* ロゴの余白をさらに調整 */
    .rogo {
        padding-left: 10px;
    }
}

body:not(.admin-bar) .fix_menu {
    top: 0;
}

body:not(.admin-bar) #mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
}

/* メニューを開いているときのbodyスタイル */
body.menu-open {
    overflow: hidden;
    padding-bottom: 70px;
}