.titles-by-category {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

.titles-by-category li {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6em 0.9em;
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.titles-by-category li:last-child {
  border-bottom: none;
}

.titles-by-category li::before {
  content: "📰";
  font-size: 1em;
  flex-shrink: 0;
}

.titles-by-category li > a,
.titles-by-category li > a:visited,
.titles-by-category li > a:hover,
.titles-by-category li > a:active,
.titles-by-category li > a:focus {
  color: #333;
  text-decoration: none !important;
  font-weight: normal;
  font-size: 13px;
  font-family: inherit;
  display: block;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.titles-by-category li > a:hover {
  background-color: #eef6ff;
  color: #007acc;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 0.4em 0.6em;
}



/* 📱 スマホ対応 */
@media screen and (max-width: 600px) {
  .titles-by-category li {
    padding: 0.5em 0.8em;
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
  }

  .titles-by-category a {
    white-space: normal;
  }

  .titles-by-category li::before {
    margin-bottom: 4px;
  }
}
