/* ===========================================
   ニュースページ専用スタイル
   =========================================== */

/* -------------------------------------------
   ページヘッダー（ニュース専用）
   ------------------------------------------- */
.page-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #010B2A 0%,
    #03045E 30%,
    #023E8A 62%,
    #0077B6 100%
  );
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--clr-white);
  padding-top: var(--header-h);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

.page-hero-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------
   メインレイアウト
   ------------------------------------------- */
.news-main {
  background: var(--clr-bg);
  padding: 48px 0 80px;
  min-height: 60vh;
}

/* -------------------------------------------
   フィルターバー
   ------------------------------------------- */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.news-updated {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

/* -------------------------------------------
   ニュースグリッド
   ------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* -------------------------------------------
   ニュースカード
   ------------------------------------------- */
.news-card {
  background: var(--clr-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 100, 180, 0.07);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 100, 180, 0.14);
  outline: 2px solid var(--clr-main);
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-source-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-white);
  background: var(--clr-main);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-date {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-left: auto;
  white-space: nowrap;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--clr-deep);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  color: var(--clr-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -------------------------------------------
   ローディング
   ------------------------------------------- */
.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 0;
  color: var(--clr-muted);
}

.news-loading-fish {
  font-size: 2.4rem;
  animation: fishBob 1.2s ease-in-out infinite;
}

@keyframes fishBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* -------------------------------------------
   エラー・空状態
   ------------------------------------------- */
.news-error {
  text-align: center;
  padding: 64px 0;
  color: var(--clr-muted);
}

.news-error-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
}

.news-error h2 {
  font-size: 1.1rem;
  color: var(--clr-deep);
  margin-bottom: 8px;
}

.news-error p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* -------------------------------------------
   注意書き
   ------------------------------------------- */
.news-notice {
  margin-top: 40px;
  padding: 14px 18px;
  background: rgba(0, 119, 182, 0.06);
  border-left: 3px solid var(--clr-main);
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

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

  .news-card {
    padding: 16px 18px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 220px;
  }
}
