@charset "UTF-8";

/* ============================================================
   新着情報・イベント一覧ページ
   body.news-list に対するページ固有スタイル
   ============================================================ */

.news-list main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  padding-top: 118px;
  padding-bottom: 150px;
  background: url('../img/lightblue-bg.jpg') center top / cover;
}

/* ----------------------------------------------------------
   ページタイトル
---------------------------------------------------------- */

.news-list .lower-page-title {
  display: flex;
  padding: 80px 0 70px;
  flex-direction: column;
  align-items: center;
}

.news-list .lower-page-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.news-list .lower-page-title-container img {
  width: 90px;
  height: 90px;
}

.news-list .lower-page-subtitle {
  color: #9e6a41;
  text-align: center;
  font-family: "Baloo Tamma 2", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0;
}

.news-list .lower-page-heading {
  color: #6f380b;
  text-align: center;
  font-family: "Potta One", sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0;
}

/* ----------------------------------------------------------
   メインセクション
---------------------------------------------------------- */

.nl-section {
  width: 100%;
}

.nl-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
}

/* ----------------------------------------------------------
   左カラム：ニュース一覧
---------------------------------------------------------- */

.nl-main-col {
  width: 680px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #fff;
  border-radius: 30px;
  padding: 60px 40px;
}

/* ニュースアイテムリスト */
.nl-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.nl-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nl-item-link:hover {
  opacity: 0.72;
}

/* カテゴリバッジ */
.nl-cat {
  flex: 0 0 calc(9em + 16px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  align-self: flex-start;
}


/* アイテム本文 */
.nl-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nl-item-date {
  display: block;
  color: #6f380b;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.nl-item-title {
  display: block;
  color: #6f380b;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   ページネーション
---------------------------------------------------------- */

/* ページネーション（PHP 用構造） */
#pn .d-flex {
  display: flex;
}

#pn .justify-content-center {
  justify-content: center;
}

#pn .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#pn .mt-3 {
  margin-top: 16px;
}

#pn .page-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #6f380b;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

#pn .page-link {
  color: #6f380b;
  text-decoration: underline;
  text-decoration-color: #6f380b;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 4px 8px;
  font: inherit;
}

#pn .page-link:hover {
  opacity: 0.72;
}

#pn .me-1 {
  margin-right: 4px;
}

/* 選択中のページ */
#pn .page-item.page-link {
  font-weight: bold;
  text-decoration: none;
  pointer-events: none;
  padding: 4px 8px;
}

/* ----------------------------------------------------------
   右カラム：サイドバー
---------------------------------------------------------- */

.nl-sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* サイドバーバナー */
.nl-sidebar-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 128px;
  overflow: hidden;
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  gap: 4px;
  transition: transform 0.2s ease;
}

.nl-sidebar-banner:hover {
  transform: translateY(-2px);
}

.nl-sidebar-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.nl-sidebar-banner-top {
  position: relative;
  z-index: 1;
}

.nl-sidebar-banner-top-img {
  display: block;
  height: 28px;
  width: auto;
}

.nl-sidebar-banner-bottom {
  position: relative;
  z-index: 1;
  font-size: 19px;
}

.nl-sidebar-banner--blue .nl-sidebar-banner-bottom {
  color: #4264bf;
}

.nl-sidebar-banner--red .nl-sidebar-banner-bottom {
  color: #e3633d;
}

.nl-sidebar-banner--yellow .nl-sidebar-banner-bottom {
  color: #7D7611;
}

.nl-sidebar-banner--green .nl-sidebar-banner-bottom {
  color: #498121;
}

/* サイドバーリンクボタン（ピル型） */
.nl-sidebar-btn {
  display: flex;
  width: 300px;
  height: 80px;
  align-items: center;
  justify-content: center;
  border: 1px solid #62a136;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(132, 198, 85, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nl-sidebar-btn .inner-box {
  display: flex;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 232px;
}

.nl-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px 0 rgba(132, 198, 85, 0.3);
}

.nl-sidebar-btn-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nl-sidebar-btn-text {
  color: #498121;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

/* ----------------------------------------------------------
   レスポンシブ
---------------------------------------------------------- */

@media (max-width: 900px) {
  .nl-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nl-main-col {
    width: 100%;
  }

  .nl-sidebar {
    flex: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #pn .pagination {
    gap: 4px;
  }

  #pn .page-item,
  #pn .page-link {
    font-size: 12px;
  }

  #pn .page-link {
    padding: 4px 2px;
    white-space: nowrap;
  }

  #pn .page-item.page-link {
    padding: 4px 2px;
    white-space: nowrap;
  }

  #pn .me-1 {
    margin-right: 1px;
  }
  .news-list .lower-page-heading {
    font-size: 32px;
  }

  .news-list .lower-page-subtitle {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.6px;
  }

  .nl-main-col {
    padding: 36px 20px;
  }

  .nl-item-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nl-cat {
    flex: 0 0 auto;
    width: calc(9em + 16px);
  }

  .nl-sidebar-banner {
    width: min(320px, 100%);
  }
}
