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;
  position: relative;
  z-index: 1030;
}

.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-navbar .dropdown-menu {
  border: 0;
  border-radius: 0.8rem;
  min-width: 14rem;
  z-index: 1050;
}

.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;
}

/* FullCalendar: クリック可能箇所は指マークに統一（テキスト上のIビームを防ぐ） */
#calendar .fc-daygrid-day,
#calendar .fc-daygrid-day-number,
#calendar .fc-event,
#calendar .fc-event * {
  cursor: pointer;
}

#calendar .fc-event {
  user-select: none;
}

.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 #22c55e !important;
  outline-offset: 2px !important;
  background-color: #dcfce7 !important;
}

button.guide-highlight-target,
a.guide-highlight-target {
  color: #212529 !important;
}

.app-navbar .nav-link.guide-highlight-target {
  background-color: #22c55e !important;
  color: #ffffff !important;
  outline-color: #16a34a !important;
  border-color: #bbf7d0 !important;
}

/* 名簿マスタ：分類凡例（md以上で表示・2段組） */
.member-classification-legend-columns {
  column-count: 2;
  column-gap: 2rem;
}

.member-classification-legend-columns li {
  break-inside: avoid;
}

/* ログインページ：サービス紹介 */
.login-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef4fc 55%, #e8f0fa 100%);
  overflow: hidden;
}

.login-hero-kicker {
  color: #1f4f8f;
  font-weight: 600;
}

.login-preview {
  position: relative;
  min-height: 11rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.login-preview-screen {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 0.65rem;
  box-shadow: 0 0.5rem 1.25rem rgba(20, 33, 61, 0.12);
  overflow: hidden;
}

.login-preview-toolbar {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.login-preview-toolbar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.login-preview-toolbar span:first-child {
  background: #f87171;
}

.login-preview-toolbar span:nth-child(2) {
  background: #fbbf24;
}

.login-preview-toolbar span:nth-child(3) {
  background: #4ade80;
}

.login-preview-content {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
}

.login-preview-calendar {
  flex: 1.1;
  background: #f8fafc;
  border-radius: 0.4rem;
  padding: 0.45rem;
}

.login-preview-cal-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: #1f4f8f;
  margin-bottom: 0.35rem;
}

.login-preview-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.login-preview-cal-grid span {
  aspect-ratio: 1;
  border-radius: 0.2rem;
  background: #e2e8f0;
}

.login-preview-cal-grid span.is-active {
  background: #2b7bbb;
}

.login-preview-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-preview-row {
  height: 0.55rem;
  border-radius: 0.2rem;
  background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
}

.login-preview-row.short {
  width: 70%;
}

.login-preview-phone,
.login-preview-excel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  box-shadow: 0 0.35rem 0.85rem rgba(20, 33, 61, 0.15);
}

.login-preview-phone {
  right: -0.25rem;
  bottom: 0.25rem;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.login-preview-phone i {
  font-size: 1.1rem;
}

.login-preview-excel {
  left: -0.35rem;
  top: 0.5rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.login-preview-excel i {
  font-size: 1.1rem;
}

.login-preview-map {
  position: absolute;
  right: 2.5rem;
  top: -0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  box-shadow: 0 0.35rem 0.85rem rgba(20, 33, 61, 0.15);
}

.login-preview-map i {
  font-size: 1.1rem;
}

.login-feature-card-highlight {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.login-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
}

.login-flow-step {
  flex: 1 1 7rem;
  max-width: 9rem;
  text-align: center;
}

.login-flow-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.login-flow-label {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.login-flow-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #94a3b8;
  font-size: 1.25rem;
  padding-top: 0.75rem;
}

.login-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.login-feature-card:hover {
  box-shadow: 0 0.35rem 0.9rem rgba(31, 79, 143, 0.1);
  transform: translateY(-2px);
}

.login-feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.login-pricing {
  background: #f8fafc;
}

.login-price-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 1rem 1.1rem;
}

.login-price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f4f8f;
  line-height: 1.3;
}

.login-form-card {
  position: sticky;
  top: 1rem;
}

/* お問い合わせフォーム：ボット対策用ハニーポット */
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* トップページ：スクリーンショット紹介 */
.top-screenshot {
  border: 1px solid #d0d7de;
  background: #fff;
}

.top-screenshot-caption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.top-showcase-points {
  list-style: none;
  padding-left: 0;
}

.top-showcase-points li {
  margin-bottom: 0.5rem;
}

.top-showcase-points li:last-child {
  margin-bottom: 0;
}

/* ログインページ：使い方ヒント */
.login-tips-page {
  --login-tip-radius: 1rem;
}

.login-tips-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #fed7aa;
  margin-bottom: 0.75rem;
}

.login-tips-title {
  color: #1f4f8f;
}

.login-tips-lead {
  color: #475569;
  max-width: 38rem;
}

.login-tips-home-link {
  color: #2b7bbb;
  text-decoration: none;
}

.login-tips-home-link:hover {
  color: #1f4f8f;
  text-decoration: underline;
}

.login-tip-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--login-tip-radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 79, 143, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.4rem 1rem rgba(31, 79, 143, 0.12);
}

.login-tip-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.login-tip-card-icon--bi {
  font-size: inherit;
}

.login-tip-card-icon--bi .bi {
  font-size: 1.75rem;
  line-height: 1;
}

.login-tip-card-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #1e293b;
}

.login-tip-card--calendar {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.login-tip-card--phone {
  background: linear-gradient(160deg, #ffffff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

.login-tip-card--guide {
  background: linear-gradient(160deg, #ffffff 0%, #fefce8 100%);
  border-color: #fde68a;
}

.login-tip-card--members {
  background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}

.login-tip-card--map {
  background: linear-gradient(160deg, #ffffff 0%, #ecfeff 100%);
  border-color: #a5f3fc;
}

.login-tip-card--excel {
  background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%);
  border-color: #ddd6fe;
}

.login-tip-card--chat {
  background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 100%);
  border-color: #bae6fd;
}

.login-tip-card--lease {
  background: linear-gradient(160deg, #ffffff 0%, #fffbeb 100%);
  border-color: #fde68a;
}

.login-tip-card-points {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.login-tip-card-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.login-tip-card-points li:last-child {
  margin-bottom: 0;
}

.login-tip-card-points li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #64748b;
  font-weight: 700;
}

.login-tips-note {
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fc 100%);
  border-radius: var(--login-tip-radius);
}

.login-tips-note-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.login-form-card--cute {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe !important;
  border-radius: 1rem;
}

.login-form-mascot {
  display: inline-block;
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

@media (max-width: 991.98px) {
  .login-form-card {
    position: static;
  }

  .login-flow-arrow {
    display: none;
  }

  .login-flow-step {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media print {
  .guide-launcher,
  .shepherd-element,
  .shepherd-modal-overlay-container {
    display: none !important;
  }
}