:root {
  --main-bg: #fff;
  --main-text: #222;
  --accent: #2068d9;
  --border: #e3e8ee;
  --radius: 18px;
  --news-bg: #f8fafc;
}

.news-page {
  max-width: 760px;
  margin: 44px auto 64px auto;
  padding: 0 16px;
  background: var(--news-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(40,60,80,0.05);
}

.news-page h1 {
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
  margin: 32px 0 26px 0;
  letter-spacing: 0.04em;
}

.news-category-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.news-cat-btn {
  padding: 7px 20px;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--main-text);
  font-size: clamp(0.88rem, 3vw, 1.05rem); /* ←ここ変更 */
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  outline: none;
}


.news-cat-btn.active,
.news-cat-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.news-article {
  margin-bottom: 28px;
  padding: 22px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1.2px solid var(--border);
  box-shadow: 0 2px 12px rgba(80, 100, 150, 0.05);
}

.news-article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.99rem;
  color: #5978b3;
}

.news-category {
  font-weight: 600;
}

.news-date {
  font-size: 0.97rem;
  color: #b6b6b6;
}

.news-title {
  margin: 0 0 7px 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.news-content {
  font-size: 1.01rem;
  color: #222;
}

.back-to-home-link {
  display: inline-block;
  margin-top: 34px;
  padding: 10px 32px;
  border-radius: 25px;
  background: #fff;
  color: #232323;
  text-decoration: none;
  border: 1.5px solid #e3e8ee;
  font-weight: 600;
  font-size: 1.03rem;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.back-to-home-link:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .news-page {
    margin: 22px 0 44px 0;
    padding: 0 5vw;
    border-radius: 0;
  }

  .news-article {
    padding: 15px 7vw;
    border-radius: 11px;
  }

  .back-to-home-link {
    padding: 10px 16vw;
    font-size: 1.08rem;
  }
  .news-category-buttons {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .news-cat-btn {
    flex-shrink: 0;
  }
}
@media (max-width: 420px) {
  .news-cat-btn {
    font-size: 0.9rem;
    padding: 6px 14px;
  }
}
