/* header-202608.css — head-new.css / pt.css より後に読み込むこと */

#headerNew.header-202608 {
  --h2026-gold: #d29c09;
  --h2026-dark: #1a1a1a;
  --h2026-text: #444444;
  --h2026-text-light: #777777;
  --h2026-white: #ffffff;
  --h2026-transition: 0.3s ease;
  --h2026-blue: #003fab;

  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 60px !important;
  z-index: 1000 !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
}

#headerNew.header-202608 .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

#headerNew.header-202608 .header-logo {
  flex-shrink: 0;
  margin-right: 28px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

#headerNew.header-202608 .header-logo svg {
  height: 24px;
  width: auto;
  display: block;
}

#headerNew.header-202608 .header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

#headerNew.header-202608 .header-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#headerNew.header-202608 .header-nav > ul > li {
  display: flex;
  align-items: center;
}

#headerNew.header-202608 .header-nav > ul > li > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--h2026-dark);
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--h2026-transition), color var(--h2026-transition);
}

#headerNew.header-202608 .header-nav > ul > li > a:hover {
  background: rgba(0, 63, 171, 0.07);
  color: var(--h2026-blue);
}

#headerNew.header-202608 .nav-cta-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

#headerNew.header-202608 .has-mega {
  display: flex;
  align-items: center;
}

#headerNew.header-202608 .mega-trigger {
  font-size: 13px;
  font-weight: 500;
  color: var(--h2026-dark);
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background var(--h2026-transition), color var(--h2026-transition);
  user-select: none;
}

#headerNew.header-202608 .has-mega:hover .mega-trigger,
#headerNew.header-202608 .has-mega.mega-open .mega-trigger {
  background: rgba(0, 63, 171, 0.07);
  color: var(--h2026-blue);
}

.mega-panel.header-202608-panel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--h2026-blue, #003fab);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  z-index: 999;
}

.mega-panel.header-202608-panel.open {
  display: block;
}

.mega-panel.header-202608-panel .mega-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  display: grid;
  gap: 2px 40px;
}

#mega-aidev .mega-panel-inner {
  grid-template-columns: repeat(3, auto);
  justify-content: center;
}
#mega-industry .mega-panel-inner {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
}
#mega-hrd .mega-panel-inner {
  grid-template-columns: repeat(3, 220px);
  justify-content: center;
}
#mega-resources .mega-panel-inner {
  grid-template-columns: repeat(3, auto);
  justify-content: center;
}

.mega-panel.header-202608-panel .mega-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color 130ms ease, background 130ms ease, border-color 130ms ease;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

.mega-panel.header-202608-panel .mega-link:hover {
  color: #003fab;
  border-left-color: #003fab;
  background: rgba(0, 63, 171, 0.07);
}

.mega-panel.header-202608-panel .mega-link__arrow {
  margin-left: 6px;
  font-size: 9px;
  opacity: 0;
  transition: opacity 130ms ease;
}

.mega-panel.header-202608-panel .mega-link:hover .mega-link__arrow {
  opacity: 0.7;
}

.mega-panel.header-202608-panel .mega-link__ext {
  margin-left: 5px;
  opacity: 0.45;
  vertical-align: middle;
  flex-shrink: 0;
}

.mega-panel.header-202608-panel .mega-link:hover .mega-link__ext {
  opacity: 0.8;
}

#headerNew.header-202608 .btn-header {
  font-size: 12px;
  font-weight: 600;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid #003fab;
  color: #003fab;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}

#headerNew.header-202608 .btn-header:hover {
  background: #003fab;
  color: #fff;
}

#headerNew.header-202608 .btn-header--primary {
  background: linear-gradient(135deg, #003fab 0%, #2b7fff 100%);
  border-color: transparent;
  border-width: 1px;
  border-style: solid;
  color: #ffffff !important;
}

#headerNew.header-202608 .btn-header.btn-header--primary:hover {
  background: linear-gradient(135deg, #003fab 0%, #2b7fff 100%);
  opacity: 0.7;
  color: #ffffff !important;
}

#headerNew.header-202608 .btn-header--ghost {
  border-color: rgba(0, 0, 0, 0.15);
  border-width: 1px;
  border-style: solid;
  color: #777777;
  font-weight: 400;
}

#headerNew.header-202608 .btn-header--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #444444;
}

#headerNew.header-202608 .header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

#headerNew.header-202608 .header-hamburger span {
  display: block;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#headerNew.header-202608 .header-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#headerNew.header-202608 .header-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#headerNew.header-202608 .header-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobileNav.header-202608-mobile {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 998;
  padding: 24px 24px 40px;
  overflow-y: auto;
  flex-direction: column;
  box-sizing: border-box;
}

#mobileNav.header-202608-mobile.open {
  display: flex;
}

#mobileNav.header-202608-mobile .mobile-nav__links {
  display: flex;
  flex-direction: column;
}

#mobileNav.header-202608-mobile .mobile-nav__links a {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

#mobileNav.header-202608-mobile .mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

#mobileNav.header-202608-mobile .mobile-nav__cta .btn-header {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #003fab;
  color: #003fab;
  background: transparent;
}

#mobileNav.header-202608-mobile .mobile-nav__cta .btn-header--primary {
  background: linear-gradient(135deg, #003fab 0%, #2b7fff 100%);
  border-color: transparent;
  color: #fff !important;
}

#mobileNav.header-202608-mobile .mobile-nav__cta .btn-header--ghost {
  border-color: rgba(0, 0, 0, 0.15);
  color: #777;
}

body.header-202608-active {
  padding-top: 60px;
}

/* 申込・資料請求など: hide-global-header（ヘッダー非表示・上余白は維持） */
body.hide-global-header #headerNew.header-202608,
body.hide-global-header #mobileNav.header-202608-mobile {
  display: none !important;
}

@media (max-width: 750px) {
  body.header-202608-active.hide-global-header {
    padding-top: 0;
  }
}

body.header-202608-active.home,
body.header-202608-active.front-page {
  padding-top: 0;
}

body.header-202608-active .primary-nav,
body.header-202608-active header.header.js-header {
  display: none !important;
}

/* 旧2段ヘッダー余白の打ち消し（hide-global-header 時は template.css 優先） */
body.header-202608-active:not(.hide-global-header) main#main-content {
  padding-top: 0 !important;
}
body.header-202608-active:not(.hide-global-header) #content,
body.header-202608-active.pt:not(.hide-global-header) #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* pt.css `.pt #content section { margin-top: 3.75rem }` 打ち消し */
body.header-202608-active.pt #content section,
body.pt.header-202608-active #content .page-strategy-202608 > section,
.page-strategy-202608 > section {
  margin-top: 0 !important;
}
@media (max-width: 750px) {
  body.header-202608-active:not(.hide-global-header) #content,
  body.header-202608-active.pt:not(.hide-global-header) #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}
/* 資料請求 (page-id-36680) の template.css 余白 */
body.header-202608-active.page-id-36680 #content {
  padding-top: 3rem !important;
}
@media (max-width: 751px) {
  body.header-202608-active.page-id-36680 #content {
    padding-top: 7rem !important;
  }
}

@media (max-width: 1400px) and (min-width: 1201px) {
  #headerNew.header-202608 .header-nav > ul > li > a,
  #headerNew.header-202608 .mega-trigger {
    padding: 5px 8px;
    font-size: 12px;
  }
  #headerNew.header-202608 .nav-cta-group {
    padding-left: 12px;
    gap: 6px;
  }
  #headerNew.header-202608 .btn-header {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 1200px) {
  #headerNew.header-202608 .header-nav {
    display: none;
  }

  #headerNew.header-202608 .header-inner {
    padding: 0 32px;
  }
  #headerNew.header-202608 .header-hamburger {
    display: flex;
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 1100;
    margin-left: 0;
  }
}
