/* -------------------------------------------
 * お知らせ一覧 固有スタイル
 * ------------------------------------------- */
.bg_stage.is_company_top {
  position: absolute;
  top: -224px;
  right: -40px;
  left: auto;
  width: 1160px;
  pointer-events: none;
  z-index: 0;

  @media screen and (min-width: 1921px) {
    right: 9%;
    transform: translateX(0%) !important;
  }

  @media screen and (max-width: 1920px) {
    width: 60.41vw;
    top: -11.66vw;
    right: -2.08vw;
  }

  @media screen and (max-width: 1439px) {
    top: -10vw;
  }

  @media screen and (max-width: 1023px) {
    width: 80vw;
    top: 80vw;
    right: -5vw;
  }

  @media screen and (max-width: 767px) {
    width: 90vw;
    top: 12vw;
    right: -8vw;
  }

}

.p_newslist_header {
  padding-top: 27.6rem;
  padding-bottom: 4rem;
  max-width: 1200px;
  width: calc(100% - 8rem);
  margin: 0 auto;

  @media screen and (max-width: 1439px) {
    padding-top: 18rem;
    width: calc(100% - 8rem);
  }

  @media screen and (max-width: 1023px) {
    padding-top: 16rem;
  }

  @media screen and (max-width: 767px) {
    padding-top: 12rem;
    padding-bottom: 0rem;
    width: calc(100% - 4rem);
  }
}

.p_newslist_page_ttl {
  font-size: clamp(3.2rem, 3.333vw, 6.4rem);
  font-weight: bold;
  color: #2B2D33;
  margin-bottom: 14rem;
  line-height: 1.5;

  @media screen and (max-width: 1439px) {
    margin-bottom: 10rem;
    width: calc(100% - 8rem);
    margin-right: auto;
    margin-left: auto;
  }

  @media screen and (max-width: 1023px) {
    margin-bottom: 8rem;
  }

  @media screen and (max-width: 767px) {
    font-size: 2.8rem;
    width: 100%;
    margin-bottom: 4rem;
  }
}

.c_breadcrumb {
  padding-top: 0;
  padding-bottom: 0;

  @media screen and (max-width: 767px) {
    margin-bottom: 2rem;
  }
}

.p_newslist_box {
  background-color: #ffffff;
  border-radius: 10rem;
  padding: 16rem 4rem 12rem;
  max-width: 1600px;
  width: calc(100% - 16rem);
  margin: 0 auto 16rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;

  @media screen and (max-width: 1439px) {
    width: calc(100% - 8rem);
  }

}

.p_newslist_filter {
  display: flex;
  gap: 4.8rem;
  max-width: 1200px;
  margin: 0 auto 8rem;
}

.p_newslist_filter_item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.p_newslist_filter_label {
  font-size: 2rem;
  font-weight: bold;
  color: #2B2D33;
}

.p_newslist_select_wrap {
  position: relative;
  width: 200px;
}

.p_newslist_select_wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 9px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8.828' height='5.414' viewBox='0 0 8.828 5.414'%3E%3Cpath d='M9,12l3-3L9,6' transform='translate(13.414 -7.586) rotate(90)' fill='none' stroke='%231e40af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.p_newslist_select {
  appearance: none;
  width: 100%;
  padding: 1.2rem 2rem;
  border: 1px solid #C3CEDE;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 1.6rem;
  font-weight: 500;
  color: #2B2D33;
  cursor: pointer;
  transition: border-color 0.3s;
}

.p_newslist_select:focus {
  outline: none;
  border-color: #1E40AF;
}

/* --- お知らせアイテム一覧エリア --- */
.p_newslist_items {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- お知らせアイテム単体 --- */
.p_newslist_item {
  display: block;
  padding: 2.4rem 2rem;
  border-bottom: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
  text-decoration: none;
  color: #2B2D33;
  background-color: transparent;
  transition: all 0.3s ease;
}

.p_newslist_item:first-child {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-position: top left, bottom left;
  background-repeat: repeat-x, repeat-x;
}

.p_newslist_item:hover {
  background-color: #EAF2FF;
  opacity: 1;
}

.p_newslist_item_meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.p_newslist_item_meta time {
  font-size: 1.6rem;
  font-weight: 500;
  color: #1E40AF;
}

.p_newslist_item_cat {
  font-size: 1.4rem;
  font-weight: 500;
  color: #1E40AF;
  border: 1px solid #1E40AF;
  border-radius: 20px;
  padding: 0.2rem 1.6rem;
  background-color: #ffffff;
}

/* タイトル */
.p_newslist_item_ttl {
  font-size: 1.6rem;
  font-weight: 500;
  color: #2B2D33;
  line-height: 1.8;
  margin: 0;
  transition: all 0.3s ease;
}

.p_newslist_item:hover .p_newslist_item_ttl {
  color: #1E40AF;
  text-decoration: underline;
  text-decoration-color: #1E40AF;
  text-underline-offset: 4px;
}


/* --- ページネーション --- */
.p_newslist_pagination {
  margin-top: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.p_newslist_pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  color: #2B2D33;
  border: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* カレント */
.p_newslist_pagination .page-numbers.current {
  background-color: #EAF2FF;
  color: #2B2D33;
  border-color: transparent;
}

/* 全ボタン共通のホバー挙動 */
.p_newslist_pagination a.page-numbers:hover {
  background-color: transparent;
  color: #1E40AF;
  border-color: #1E40AF;
  opacity: 1;
}

/* 「戻る」「次へ」ボタン固有 */
.p_newslist_pagination .prev,
.p_newslist_pagination .next {
  width: auto;
  gap: 1.4rem;
}

.p_newslist_pagination .prev {
  padding: 1rem 2rem 1rem 1rem;
  margin-right: 3rem;
}

.p_newslist_pagination .next {
  padding: 1rem 1rem 1rem 2rem;
  margin-left: 3rem;
}

.p_newslist_pagination_txt {
  padding-bottom: 2px;
}


/* --- レスポンシブ --- */
@media screen and (max-width: 1023px) {
  .p_newslist_box {
    border-radius: 4.8rem;
    padding: 4.8rem 4rem;
    width: calc(100% - 4rem);
  }

  .p_newslist_filter_label {
    font-size: 1.6rem;
  }

  .p_newslist_select {
    font-size: 1.4rem;
  }

  .p_newslist_filter {
    gap: 2.4rem;
    margin-bottom: 4.8rem;
  }

  .p_newslist_filter_item {
    gap: 0.8rem;
  }
}

@media screen and (max-width: 767px) {
  .p_newslist_box {
    padding: 4.8rem 2rem 4rem;
    margin-bottom: 8rem;
  }

  .p_newslist_filter {
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 4.8rem;
  }

  .p_newslist_filter_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .p_newslist_select_wrap {
    width: 100%;
  }

  .p_newslist_item {
    padding: 2.4rem 0.5rem;
  }

  .p_newslist_pagination {
    margin-top: 4rem;
  }

  .p_newslist_pagination .page-numbers {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
  }

  .p_newslist_pagination .prev {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    margin-right: 1.5rem;
  }

  .p_newslist_pagination .next {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    margin-left: 1.5rem;
  }

  .p_newslist_pagination .prev,
  .p_newslist_pagination .next {
    width: auto;
  }
}