body {
  font-family: "BIZ UDPGothic", sans-serif;
padding-top: 80px; /* ヘッダー高さに合わせる */
  background-color: #000;
  color: #fff;
}

@media (max-width: 768px) {
  body {
    padding-top: 40px;
      background-color: #000;
  color: #fff;
  }
}

/* ===============================
   共通
=============================== */


#latest-news,
#news-list,
#news-detail {
  max-width: 980px;
  width: 100%;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: "BIZ UDPGothic", sans-serif;
  color: #fff;
}

h1 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 700;
}


/* ===============================
   TOP 最新ニュース（横並び固定）
=============================== */
.latest-news-item {
  display: flex;
  flex-wrap: nowrap;      /* ← 横並び固定 */
  gap: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;

/* ▼ ボックス復活 */
  background: #000;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);

  text-decoration: none;
  color: inherit;
}

.latest-news-item img {
  width: 160px;
  min-width: 120px;       /* ← スマホでも縦落ち防止 */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.latest-news-text p {
  font-size: 13px;
  color: #e5e5e5;
  margin-bottom: 6px;
}

.latest-news-text h3 {
  font-size: 18px;
  font-weight: bold;
}

/* スマホでも横並び維持 */
@media (max-width: 768px) {
  .latest-news-item {
    flex-wrap: nowrap;
  }

  .latest-news-item img {
    width: 120px;
  }
}



/* ===============================
   ニュース一覧
=============================== */
#news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#news-list li {
  margin-bottom: 20px;
  padding: 16px;
  background: #000;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  transition: .2s;
}

#news-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

#news-list a {
  display: block;
  text-decoration: none;
  color: #e5e5e5;
}

.news-date {
  color: #e5e5e5;
  font-size: 13px;
  margin-bottom: 6px;
}

.news-title {
  font-size: 19px;
  font-weight: bold;
}


/* ===============================
   記事詳細
=============================== */
#news-detail {
  background: #000;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  padding: 20px;
}

.detail-date {
  color: #e5e5e5;
  margin-bottom: 12px;
}

.detail-body {
  line-height: 1.8;
}

/* 画像対応（重要） */
#news-detail img {
  max-width: 100%;
  height: auto;
}


/* 戻るボタン */
.back-btn-wrap {
  margin-top: 40px;
  text-align: center;
}

.back-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #1f3134;
  color: #fff;
  text-decoration: none;
  transition: .2s;
}

.back-btn:hover {
  opacity: .8;
}


/* ===============================
   スマホ対応
=============================== */
@media screen and (max-width: 768px) {

  #latest-news,
  #news-list,
  #news-detail {
    margin: 24px auto;
    padding: 0 14px;
  }

  #latest-news {
    padding: 14px 14px 18px;
  }

  #latest-news a {
    font-size: 16px;
  }

  #news-list li {
    padding: 14px;
    margin-bottom: 14px;
  }

  .news-title {
    font-size: 16px;
    line-height: 1.5;
  }

  .news-date {
    font-size: 12px;
  }

  #news-detail {
    padding: 18px 14px;
  }

  .detail-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .back-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}


.latest-news-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.latest-news-item img {
  width: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.latest-news-text p {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.latest-news-text h3 {
  font-size: 18px;
  font-weight: bold;
}




.latest-news-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.latest-news-item img {
  width: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.latest-news-text p {
  font-size: 13px;
  color: #e5e5e5;
  margin-bottom: 6px;
}

.latest-news-text h3 {
  font-size: 18px;
  font-weight: bold;
}


/* 前後ナビ（左右配置） */
#prev-next {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 40px 0;
  gap: 0;
}

#prev-next a {
  width: 48%;
  padding: 16px 18px;
  border-radius: 12px;
  background: #333631;
  text-decoration: none;
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.5;
  transition: .25s;
}

#prev-next a:hover {
  background: #555;
  color: #fff;
}

/* 左：前の記事 */
.prev-btn {
  text-align: left;
}

/* 右：次の記事 */
.next-btn {
  text-align: right;
}

/* スマホでも左右を維持 */
@media (max-width: 768px) {
  #prev-next {
    flex-direction: row;
  }

  #prev-next a {
    width: 48%;
    font-size: 13px;
    padding: 14px 14px;
  }
}

.back-btn-wrap {
  margin-top: 40px;
  text-align: center;
}

.tapestry-regular {
  font-family: "Tapestry", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  padding:  20px 20px 0px;
  color: #fff;
}
