/**
 * Navigation Styles
 * ナビゲーションバーのスタイル
 * Extracted from index.html for better maintainability
 */

.navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ff8e48;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-link:first-child {
  border-radius: 4px 4px 0 0;
}

.dropdown-link:last-child {
  border-bottom: none;
  border-radius: 0 0 4px 4px;
}

.dropdown-link:hover {
  background-color: #fff5f0;
  color: #ff8e48;
}

.nav-dropdown .nav-link::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link::after {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

@media screen and (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: #ff8e48;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    width: 100%;
  }

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

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    display: none;
    border-radius: 0;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-link {
    color: white;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }

  .dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
  }

  .dropdown-link:first-child,
  .dropdown-link:last-child {
    border-radius: 0;
  }

  .nav-dropdown .nav-link::after {
    float: right;
  }

  .nav-dropdown.active .nav-link::after {
    transform: rotate(180deg);
  }

  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
