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

body{
    overflow-x:hidden;
}

#header{
    width:100%;
    background:#fff;
    position:sticky;
    top:0;
    z-index:99999;
    box-shadow:0 1px 0 rgba(6,27,61,.06);
}

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

.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-cta{
    display:flex;
    align-items:center;
    gap:16px;
    margin-left:auto;
}

.header-cta-link{
    min-height:56px;
    padding:0 26px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    font-family:"Noto Sans JP", sans-serif;
    font-size:15px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
    transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.header-cta-link:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 22px rgba(6,27,61,.12);
}

.header-cta-link--primary{
    min-width:260px;
    color:#fff;
    background:linear-gradient(100deg, #123f91 0%, #0874ed 100%);
}

.header-cta-link--secondary{
    min-width:206px;
    color:#10264b;
    background:#fff;
    border:1px solid #cbd4e1;
}

.header-cta-arrow{
    font-size:20px;
    font-weight:500;
    line-height:1;
}

.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:62px;
    left:26%;
    transform:translateX(-50%);
    width:143px;
    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;
}

@media screen and (min-width:1037px) and (max-width:1380px){
    .header{
        padding:0 24px;
        gap:24px;
    }

    .nav{
        gap:20px;
    }

    .nav a{
        font-size:13px;
    }

    .header-cta{
        gap:10px;
    }

    .header-cta-link{
        min-height:50px;
        padding:0 18px;
        gap:18px;
        font-size:13px;
    }

    .header-cta-link--primary{
        min-width:218px;
    }

    .header-cta-link--secondary{
        min-width:164px;
    }
}

/* ===========================
   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-cta{
        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;
}
}

/* =========================================================
   HEADER — zoom stability / left anchored desktop layout
   表示倍率を下げても、ヘッダー内容を画面中央へ移動させず
   通常時と同じ左基準位置に維持する
========================================================= */
#header{
    width:100%;
    max-width:none;
    margin:0;
}

@media screen and (min-width:1037px){
    .header{
        width:min(100%,1620px);
        max-width:1620px;
        margin-right:0;
        margin-left:0;
    }
}

/* =========================================================
   GLOBAL PAGE POSITION — zoom stability / centered
========================================================= */
html,
body{
  width:100%;
  min-width:320px;
}

body{
  align-items:stretch;
}

.affiliate-page,
.article-page,
.formx-page,
.other-page,
.dr-growth-page,
.business-ai-page,
.strategy-page,
.page-image-wrap,
.page-image-cta-wrap{
  width:min(100%,1620px);
  max-width:1620px;
  margin-right:auto!important;
  margin-left:auto!important;
}

.affiliate-inner,
.article-inner,
.formx-inner,
.formx-container,
.other-inner,
.dr-wide,
.business-ai-container,
.strategy-inner,
.privacy-inner{
  margin-right:auto!important;
  margin-left:auto!important;
}

body > main{
  width:min(100%,1620px);
  max-width:1620px;
  margin-right:auto!important;
  margin-left:auto!important;
}

.diagnosis{
  margin-right:auto!important;
  margin-left:auto!important;
}

#header{
  width:100%;
  max-width:none;
  margin:0;
}

@media(min-width:1037px){
  #header .header{
    width:min(100%,1620px);
    max-width:1620px;
    margin-right:auto!important;
    margin-left:auto!important;
  }
}

body > #footer{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

body > #footer .footer{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

body > #footer .footer-info{
  width:min(calc(100% - 80px),1280px);
  max-width:1280px;
  margin-right:auto!important;
  margin-left:auto!important;
}

@media(max-width:1036px){
  .affiliate-page,
  .article-page,
  .formx-page,
  .other-page,
  .dr-growth-page,
  .business-ai-page,
  .strategy-page,
  .page-image-wrap,
  .page-image-cta-wrap,
  body > main{
    width:100%;
    max-width:none;
    margin-right:0!important;
    margin-left:0!important;
  }

  body > #footer .footer-info{
    width:100%;
    max-width:none;
    margin-right:0!important;
    margin-left:0!important;
  }
}
