/* =============================================
   news-page.css — お知らせページ固有スタイル
   デザイントークンは css/variables.css から継承
   ============================================= */


/* ===== ベース ===== */

body {
  background-color: var(--color-bg-warm);
  color: var(--color-text);
}


/* ===== セクション共通：左右padding ===== */

.page-header,
.news-list {
  padding-left: max(60px, calc((100vw - 1400px) / 2));
  padding-right: max(60px, calc((100vw - 1400px) / 2));
  box-sizing: border-box;
}

@media (max-width: 1400px) {
  .page-header,
  .news-list {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 1024px) {
  .page-header,
  .news-list {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 600px) {
  .page-header,
  .news-list {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* ===== ページヘッダー ===== */

.page-header {
  padding-top: 36px;
  padding-bottom: 36px;
  background-color: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border);
}

.page-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.page-header__title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.page-header__en {
  font-family: var(--font-family-en);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}


/* ===== お知らせ一覧 ===== */

.news-list {
  padding-top: 32px;
  padding-bottom: 32px;
  background: transparent;
}

.news-list__inner {
  /* サイドバーレイアウト時はmax-widthをnews-layout__innerで制御 */
}


/* ===== 2カラムレイアウト ===== */

.news-layout__inner {
  display: block;
}

.news-main {
  width: 100%;
}

@media (min-width: 601px) {
  .news-layout__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  .news-main {
    flex: 0 0 65%;
    min-width: 0;
  }

  .article-sidebar {
    flex: 0 0 calc(35% - 40px);
    position: sticky;
    top: 40px;
  }
}

@media (min-width: 1025px) {
  .news-layout__inner {
    gap: 80px;
  }

  .article-sidebar {
    flex: 0 0 calc(35% - 80px);
  }
}

/* モバイル：サイドバーを下に配置 */
@media (max-width: 600px) {
  .article-sidebar {
    margin-top: 48px;
    width: 100%;
  }
}


/* ===== サイドバーウィジェット ===== */

.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget__title {
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(196, 106, 60, 1);
}

.sidebar-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget__link {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #e8e4de;
  text-decoration: none;
  color: #333;
  font-family: var(--font-family-base);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-widget__link:hover {
  color: rgba(196, 106, 60, 1);
  padding-left: 6px;
}

@media (min-width: 601px) {
  .news-list {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (min-width: 1025px) {
  .news-list {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}


/* ===== カテゴリフィルター ===== */

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.news-filter__btn {
  padding: 8px 20px;
  border: 1px solid #c4c0b8;
  background: transparent;
  border-radius: 2px;
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-filter__btn.is-active {
  background: rgba(196, 106, 60, 1);
  color: #fff;
  border-color: rgba(196, 106, 60, 1);
}


/* ===== 記事リスト ===== */

.news-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  border-bottom: 1px solid #e8e4de;
}

.news-item:first-child {
  border-top: 1px solid #e8e4de;
}

.news-item__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.news-item__link:hover {
  background: rgba(196, 106, 60, 0.05);
}

.news-item__date {
  font-family: var(--font-family-en);
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  min-width: 90px;
}

.news-item__tag {
  display: inline-block;
  font-family: var(--font-family-base);
  font-size: 12px;
  padding: 3px 10px;
  min-width: 70px;
  text-align: center;
  background: rgba(196, 106, 60, 0.12);
  color: rgba(196, 106, 60, 1);
  border-radius: 2px;
  white-space: nowrap;
}

.news-item__title {
  flex: 1;
  font-family: var(--font-family-base);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.news-item__arrow {
  color: #c4c0b8;
  font-size: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

/* モバイル（600px以下）：日付+タグを1行目、タイトルを2行目 */
@media (max-width: 600px) {
  .news-item__link {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .news-item__title {
    width: 100%;
    flex: none;
  }

  .news-item__arrow {
    display: none;
  }
}


/* ===== ページネーション ===== */

.news-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.news-pagination__btn {
  padding: 8px 20px;
  border: 1px solid #c4c0b8;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-text);
  transition: background 0.2s;
}

.news-pagination__btn.is-disabled {
  opacity: 0.3;
  cursor: default;
}

.news-pagination__current {
  font-family: var(--font-family-en);
  font-size: 14px;
  color: #888;
}

.page-header__archive-date {
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  margin-top: 8px;
  color: var(--color-text);
}
