/* ==============================
   PC グローバルナビ
============================== */
.global_nav .center_main_link {
    list-style: none;
    margin: 0;
    padding: 0;
}

.global_nav .pc_flex {
    display: flex;
    gap: 24px;
    align-items: center;
    width: 90%;
    justify-content: end;
}

.global_nav .center_main_link li {
    position: relative;
}

.global_nav .center_main_link>li>a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #111;
    transition: color .2s ease;
}

.global_nav .center_main_link>li>a:hover {
    color: #2f6fe4 !important;
}

/* サブメニュー */
.global_nav .child_menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}

.global_nav .child_menu li a {
    display: block;
    padding: 12px 20px;
    color: #000;
    white-space: nowrap;
    font-size: 14px;
}

.global_nav .child_menu li a:hover {
    background: #f5f5f5 !important;
}

.global_nav .has_child:hover>.child_menu {
    display: block;
}


/* ==============================
   フッター（PC）
============================== */
.cm-footer {
    background: #4f79c6;
    color: #fff;
    padding: 60px 0 30px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.cm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.cm-footer-left {
    max-width: 420px;
}

.cm-footer-left .cm-logo img {
    width: 250px;
}

.cm-tagline {
    margin: 20px 0 30px;
    font-size: 16px;
    line-height: 1.6;
}

.cm-footer-right {
    display: flex;
    gap: 80px;
}

.cm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-footer-col li {
    margin-bottom: 12px;
}

.cm-footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.cm-footer-col a:hover {
    text-decoration: underline;
}

.cm-footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    opacity: .9;
}


/* ==============================
   ハンバーガー
============================== */
.hamburger {
    display: none;
    width: 28px;
    height: 22px;
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 10001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #222;
    margin: 6px 0;
    transition: .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==============================
   SP メニュー
============================== */
.mobile_nav {
    display: none;
}

@media (max-width:768px) {
    .site-main {
        position: relative;
        top: 65px;
    }

    .global_nav {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .mobile_nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: #fff;
        transition: left .4s ease;
        z-index: 5;
        overflow-y: auto;
        padding: 90px 24px 60px;
    }

    .mobile_nav.open {
        left: 0;
    }

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

    .mobile_nav li {
        border-bottom: 1px solid #eee;
    }

    .mobile_nav .menu-main {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 18px 0;
        font-size: 16px;
        color: #111;
        background: none;
        border: none;
        text-decoration: none;
    }

    /* ＋−アイコン（左側） */
    .mobile_nav .icon {
        width: 20px;
        text-align: center;
        font-size: 14px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    /* サブメニュー */
    .mobile_nav .sub-menu {
        display: none;
        padding: 8px 0 15px 32px;
    }

    .mobile_nav .sub-menu li a {
        display: block;
        font-size: 15px;
        padding: 8px 0;
        color: #333;
    }

    .mobile_nav .has-sub.open>.sub-menu {
        display: block;
    }

    /* 子を持たないリンクに「−」 */
    .mobile_menu>li:not(.has-sub)>a.menu-main::before {
        content: "−";
        width: 20px;
        display: inline-block;
        text-align: center;
        margin-right: 12px;
    }
}


/* ==============================
   SP フッター
============================== */
@media (max-width:768px) {

    .cm-footer {
        padding: 40px 20px 30px !important;
    }

    .cm-footer-inner {
        display: block !important;
        padding: 0 !important;
    }

    .cm-footer-left .cm-logo img {
        width: 220px;
        margin-bottom: 20px;
    }

    .cm-tagline {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .cm-footer-right {
        display: block !important;
    }

    .cm-footer-col {
        margin-bottom: 14px;
    }

    .cm-footer-col a {
        font-size: 18px;
        line-height: 1.8;
        display: inline-block;
    }

    .cm-footer-bottom {
        margin-top: 40px;
        font-size: 14px;
    }
}