/* =======================
   Header
======================= */
.site_header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0 10px;
}

.site_header__inner {
    max-width: 1350px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}


.site_header__rt {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

/* ロゴ */
.site_header__logo {
    display: flex;
    justify-content: start;
    align-items: center;
}

.site_header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.site_header__logo img {
    width: 100%;
    margin-right: 15px;
    max-height: 60px;
}

.site_header__sub {
    display: block;
    font-size: var(--page-min-txt);
}

.site_header__main {
    font-size: var(--page-h4);
    font-weight: bold;
}

/* CTAボタン */
.site_header__cta {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.header_btn {
    padding: 12px 40px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: var(--page-min-txt);
    font-weight: bold;
    display: inline-block;
}

.header_btn--blue {
    background: #1d74b7;
}

.header_btn--red {
    background: #ff4a4a;
}

.header_btn--red:hover {
    background-color: #d83c3c;
    color: #fff;
}

.header_btn--blue:hover {
    background-color: #005ea0;
    color: #fff;
}

/* ヘッダーナビゲーション */
.global_nav {
    display: flex;
    justify-items: end;
    max-width: 1200px;
    margin: auto;
}

.global_nav__inner {
    margin-left: auto;
    display: inline-block;
}

.header-global_nav__menu {
    list-style: none;
    display: flex;
}

.header-global_nav__menu li {
    border-left: 1px solid #333;
}

.header-global_nav__menu li:last-child {
    border-right: 1px solid #333;
}

.header-global_nav__menu li a {
    padding: 10px 30px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.sp_header {
    display: none;
}



@media (max-width:768px) {
    .sp_header {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #333;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
        background: #fff;
        width: 100%;
    }

    /* ======================
   ハンバーガー
====================== */

    .hamburger {
        width: 40px;
        height: 30px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    /* 線の位置 */
    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 13px;
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    /* active時 → × */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 13px;
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 14px;
    }

    /* ======================
    SPメニュー
    ====================== */

    .sp_menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        padding-top: 100px;
        text-align: center;
    }

    /* 表示状態 */
    .sp_menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* メニューリスト */
    .sp_menu ul {
        list-style: none;
        padding: 0;
    }

    .sp_menu li {
        margin: 20px 0;
    }

    .sp_menu a {
        text-decoration: none;
        font-size: var(--page-normal-txt);
    }


    .site_header__inner {
        flex-direction: column-reverse;
        gap: 30px;
        justify-content: end;
    }

    .site_header__rt {
        flex-direction: column-reverse;
    }

    .global_nav,
    .global_nav__inner {
        width: 100%;
    }

    .sp_menu ul {
        flex-direction: column;
        margin: 30px 0;
    }

    .header-global_nav__menu li {
        border: none;
        border-top: 1px solid #333;
        width: 100%;
        margin: 0;
    }

    .header-global_nav__menu li:last-child {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .header-global_nav__menu li a {
        width: 100%;
        display: inline-block;
        padding: 20px 10px;
    }

    .site_header__cta {
        flex-direction: column;
        width: 100%;
    }

    .site_header__cta a {
        width: 100%;
        display: inline-block;
    }

    .site_header__logo img {
        max-height: 40px;
    }


}