@charset "UTF-8";

/*==========================================
 PC［1080px~］
お知らせのスタイル
===========================================*/
/*------------
newsArea
------------*/
/*お知らせのリスト*/
.newsList {
  margin: 0;
  width: 100%;
}

.newsList li {
  padding: 0;
  position: relative;
  transition-duration: .3s;
}

.newsList li>a {
  padding: 25px 0;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  position: relative;
  display: block;
  text-decoration: none;
  transition-duration: .3s;
  font-weight: bold;
  line-height: 1.75;
  border-bottom: solid 1px var(--bg-color);
}

.newsList li:first-child>a {
  padding-top: 0;
}

.newsList li>a:not(.no-icon):not([href^="https://sanics-sendai.com/"])[href^="https://"][target="_blank"]::after {
  content: none;
}

.newsList li>a::before {
  content: '';
  width: 0%;
  height: 1px;
  background-color: var(--main-color);
  position: absolute;
  bottom: 0;
  left: 0;
  transition-duration: .3s;
}

@media (hover: hover) {
  .newsList li>a:hover:before {
    width: 100%;
  }
}

.newsDate {
  margin-bottom: 5px;
  display: inline-block;
  font-size: 1.4rem;
}

:is(.newsList, .newsDate) .newsCategory {
  padding: .15em .5em;
  min-width: 70px;
  font-size: 1.2rem;
  display: inline-block;
  text-align: center;
  border-radius: 20px;
  letter-spacing: .15em;
  letter-spacing: 0;
}

:is(.newsList, .newsDate) .newsCategory::before {
  content: 'ー';
  padding-right: 1em;
}

.newsList .new {
  margin: 0 1em 0 0;
  display: inline-block;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  font-size: 1.4rem;
  border-radius: 10px;
  font-weight: bold;
  color: var(--main-color);
}

.newsList .newsTtl {
  margin: 0;
  text-decoration: none;
  line-height: 1.75;
  text-align: justify;
  align-self: baseline;
  font-weight: bold;
}

/**ファイルのリンクを持っているとき*/
.newsList li>a:has(.pdfsize) .newsTtl {
  padding-right: 150px;
}

.newsList li>a[target="_blank"] .newsTtl::after {
  content: url("../images/icon-blank.svg");
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0;
}

.newsList li>a:has(.pdfsize)[target="_blank"] .newsTtl::after {
  content: url("../images/icon-pdf.svg");
}

.newsList .pdfsize {
  position: absolute;
  bottom: 1.75em;
  right: 0;
}

/*------------
 お知らせ一覧
------------*/
/*--レイアウト--*/
#contentCol-2 #contentArea {
  border-right: solid 1px var(--line-color);
}

/*--ページャー--*/
.bottom-links,
.pagination {
  margin: 5em auto 0;
  padding: 1em 0;
  text-align: center;
}

.page-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 15px;
}

.page-numbers li {
  display: flex;
  align-content: center;
  align-items: center;
}

.page-numbers li:is(:first-child, :last-child) {
  padding: 0;
}

.page-numbers li::before {
  content: none;
}

.page-numbers li .current,
.page-numbers a {
  width: 45px;
  height: 60px;
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
}

.page-numbers li .current {
  position: relative;
}

.page-numbers li .current::after {
  content: '';
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50vmax;
  background-color: var(--main-color);
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0px;
}

@media (hover: hover) {
  .page-numbers a:hover {
    opacity: .7;
  }
}

:is(.prev, .next).page-numbers {
  padding: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  background-color: var(--main-color);
}

:is(.prev, .next).page-numbers img {
  width: 70%;
  height: 70%;
}

.prev.page-numbers {
  transform: rotate(180deg);
}

.prev.page-numbers img {
  width: 70%;
  height: 70%;
}

@media (hover: hover) {
  :is(.prev, .next).page-numbers:hover {
    background-color: var(--main-color);
    opacity: 1;
    transform: scale(1.1);
  }

  .prev.page-numbers:hover {
    transform: scale(1.1) rotate(180deg);
  }

  :is(.prev, .next).page-numbers:hover img {
    transform: scale(0.95);
  }
}

/*------------
 お知らせ詳細
------------*/
.newsContents article {
  margin-bottom: 100px;
}

.newsContents .newsDate {
  margin: 0 0 10px;
}

.newsContents h2.newsContents-ttl {
  margin: 0 0 1.5em;
  padding-bottom: 1em;
  width: 100%;
  font-size: clamp(2.8rem, 2.733rem + 0.33vw, 3rem);
  border-bottom: solid 1px var(--bg-color);
}

.newsContents .h2-ttl {
  font-size: clamp(2.8rem, 2.733rem + 0.33vw, 3rem);
  line-height: 1.25;
}

/*newsDate並び順*/
.newsContents .newsDate {
  flex-wrap: wrap;
  position: relative;
  display: flex;
  justify-content: start;
}

.newsDate .newsDays {
  margin: 0 0 20px;
  font-size: 1.4rem;
  display: inline-block;
}

.newsDate .newsCategory {
  width: fit-content;
  min-width: 85px;
  align-self: baseline;
  font-weight: bold;
}

.newsDate .newsCategory a {
  color: var(--text-color);
}

main .newsContents :where(h2, h3, h4, h5, h6, p, ol, ul, table, dl) {
  margin: 0 0 45px;
}

.newsPicWrap {
  margin: 1em .5em 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.newsPic {
  width: 48%;
  align-self: flex-start;
}

.newsPic img {
  margin-bottom: 1em;
  width: 100%;
  height: auto;
  display: inline-block;
}

.newsPic figcaption {
  padding: 0 0 0 20px;
  font-size: 1.4rem;
  position: relative;
}

.newsPic figcaption::before {
  content: '';
  width: 15px;
  height: 15px;
  background-image: url("../images/arrow.svg");
  background-repeat: no-repeat;
  position: absolute;
  top: 3px;
  left: 0;
  rotate: -90deg;
}

/*--ライトボックス--*/
.lum-lightbox.lum-open {
  z-index: 999;
}

.lum-close-button {
  right: 5%;
  top: 15%;
}

.lum-lightbox-inner img {
  max-height: 600px;
  max-width: 100%;
}

/*閉じるボタン*/
.lum-close-button {
  background-color: #fff;
  border-radius: 50vmax;
  opacity: 1;
}

.lum-close-button::after,
.lum-close-button::before {
  background-color: var(--text-color);
  height: 20px;
  left: 15px;
  position: absolute;
  width: 2px;
  top: 5px;
}

/*拡大アイコン*/
.luminous {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

a.luminous:hover::before,
a.luminous:visited:hover::before {
  opacity: 1;
}

.luminous::before {
  content: '';
  width: clamp(20px, 3vw, 40px);
  height: clamp(20px, 3vw, 40px);
  background-color: var(--text-color);
  border-radius: 50vmax;
  position: absolute;
  top: 0;
  left: -5px;
  background-image: url("../images/icon-search.svg");
  background-size: clamp(10px, 3vw, 30px) clamp(10px, 3vw, 30px);
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

/*--ページャー--*/
.newsContents .PrevNextArea {
  margin: 5em 0 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.PrevNextArea li {
  padding: 0;
  text-align: center;
  width: fit-content;
}

.PrevNextArea .go-list.btm a {
  width: fit-content;
}

.PrevNextArea :is(.prev, .next) a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.PrevNextArea :is(.prev, .next) a img {
  display: block;
  margin: 0 .5em;
  transition-duration: .3s;
}

.PrevNextArea .prev img {
  transform: rotate(-180deg);
}

@media (hover: hover) {
  :is(.prev, .next) a:hover img {
    transform: scale(1.05);
  }

  .PrevNextArea .prev a:hover img {
    transform: rotate(-180deg) scale(1.05);
  }
}



/*==========================================
 tb［540px-1080px以下］
===========================================*/
@media screen and (max-width: 1080px) {

  /*aside*/
  #hbn-col-2.news-list {
    flex-direction: column-reverse;
  }

  #hbn-col-2.news-list aside {
    padding: 0;
    border: none;
  }

  #hbn-col-2.news-list .sideArea .inner {
    width: 100%;
  }

  /*------------
カテゴリー選択肢
------------*/
  #hbn-col-2.news-list .sideArea nav {
    display: flex;
    flex-wrap: wrap;
  }

  .sideArea {
    margin-bottom: 1em;
  }

  .sideArea h3 {
    margin-right: 1em;
  }

  select:focus {
    outline: auto;
  }

  select {
    margin: .5em 0;
    width: 100%;
    max-width: 400px;
    height: 40px;
    padding: 0 30px 0 10px;
    border-radius: 0;
    background: #fff;
    font-size: 1.6rem;
    font-family: 'ZenKakuGothicNew', sans-serif;
    border: none;
    background-image: url(../images/icon-arrow.png);
    background-repeat: no-repeat;
    background-size: 12px 10px;
    background-position: right 10px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-color);
    background-color: var(--bg-color);
  }

  select::-ms-expand {
    display: none;
  }

}

/*==========================================
 sp［540px以下］
===========================================*/
@media screen and (max-width: 540px) {

  /*------------
  一覧
  ------------*/
  /*２カラム*/
  .sideArea h3 {
    padding: 0 0 .5em;
  }

  .newsList li>a {
    grid-template-columns: auto;
  }

  .newsDateBox {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2
  }

  .newsList .newsTtl {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3
  }

  .newsList li>a:has(.pdfsize) .newsTtl {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  .newsList li .pdfsize {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
  }

  .news-list .newsList .newsCategory {
    margin-left: 1em;
    align-self: center;
    min-width: 100px;
    display: inline-block;
  }

  .news-list .newsList .newsTtl {
    width: 100%;
  }

  /*ページャー*/
  .page-numbers {
    column-gap: 5px;
    row-gap: 15px;
    position: relative;
    justify-content: start;
  }

  .page-numbers li .current,
  .page-numbers a {
    width: 45px;
    justify-content: center;
  }

  :is(.prev, .next).page-numbers img {
    width: 70%;
    height: 70%;
  }

  .page-numbers li:last-child {
    margin-left: auto;
  }




}