@charset "UTF-8";
/**
 * お知らせ機能 - CSS
 * 既存デザインに統一したスタイル
 */

/* ===================================
   お知らせセクション（TOPページ）
   =================================== */

.topNews {
  padding: 8rem 0;
}

.topNews .wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* お知らせ一覧 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 4rem 0 0 0;
}

.news-item {
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: var(--color-base);
}

.news-item a {
  display: flex;
  align-items: center;
  padding: 2rem 0;
  text-decoration: none;
  color: #000;
  transition: opacity 0.3s ease;
}

.news-item a:hover {
  opacity: 0.7;
}

.news-date {
  font-size: 1.4rem;
  color: #666;
  min-width: 120px;
  margin-right: 2rem;
  font-family: 'Lato', sans-serif;
}

.news-title {
  font-size: 1.6rem;
  color: #000;
  font-weight: 500;
  flex: 1;
}

/* 読み込み中・エラー・空表示 */
.news-loading,
.news-error,
.news-empty {
  text-align: center;
  padding: 4rem 0;
  color: #666;
  font-size: 1.6rem;
}

.news-error {
  color: #c00;
}

/* ===================================
   詳細ページ
   =================================== */

.news-detail-page {
  padding: 18rem 0 8rem;
  min-height: 60vh;
}

.news-detail-page .wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 詳細コンテンツ */
.news-detail-content {
  width: auto !important;
  background-color: #fff;
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-detail-date {
  font-size: 1.3rem;
  color: #999;
  margin-bottom: 3rem;
  margin-top: 1rem;
  text-align: right;
  font-family: 'Lato', sans-serif;
}

.news-detail-title {
  font-size: 2.8rem;
  color: var(--color-main);
  font-weight: bold;
  margin-bottom: 0;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--color-sub);
  line-height: 1.5;
}

.news-detail-body {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 4rem;
}

/* 一覧に戻るリンク */
.back-link-wrapper {
  text-align: center;
  margin-top: 4rem;
}

.back-link {
  display: inline-block;
  padding: 1.2rem 4rem;
  font-size: 1.6rem;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-link:hover {
  background-color: var(--color-main);
  color: #fff;
}

/* エラー表示 */
.news-detail-error {
  text-align: center;
  padding: 6rem 2rem;
}

.news-detail-error p {
  font-size: 1.6rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ===================================
   レスポンシブ対応
   =================================== */

/* タブレット */
@media screen and (max-width: 768px) {
  .topNews {
    padding: 6rem 0;
  }

  .news-list {
    margin: 3rem 0 0 0;
  }

  .news-item a {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }

  .news-date {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
  }

  .news-title {
    font-size: 1.5rem;
  }

  /* 詳細ページ */
  .news-detail-page {
    padding: 14rem 0 6rem;
  }

  .news-detail-content {
    padding: 3rem 2rem;
  }

  .news-detail-date {
    font-size: 1.2rem;
    margin-top: 0.8rem;
    margin-bottom: 2.5rem;
  }

  .news-detail-title {
    font-size: 2.4rem;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
  }

  .news-detail-body {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }

  .back-link {
    padding: 1rem 3rem;
    font-size: 1.5rem;
  }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .topNews {
    padding: 4rem 0;
  }

  .topNews .wrapper {
    padding: 0 1.5rem;
  }

  .news-list {
    margin: 2rem 0 0 0;
  }

  .news-item a {
    padding: 1.2rem 0.5rem;
  }

  .news-date {
    font-size: 1.2rem;
  }

  .news-title {
    font-size: 1.4rem;
  }

  /* 詳細ページ */
  .news-detail-page {
    padding: 12rem 0 4rem;
  }

  .news-detail-page .wrapper {
    padding: 0 1.5rem;
  }

  .news-detail-content {
    padding: 2rem 1.5rem;
  }

  .news-detail-date {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }

  .news-detail-title {
    font-size: 2rem;
    margin-bottom: 0;
    padding-bottom: 1rem;
  }

  .news-detail-body {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .back-link-wrapper {
    margin-top: 3rem;
  }

  .back-link {
    padding: 0.8rem 2.5rem;
    font-size: 1.4rem;
  }
}
