/* ===========================
   Header
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    overflow-x:hidden;
}

#header{
    width:100%;
    background:#fff;
    z-index:9999;
}

.header{
    width:100%;
    height:80px;
    padding:0 40px;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:70px;
    position:relative;
    z-index:10000;
    max-width:1620px;
}

.header-logo{
    font-family:"Noto Serif JP", serif !important;
    font-size:28px;
    letter-spacing:2px;
}

.header-logo span{
    font-size:14px;
    letter-spacing:1px;
}

.nav{
    display:flex;
    align-items:center;
    gap:34px;
}

.nav a{
    font-family:"Noto Serif JP", serif !important;
    position:relative;
    color:#17233b;
    text-decoration:none;
    font-size:14px;
    white-space:nowrap;
}

.nav a:hover{
    opacity:.7;
}

.nav a.active{
    pointer-events:none;
}

.nav a.active::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-12px;
    transform:translateX(-50%);
    height:3px;
    border-radius:999px;
    background:#6FD2F2;
}

.nav-top.active::after{width:28px;}
.nav-service.active::after{width:68px;}
.nav-diagnosis.active::after{width:52px;}
.nav-target.active::after{width:50px;}
.achievements.active::after{width:24px;}
.other-ai-services.active::after{width:92px;}
.company-profile.active::after{width:52px;}
.privacy.active::after{width:120px;}

.nav-dropdown-wrap{
    display:flex;
    align-items:center;
    gap:6px;
}

.pc-menu-toggle{
    border:none;
    background:none;
    color:#061b3d;
    font-size:12px;
    cursor:pointer;
    padding:0;
    line-height:1;
}

.header-btn a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 24px;
    border-radius:999px;
    background:#17233b;
    color:#fff;
    text-decoration:none;
    white-space:nowrap;
}

.hamburger,
.mobile-menu,
.overlay{
    display:none;
}

.pc-menu-toggle{
    border:none;
    background:none;
    color:#061b3d;
    font-size:13px;
    cursor:pointer;
    padding:4px;
}

.pc-dropdown{
    position:absolute;
    top:64px;
    left:37%;
    transform:translateX(-50%);
    width:120px;
    padding:14px 10px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    display:none;
    flex-direction:column;
    gap:8px;
    z-index:100018;
}

.pc-dropdown.active{
    display:flex;
}

.pc-dropdown a{
    height:34px;
    padding:0 10px;
    border-radius:6px;
    background:#fff;
    color:#061b3d;
    text-decoration:none;
    font-size:12px;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.pc-dropdown a:hover,
.pc-dropdown a.active{
    background:#eaf6fd;
    color:#0077b6;
}

/* ===========================
   SP / Tablet
=========================== */
@media screen and (max-width:1036px){
    #header{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        width:100% !important;
        height:72px;
        z-index:99999 !important;
        background:#fff;
    }

    .header{
        height:72px;
        padding:0 16px;
        background:#ffffff;
        display:flex;
        align-items:center;
        justify-content:space-between;
        position:relative;
        z-index:100000;
        box-shadow:0 2px 10px rgba(0,0,0,.04);
    }

    .header-logo{
        font-size:28px;
        letter-spacing:2px;
    }

    .header-logo span{
        font-size:13px;
        letter-spacing:0;
        margin-left:6px;
    }

    .nav,
    .header-btn{
        display:none;
    }

    .hamburger{
        width:52px;
        height:52px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        position:absolute;
        top:10px;
        right:16px;
        gap:7px;
        border-radius:50%;
        background:#ffffff;
        border:1px solid #dce5ec;
        box-shadow:0 3px 14px rgba(0,0,0,.06);
        cursor:pointer;
        z-index:100001;
        appearance:none;
    }

    .hamburger span{
        width:24px;
        height:2px;
        background:#17233b;
        transition:all .25s ease;
        display:block;
    }

    .hamburger.active span:nth-child(1){
        width:22px;
        transform:rotate(45deg) translate(10px,0);
        transform-origin:right center;
    }

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

    .hamburger.active span:nth-child(3){
        width:22px;
        transform:rotate(-45deg) translate(10px,0);
        transform-origin:right center;
    }

    .overlay{
        display:none;
    }

    .mobile-menu{
        position:fixed;
        top:72px;
        right:16px;
        left:auto;
        width:min(320px, calc(100vw - 32px));
        max-height:calc(100vh - 88px);
        padding:58px 22px 24px;
        background:#ffffff;
        border-radius:18px;
        display:none;
        flex-direction:column;
        gap:12px;
        z-index:100000;
        overflow-y:auto;
        box-shadow:0 12px 30px rgba(0,0,0,.08);
    }

    .mobile-menu.active{
        display:flex;
    }

    .mobile-menu::before{
        content:"";
        position:absolute;
        top:30px;
        right:25px;
        width:55px;
        height:4px;
        background:#c7e3f2;
        border-radius:999px;
    }

    .mobile-menu a{
        min-height:52px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:0 12px;
        background:#ffffff;
        border-radius:8px;
        color:#001b3f;
        text-decoration:none;
        font-size:15px;
        font-weight:bold;
    }

    .mobile-menu a.active{
        background:#eaf6fd;
        color:#0077b6;
        pointer-events:none;
        background:#ffffff;
        border-radius:8px;
        color:#001b3f;
        text-decoration:none;
        font-size:15px;
        font-weight:bold;
    }

    .mobile-menu a.active{
        background:#eaf6fd;
        color:#0077b6;
    }

    .mobile-sub-menu{
        display:none;
        flex-direction:column;
        gap:8px;
        padding-left:14px;
        margin-top:8px;
    }

    .mobile-sub-menu.active{
        display:flex;
    }
    .mobile-menu-item.has-accordion{
    min-height:52px;
    display:grid;
    grid-template-columns:1fr 20px 16px;
    align-items:center;
    padding:0 12px;
    border-radius:8px;
    background:#fff;
}

.mobile-menu-item.has-accordion > a{
    min-height:52px;
    display:flex;
    align-items:center;
    padding:0;
    color:#001b3f;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
}

.mobile-accordion-btn{
    width:20px;
    height:20px;
    padding:0;
    margin:0;
    border:none;
    background:none;
    color:#001b3f;
    font-size:12px;
    line-height:1;
    cursor:pointer;
}

.mobile-menu-item.has-accordion > span{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    color:#001b3f;
    font-size:15px;
    font-weight:bold;
}
}