@import url("/assets/anyad-ui-foundation.css?v=20260730-ui-foundation1");

/* Anyad 共通部分ローディングUI */
#anyadLoader {
  position: fixed;
  top: 72px;
  right: 22px;
  z-index: 9999;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(245, 218, 218, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
#anyadLoader.show,
#anyadLoader.active {
  display: flex;
}
#anyadLoader .anyad-loader-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
#anyadLoader .anyad-loader-logo,
#anyadLoader .anyad-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  animation: anyadFloat 1.6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}
@keyframes anyadFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateY(-14px) scale(1.06); opacity: 1; }
}
html.dark #anyadLoader {
  border-color: rgba(55, 65, 81, 0.9);
  background: rgba(22, 22, 24, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}
html.dark #anyadLoader .anyad-logo {
  filter: drop-shadow(0 4px 12px rgba(74, 222, 128, 0.35));
}

.anyad-part-loader {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}
.anyad-part-loader.active,
.anyad-part-loader.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.anyad-part-loader-card {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 12px);
  max-height: calc(100% - 8px);
}
.anyad-part-loader-logo {
  width: clamp(38px, 7vw, 62px);
  height: clamp(38px, 7vw, 62px);
  object-fit: contain;
  animation: anyadFloat 1.6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.12));
}
.anyad-part-loader.compact .anyad-part-loader-logo {
  width: 28px;
  height: 28px;
  animation-name: anyadFloatCompact;
}
.anyad-loader-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes anyadFloatCompact {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateY(-4px) scale(1.04); opacity: 1; }
}
html.dark .anyad-part-loader {
  background: rgba(17, 17, 20, 0.74);
}
html.dark .anyad-part-loader-logo {
  filter: drop-shadow(0 3px 9px rgba(74, 222, 128, 0.3));
}

/* Left navigation feature purpose */
[data-anyad-sidebar] .anyad-nav-help-row {
  position: relative;
}
[data-anyad-sidebar] .anyad-nav-info {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.52;
  cursor: help;
  outline: none;
}
[data-anyad-sidebar] .anyad-nav-info:hover,
[data-anyad-sidebar] .anyad-nav-info:focus-visible {
  opacity: 0.9;
}
[data-anyad-sidebar] .anyad-nav-info:focus-visible {
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.22);
}
html.dark [data-anyad-sidebar] .anyad-nav-info:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.22);
}
[data-anyad-sidebar] .anyad-nav-info-bubble {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 10020;
  width: 220px;
  padding: 9px 11px;
  border: 1px solid rgba(209, 213, 219, 0.78);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  color: #374151;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: normal;
}
[data-anyad-sidebar] .anyad-nav-info-bubble::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  border: 5px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.94);
  transform: translateY(-50%);
}
[data-anyad-sidebar] .anyad-nav-info:hover .anyad-nav-info-bubble,
[data-anyad-sidebar] .anyad-nav-info:focus .anyad-nav-info-bubble {
  opacity: 1;
  transform: translate(0, -50%);
}
html.dark [data-anyad-sidebar] .anyad-nav-info-bubble {
  border-color: rgba(75, 85, 99, 0.8);
  background: rgba(28, 28, 31, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #d1d5db;
}
html.dark [data-anyad-sidebar] .anyad-nav-info-bubble::before {
  border-right-color: rgba(28, 28, 31, 0.96);
}

.anyad-refresh-progress {
  position: fixed;
  left: calc(var(--anyad-loader-left, 0px) + 18px);
  bottom: 18px;
  z-index: 9998;
  width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 218, 218, 0.95);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
@media (max-width: 767px) {
  #anyadLoader {
    top: 62px;
    right: 14px;
    width: 68px;
    height: 68px;
  }
  .anyad-refresh-progress {
    left: 18px;
    bottom: calc(var(--anyad-loader-bottom, 0px) + 18px);
  }
  #anyadLoader .anyad-loader-card {
    padding: 0;
  }
  #anyadLoader .anyad-loader-logo,
  #anyadLoader .anyad-logo {
    width: 44px;
    height: 44px;
  }
}
.anyad-refresh-progress.active {
  opacity: 1;
  transform: translateY(0);
}
.anyad-refresh-progress-top {
  margin-bottom: 4px;
}
.anyad-refresh-title {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}
.anyad-refresh-label {
  font-size: 11px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .anyad-refresh-progress {
  background: rgba(22, 22, 24, 0.96);
  border-color: rgba(38, 38, 42, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
html.dark .anyad-refresh-title { color: #f9fafb; }
html.dark .anyad-refresh-label { color: #9ca3af; }
