/* desktop.css - デスクトップ版スタイル */

/* コンポーネントのインポート */
@import url('button-system.css');
@import url('sidebar-enhanced.css');

/* 基本レイアウト */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ヘッダー - Playful Design */
.header {
  display: flex;
  align-items: center;
  height: 80px;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  padding: 0 var(--spacing-xl);
  z-index: var(--z-sticky);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.header-logo {
  display: flex;
  align-items: center;
  width: 280px;
}

.logo-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-bounce);
  min-height: 48px;
}

.logo-button:hover {
  background: var(--color-surface-light);
  transform: translateY(-2px) scale(1.02);
}

.logo-button:active {
  transform: translateY(0) scale(var(--active-scale));
}

.logo-button:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

.logo-image {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.logo-button:hover .logo-image {
  transform: rotate(5deg);
  animation: wiggle 0.5s ease-in-out;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ヘッダー検索バー */
.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 24px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  height: 48px;
  padding: 0 60px 0 var(--spacing-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow:
    0 4px 16px rgba(255, 165, 0, 0.15),
    0 0 0 3px rgba(255, 165, 0, 0.1);
  transform: translateY(-1px);
}

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(
    --gradient-primary,
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%)
  );
  border: none;
  border-radius: 22px;
  min-width: 44px;
  height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-surface);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--color-primary-alpha, rgba(255, 107, 53, 0.3));
}

.search-button:hover {
  background: var(
    --gradient-primary-reverse,
    linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%)
  );
  transform: translateY(-50%) translateX(-2px);
  box-shadow: 0 4px 12px var(--color-primary-alpha, rgba(255, 107, 53, 0.4));
}

.search-button:active {
  transform: translateY(-50%) translateX(0);
  box-shadow: 0 2px 6px var(--color-primary-alpha, rgba(255, 107, 53, 0.3));
}

.search-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ヘッダーユーザーメニュー */
.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 300px;
  justify-content: flex-end;
}

.notification-button {
  position: relative;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-button:hover {
  background: var(--color-primary-alpha, rgba(255, 107, 53, 0.08));
  color: var(--color-primary);
  transform: scale(1.05);
}

.notification-button:active {
  transform: scale(0.95);
}

.notification-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.notification-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.2s ease;
  z-index: 1000;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
}

.notification-button:hover[data-tooltip]::after {
  transform: translateX(-50%) scale(1);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-error, #ff4757) 100%);
  color: var(--color-surface);
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px var(--color-error-alpha, rgba(255, 71, 87, 0.3));
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.notification-badge.new {
  animation: badgeBounce 0.6s ease;
}

@keyframes badgeBounce {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
}

.login-button {
  background: var(
    --gradient-primary,
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%)
  );
  color: var(--color-surface) !important;
  border: none;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px var(--color-primary-alpha, rgba(255, 107, 53, 0.3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
  background: var(
    --gradient-primary-reverse,
    linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-primary-alpha, rgba(255, 107, 53, 0.4));
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--color-primary-alpha, rgba(255, 107, 53, 0.3));
}

.login-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ユーザードロップダウン */
.user-dropdown {
  position: relative;
}

.user-avatar {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: box-shadow 0.2s ease;
}

.user-avatar:hover {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-large);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1000;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 8px 0;
}

/* メインコンテナ */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* サイドバー */
.sidebar {
  width: 280px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow-y: auto;
}

.sidebar.sidebar-collapsed {
  width: 80px;
}

.sidebar.sidebar-collapsed .menu-text {
  display: none;
}

.sidebar-menu {
  flex: 1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.menu-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.menu-section + .menu-section {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.menu-section.secondary {
  margin-top: auto;
  padding-top: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 4px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.menu-item.active {
  background: var(--color-primary-alpha, rgba(255, 107, 53, 0.1));
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
}

.menu-text {
  transition: opacity 0.3s ease;
}

.sidebar-toggle {
  margin: 16px;
  padding: 12px;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--color-surface-light);
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--color-background);
  position: relative;
}

/* ローディング・エラー画面 */
.loading-screen,
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 32px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: toko-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.error-screen h2 {
  color: var(--color-text);
  margin-bottom: 8px;
}

.error-screen p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.retry-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background: var(--color-primary-dark);
}

/* コンテンツエリア */
#content-area {
  padding: 32px;
  min-height: 100%;
}

/* ページ共通スタイル */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  color: var(--color-text);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

/* ボタンスタイル */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* ホームページスタイル */
.home-page {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(78, 205, 196, 0.1));
  border-radius: 16px;
  margin-bottom: 64px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-section p {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 地図ページスタイル */
.map-page {
  height: calc(100vh - 70px - 64px); /* ヘッダーと padding を除いた高さ */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-light);
}

.map-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.control-button {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.control-button:hover {
  background: var(--color-surface-light);
  box-shadow: var(--shadow-medium);
}

/* レスポンシブ対応 */
@media (max-width: 1199px) {
  .sidebar {
    width: 220px;
  }

  .header-logo {
    width: 220px;
  }
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    height: calc(100vh - 70px);
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidebar.sidebar-open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .header-search {
    margin: 0 16px;
  }

  #content-area {
    padding: 24px 16px;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 0 16px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ダークモード対応（色は_variables.cssで定義）*/

/* 通知パネル */
.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow: hidden;
}

.notification-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.notification-panel__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.notification-panel__mark-read {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notification-panel__mark-read:hover {
  background: var(--color-primary-alpha, rgba(255, 107, 53, 0.1));
}

.notification-panel__list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--color-text-secondary);
}

.notification-panel__empty i {
  font-size: 48px;
  margin-bottom: 12px;
}

.notification-panel__item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.notification-panel__item:hover {
  background: var(--color-surface-light);
}

.notification-panel__item.unread {
  background: var(--color-primary-alpha-light, rgba(255, 107, 53, 0.05));
}

.notification-panel__item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.notification-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-panel__icon i {
  font-size: 18px;
  color: var(--color-primary);
}

.notification-panel__content {
  flex: 1;
  min-width: 0;
}

.notification-panel__message {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.notification-panel__time {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.notification-panel__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.notification-panel__view-all {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.notification-panel__view-all:hover {
  text-decoration: underline;
}

/* ユーザードロップダウンメニュー */
.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  padding: 8px 0;
  overflow: hidden;
}

.user-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
}

.user-dropdown-menu .dropdown-item:hover {
  background: var(--color-surface-light);
}

.user-dropdown-menu .dropdown-item i {
  font-size: 18px;
  color: var(--color-text-secondary);
}

.user-dropdown-menu .dropdown-item--danger {
  color: var(--color-error, #dc3545);
}

.user-dropdown-menu .dropdown-item--danger:hover {
  background: var(--color-error-alpha, rgba(220, 53, 69, 0.1));
}

.user-dropdown-menu .dropdown-item--danger i {
  color: var(--color-error, #dc3545);
}

.user-dropdown-menu .dropdown-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* スケルトンスクリーン */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-border) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: toko-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text--title {
  height: 24px;
  width: 60%;
}

.skeleton-text--short {
  width: 40%;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: 12px;
}

.skeleton-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
}

/* ページ遷移アニメーション */
#contentArea {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* カードアニメーション */
.place-card,
.event-card,
.post-card {
  animation: cardSlideUp 0.4s ease-out;
  animation-fill-mode: both;
}

.place-card:nth-child(1) {
  animation-delay: 0.05s;
}
.place-card:nth-child(2) {
  animation-delay: 0.1s;
}
.place-card:nth-child(3) {
  animation-delay: 0.15s;
}
.place-card:nth-child(4) {
  animation-delay: 0.2s;
}
.place-card:nth-child(5) {
  animation-delay: 0.25s;
}
.place-card:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アクセシビリティ - スキップリンク */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* フォーカス状態 */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ダークモードでの通知パネル */
[data-theme='dark'] .notification-panel {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .user-dropdown-menu {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .notification-button[data-tooltip]::after {
  background: var(--color-surface-light);
  border-color: var(--color-border);
}

/* ================================================
   タブシステム（5タブ構成）
   ================================================ */

/* タブコンテナ */
.desktop-tab {
  display: none;
  height: 100%;
  overflow-y: auto;
}

.desktop-tab.active {
  display: block;
}

/* タブローディング */
.desktop-tab__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--color-text-secondary);
  gap: 16px;
}

/* タブエラー */
.desktop-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--color-text-secondary);
  gap: 12px;
}

.desktop-tab__error i {
  font-size: 48px;
  color: var(--color-error, #dc3545);
}

.desktop-tab__error-btn {
  margin-top: 8px;
  padding: 8px 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.desktop-tab__error-btn:hover {
  opacity: 0.9;
}

/* ================================================
   サブページ（スライドイン）
   ================================================ */

.desktop-subpage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-background);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.desktop-subpage.open {
  transform: translateX(0);
}

.desktop-subpage__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.desktop-subpage__back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.desktop-subpage__back:hover {
  background: var(--color-surface-light);
}

.desktop-subpage__back:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.desktop-subpage__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.desktop-subpage__content {
  flex: 1;
  overflow-y: auto;
}

/* ================================================
   トースト通知
   ================================================ */

.desktop-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.desktop-toast--info {
  background: var(--color-info, #2196f3);
}

.desktop-toast--success {
  background: var(--color-success, #4caf50);
}

.desktop-toast--warning {
  background: var(--color-warning, #ffc107);
  color: var(--color-text);
}

.desktop-toast--error {
  background: var(--color-error, #f44336);
}

/* ================================================
   サイドバーアイコン調整（Bootstrap Icons使用）
   ================================================ */

.menu-item i.bi {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.menu-item.active i.bi {
  color: var(--color-primary);
}
