/* ルーティングシステム用のCSS */

#main-content {
  display: none; /* 初期状態では非表示 */
  min-height: 100vh;
  background: #fff;
}

#main-content.active {
  display: block;
}

/* ルーティングリンクのスタイル */
[data-route] {
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-route]:hover {
  opacity: 0.8;
}

[data-route].active {
  font-weight: bold;
  color: #007bff !important;
}

/* ドロップダウンメニューのカスタムスタイル */
.dropdown-menu .dropdown-item {
  transition: background-color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* ページ遷移時のローディング効果 */
#main-content.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #main-content {
    padding: 10px;
  }
}

/* SPA用のページ固有スタイル調整 */
.spa-page {
  padding-top: 20px;
}

.spa-page .container {
  max-width: 1200px;
}

/* 404ページ用スタイル */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-page h1 {
  font-size: 6rem;
  color: #dc3545;
  margin-bottom: 0;
}

.error-page h2 {
  color: #6c757d;
  margin-bottom: 1rem;
}
