@charset "UTF-8";

/* NEWS一覧ページ専用スタイル */

.page-title-container {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px; /* mainのpaddingがあるので調整 */
}

.page-title-container h1 {
  font-family: "Kiwi Maru", serif;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  text-decoration: underline;
  text-decoration-color: rgb(107, 107, 175);
  text-underline-offset: 6px;
}

.news-list-container {
  max-width: 800px; /* ニュースリスト全体の最大幅 */
  margin: 0 auto;
}

.news-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden; /* 画像の角丸を効かせるためなど */
  display: flex; /* 画像とテキストを横並びにする（モバイルでは縦積みに変更） */
  flex-direction: row;
}

.news-item-image {
  flex: 0 0 200px; /* 画像の幅を固定（モバイルでは調整） */
  max-height: 150px; /* 画像の高さを制限 */
  overflow: hidden;
}

.news-item-image a,
.news-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像がコンテナに合わせてトリミングされる */
}

.news-item-content {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 5px;
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.news-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: "Kiwi Maru", serif;
}

.news-title a {
  text-decoration: none;
  color: #3344dd; /* リンク色を少し調整 */
}

.news-title a:hover {
  text-decoration: underline;
  color: rgb(107, 107, 175);
}

.news-summary {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  font-family: "M PLUS Rounded 1c", sans-serif;
  flex-grow: 1; /* 残りのスペースを埋める */
}

main {
  margin-bottom: 50px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .page-title-container h1 {
    font-size: 28px;
  }

  .news-item {
    flex-direction: column; /* スマートフォンでは画像を上、テキストを下に */
  }

  .news-item-image {
    flex-basis: auto; /* 幅の固定を解除 */
    width: 100%;
    max-height: 200px; /* スマホでの画像高さを少し調整 */
  }

  .news-item-content {
    padding: 15px;
  }

  .news-title {
    font-size: 1.2em;
  }
}