/* ==== nav ==== */
.header-nav_item:nth-of-type(5) {
    margin-right: 0;
}

.header-nav_item:nth-of-type(6) {
    margin-right: 25px;
}

@media screen and (max-width: 1024px) {
    .header-nav_item:nth-of-type(5) {
        margin-bottom: 25px;
    }

    .header-nav_item:nth-of-type(6) {
        margin-right: 0;
    }

    /********** ヘッダー **********/

    .header-inner {
        padding-left: 2.54%;
    }

    .header-logo {
        width: 180px;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 100%;
        width: 100%;
        height: 100vh;
        background-color: #FFF;
        transition: all 1s;
    }

    .is-active .header-nav {
        display: block;
        right: 0;
    }

    .header-nav-list {
        flex-direction: column;
        padding-top: 124px;
    }

    .header-nav_item {
        padding: 0;
        line-height: 2.3rem;
        border-bottom: 1.5px solid #171717;
    }

    .header-nav_item:first-of-type,
    .header-nav_item:nth-of-type(2),
    .header-nav_item:nth-of-type(3),
    .header-nav_item:nth-of-type(4),
    .header-nav_item:nth-of-type(5) {
        margin-bottom: 25px;
    }

    .header-nav_item_number {
        display: block;
        border: none;
        padding-top: 82px;
        margin-bottom: 12px;
    }

    .header-nav_item_number_large {
        font-size: 2.4rem;
    }

    .header-nav_item-recruit {
        width: min(100%, 308px);
        height: 64px;
        order: 7;
        border: none;
    }

    .header-nav_item-contact {
        width: min(100%, 308px);
        height: 64px;
        border: none;
        margin-bottom: 15px;
    }

    .header-nav_item>a {
        width: 100%;
        height: 100%;
        font-size: 1.6rem;
        font-weight: bold;
    }

    .hamburger-menu {
        width: 64px;
        height: 64px;
        background-color: #050046;
    }

    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu span {
        width: 28px;
        height: 3px;
        background-color: #FFF;
        left: 50%;
        border-radius: 0;
        transform: translateX(-50%);
    }

    .hamburger-menu::before {
        top: 21px;
        left: 50%;
    }

    .hamburger-menu::after {
        top: auto;
        bottom: 18px;
    }

    .is-active .hamburger-menu::before {
        width: 34px;
        transform: translate(-50%, -50%) rotate(40deg);
        transition: .1s ease .2s;
    }

    .is-active .hamburger-menu span {
        width: 34px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-40deg);
        opacity: 1;
        transition: .1s ease .2s;
    }

    .is-active .hamburger-menu:after {
        opacity: 0;
    }

    @media screen and (max-width: 1000px) {
        .is-active .hamburger-menu::after {
            top: unset !important;
        }
    }



    /* 1. ボタンの基本スタイル（重複を整理） */
    .hamburger-menu {
        position: relative;
        display: block !important;
        width: 64px;
        height: 64px;
        background-color: #050046;
        cursor: pointer;
        z-index: 100;
    }

    /* 3本の共通設定 */
    .hamburger-menu span,
    .hamburger-menu::before,
    .hamburger-menu::after {
        content: "";
        position: absolute;
        width: 28px;
        height: 3px;
        background-color: #FFF;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    /* 通常時の位置 */
    .hamburger-menu::before {
        top: 21px;
    }

    .hamburger-menu span {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .hamburger-menu::after {
        bottom: 21px;
    }

    /* ------------------------------
           is-active 時（×の形）
        ------------------------------- */

    .is-active .hamburger-menu span {
        opacity: 0;
    }

    .is-active .hamburger-menu::before {
        width: 34px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .is-active .hamburger-menu::after {
        width: 34px;
        bottom: 50%;
        transform: translate(-50%, 50%) rotate(-45deg);
        opacity: 1;
    }

}



/* ==== DX ==== */
#dx {
    max-width: 1308px;
    margin: auto;
    text-indent: 0 !important;
}

/* ==== title ==== */
.lowerlayer_heading_ja-dx {
    font-size: 4.2rem !important;
    font-weight: bold !important;
    letter-spacing: 0.09em !important;
    color: #0004B2 !important;
}

@media screen and (max-width: 820px) {
    .lowerlayer_heading_ja-dx {
        font-size: 2.4rem !important;
        margin-bottom: 10px !important;
    }

    .en-dx {
        font-size: min(9.7vw, 3.8rem) !important;
    }
}

/* ==== 項目title ==== */
h3.title_dx {
    display: flex !important;
    justify-content: flex-start;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
    max-width: 1200px;
    width: 90%;
    margin: auto;
    color: #0004B2;
    font-weight: bold;
}

h3.title_dx::before {
    content: "";
    display: block;
    width: 4px;
    height: 2em;
    background-color: #0004B2;
    border-radius: 2px;
    flex-shrink: 0;
}

/* 親のul：通常のリスト形式に戻す */
.list_dx {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: block !important;
    writing-mode: horizontal-tb !important;
}

/* 子のli：通常の行として表示 */
.item_dx {
    display: list-item !important;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left;
}

/* 2段目（子リスト）だけのデザインを変える */
.sub-list {
    margin-top: 5px;
    padding-left: 30px;
    list-style-type: circle;
}

.sub-list li {
    margin-bottom: 8px;
    text-align: left;
}

.text-left {
    text-align: left;
}