/* ============================================
   Street Kingdom News Page CSS
   apps/fixed-html/news.css を WordPress テーマ用に移植
   ============================================ */

/* Newsページ専用のbodyスタイル（body.news-pageに適用） */
body.news-page {
  overflow: hidden;
  height: 100vh;
}

/* 背景レイヤー */
.bg-news {
  background-image: url('../images/news/bg-img-news.webp');
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Newsコンテナ（スクロール可能） */
.news-container {
  height: 100vh;
  overflow-y: auto;
  padding: 2rem 2rem 4rem;
  background-color: rgba(255, 255, 255, 0.9);
  max-width: 1200px;
  margin: 0 auto;
}

/* Newsページ専用 BACK ボタン */
.news-page .news-back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  margin-top: 16px;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-franklin);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 215, 0, 0.9);
  text-decoration: none;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.news-page .news-back-button:hover,
.news-page .news-back-button:focus-visible {
  background-color: rgba(255, 215, 0, 0.9);
  color: #000000;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.news-page .news-back-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .news-page .news-back-button {
    top: 1rem;
    left: 1rem;
  }
}

.news-container ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

/* 投稿カード */
.post {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
}

/* 投稿ヘッダー（日付とタイトル） */
.post-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.post-header h2 {
  margin: 0;
}

/* 日付スタイル */
.date {
  font-family: var(--font-franklin);
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 1.65px;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  flex-shrink: 0;
}

.date-year {
  padding: 0;
  margin: 0;
}

.date-monthday {
  padding: 0;
  margin: 0;
}

/* タイトルスタイル */
.post-title {
  font-family: var(--font-franklin);
  font-size: 2.5rem;
  letter-spacing: 0.15px;
  color: #FFFFFF;
  background-color: #000000;
  padding: 0.2rem 2rem 0.2rem 0.5rem;
  line-height: 1.2;
  display: inline-block;
  margin: 0;
}

/* 投稿画像 */
.post img {
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

/* 投稿本文 */
.post-content {
  font-family: var(--font-mincho);
  font-size: 1rem;
  line-height: 1.8;
  color: #000000;
  margin-top: 1rem;
}

.post-content p {
  margin-bottom: 1rem;
  color: #000000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-page .news-back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .news-container {
    padding: 6rem 1rem 2rem;
  }

  .post {
    padding: 1.5rem;
  }

  .post-header {
    flex-direction: column;
    gap: 1rem;
  }

  .date {
    font-size: 1.2rem;
  }

  .post-title {
    font-size: 1.5rem;
    padding: 0.2rem 1rem 0.2rem 0.5rem;
  }
}