/* ============================================
   NEWS PAGE STYLES (Original Sidebar Layout)
   ============================================ */

.news-hero {
  position: relative;
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #FAF7F2 0%, #F2EBDB 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../image/hero.png') no-repeat center / cover;
  opacity: 0.15;
  z-index: 0;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 252, 247, 0.15), rgba(242, 235, 219, 0.40));
  z-index: 1;
}

.news-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.news-hero-title {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: clamp(48px, 5.2vw, 64px);
  font-weight: 600;
  color: var(--color-navy, #001f3f);
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin: 0 0 18px;
}

.news-hero-underline {
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto 16px;
  background: var(--color-gold, #c5a059);
}

.news-hero-sub {
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy, #001f3f);
  letter-spacing: 0.12em;
  margin: 0;
}

.news-page {
    padding-top: 0;
    padding-bottom: 100px;
    background-color: var(--color-bg-base, #FAF7F2);
}

.news-page-inner {
    padding-top: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout Structure */
.news-page-inner {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.news-archive {
    flex: 1;
    min-width: 0;
}

/* Left Sidebar (Navigation) */
.side-nav {
    width: 240px;
    flex-shrink: 0;
    background-color: #f5f1e9; /* Screenshot's light beige */
    padding: 30px 20px;
    border-radius: 4px;
    align-self: flex-start;
}

.side-nav-head {
    margin-bottom: 25px;
}

.side-nav-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.side-nav-sub {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-nav-item:last-child {
    border-bottom: none;
}

.side-nav-item img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.side-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.side-nav-item:hover {
    color: var(--color-navy, #001f3f);
    opacity: 0.7;
}

/* Category Filter (Top Buttons) */
.cat-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.cat-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 5px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-btn:hover, .cat-btn.is-active {
    background: var(--color-navy, #001f3f);
    color: #fff;
    border-color: var(--color-navy, #001f3f);
}

/* Feature News (Hero Card) */
.feature-news {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    margin-bottom: 60px;
    min-height: 380px;
}

.feature-news-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.feature-news-image {
    width: 50%;
}

.feature-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-news-label {
    display: inline-block;
    padding: 4px 12px;
    background: #0f2a44;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
    align-self: flex-start;
}

.feature-news-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: #333;
}

.feature-news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: auto;
}

.feature-news-meta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-news-date {
    font-size: 14px;
    color: #999;
}

.feature-news-link {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
}

.feature-news-link img {
    width: 16px;
    height: 16px;
}

/* News List Row (Horizontal List) */
.news-list-row {
    display: flex;
    gap: 30px;
}

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

.news-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-list-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

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

.news-list-item {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.post-card-inner {
    display: flex;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.news-list-item-thumb {
    width: 240px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-item-body {
    flex: 1;
}

.news-list-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-list-item-date {
    font-size: 14px;
    color: #999;
}

.news-list-item-cat {
    font-size: 11px;
    padding: 2px 10px;
    background: #f0f0f0;
    border-radius: 2px;
    color: #666;
}

.news-list-item-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-list-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Side Info (Right) */
.side-info {
    width: 300px;
    flex-shrink: 0;
}

.side-info-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

.info-card {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.info-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-card-link {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 16px;
    height: 16px;
}

.promo-card {
    background: #0f2a44;
    color: #fff;
    padding: 30px;
    margin-top: 30px;
    border-radius: 4px;
}

.promo-card-label {
    font-size: 11px;
    color: #c5a059;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-card-title {
    font-size: 18px;
    margin: 0 0 15px;
}

.promo-card-desc {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;
}

.promo-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #0f2a44;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* アスペクト比4:3のバナーカード */
.side-banner-ratio-card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--color-border-soft, #e8e4db);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-banner-ratio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 42, 68, 0.15);
}

/* 背景画像があるバナーのオーバーレイ（文字を読みやすくする） */
.side-banner-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 42, 68, 0.75) 0%, rgba(15, 42, 68, 0.15) 100%);
  z-index: 1;
}

/* バナーのインナー配置 */
.side-banner-inner {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  height: 100%;
  box-sizing: border-box;
}

/* タイトルスタイル */
.side-banner-title {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-navy, #0F2A44);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

/* 背景画像があるカードの文字色は白 */
.side-banner-has-bg .side-banner-title {
  color: #fff;
}

/* 右下の矢印アイコン */
.side-banner-arrow {
  align-self: flex-end;
  font-size: 26px;
  color: var(--color-gold, #C99A47);
  transition: transform 0.25s ease;
}

.side-banner-ratio-card:hover .side-banner-arrow {
  transform: translateX(4px);
}

/* 背景画像が無い場合のデフォルトカラースタイル */
/* 1. 重要なお知らせ（警告マーク付き） */
.side-banner-notice {
  background-color: var(--color-bg-section-soft, #F2E8D5);
  border-color: rgba(201, 154, 71, 0.3);
}
.side-banner-notice .side-banner-inner {
  justify-content: space-between; /* 警告マークとタイトルを上下に分散 */
}
.side-banner-notice .side-banner-icon {
  font-size: 32px;
  color: var(--color-navy, #0F2A44);
}

/* 2. 協賛広告デフォルト（画像が無い場合） */
.side-banner-cream {
  background-color: #FAF7F2;
}

/* 3. 活動維持費デフォルト（画像が無い場合） */
.side-banner-green {
  background-color: #e2ede5;
}

/* 4. 同期会デフォルト（画像が無い場合） */
.side-banner-wide {
  background-color: #ffffff;
}


/* Responsive */
@media (max-width: 1024px) {
    .news-page-inner, .news-list-row {
        flex-direction: column;
    }
    .side-nav, .side-info {
        width: 100%;
    }
    .feature-news {
        flex-direction: column-reverse;
    }
    .feature-news-image {
        width: 100%;
    }
    .news-list-item-thumb {
        width: 120px;
        height: 80px;
    }
}
