/* アニメーション強化 - フェーズ5-B */

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スライドイン（左から） */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スライドイン（右から） */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スライドイン（上から） */
@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スケールイン */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ローテーションイン */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* バウンス */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* パルス */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* シャイン効果 */
@keyframes shine {
  0% {
    background-position: -200%;
  }
  100% {
    background-position: 200%;
  }
}

/* グラデーション移動 */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* アニメーションクラス */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.fade-in-delayed {
  animation: fadeIn 0.5s ease-out 0.2s both;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

.slide-in-top {
  animation: slideInTop 0.5s ease-out;
}

.scale-in {
  animation: scaleIn 0.4s ease-out;
}

.rotate-in {
  animation: rotateIn 0.5s ease-out;
}

.bounce-animation {
  animation: bounce 1s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* カードホバー効果強化 */
.interview-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interview-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ボタンホバー効果 */
.button-glow {
  position: relative;
  overflow: hidden;
}

.button-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.button-glow:hover::before {
  left: 100%;
}

/* グラデーション背景アニメーション */
.gradient-animate {
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
}

/* モーダル表示アニメーション */
.modal-backdrop {
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: scaleIn 0.3s ease-out;
}

/* ページ遷移アニメーション */
.page-transition-enter {
  animation: fadeIn 0.4s ease-out;
}

.page-transition-exit {
  animation: fadeIn 0.3s ease-out reverse;
}

/* スケルトンローディング */
@keyframes skeletonLoading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* 月次グループの開閉アニメーション */
.month-content {
  max-height: 10000px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease-out;
}

.month-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.month-toggle-icon {
  transition: transform 0.3s ease-out;
}

.month-toggle-icon.rotated {
  transform: rotate(180deg);
}

/* スクロールアニメーション用 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ステータスバッジアニメーション */
.status-badge {
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* プログレスバーアニメーション */
@keyframes progressAnimation {
  from {
    width: 0%;
  }
}

.progress-bar {
  animation: progressAnimation 1s ease-out;
}

/* リップル効果 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ツールチップアニメーション改善 */
.tooltip {
  animation: fadeIn 0.2s ease-out;
}

/* カードスタッガーアニメーション */
.stagger-item {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* トーストアニメーション */
.animate-slideInRight {
  animation: slideInRight 0.3s ease-out;
}

.animate-slideOutRight {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}
