/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main {
    height: 80px;
    padding: 20px 40px;
    letter-spacing: var(--letter-spacing-md);
    background-color: #fff;
    position: relative;
}

.header_inner {
    display: flex;
    max-width: 1440px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header.scrolled .header-nav-item a,
.header.scrolled .header-nav-item button {
    color: #142238;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 10;
}

.header-logo {
    display: flex;
    width: 280px;
    height: 65px;
    padding: 0px 7.333px 0px 6.667px;
    justify-content: center;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
    height: 104px;
    gap: 32px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header-nav-item {
    color: #142238;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.256px;
}

.header-nav-item a,
.header-nav-item button {
    color: #142238;
    text-decoration: none;
    display: block;
}

.accordion-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 16px;
}

.submenu li {
    margin: 8px 0;
}

.submenu a {
    font-weight: 400;
    font-size: 14px;
}

.header-contact-btn {
    display: flex;
    width: 182px;
    height: 50px;
    padding: 13px 19px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: #4884ED;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.256px;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.header-contact-btn:after {
    display: inline-flex;
    width: 18px;
    height: 13px;
    justify-content: center;
    align-items: center;
    font: var(--fa-font-solid);
    /* content: "\f061"; */
    content: "\f1d8";
    margin-left: 8px;
    position: relative;
    right: auto;
    top: auto;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #142238;
    transition: all 0.3s ease;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1079px) {
    .header-main {
        padding: 18px 20px;
        height: 60px;
    }

    .header.scrolled .header_inner {
        border-bottom: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        background-color: #FFF;
        padding: 100px 20px 20px;
        transition: right 0.3s ease;
        z-index: 5;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .header-right[aria-hidden="false"] {
        right: 0;
        display: flex !important;
    }

    .header-nav {
        width: 100%;
    }

    .header-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto;
        gap: 0;
    }

    .header-nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #D9D9D9;
    }

    .submenu[hidden] {
        display: none;
    }

    .header-contact-btn {
        margin-top: 20px;
        width: 100%;
    }

    /* スクロール防止 - メニュー展開時に背景を固定 */
    body.menu-open {
        overflow: hidden;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
    }

    /* メニュー展開時にオーバーレイを表示 */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 4;
    }

    .overlay.active {
        display: block;
    }
}