html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f6f8fb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-navbar {
  background: linear-gradient(110deg, #14213d 0%, #1f4f8f 60%, #2b7bbb 100%);
  border-bottom: 0;
}

.app-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.app-navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.app-navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

.app-nav-links .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px;
  padding: 0.35rem 0.8rem !important;
  margin-right: 0.35rem;
  transition: all 0.2s ease;
}

.app-nav-links .nav-link:hover,
.app-nav-links .nav-link:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16);
}

.app-nav-links .nav-link.active {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
}

.app-nav-admin {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.app-nav-links .dropdown-menu {
  border: 0;
  border-radius: 0.8rem;
  min-width: 14rem;
}

.app-nav-links .dropdown-item {
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
}

.app-nav-links .dropdown-item:hover,
.app-nav-links .dropdown-item:focus {
  background: #eef5ff;
}

.app-btn {
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
}

.app-btn-signup {
  background: #ffd166;
  color: #3d2f00;
}

.app-btn-login {
  background: #22c55e;
  color: #ffffff;
}

.app-btn-admin {
  background: #dbeafe;
  color: #1e3a8a;
}

.app-btn-logout {
  background: #ef4444;
  color: #ffffff;
}

.app-btn-tenant {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  max-width: 19rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-btn-tenant:hover,
.app-btn-tenant:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.app-btn:hover,
.app-btn:focus {
  filter: brightness(0.95);
}

/* FullCalendar: 日付リンクの下線を非表示 */
.fc .fc-daygrid-day-number {
  text-decoration: none !important;
}

.fc .fc-daygrid-day-number:hover,
.fc .fc-daygrid-day-number:focus {
  text-decoration: none !important;
}

.guide-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 11000;
}

.guide-launcher-button {
  border-radius: 999px;
  box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.guide-launcher-panel {
  width: 300px;
  max-width: calc(100vw - 2rem);
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.16);
}

.guide-launcher-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.guide-launcher-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.guide-launcher-item + .guide-launcher-item {
  margin-top: 0.45rem;
}

.guide-highlight-target {
  outline: 3px solid #dc3545 !important;
  outline-offset: 2px !important;
  background-color: #fff5f5 !important;
}

button.guide-highlight-target,
a.guide-highlight-target {
  color: #212529 !important;
}

/* 名簿マスタ：分類凡例（md以上で表示・2段組） */
.member-classification-legend-columns {
  column-count: 2;
  column-gap: 2rem;
}

.member-classification-legend-columns li {
  break-inside: avoid;
}