/* ========================================
   p-news-body layout (sidebar + sections)
   ======================================== */

/* l-container の overflow:hidden をこのページのみ解除 */
.l-container {
  overflow: visible;
}

/* サイドバー + コンテンツを横並びにする共通ラッパー */
main .p-news-body,
.p-news-body {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  width: 100%;
}

/* サイドバー：sticky で追従 */
.p-news-body > .l-side-menu {
  overflow: visible;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -ms-flex-item-align: stretch;
  align-self: stretch;
  /* 右上を斜めにカット */
  -webkit-clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 80px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 80px, 100% 100%, 0 100%);
}

.p-news-body > .l-side-menu .l-side-menu__wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 140px;
}

/* コンテンツ側 */
.p-news-sections {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

@media print, screen and (width >= 768px) {
  /* c-section--primaryのflexを無効化 */
  .p-news-sections .c-section--primary {
    display: block;
  }

  /* l-decorationに元のl-wrapperと同等のmax-widthを設定 */
  .p-news-sections .l-decoration {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* SP：縦並びに戻す */
@media screen and (width < 768px) {
  .p-news-body {
    display: block;
  }
}

/* ========================================
   Sidebar year filter
   ======================================== */
.l-side-menu__year {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.l-side-menu__year-item {
  display: inline-block;
  position: relative;
  font-weight: 400;
  margin-bottom: 20px;
  padding-left: 28px;
  font-size: 0.18rem;
  line-height: 1.3888888889;
}

.l-side-menu__year-item::before,
.l-side-menu__year-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  transition: opacity 0.3s;
}

.l-side-menu__year-item::before {
  border-radius: 50%;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.24);
}

.l-side-menu__year-item::after {
  width: 14px;
  height: 14px;
  opacity: 0;
  background: url("../img/common/circle_icn_01.svg") center/100% auto no-repeat;
  /* fallback inline circle for demo */
  border-radius: 50%;
  background-color: #fff;
  width: 12px;
  height: 12px;
}

.l-side-menu__year-item--active {
  font-weight: 700;
}

.l-side-menu__year-item--active .l-side-menu__year-link {
  color: #fff;
}

.l-side-menu__year-item--active::before {
  opacity: 0;
}

.l-side-menu__year-item--active::after {
  opacity: 1;
}

.l-side-menu__year-link {
  display: inline-block;
  transition: color 0.3s;
  color: #c8c8c8;
  text-decoration: none;
  cursor: pointer;
}

.l-side-menu__year-link:hover {
  color: #fff;
}

/* ========================================
   Topic section
   ======================================== */
.p-section-news-topic {
  position: relative;
}

@media print, screen and (width >= 768px) {
  .p-section-news-topic {
    padding: 71px 0 88px;
  }

  .p-section-news-topic .l-wrapper {
    max-width: 1095px;
    margin-left: calc(100% - 70.8vw);
  }

  .p-section-news-topic .c-heading--primary {
    margin-left: 54px;
  }

  .p-section-news-topic .p-section-news__content {
    position: relative;
  }

  .p-section-news-topic .p-section-news__content::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -60px;
    right: -15px;
    width: 119px;
    height: 98px;
    background: url("../img/common/decoration_contact_01.svg") center/100% auto no-repeat;
  }
}

@media screen and (width < 768px) {
  .p-section-news-topic {
    padding: 1.28rem 0 1.1rem;
  }

  .p-section-news-topic .c-heading--primary {
    margin-bottom: 0.22rem;
  }
}

/* ========================================
   Three-dot decoration heading
   ======================================== */
.c-dot-heading {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.c-dot-heading__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.c-dot-heading__dot--red  { background: #d71e1e; }
.c-dot-heading__dot--blue { background: #3d87de; }
.c-dot-heading__dot--dark { background: #181818; }

/* ========================================
   Topic filter buttons
   ======================================== */
.p-news-topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: flex-end;
}

@media screen and (width < 768px) {
  .p-news-topic-filter {
    justify-content: flex-start;
    margin-bottom: 0.3rem;
  }
}

.p-news-topic-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1.5px solid #c8c8c8;
  border-radius: 2px;
  background: #fff;
  color: #181818;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.p-news-topic-filter__btn:hover,
.p-news-topic-filter__btn.is-active {
  background: #3d87de;
  color: #fff;
  border-color: #3d87de;
}

/* category colours */
.p-news-topic-filter__btn[data-filter="construction"].is-active { background: #002279; border-color: #002279; }
.p-news-topic-filter__btn[data-filter="volunteer"].is-active    { background: #3d87de; border-color: #3d87de; }
.p-news-topic-filter__btn[data-filter="other"].is-active        { background: #d71e1e; border-color: #d71e1e; }

/* ========================================
   Topic card grid
   ======================================== */
.p-news-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

@media screen and (width < 768px) {
  .p-news-topic-grid {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.p-news-topic-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: #181818;
  transition: opacity 0.2s;
  background: #fff;
  padding: 14px;
}

.p-news-topic-card:hover {
  opacity: 0.75;
}

.p-news-topic-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-news-topic-card__date {
  font-size: 12px;
  color: #8e8e8e;
  letter-spacing: 0.05em;
}

.p-news-topic-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

.p-news-topic-card__tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 2px;
  white-space: nowrap;
  align-self: flex-start;
}

.p-news-topic-card__tag--construction { background: #002279; }
.p-news-topic-card__tag--volunteer    { background: #3d87de; }
.p-news-topic-card__tag--other        { background: #d71e1e; }

.p-news-topic-card__thumb {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  background: #e0e0e0;
}

.p-news-topic-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hidden card when filtered */
.p-news-topic-card.is-hidden {
  display: none;
}

/* ========================================
   Pagination
   ======================================== */
.p-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

@media screen and (width < 768px) {
  .p-pagination {
    margin-top: 0.5rem;
    gap: 0.1rem;
  }
}

.p-pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #c8c8c8;
  font-size: 13px;
  color: #181818;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}

.p-pagination__item:hover {
  border-color: #3d87de;
  color: #3d87de;
}

.p-pagination__item.is-active {
  background: #3d87de;
  border-color: #3d87de;
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.p-pagination__dots {
  color: #8e8e8e;
  font-size: 13px;
  letter-spacing: 2px;
}

/* ========================================
   お知らせ section
   ======================================== */
.p-section-news-notice {
  position: relative;
  background-color: #efefef;
}

@media print, screen and (width >= 768px) {
  .p-section-news-notice {
    padding-top: 115px;
    padding-bottom: 57px;
  }

  .p-section-news-notice .c-heading--primary {
    margin-left: 54px;
  }
}

@media screen and (width < 768px) {
  .p-section-news-notice {
    padding: 0.6rem 0 1.07rem;
  }

  .p-section-news-notice .c-heading--primary {
    margin-bottom: 0.06rem;
  }
}

/* ========================================
   Notice list
   ======================================== */
.p-news-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-news-notice-item {
  border-top: 1px solid #c8c8c8;
}

.p-news-notice-item:last-child {
  border-bottom: 1px solid #c8c8c8;
}

.p-news-notice-item.is-hidden {
  display: none;
}

.p-news-notice-item__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 8px;
  text-decoration: none;
  color: #181818;
  transition: opacity 0.2s;
}

.p-news-notice-item__link:hover {
  opacity: 0.7;
}

.p-news-notice-item__date {
  flex-shrink: 0;
  font-size: 13px;
  color: #8e8e8e;
  letter-spacing: 0.05em;
  min-width: 80px;
}

.p-news-notice-item__title {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.p-news-notice-item__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d71e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #d71e1e;
}

/* Arrow shape inside the circle */
.p-news-notice-item__arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 1.5px;
  background: #d71e1e;
  position: relative;
}

.p-news-notice-item__arrow::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #d71e1e;
  border-right: 1.5px solid #d71e1e;
  transform: rotate(45deg);
}

/*# sourceMappingURL=news.css.map */