* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* サーチボックス */

.content_header {
  display: block;
}
.search-container {
  justify-content: start;
  margin-top: 20px;
}

.search-result {
  display: flex;
}

.search-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 記事グリッド */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(240px, 1fr));
  gap: 8px;
  margin-bottom: 30px;
}

.article-card {
  width: 100%;
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  width: 240px;
  height: 160px;
  object-fit: cover;
  display: flex;
  align-items: center;
}

.article-image img {
  width: 240px;
  height: 160px;
  border-radius: 5%;
  /* margin-left: 20px; */
}

.article-content {
  padding: 20px;
}

.article-date {
  color: #666;
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.article-excerpt {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.6;
}

.policy-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}
.policy-content h2,
.policy-content h3 {
  margin-top: 1.5em;
}

/* レスポンシブ */
@media (max-width: 1145px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 8px;
  }
  .articles-grid {
    grid-template-columns: repeat(1, minmax(240px, 1fr));
  }

  .article-card {
    width: 100%;
    display: block;
    background: white;
  }
  .article-image {
    margin: auto;
  }
}

/* カテゴリー別コンテンツの表示制御 */
.category-content {
  display: none;
}

.category-content.active {
  display: block;
}
