

.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0 0 2px; cursor: pointer; font-family: inherit; line-height: inherit;
}
.nav-group-btn .chev {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease;
}
.nav-group.open .nav-group-btn .chev { transform: translateY(3px) rotate(-135deg); }
.nav-sub {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 168px;
  display: flex; flex-direction: column; padding: 8px;
  background: #fff; border: 1px solid #e3e5ea; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 17, 32, .12);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 120;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } 
.nav-group.open .nav-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav-group:hover .nav-group-btn .chev { transform: translateY(3px) rotate(-135deg); }
}
.nav-sub-link {
  display: block; padding: 11px 14px; border-radius: 6px; white-space: nowrap;
  font-size: 14px; font-weight: 700; color: #1c2230; text-decoration: none;
  transition: background-color .2s ease;
}
.nav-sub-link small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: #7a8090; }
@media (hover: hover) and (pointer: fine) {
  .nav-sub-link:hover { background: #f2f4f7; }
}

@media (max-width: 860px) {
  
  html body #hdr.site-header:has(.site-nav.mobile-open) {
    background: #fff !important; border-bottom: 1px solid #e6e8ec !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html body #hdr:has(.site-nav.mobile-open) .logo-en,
  html body #hdr:has(.site-nav.mobile-open) .site-logo-name { color: #111520 !important; }
  html body #hdr:has(.site-nav.mobile-open) .logo-ja { color: #6b7180 !important; }
  html body #hdr:has(.site-nav.mobile-open) .site-logo-mark { filter: brightness(0) !important; opacity: .88 !important; }
  html body #hdr:has(.site-nav.mobile-open) .hamburger span { background: #111520 !important; }

  html body #hdr .site-nav {
    position: fixed; inset: 64px 0 0 0;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    padding: 12px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    background: #fff !important; border: 0 !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    overflow-y: auto; overscroll-behavior: contain;
  }
  html body #hdr .site-nav > .nav-link,
  html body #hdr .site-nav > .nav-group > .nav-group-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 18px 0 18px 14px !important; border-bottom: 1px solid #eceef2;
    font-size: 16px !important; font-weight: 700; letter-spacing: .02em; text-align: left;
    color: #1c2230 !important;
  }
  html body #hdr .site-nav > .nav-link::after { display: none !important; }
  
  html body #hdr .site-nav > .nav-link { position: relative; }
  html body #hdr .site-nav > .nav-link[aria-current="page"] { color: #1e5bd8 !important; }
  html body #hdr .site-nav > .nav-link[aria-current="page"]::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 2px; background: #1e5bd8;
  }
  
  html body #hdr .site-nav > .nav-link:not([aria-current="page"])::before {
    content: ''; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
    border-top: 1.5px solid #9aa0ad; border-right: 1.5px solid #9aa0ad; transform: rotate(45deg);
  }

  html body #hdr .site-nav > .nav-group { display: block; width: 100%; }
  html body #hdr .nav-group-btn .chev { margin-right: 4px; border-color: #9aa0ad; }
  html body #hdr .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #f6f7f9;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  html body #hdr .nav-sub::before { display: none; }
  html body #hdr .nav-group.open .nav-sub { max-height: 360px; border-bottom: 1px solid #eceef2; }
  html body #hdr .nav-sub-link { padding: 15px 14px 15px 30px; border-radius: 0; font-size: 15px; }
  html body #hdr .nav-sub-link + .nav-sub-link { border-top: 1px solid #eceef2; }

  html body #hdr .site-nav > .nav-cta {
    display: flex; align-items: center; justify-content: center; width: 100%;
    margin: 28px 0 0 !important; padding: 16px 20px !important; border-radius: 8px !important;
    background: #111520 !important; border: 0 !important; color: #fff !important;
    font-size: 15px !important; font-weight: 700; letter-spacing: .06em;
  }
  html body #hdr .site-nav > .nav-cta::before { display: none !important; }

  html body #hdr .site-nav > .nav-group { opacity: 0; transform: translateY(10px); transition: opacity .32s ease, transform .32s ease; }
  html body #hdr .site-nav.mobile-open > .nav-group { opacity: 1; transform: none; transition-delay: .2s; }
}

.nav-sub-link[aria-current="page"] { color: #1e5bd8; }
.nav-sub-link[aria-current="page"]::before { content: '● '; font-size: 8px; vertical-align: 2px; }
@media (max-width: 860px) {
  html body #hdr .nav-group:has([aria-current="page"]) > .nav-group-btn { color: #1e5bd8 !important; }
}

@property --nav-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
#hdr .nav-cta { position: relative; isolation: isolate; --glow: #3f7dff; --glow-line: #7ea8ff; }
body.lp-dark #hdr .nav-cta { --glow: #cf9f4e; --glow-line: #f1d08f; }
#hdr .nav-cta::after {
  content: ''; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  padding: 1.5px; border-radius: inherit;
  background: conic-gradient(from 270deg, var(--glow-line) 0 var(--nav-sweep), transparent var(--nav-sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 4px var(--glow));
  animation: nav-enclose 1.8s cubic-bezier(.45, 0, .25, 1) 1.2s both;
  transition: filter .3s ease;
}
@keyframes nav-enclose { to { --nav-sweep: 360deg; } }
@keyframes nav-enclose-m { from { --nav-sweep: 0deg; } to { --nav-sweep: 360deg; } }
html.no-intro #hdr .nav-cta::after { animation-delay: .4s; }
@media (hover: hover) and (pointer: fine) {
  #hdr .nav-cta:hover::after { filter: drop-shadow(0 0 9px var(--glow)); }
}
@media (max-width: 860px) {
  html body #hdr .site-nav > .nav-cta::after { animation: none; --nav-sweep: 0deg; }
  html body #hdr .site-nav.mobile-open > .nav-cta::after { animation: nav-enclose-m 1.4s cubic-bezier(.45, 0, .25, 1) .45s both; }
}
@media (prefers-reduced-motion: reduce) {
  #hdr .nav-cta::after, html body #hdr .site-nav.mobile-open > .nav-cta::after { animation: none; --nav-sweep: 360deg; }
}

@media (max-width: 860px) {
  #hdr .site-nav { opacity: 0; pointer-events: none; z-index: 99; transition: opacity .22s ease; }
  #hdr .site-nav.mobile-open { opacity: 1; pointer-events: auto; }
  #hdr .site-nav .nav-link, #hdr .site-nav .nav-cta { opacity: 0; transform: translateY(10px); transition: opacity .32s ease, transform .32s ease; }
  #hdr .site-nav.mobile-open .nav-link, #hdr .site-nav.mobile-open .nav-cta { opacity: 1; transform: none; }
  #hdr .hamburger { display: flex; }
}

@media (min-width: 861px) {
  .nav-group:has([aria-current="page"]) > .nav-group-btn::after { transform: scaleX(1); }
}

html { overflow-x: hidden; }
body { overflow-x: clip; }

@media (max-width: 860px) {
  .jp-ph { word-break: keep-all !important; overflow-wrap: anywhere !important; }
  p, li, dd { text-wrap: pretty; }
}

@media (max-width: 400px) {
  .ev-closing-q { font-size: min(26px, 6.2vw) !important; }
}
@media (max-width: 374px) {
  #recruit .recruit-head h2 { font-size: 18px !important; }
}
@media (max-width: 400px) {
  .soft-h1 { font-size: min(26px, 6.2vw) !important; }
}

@media (max-width: 860px) { .br-pc { display: none; } }

.br-sp { display: none; }
@media (max-width: 860px) { .br-sp { display: inline; } }

@media (max-width: 640px) {
  .site-footer .footer-brand { flex: none; }
  .site-footer .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer .footer-col:last-child { grid-column: 1 / -1; }
}
