.g-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #10243a;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.g-skip-link:focus { transform: translateY(0); }
.g-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.g-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 0;
  background: rgba(246,249,251,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #d8e5ee;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.g-nav { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.g-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #10243a;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.g-logo .g-logo-img {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 3px;
  border: 1px solid rgba(31,131,193,.18);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 24px -18px rgba(16,36,58,.45);
}
.g-logo-text { display: grid; gap: 1px; line-height: 1.08; }
.g-logo-kicker { margin: 0; color: #405669; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.g-logo-name { font-size: 1.28rem; font-weight: 900; letter-spacing: .08em; }
.g-nav-links { display: flex; align-items: center; gap: 22px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.g-nav-links li { position: relative; }
.g-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: #10243a;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.g-nav-links a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1f83c1;
  content: "";
  transition: width .3s ease;
}
.g-nav-links a:hover::after,
.g-nav-links a[aria-current="page"]::after { width: 100%; }
.g-nav-links a[aria-current="page"] { color: #176da6; }
.g-service-menu > a span { color: #176da6; font-size: .68rem; line-height: 1; }
.g-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 286px;
  margin: 0;
  padding: 10px;
  border: 1px solid #d8e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 60px -34px rgba(16,36,58,.42);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%,8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.g-dropdown::before { position: absolute; top: -18px; right: 0; left: 0; height: 18px; content: ""; }
.g-service-menu:hover .g-dropdown,
.g-service-menu:focus-within .g-dropdown,
.g-service-menu.is-open .g-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,0); }
.g-dropdown a { display: block; padding: 11px 12px; border-radius: 12px; color: #10243a; line-height: 1.35; white-space: normal; }
.g-dropdown a:hover,
.g-dropdown a[aria-current="page"] { background: #f6f9fb; }
.g-dropdown a::after { display: none; }
.g-dropdown strong { display: block; color: #10243a; font-size: .95rem; }
.g-dropdown small { display: block; margin-top: 3px; color: #405669; font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.g-nav-cta { display: flex; align-items: center; gap: 14px; }
.g-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg,#145d8e,#176da6);
  box-shadow: 0 10px 24px -8px rgba(31,131,193,.42);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.g-btn-contact:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(31,131,193,.5); }
.g-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.g-burger span { width: 24px; height: 2px; background: #10243a; transition: transform .3s ease, opacity .3s ease; }
.g-mobile-menu { display: none; }
.g-form-note { margin: 4px 0 0; color: #405669; font-size: .82rem; text-align: center; }
.g-header :focus-visible,
.g-mobile-menu :focus-visible { outline: 3px solid #176da6; outline-offset: 4px; }

@media (max-width: 1200px) {
  .g-nav-links { display: none; }
  .g-burger { display: flex; }
  .g-nav-cta .g-btn-contact { display: none; }
  body.g-nav-open { overflow: hidden; }
  .g-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 96px 40px 32px;
    overflow-y: auto;
    background: rgba(246,249,251,.99);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  body.g-nav-open .g-mobile-menu { display: flex; }
  body.g-nav-open .g-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.g-nav-open .g-burger span:nth-child(2) { opacity: 0; }
  body.g-nav-open .g-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .g-mobile-menu a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #d8e5ee;
    color: #10243a;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    text-decoration: none;
  }
  .g-mobile-menu a[aria-current="page"] { color: #176da6; }
  .g-mm-group { display: grid; gap: 0; margin-bottom: 4px; }
  .g-mm-heading { margin: 0 0 3px; color: #176da6; font-size: .84rem; font-weight: 900; letter-spacing: .12em; }
  .g-mm-group a { padding: 9px 0 9px 14px; font-size: 1.02rem; }
  .g-mobile-menu .g-btn-contact { display: inline-flex; margin-top: 24px; border-bottom: 0; color: #fff; }
}

@media (max-width: 560px) {
  .g-header { padding: 14px 0; }
  .g-logo { gap: 9px; font-size: .98rem; }
  .g-logo .g-logo-img { width: 36px; height: 36px; padding: 2px; border-radius: 10px; }
  .g-logo-kicker { font-size: .58rem; }
  .g-logo-name { font-size: 1.08rem; }
  .g-mobile-menu { padding-right: 24px; padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-skip-link,
  .g-header,
  .g-nav-links a::after,
  .g-dropdown,
  .g-btn-contact,
  .g-burger span { transition: none; }
}
