/* 全体レイアウト */
.archive-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

/* 検索バー */
.search-section {
  text-align: center;
  margin-bottom: 100px;
}

.search-form {
  display: flex;
  justify-content: center;
}

.search-input {
  width: 60%;
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  background-color: var(--base-white);
}

.search-button {
  padding: 12px 20px;
  background-color: var(--base-black);
  color: var(--base-white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: var(--base-gray);
}

/* 記事一覧 */
.archive-title {
  text-align: center;
  font-size: 28px;
  color: var(--base-black);
  margin-bottom: 100px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  gap: 1rem;
  padding:0 5rem;
}

.post-item {
  background-color: var(--base-white);
  overflow: hidden;
  transition: box-shadow 0.3s;
  max-width: 100%;
  padding: 1rem 2rem;
  border-radius: 1rem;
}

.post-item a {
  text-decoration: none;
  color: var(--base-black);
}

.post-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: .7;
}


.post-thumbnail img {
  width: 100%;
  height: 10rem;
  object-fit: cover
}

.post-title {
  font-size: 20px;
  color: var(--base-black);
}
.post-date {
  color: gray;
}

.post-title:hover {
  text-decoration: underline;
}
.post-excerpt {
  color: var(--base-gray);
}

.thumb.no-image {
  width: 100%;
  height: 10rem;
}
