/* =========================================================================
  共通スタイル (広域機関(OCCTO)連携システム)
========================================================================= */
body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
}
.nav-btn {
  transition: all 0.2s ease;
}
.nav-btn:hover {
  transform: scale(1.05);
}
.nav-btn:active {
  transform: scale(0.95);
}
.table-collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.table-collapse-content.open {
  max-height: 5000px;
}
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
@media print {
  .no-print {
    display: none !important;
  }
}
button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(var(--btn-glow-color, 6, 182, 212), 0.3);
}
button[type="submit"]:active {
  transform: translateY(0px) scale(0.97);
  transition-duration: 0.1s;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
button[type="button"]:not(#btnKintoneSync):not([onclick*="toggleSidebar"]):not(
    [onclick*="toggleEnvPanel"]
  ):not([aria-label]) {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
button[type="button"]:not(#btnKintoneSync):not([onclick*="toggleSidebar"]):not(
    [onclick*="toggleEnvPanel"]
  ):not([aria-label]):hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
input[type="text"],
input[type="date"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  transform: scale(1.01);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.anim-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}
.anim-slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.4s ease-out forwards;
}
#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#loadingOverlay.active {
  display: flex;
  opacity: 1;
}
#loadingOverlay .loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--spinner-color, #06b6d4);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-progress {
  width: 180px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.loading-progress-bar {
  height: 100%;
  width: 30%;
  background: var(--spinner-color, #06b6d4);
  border-radius: 2px;
  animation: progressSlide 1.5s ease-in-out infinite;
}
@keyframes progressSlide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.loading-dots::after {
  content: "";
  animation: loadingDots 1.5s steps(4, end) infinite;
}
@keyframes loadingDots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
