/* ============================
   Axis Hub - Unified Navigation
   カレンダーデザイン統一版
   カラー: #121E31 (ダークネイビー), #c9a763 (ゴールド), #D4AF37
   ============================ */

.hub-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: #121E31;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 9000;
  border-right: 1px solid #eaddb6;
  box-shadow: 2px 0 15px rgba(18,30,49,0.3);
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

.hub-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,167,99,0.2);
  width: 100%;
}

.hub-nav-brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a763 0%, #D4AF37 100%);
  color: #121E31;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(201,167,99,0.3);
  border: 1px solid rgba(201,167,99,0.5);
}

.hub-nav-brand span {
  font-size: 9px;
  font-weight: 700;
  color: #c9a763;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-nav-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hub-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  width: 60px;
  border: none;
  background: transparent;
  color: rgba(201,167,99,0.5);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hub-nav-btn i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.hub-nav-btn:hover {
  color: #c9a763;
  background: rgba(201,167,99,0.08);
}

.hub-nav-btn.active {
  color: #c9a763;
  background: rgba(201,167,99,0.15);
  box-shadow: inset 0 0 0 1px rgba(201,167,99,0.3);
}

.hub-nav-btn.active i {
  transform: scale(1.1);
  color: #D4AF37;
}

.hub-nav-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(201,167,99,0.2);
  width: 100%;
  display: flex;
  justify-content: center;
}

.hub-nav-footer .hub-nav-btn {
  color: rgba(201,167,99,0.35);
}

.hub-nav-footer .hub-nav-btn:hover {
  color: #e74c3c;
  background: rgba(231,76,60,0.1);
}

/* Module containers */
.hub-content {
  margin-left: 72px;
  min-height: 100vh;
  position: relative;
}

#module-invoice {
  min-height: 100vh;
}

#module-note {
  min-height: 100vh;
}

#module-calendar {
  min-height: 100vh;
  background: #f8fafc;
}

/* Override Invoice sidebar position */
.hub-content .sidebar {
  left: 72px !important;
}

/* Override Invoice tab-bar */
.hub-content .tab-bar {
  left: 72px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hub-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid #eaddb6;
    box-shadow: 0 -4px 15px rgba(18,30,49,0.3);
  }

  .hub-nav-brand {
    display: none;
  }

  .hub-nav-items {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0 8px;
    gap: 0;
  }

  .hub-nav-btn {
    width: auto;
    padding: 8px 16px;
  }

  .hub-nav-footer {
    display: none;
  }

  .hub-content {
    margin-left: 0;
    padding-bottom: 64px;
  }

  .hub-content .sidebar {
    left: 0 !important;
  }

  .hub-content .tab-bar {
    left: 0 !important;
    bottom: 64px !important;
  }
}
