/* 新聞販売店 業務支援ツール - カスタムスタイル */

/* ローディングスピナー */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 0.8s linear infinite;
}

/* ステップアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-item {
  animation: fadeInUp 0.3s ease-out;
}

/* カードホバーエフェクト */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
}

/* 印刷スタイル */
@media print {
  header,
  footer,
  button,
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    font-size: 11pt;
  }

  .bg-gradient-to-br {
    background: white !important;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shadow-lg,
  .shadow-xl,
  .shadow-2xl {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }

  #results,
  #newsResult {
    display: block !important;
  }
}

/* フォーカスリング */
input:focus,
select:focus,
button:focus {
  outline: none;
}

/* ボタンのトランジション */
button {
  transition: all 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* チェックボックスのカスタムスタイル */
.news-cat {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* グラデーションテキスト */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 記事カードの強調ボーダー */
.news-card-high {
  border-left: 4px solid #ef4444 !important;
}

.news-card-medium {
  border-left: 4px solid #f97316 !important;
}

.news-card-low {
  border-left: 4px solid #3b82f6 !important;
}

/* スムーズなスクロール */
html {
  scroll-behavior: smooth;
}

/* レスポンシブなテキスト */
@media (max-width: 640px) {
  h1.text-4xl {
    font-size: 1.75rem;
  }
}
