/* New Header Styles - InterLink Guild Style */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 99999;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* Ensure header is always visible and fixed on all pages */
body .header,
.home .header,
.subpage .header,
body.fade-in .header,
body.fade-out .header {
  position: fixed !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  animation: none !important;
}

/* Ensure header contents are always visible */
.header *,
body.fade-in .header *,
body.fade-out .header * {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}

/* Add padding to body to account for fixed header */
/* Removed padding-top from body as requested
body {
  padding-top: 100px;
}

@media screen and (max-width: 67.5em) {
  body {
    padding-top: 60px;
  }
}
*/

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  flex-shrink: 0;
  z-index: 10;
}

.header-logo a {
  display: block;
  height: 80px;
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-nav {
  flex-grow: 1;
  display: flex;
  justify-content: right;
  margin: 0 40px;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-item {
  position: relative;
}

.header-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #FF6B35;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
  transform: scaleX(1);
}

.header-nav-en {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  font-family: "Albert Sans", sans-serif;
}

.header-nav-ja {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
  line-height: 1.2;
  font-family: "見出ゴMB31 JIS2004 AP", "Midashi Go MB31 JIS2004 AP", sans-serif;
  white-space: nowrap;
}

.header-nav-contact {
  background-color: #00A0E9;
  color: #fff !important;
  border-radius: 4px;
  margin-left: 10px;
}

.header-nav-contact::after {
  display: none !important;
}

.header-nav-contact:hover {
  background-color: #0090d9;
  opacity: 1;
}

.header-nav-contact .header-nav-ja {
  color: rgba(255, 255, 255, 0.9);
}

.header-hamburger {
  display: none;
  z-index: 10;
}

.hamburger-btn {
  width: 30px;
  height: 30px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 3px;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 8px;
}

.hamburger-line:nth-child(2) {
  top: 14px;
}

.hamburger-line:nth-child(3) {
  top: 20px;
}

/* Mobile Menu */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 20px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.mobile-nav-item {
  margin-bottom: 5px;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: #FF6B35;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
  transform: scaleX(1);
}

.mobile-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.mobile-nav-en {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: "Albert Sans", sans-serif;
  line-height: 1.2;
}

.mobile-nav-ja {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
  font-family: "見出ゴMB31 JIS2004 AP", "Midashi Go MB31 JIS2004 AP", sans-serif;
  line-height: 1.2;
}

@media screen and (max-width: 1080px) {
  .header-nav {
    display: none;
  }

  .header-hamburger {
    display: block;
  }

  .mobile-nav {
    display: block;
  }
}

@media screen and (max-width: 67.5em) {
  .header {
    height: 60px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .header-logo {
    display: flex;
    align-items: center;
  }

  .header-logo a {
    height: 50px;
    display: flex;
    align-items: center;
  }

  .header-logo img {
    height: 40px;
    width: auto;
  }

  .mobile-nav {
    top: 60px;
  }

  .mobile-nav-list {
    max-height: calc(100vh - 60px);
    padding: 15px;
  }

  .mobile-nav-item {
    margin-bottom: 0;
  }

  .mobile-nav-link {
    padding: 10px 12px;
  }
}

@media screen and (max-width: 500px) {
  .header-inner {
    padding: 0 10px;
  }
}


/* Override old styles */
.gnav,
.gnav_btn,
.gnav_overlay,
.gnav--menu_pc,
.gnav--menu_sp,
.gnav--cta_sp {
  display: none !important;
}

.header_bg {
  display: none !important;
}