@charset "UTF-8";

/* タグクラウドのスタイル */
.tag-cloud-container {
  padding: 20px;
  text-align: center;
  line-height: 2.5;
}

.tag-cloud-item {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 15px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag-cloud-item:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.tag-cloud-item:visited {
  color: #495057;
  background: #f8f9fa;
  border-color: #e9ecef;
}

.tag-cloud-item:visited:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.tag-cloud-item i {
  margin-right: 5px;
}

.tag-count {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 5px;
}

/* 記事のタグバッジ */
.article-tags {
  margin-top: 10px;
}

.tag-badge {
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  text-decoration: none;
  transform: scale(1.05);
}

.badge-secondary {
  background-color: #6c757d;
  color: white;
}

.badge-secondary:hover {
  background-color: #545b62;
  color: white;
}

.badge-secondary:visited {
  background-color: #6c757d;
  color: white;
}

.badge-secondary:visited:hover {
  background-color: #545b62;
  color: white;
}

.badge-primary {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.badge-primary:hover {
  background-color: #0056b3;
  color: white;
}

.badge-primary:visited {
  background-color: #007bff;
  color: white;
}

.badge-primary:visited:hover {
  background-color: #0056b3;
  color: white;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .tag-cloud-container {
    padding: 15px 10px;
    line-height: 2;
  }
  
  .tag-cloud-item {
    margin: 3px 5px;
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .tag-cloud-item .tag-count {
    font-size: 0.7em;
  }
}

@media (max-width: 576px) {
  .tag-cloud-item {
    margin: 2px 3px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* アニメーション効果 */
.tag-cloud-item {
  animation: fadeInUp 0.6s ease;
  animation-fill-mode: both;
}

.tag-cloud-item:nth-child(1) { animation-delay: 0.1s; }
.tag-cloud-item:nth-child(2) { animation-delay: 0.15s; }
.tag-cloud-item:nth-child(3) { animation-delay: 0.2s; }
.tag-cloud-item:nth-child(4) { animation-delay: 0.25s; }
.tag-cloud-item:nth-child(5) { animation-delay: 0.3s; }
.tag-cloud-item:nth-child(6) { animation-delay: 0.35s; }
.tag-cloud-item:nth-child(7) { animation-delay: 0.4s; }
.tag-cloud-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アラートメッセージのスタイル調整 */
.alert {
  border-radius: 10px;
  border: none;
  padding: 20px;
  font-size: 16px;
}

.alert-info {
  background-color: #e7f3ff;
  color: #0c5460;
}

/* 戻るボタンのスタイル */
.btn-outline-primary {
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Search highlighting styles */
.search-highlighted {
  background: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107 !important;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5) !important;
}

.search-info {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 15px;
}

.search-info .btn {
  font-size: 12px;
  padding: 2px 8px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}