:root {
    --header-height: 90px;
}

body {
    padding-top: var(--header-height);
}

body.admin-bar {
    padding-top: calc(var(--header-height) + 32px);
}

html,
body.admin-bar {
    margin-top: 0 !important;
}

/* =========================
   固定ページヘッダー
========================= */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #fff8f8;
    border-bottom: 1px solid #ddd;
    z-index: 999;
    display: flex;
    align-items: center;
}

.page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.home-link img {
    width: 18px;
    margin-right: 6px;
}

.arrow {
    margin: 0 10px;
    color: #aaa;
}

.current {
    color: #e60012;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ハンバーガー */

.page-menu {
    width: 26px;
    cursor: pointer;
}

.page-menu span {
    display: block;
    height: 2px;
    background: #333;
    margin: 6px 0;
}

/* =========================
   グローバルメニュー
========================= */

.global-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100dvh;
    padding: 80px 30px 40px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ff0000, #b40000);
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 9999;
    overflow-y: auto;
}

.global-menu.open {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.menu-close img {
    width: 100%;
}

/* =========================
   メニューリスト
========================= */

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 親メニュー */

.menu-list>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* ＋ボタン */

.menu-item-has-children>a::after {

    content: "";
    width: 18px;
    height: 18px;

    background: url("../images/plus.png") no-repeat center;
    background-size: contain;

    transition: .3s;

}

/* 開いた時 */

.menu-item-has-children.open>a::after {
    transform: rotate(180deg);
}

/* =========================
   子メニュー
========================= */

.sub-menu {

    display: none;

    list-style: none;

    padding: 10px 0 15px;

    margin: 0;

}

.menu-item-has-children.open .sub-menu {
    display: block;
}

.sub-menu li {
    margin: 14px 0;
}

.sub-menu a {

    display: block;

    text-align: right;

    color: #fff;

    font-size: 18px;

    text-decoration: none;

}

/* =========================
   お問い合わせボタン
========================= */

.menu-contact {
    margin-top: 50px;
}
.menu-list li.menu-contact {
    border-bottom: none;
    margin-top: 50px;
}

.menu-list li.menu-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #e9e9e9;
    color: #e60012;
    border-radius: 22px;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 6px 8px 0 rgba(110, 0, 0, 0.6);
}

.menu-list li.menu-contact a::before {
    content: "";
    width: 26px;
    height: 26px;
    background: url("../images/mail-red.png") no-repeat center;
    background-size: contain;
    display: inline-block;
}

.menu-contact img {
    width: 26px;
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 768px) {

    :root {
        --header-height: 60px;
    }

    body.admin-bar .page-header {
        top: 0;
    }

    body.admin-bar .global-menu {
        top: 0;
    }

    .page-header {
        height: var(--header-height);
    }

    .page-header-inner {
        padding: 0 15px;
    }

    .page-breadcrumb {
        font-size: 12px;
    }

    .home-link img {
        width: 14px;
    }

    .arrow {
        margin: 0 6px;
    }

    .current {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .page-menu {
        width: 22px;
    }

    .page-menu span {
        margin: 4px 0;
    }

    .global-menu {
        width: 80%;
        max-width: none;
        height: 100%;
        padding: 70px 20px 30px;
        overflow-y: auto;
    }

    .menu-close {
        top: 20px;
        left: 20px;
        width: 24px;
        height: 24px;
    }

    .child-menu a {
        font-size: 15px;
    }

    .menu-list>li.menu-contact>a {
        font-size: 16px;
        padding: 12px;
        border-radius: 10px;
    }

    .menu-contact img {
        width: 20px;
    }
}