/* ========================================
   セッション復元通知のスタイル
   ======================================== */

.session-restore-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  animation: slideDown 0.5s ease-out;
}

.restore-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 90vw;
}

.restore-icon {
  font-size: 28px;
  animation: rotate360 2s linear infinite;
}

.restore-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.restore-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.restore-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.restore-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.session-restore-notification.fade-out {
  animation: slideUp 0.5s ease-in forwards;
}

/* アニメーション */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .restore-content {
    padding: 14px 18px;
    min-width: auto;
    width: calc(100vw - 40px);
  }
  
  .restore-icon {
    font-size: 24px;
  }
  
  .restore-text strong {
    font-size: 14px;
  }
  
  .restore-text p {
    font-size: 12px;
  }
}
