/* ------------------------------
お知らせフィルター
------------------------------ */
.newsindex-filter {
  display: flex;
  flex-direction: column;
  grid-gap: 16px;
  text-align: left;
  width: 240px;
  flex: 0 0 auto;
  position: -webkit-sticky;
  position: sticky;
  top: 104px;
}

.filter-box {
  padding: 24px;
  background-color: var(--c-background-1, #FFF);
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  border: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
}

.filter-box p {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  margin-bottom: 16px;
}

.filterーradio-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------------------------------
ニュース一覧
------------------------------ */
section.newsindex-wrap {
  padding: 24px 40px 40px 40px;
  background-color: var(--c-background-1, #FFF);
  text-align: center;
}

.newsindex {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  grid-gap: 40px;
}

.newsindex-list-container {
  width: 100%;
  word-break: break-word;
}

.newsindex-list {
  display: flex;
  box-sizing: border-box;
  grid-gap: 24px;
  border-bottom: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  margin-top: 24px;
}

.newsindex-list img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 0 24px 0;
  width: 184px;
  height: 112px;
}

.newsindex-list-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  margin: 0 0 24px 0;
  text-align: left;
}

.newsindex-info {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.newsindex-list-date {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  width: 112px;
}

.newsindex-list-badge {
  background-color: var(--c-brand-primary, #1850BF);
  color: var(--c-text-5, #FFF);
  font-size: var(--font-12, 12px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  width: fit-content;
  height: 22px;
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
}

/* クリックできる箇所と分かるようリンク色＋下線にする */
.newsindex-list-title {
  color: var(--c-brand-primary, #1850BF);
  text-decoration: underline;
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.newsindex-list:hover .newsindex-list-title {
  color: var(--c-brand-primary-light, #226BF2);
}

.newsindex-list-text {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ------------------------------
ニュース詳細
------------------------------ */
.newsdetail-info {
  display: flex;
  flex-direction: column;
}

.newsdetail-info::after {
  content: "";
  border-bottom: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  margin: 24px 0;
}

.newsdetail-badge {
  background-color: var(--c-brand-primary, #1850BF);
  color: var(--c-text-5, #FFF);
  font-size: var(--font-12, 12px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  text-align: center;
  width: fit-content;
  height: 22px;
  margin-bottom: 16px;
  padding-left: 5px;
  padding-right: 5px;
}


.newsdetail-date {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
}

/* ------------------------------
お知らせ内容装飾
------------------------------ */
.newsdetail-text h2 {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-20, 20px);
  line-height: var(--lineheight-20, 28px);
  font-weight: var(--weight-B, 600);
  margin: 40px 0 16px 0;
}

.newsdetail-text h3 {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-16, 16px);
  line-height: var(--lineheight-16, 24px);
  font-weight: var(--weight-B, 600);
  margin: 32px 0 16px 0;
}

.newsdetail-text p {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
  margin: 0 0 16px 0;
}

.newsdetail-text blockquote {
  background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
  border-radius: var(--border-radius-4, 4px);
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
  margin: 0 0 16px 0;
  padding: 16px;
}

.newsdetail-text a {
  color: var(--c-brand-primary-light, #226BF2);
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
}

.newsdetail-text ul {
  padding: 0 0 0 24px;
  margin: 0 0 16px 0;
}

.newsdetail-text li {
  list-style: inherit;
}

.newsdetail-text img {
  width: 100%;
  height: auto;
  margin: 0 0 16px 0;
}

.newsdetail-text img.ogimage {
  width: 100%;
  height: auto;
  margin: 0 0 40px 0;
}

/* ------------------------------
関連記事
------------------------------ */

.related-news-date {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
  width: auto;
}

.related-news-badge {
  background-color: var(--c-brand-primary, #1850BF);
  color: var(--c-text-5, #FFF);
  font-size: var(--font-10, 10px);
  line-height: var(--lineheight-10, 16px);
  font-weight: var(--weight-B, 600);
  width: fit-content;
  height: 16px;
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
}

.related-news-title {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 288px;
  word-break: break-word;
}

/* ---------------- デスクトップ-Lサイズ（基本はstyle.cssに記述） ----------------- */
@media only screen and (min-width: 1080px) {}

/* --------------------------　デスクトップ-Mサイズ -------------------------- */
@media only screen and (min-width: 744px) and (max-width: 1079px) {

  /* ------------------------------
  お知らせフィルター
  ------------------------------ */
  .newsindex-filter {
    grid-gap: 12px;
    width: 220px;
    top: 72px;
  }

  .filter-box {
    padding: 20px;
  }

  .filter-box p {
    margin-bottom: 8px;
  }

  /* ------------------------------
  ニュース一覧
  ------------------------------ */
  .newsindex-list-container,
  .newsindex-list-content {
    min-width: 0;
  }

  .newsindex-list-date {
    white-space: nowrap;
  }

  .newsindex-list-badge {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  /* ------------------------------
  関連記事
  ------------------------------ */
  .related-item-list {
    min-width: 0;
  }

  .related-news-title {
    max-width: initial
  }

  .related-news-date {
    white-space: nowrap;
  }

  .related-news-badge {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}

/* -------------------------- モバイルサイズ -------------------------- */
@media only screen and (max-width: 743px) {

  /* ------------------------------
  お知らせフィルター
  ------------------------------ */
  .newsindex-filter {
    grid-gap: 8px;
    width: 100%;
    position: relative;
    top: 0px;
  }

  .filter-box {
    padding: 0;
    background-color: var(--c-background-1, #FFF);
    border: none;
  }

  .filter-box p {
    margin-bottom: 4px;
  }

  /* ------------------------------
  ニュース一覧
  ------------------------------ */
  section.newsindex-wrap {
    padding: 20px 20px 32px 20px;
  }

  .newsindex {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    grid-gap: 24px;
  }

  .newsindex-list {
    flex-direction: column;
    box-sizing: border-box;
    grid-gap: 12px;
    margin: 0 0 20px 0;
  }

  .newsindex-list img {
    margin: 0;
    width: 100%;
    height: 168px;
    object-fit: cover;
  }

  .newsindex-list-content {
    margin: 0 0 20px 0;
  }

  .newsindex-info {
    gap: 8px;
    margin-bottom: 0;
  }

  .newsindex-list-date {
    font-weight: var(--weight-R, 400);
    width: auto;
    white-space: nowrap;
  }

  .newsindex-list-badge {
    font-size: var(--font-10, 10px);
    line-height: var(--lineheight-10, 16px);
    width: fit-content;
    height: 16px;
    padding-left: 5px;
    padding-right: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .pager-box {
    height: 32px;
  }

  /* ------------------------------
  ニュース詳細
  ------------------------------ */
  .newsdetail {
    grid-row-gap: 0px;
    background-color: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    padding: 0;
  }

  .newsdetail-info {
    display: flex;
    flex-direction: column;
  }


  /* ------------------------------
  お知らせ内容装飾
  ------------------------------ */
  .newsdetail-text h2 {
    font-size: var(--font-16, 16px);
    line-height: var(--lineheight-16, 24px);
    margin: 32px 0 16px 0;
  }

  .newsdetail-text h3 {
    font-size: var(--font-16, 16px);
    line-height: var(--lineheight-16, 24px);
    margin: 24px 0 16px 0;
  }

  .newsdetail-text img.ogimage {
    margin: 0 0 24px 0;
  }

  /* ------------------------------
  関連記事
  ------------------------------ */
  .related-news-title {
    max-width: initial
  }

  .related-news-date {
    white-space: nowrap;
  }

  .related-news-badge {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}
