/*-------------------------------------------*/
/*header*/
/*-------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 999;
    padding-top: 40px;
    padding-bottom: 40px;
}

.header .flex {
    justify-content: space-between;
    align-items: center;
}

.navi ul {
    display: flex;
    gap: 20px;
}

.navi ul li a {
    font-size: 1.6rem;
    display: block;
}

.header .max-width {
    max-width: 1000px;
}


/*-------------------------------------------*/
/*ハンバーガーメニュー*/
/*-------------------------------------------*/
.nav-toggle {
    display: none;
    width: 25px;
    height: 21px;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 9999;
    position: fixed;
    right: 20px;
    top: 20px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ------------------------------
   SP（1100px以下）
------------------------------ */
@media (max-width: 1100px) {
    .navi {
        position: fixed;
        top: 58px;
        right: 0;
        left: 0;
        background: #fff;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        transition:
            opacity .25s ease,
            transform .25s ease;
    }

    .navi.is-open {
        opacity: 0.98;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navi ul {
        flex-direction: column;
        padding: 0px;
        gap: 0px;
        width: 100%;
    }

    .navi ul li a {
        font-size: 1.3rem;
        display: block;
        text-align: center;
        font-weight: bold;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #333;
        display: block;
    }

    /* 1本目、2本目、3本目の位置を固定 */
    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 10px;
    }

    .nav-toggle span:nth-child(3) {
        top: 20px;
    }

    /* ハンバーガー → バツ */
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
        visibility: hidden;
        display: none;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    .header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .navi li {
        border-bottom: 1px dotted #ddd;
        width: 100%;
        margin: 0 auto;
    }

    .navi li a {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navi li:nth-of-type(3) {
        margin-bottom: 0;
        border-bottom: none;
    }

    .navi li:first-child {
        border-top: 1px dotted #ddd;
    }

    .navi li:last-child {
        margin-bottom: 0;
        background-color: var(--color-accent);
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: none;
        width: 100%;
    }

    .navi li:last-child a {
        color: #fff;
        padding-top: 15px;
        font-weight: bold;
        display: block;
        width: 100%;
    }

    .header_logo h1 img {
        width: 42%;
    }
}