/*
 * viewHistory.css
 * 閲覧履歴一覧ページ用
 */
.view-history-page {
  margin-bottom: 30px;
}

.view-history-lead {
  margin: 0 0 15px;
  line-height: 1.8;
}

.view-history-actions {
  margin: 0 0 15px;
  text-align: right;
}

.view-history-clear-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.view-history-clear-btn:hover {
  opacity: 0.8;
}

.view-history-list {
  display: grid;
  gap: 12px;
}

.view-history-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.view-history-item__link {
  display: flex;
  gap: 12px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.view-history-item__image-wrap {
  flex: 0 0 120px;
  width: 120px;
}

.view-history-item__image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

.view-history-item__body {
  min-width: 0;
}

.view-history-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
}

.view-history-item__date,
.view-history-item__place,
.view-history-item__viewed {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.5;
}

.view-history-empty {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

@media screen and (max-width: 600px) {
  .view-history-actions {
    text-align: left;
  }

  .view-history-item__link {
    gap: 10px;
    padding: 10px;
  }

  .view-history-item__image-wrap {
    flex-basis: 92px;
    width: 92px;
  }

  .view-history-item__image {
    width: 92px;
    height: 68px;
  }

  .view-history-item__title {
    font-size: 15px;
  }
}
