/* Navigation Bar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  height: 60px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Desktop Navigation */
.navbar-desktop {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 40px;
  height: 100%;
}

/* Mobile Navigation */
.navbar-mobile {
  display: none;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 20px;
  height: 60px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 8px 20px 0 20px;
  position: relative;
  z-index: 1001;
}

.header-logo {
  width: auto;
  height: 28px;
  position: relative;
  background-color: #fff;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 30px 50px;
}

.navbar img {
  height: 28px;
  width: auto;
}

/* Mobile Logo */
.mobile-logo {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  flex: 1;
}

.mobile-logo img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 25px;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: #fff;
  padding: 10px 10px 10px 20px;
  border-radius: 50px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-links a {
  text-decoration: none;
  color: #303030;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-links a:hover {
  color: #0068de;
  background-color: rgba(0, 104, 222, 0.1);
}

/* Active state for navigation links */
.nav-links a.active {
  color: white !important;
  font-weight: 500 !important;
  background-color: #0068de !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
}

.nav-contact-btn {
  background-color: #0068de;
  border-radius: 40px;
  padding: 10px;
  margin-left: 10px;
}

.contact-nav-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: white !important;
  border-radius: 40px;
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 104, 222, 0.8);
}

.contact-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Active state for contact button */
.contact-nav-btn.active {
  background-color: rgba(0, 104, 222, 0.3) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(0, 104, 222, 1) !important;
  box-shadow: 0 0 20px rgba(0, 104, 222, 0.5) !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 888px;
  overflow: hidden;
  align-items: center;
}

/* Background Image */
.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  /* width: 100%; */
  /* background: url('/static/img/main1.png') center/cover no-repeat; */
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: 888px;
  margin-inline: auto 0;
  object-fit: contain;
}

/* Blue/Black Overlay Shape */
.overlay {
  position: absolute;
  top: 0;
  left: calc(50% + 8px);
  transform: translateX(-50%);

  /* inset: 0; */
  /* background: linear-gradient(90deg, black 40%, transparent 40%); */
  /* clip-path: polygon(0 0, 50% 0, 70% 50%, 50% 100%, 0 100%); */
  z-index: 4;
}

.overlay img {
  object-fit: contain;
}
.overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #007bff 40%, transparent 40%);
  mix-blend-mode: multiply;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%, 70% 50%);
  z-index: 3;
}

/* Text Content */
.hero-text {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  /* max-width: 500px; */
}
.hero-text h1 {
  font-size: 48px !important;
  font-weight: bold;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}
.hero-text p {
  margin-top: 20px;
  font-size: 16px;
  color: #555;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #0068de;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 104, 222, 0.3);
}

.mobile-nav-toggle .hamburger-line {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #fff;
  margin: 2px 0;
  border-radius: 1px;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  display: none;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  display: none;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  display: none;
}

.mobile-nav-toggle.open::before {
  content: "×";
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.mobile-nav-toggle:hover {
  background-color: #0056b3;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #E8F2FF 0%, #F0F8FF 100%);
  z-index: 9999;
  display: none;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
}

/* メニュー開いている時のスクロールバー表示 */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

body.mobile-menu-open::-webkit-scrollbar {
  width: 8px;
}

body.mobile-menu-open::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body.mobile-menu-open::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

body.mobile-menu-open::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.mobile-nav-menu.open {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

/* Mobile menu navbar styling - use exact same navbar */
.mobile-nav-menu .navbar {
  position: static;
  z-index: 10000;
  background-color: transparent;
  left: auto;
  right: auto;
  width: auto;
  height: auto;
  top: auto;
  bottom: auto;
}

.mobile-nav-menu .navbar-mobile {
  display: none;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 20px;
  height: 60px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 8px 20px 0 20px;
  position: relative;
  z-index: 1001;
  width: calc(100vw - 40px);
  min-width: 300px;
}

.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 20px;
  min-height: calc(100vh - 120px);
}

.menu-item {
  color: #333;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.menu-item:hover {
  background-color: rgba(0, 104, 222, 0.1);
  padding-left: 10px;
}

.menu-item.active {
  background-color: rgba(0, 104, 222, 0.15);
  font-weight: 500;
}

.menu-item.expandable {
  background: none;
  border: none;
  color: #333;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.menu-plus,
.menu-minus {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.7;
  color: #666;
}

.recruit-submenu,
.consulting-submenu,
.career-submenu,
.bpo-submenu,
.case-submenu,
.company-submenu {
  padding-left: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}

.recruit-submenu.show,
.consulting-submenu.show,
.career-submenu.show,
.bpo-submenu.show,
.case-submenu.show,
.company-submenu.show {
  display: block;
}

.submenu-item {
  font-size: 14px !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  opacity: 0.8;
  color: #666 !important;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.submenu-item:hover {
  color: #0068de !important;
  padding-left: 10px !important;
  opacity: 1 !important;
}

.mobile-contact-section {
  margin-top: 0;
  padding: 20px 0;
}

.mobile-contact-btn {
  display: block !important;
  background-color: #0068de;
  color: #fff !important;
  text-align: center;
  padding: 18px 20px !important;
  border-radius: 12px;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: none !important;
  box-shadow: 0 4px 15px rgba(0, 104, 222, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-contact-btn:hover {
  background-color: #0056b3 !important;
  padding-left: 20px !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 222, 0.4);
}

/* === Responsive Design for Header === */

/* Mobile (〜768px) */
@media (max-width: 768px) {
  .navbar-desktop {
    display: none;
  }

  .navbar-mobile {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  .mobile-nav-menu .navbar-mobile {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  .mobile-logo img {
    width: auto !important;
    height: 22px !important;
  }

  .hero {
    height: 400px;
    padding-left: 16px;
  }

  .hero-text h1 {
    font-size: 24px !important;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 14px;
    margin-top: 12px;
  }

  .hero-image img {
    height: 400px;
  }
}

/* Tablet (769〜1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    margin-top: 16px;
  }

  .navbar-desktop {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 16px 24px;
  }

  .navbar-mobile {
    display: none;
  }

  .header-logo img {
    width: auto !important;
    height: 25px !important;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 14px;
    padding: 10px 16px;
  }

  .nav-links a[href="/contact"] {
    background-color: #0068de !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 10px 18px !important;
    margin-left: 10px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 104, 222, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .nav-links a[href="/contact"]:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 104, 222, 0.4) !important;
  }

  .nav-links a.contact-btn {
    background-color: #0056b3 !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 10px 18px !important;
    margin-left: 10px !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(0, 104, 222, 0.5) !important;
    transform: translateY(-2px) !important;
  }

  .hero {
    height: 600px;
    padding-left: 40px;
  }

  .hero-text h1 {
    font-size: 36px !important;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 15px;
    margin-top: 16px;
  }

  .hero-image img {
    height: 600px;
  }
}

/* Desktop (1025px〜) */
@media (min-width: 1025px) {
  .navbar {
    margin-top: 20px;
  }

  .navbar-desktop {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 20px 32px;
  }

  .navbar-mobile {
    display: none;
  }

  .header-logo img {
    width: auto !important;
    height: 28px !important;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 20px;
  }

  .nav-links a[href="/contact"] {
    background-color: #0068de !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 10px 20px !important;
    margin-left: 10px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 104, 222, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .nav-links a[href="/contact"]:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 104, 222, 0.4) !important;
  }

  .nav-links a.contact-btn {
    background-color: #0056b3 !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 10px 20px !important;
    margin-left: 10px !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(0, 104, 222, 0.5) !important;
    transform: translateY(-2px) !important;
  }

  .hero {
    height: 888px;
  }

  .hero-text h1 {
    font-size: 48px !important;
    line-height: 1.5;
  }

  .hero-text p {
    font-size: 16px;
    margin-top: 20px;
  }

  .hero-image img {
    height: 888px;
  }
}
