/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f7f9fb;
  color: #222;
  line-height: 1.7;
}

/* ========== Header ========== */
header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #2563eb;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.logo span {
  font-weight: 500;
  font-size: 1rem;
  color: #64748b;
}

/* ========== Container ========== */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ========== Headings ========== */
h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ========== Category Nav ========== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-nav a {
  text-decoration: none;
  color: #475569;
  background-color: #e2e8f0;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.category-nav a:hover {
  background-color: #2563eb;
  color: #fff;
}
.category-nav a.active {
  background-color: #2563eb;
  color: #fff;
  font-weight: 500;
}

/* ========== News List ========== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.news-item h2 {
  font-size: 1.1rem;
  color: #1e3a8a;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.news-item .meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn:hover {
  background-color: #1d4ed8;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 2rem 0 1rem;
}

/* ========== Animation ========== */
.fade-in {
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .container {
    padding: 0 0.5rem;
  }
  .news-item {
    padding: 0.8rem 1rem;
  }
  h1 {
    font-size: 1.1rem;
  }
}
