@charset "utf-8";
/* CSS Document */

/* ヘッダー・ナビゲーション */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav.scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 20px rgba(51, 76, 131, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 80px;
}

.logo {
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 70px;
  width: auto;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 10px 0;
  display: block;
}

.menu a:hover {
  color: var(--gold-color);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-color);
  transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a.active {
  color: var(--gold-color);
  font-weight: 600;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
  color: white;
}

.hamburger:hover {
  color: var(--gold-color);
}

.hamburger-icon {
  display: block;
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger-icon {
  transform: rotate(90deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* メニューアニメーション */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu li {
  animation: slideInFromTop 0.3s ease-out;
}

.menu li:nth-child(1) { animation-delay: 0.1s; }
.menu li:nth-child(2) { animation-delay: 0.2s; }
.menu li:nth-child(3) { animation-delay: 0.3s; }
.menu li:nth-child(4) { animation-delay: 0.4s; }
.menu li:nth-child(5) { animation-delay: 0.5s; }
.menu li:nth-child(6) { animation-delay: 0.6s; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: none;
  }
  
  .menu li:last-child {
    border-bottom: none;
  }
  
  .menu a {
    font-size: 1.2rem;
    padding: 20px;
    width: 100%;
    display: block;
    color: white;
  }
  
  .menu a::after {
    display: none;
  }
  
  .menu a:hover,
  .menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-color);
  }
  
  /* モバイルメニューアニメーション */
  .menu.active li {
    animation: slideInFromLeft 0.3s ease-out;
  }
  
  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .menu.active li:nth-child(1) { animation-delay: 0.1s; }
  .menu.active li:nth-child(2) { animation-delay: 0.15s; }
  .menu.active li:nth-child(3) { animation-delay: 0.2s; }
  .menu.active li:nth-child(4) { animation-delay: 0.25s; }
  .menu.active li:nth-child(5) { animation-delay: 0.3s; }
  .menu.active li:nth-child(6) { animation-delay: 0.35s; }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 15px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .menu a {
    font-size: 1.1rem;
    padding: 18px;
  }
}

/* ナビゲーション固定時のbody調整 */
body {
  padding-top: 70px;
}

/* メニューオーバーレイ効果 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .menu-overlay.active {
    display: block;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .menu li,
  .menu.active li,
  .hamburger-icon,
  .nav {
    animation: none;
    transition: none;
  }
}

/* フォーカス表示 */
.menu a:focus,
.hamburger:focus {
  outline: 2px solid var(--gold-color);
  outline-offset: 2px;
}

/* ダークモード対応は削除（primary-colorで統一） */

/* ナビゲーション固定時のbody調整 */
body {
  padding-top: 80px;
}

@media (max-width: 480px) {
  body {
    padding-top: 80px;
  }
}

