header {
    background-color: white;
    color: black;
    height: 80px;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav li {
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: black;
    /* font-weight: bold; */
}

.header-container {
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    height: 100%;
}

.header-logo-container {
    /* font-size: 1rem; */
    text-align: right;
    font-weight: bold;
    transform: translateY(10px);

    & p {
        transform: translateY(-10px);
    }
}

.header-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #000000;
}

.header-logo-text-container {
    display: flex;
    flex-direction: column;
}

.header-logo-company {
    font-size: 2rem;
}

.header-logo-text-small {
    font-size: 1rem;
}

.header-logo-message {
    color: #217AC5;
    margin-top: -15px;
}

.header-logo-message::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: -5px;
    position: relative;
    top: 10px;
    background-image: url(../image/pen.png);
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(28%) sepia(35%) saturate(4274%) hue-rotate(341deg) brightness(88%) contrast(95%);
}

.header-logo-recruit {
    color: #217AC5;
    margin-left: 1rem;
}



.header-nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;

    & p {
        width: 7em;
        text-align: center;
    }
}

.header-nav a {
    color: #333333;
    padding: 1rem 0;
}

.header-nav a:hover {
    color: #217AC5;
    transition: color 0.3s ease;
}

.drawer_toggle {
    display: none;
}

@media screen and (max-width: 1024px) {
    header {
        height: 80px;
        padding: 0 1rem;
    }

    nav a {
        font-size: 2rem;
    }

    .header-container {
        flex-direction: column;
        justify-content: center;
    }

    .header-logo-company {
        font-size: 1.75rem;
    }

    .header-logo-text-small {
        font-size: 0.9rem;
    }

    .header-nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-nav li {
        margin: 0 10px;
    }

    .header-nav a {
        padding: 0.5rem 0;
    }

    /* ヘッダーの青いボタンを非表示 */
    .header-nav-container .button-blue {
        display: none;
    }
}

@media screen and (max-width: 480px) {

    .header-nav ul {
        gap: 0.5rem;
    }

    .header-nav li {
        margin: 0 5px;
    }

    .header-nav a {
        font-size: 1.25rem;
        padding: 0.3rem 0;
    }
}

/* ハンバーガーメニュー対応 (768px以下) */
@media screen and (max-width: 1024px) {
    header nav {
        box-sizing: border-box;
        position: fixed;
        top: 80px;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: white;
        opacity: 0.9;
        z-index: 1000;
        display: block;
        right: -100%;
        transition: right .5s;
    }

    header nav.sp_open {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        position: absolute;
        padding: 0;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    header nav li a {
        display: block;
        padding: 15px;
        border-radius: 5px;
        text-align: center;
        text-decoration: none;
        margin: 0 auto;
    }

    .drawer_toggle {
        z-index: 200;
        box-sizing: border-box;
        position: absolute;
        right: 10px;
        display: inline-block;
        width: 60px;
        height: 60px;
        margin: auto 0;
    }

    .drawer_toggle span {
        position: absolute;
        top: 19px;
        left: 17px;
        display: inline-block;
        width: 30px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        vertical-align: top;
    }

    .drawer_toggle span:nth-child(2) {
        margin-top: 10px;
    }

    .drawer_toggle span:last-child {
        margin-top: 20px;
    }

    .drawer_toggle.open span {
        top: 29px;
        left: 14px;
        width: 35px;
        margin: 0;
    }

    .drawer_toggle.open span:first-child {
        transform: rotate(45deg);
    }

    .drawer_toggle.open span:nth-child(2) {
        display: none;
    }

    .drawer_toggle.open span:last-child {
        transform: rotate(-45deg);
    }
}