/* nav.css - ナビゲーション・フッターメニュー共通スタイル */

/* ヘッダー・フッターのメニュー一般スタイル */
#header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

#footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.1rem;
}

#header-menu li,
#footer-menu li {
  margin: 0;
  padding: 0;
}

#header-menu a,
#footer-menu a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

#footer-menu a {
  color: var(--clr-accent);
}

#year-display {
  color: var(--clr-accent);
}

#header-menu a:hover,
#footer-menu a:hover {
  opacity: 0.8;
}

/* フッターメニュー専用: 常に横並び */
#footer-menu {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
}

#footer-menu li {
  white-space: nowrap;
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* only stack header menu on mobile; keep footer horizontal */
  #header-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  #header-menu li {
    width: 100%;
  }

  #header-menu a {
    display: block;
    padding: 0.75rem 1rem;
  }

  /* footer stays horizontal */
  #footer-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  #footer-menu li {
    width: auto;
  }
}

/* 小型スマートフォン対応 */
@media (max-width: 480px) {
  #header-menu,
  #footer-menu {
    gap: 0.25rem;
  }

  #header-menu a,
  #footer-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  /* footer stays horizontal on mobile */
  #footer-menu {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
}
