.flash-message {
  transition: opacity 0.3s ease-out;
}

.btn-unified {
  padding: 0.45rem 0.9rem;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  color: #2f2f2f;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-unified:hover {
  background-color: #efefef;
  border-color: #bbb;
}

.btn-unified:active {
  background-color: #e5e5e5;
}

/* サムネイル画像 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.default-thumbnail {
  width: 100%;
  height: 12rem; /* h-48 相当 */
  background-color: #f6f8fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6e7781;
  text-align: center;
  padding: 20px;
  font-weight: 500;
}

.tile-article {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.tile-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-article {
  transition: background-color 0.2s;
}

.list-article:hover {
  background-color: #f9fafb;
}


/* ダッシュボード: 画面サイズ警告 */
#screen-size-warning {
  display: none;
}

@media (max-width: 1023px) {
  #screen-size-warning {
    display: flex !important;
  }
  
  #dashboard-content {
    display: none !important;
  }
}

/* いいねボタン */
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

.like-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

.like-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
