/* カテゴリ変更通知 */
.category-change-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: var(--z-notification);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-change-notification.show {
  opacity: 1;
  visibility: visible;
  animation: categoryPulse 0.6s ease;
}

.category-change-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  white-space: nowrap; /* PCで改行を防ぐ */
}

.category-change-icon {
  font-size: 3rem;
  animation: bookFlip 1s ease-in-out;
  flex-shrink: 0; /* アイコンサイズ固定 */
}

.category-change-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem; /* ラベルとタイトルの間隔 */
}

.category-change-label {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0; /* marginを削除 */
  letter-spacing: 0.5px;
  flex-shrink: 0; /* ラベル幅固定 */
}

.category-change-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  flex-shrink: 0; /* タイトル幅固定 */
}

@keyframes categoryPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes bookFlip {
  0%, 100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
}

/* フェードアウト */
.category-change-notification.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
}

/* モバイル対応 - カテゴリ変更通知は非表示 */
@media (max-width: 768px) {
  .category-change-notification {
    display: none !important;
  }
}