@charset "UTF-8";

:root {
    --mega-scale: 1;
}

@media (max-width: 950px) {
  .site-header-nav,
  .mega-menu,
  .header-cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 1320px) {
  .mega-column-title {
    font-size: 0.9rem !important;
  }
  .primary .mega-column-title {
    font-size: 1rem !important;
  }
}

.site-header {
  position: fixed;
  top: 16px;
  left: 5vw;
  right: 5vw;
  z-index: 250;
  max-width: calc(100% - 10vw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 91, 142, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(52, 91, 142, 0.07);
  transform: translateY(-120%);
  opacity: 0;
  overflow: visible;
  transition: transform 0.5s ease, opacity 0.5s ease, padding-bottom 0.35s ease;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-header.expanded {
  padding-bottom: calc(120px * var(--mega-scale));
}

.site-header .header-inner {
  margin: 0 auto;
  padding: 12px clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: "IBM Plex Sans JP", sans-serif;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-header-nav {
  position: relative;
  display: flex;
  gap: 26px;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.site-header-nav-item {
  position: relative;
  cursor: pointer;
}

.site-header-nav-item.active .site-header-nav-link {
  border-color: #3b649b;
  color: #3b649b;
}

.site-header-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: #3b649b;
}

.site-header-nav-link {
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.site-header-nav-link:hover {
  border-color: #3b649b;
  color: #3b649b;
}

.site-header-nav {
  display: flex;
  gap: 40px;
  margin-left: 32px;
}

body.force-mobile-menu .site-header-nav,
body.force-mobile-menu .mega-menu,
body.force-mobile-menu .header-cta {
  display: none !important;
}

body.force-mobile-menu .mobile-menu-toggle {
  display: flex !important;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .site-header-nav,
body.mobile-menu-open .mega-menu,
body.mobile-menu-open .header-cta {
  display: none !important;
}

body.mobile-menu-open .site-header {
  opacity: 0;
  pointer-events: none;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #666566;
  border-radius: 99px;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 14px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 14px;
}

.mega-menu {
  position: relative;
  padding: 0;
  margin-top: 0;
  background: transparent;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin-top 0.35s ease;
  font-family: "IBM Plex Sans JP", sans-serif;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-header.expanded .mega-menu {
  opacity: 1;
  pointer-events: auto;
  max-height: calc(320px * var(--mega-scale));
  padding: clamp(24px, calc(40px * var(--mega-scale)), 40px) 32px 0;
  margin-top: calc(20px * var(--mega-scale));
}

.mega-menu-inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: clamp(16px, calc(20px + 12px * var(--mega-scale)), 32px);
}

.mega-column {
  display: none;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.3s ease;
}

.mega-column.primary {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
  text-align: left;
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: none;
}

.mega-column:not(.primary) {
  grid-row: 2;
}

.mega-column-title {
  margin: 0;
  font-size: clamp(0.7rem, calc(0.9rem * var(--mega-scale)), 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #666;
}

.mega-column-subtitle {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.7);
  max-width: 240px;
}

.mega-column.primary .mega-column-title {
  font-size: clamp(1rem, calc(1.4rem * var(--mega-scale)), 1.8rem);
}

.mega-column input,
.mega-column a {
  color: #0b1220;
  font-weight: normal;
  letter-spacing: 0.02em;
  font-size: clamp(0.6rem, calc(0.85rem * var(--mega-scale)), 1rem);
  text-decoration: none;
}

.mega-column a:hover {
  color: #3b649b;
}

.mega-column a:before {
  content: "- ";
}

.mega-column .mega-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-column .mega-block strong {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3b649b;
}

.mega-column.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-panel__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 96px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 100vh;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mobile-menu-panel__inner::-webkit-scrollbar {
  display: none;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  align-self: flex-end;
  position: relative;
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #0b1220;
  border-radius: 99px;
}

.mobile-menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.15);
}

.mobile-menu-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mobile-menu-section-label {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.7);
}

.mobile-menu-group strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.mobile-menu-section a {
  text-decoration: none;
  color: #0b1220;
  font-size: 1rem;
  line-height: 1.6;
  display: block;
  padding: 8px 0;
}

.mobile-menu-cta {
  margin-top: 16px;
}

.mobile-menu-cta .primary-btn {
  width: 100%;
  border-radius: 24px;
  padding: 14px 0;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu-group + .mobile-menu-group {
  border-top: 1px solid rgba(11, 18, 32, 0.1);
  padding-top: 12px;
}

body.mobile-menu-open .mobile-menu-panel {
  opacity: 1;
  pointer-events: auto;
}

.mega-column.primary {
  font-size: 1.3rem;
  font-weight: 800;
  color: #3b649b;
  letter-spacing: 0.4em;
}

.header-cta {
  background-image: linear-gradient(90deg, #3B649B 50%, #000 50%);
  background-size: 200% 100%;
  background-position: 0 0;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 44px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-position 0.4s ease, color 0.4s ease;
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}

.header-cta .cta-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 42px;
}

.header-cta span {
  display: inline-block;
}

.header-cta:hover,
.header-cta:focus-visible {
  background-position: -100% 0;
  color: #fff;
}

.header-cta a {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    padding: 12px 16px;
  }
  .site-logo {
    font-size: 1rem;
  }
  .header-cta {
    padding: 8px 14px;
  }
}

main {
  margin-top: clamp(120px, 10vw, 130px);
}
