body {
  font-family: "Noto Sans JP", sans-serif;
  color: #171E2B;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  letter-spacing: 0%;
}

.vertical-hr {
  border: 0;
  border-left: 1px solid #D0D0D0;
  height: 40px;
  content: " ";
  margin: 0 60px;
}

.vertical-hr.sm {
  height: 24px;
  margin: 0 20px;
}

.back-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.back-btn .back-btn-icon {
  margin-right: 16px;
}

.back-btn .back-btn-text {
  color: #171E2B;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0;
}

.content-header {
  width: 100%;
  background-color: #EEF6FD;
  margin: 10px 40px 40px 0;
}

.sidebar {
  background-color: #343a40;
  height: 100vh;
  width: 280px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-footer {
  border-top: 1px solid #495057;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #495057;
}

.sidebar-header h4 {
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.sidebar-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-menu li {
  border-bottom: 1px solid #495057;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background-color: #495057;
  color: #ffffff;
}

.sidebar-menu a i {
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dev-user-switcher {
  border-top: 2px dashed #f59e0b;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.05);
}

.dev-switcher-header {
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dev-switcher-arrow {
  margin-left: auto;
  transition: transform 0.2s;
  font-size: 10px;
}

.dev-user-switcher.open .dev-switcher-arrow {
  transform: rotate(180deg);
}

.dev-switcher-body {
  display: none;
  margin-top: 8px;
}

.dev-user-switcher.open .dev-switcher-body {
  display: block;
}

.dev-switcher-current {
  color: #adb5bd;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-switcher-current strong {
  color: #ffffff;
}

.dev-switch-form {
  margin: 2px 0;
}

.dev-switch-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #adb5bd;
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.dev-switch-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dev-switch-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f7b13c;
}

.dev-role-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: auto;
  color: white;
}

.dev-role-badge.admin {
  background: #7c3aed;
}

.dev-role-badge.company_admin {
  background: #2563eb;
}

.dev-role-badge.veteran {
  background: #059669;
}

.dev-role-badge.general {
  background: #6b7280;
}

.dev-company-badge {
  font-size: 9px;
  color: #adb5bd;
}

.dev-quick-login {
  max-width: 400px;
  margin: 24px auto;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.03);
}

.dev-quick-login-header {
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dev-quick-login-header .dev-switcher-arrow {
  margin-left: auto;
}

.dev-quick-login.open .dev-quick-login-header .dev-switcher-arrow {
  transform: rotate(180deg);
}

.dev-quick-login-body {
  display: none;
  margin-top: 10px;
  gap: 4px;
  flex-direction: column;
}

.dev-quick-login.open .dev-quick-login-body {
  display: flex;
}

.dev-quick-login-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, border-color 0.15s;
}

.dev-quick-login-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
}

.guest-flash-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 100%;
  max-width: 500px;
  padding: 16px;
}

.guest-flash-container .alert {
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guest-flash-container .alert p {
  margin-bottom: 0;
}

.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.login .logo {
  margin-bottom: 32px;
}

.login-form {
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.login-field .form-control {
  width: 100%;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.login-submit {
  margin-top: 32px;
  text-align: center;
}

.login-btn {
  width: 60%;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
}

.login-confirm-alert {
  margin-top: 16px;
}

.login-links {
  margin-top: 16px;
  text-align: center;
}

.login-links a {
  font-size: 13px;
  color: #6b7280;
}
