@charset "utf-8";

.page-news .page_header {
  background-image: url("../img/news/bg_news.webp");
}

/*
.has_sidebar .sidebar {
  position: inherit;
}
*/

.sec_news {
  margin-bottom: 10rem;
}

.sec_news .news__list {
  width: 100%;
}


.sec_news .news__item {
  padding: 2.5rem 2rem 2.5rem;
  border-bottom: solid 1px #b3b3b3;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;

  &:first-child {
    border-top: solid 1px #b3b3b3;
  }
}
@media (max-width: 768px) {
  .sec_news .news__item {
    padding: 2rem 1rem;
    flex-wrap: wrap;
  }
}

.sec_news .news__item--date {
  max-width: 10rem;
  font-size: 1.4rem;
  font-weight: 400;
  margin-right: 1rem;
  padding-top: 0.2em;
}

@media (max-width: 768px) {
  .sec_news .news__item--date {
    font-size: 1.25rem;
    margin-right: 0.2rem;
  }
}

.sec_news .news__item--category {
  flex: 1;
  max-width: 20.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
  background-color: #29abe2;
  border-radius: 2rem;
  padding: 0.2em 0.5em 0.3em;
  margin-left: 1em;
  text-align: center;
  line-height: 1.2;
}
.sec_news .news__item--category a {
  color: #FFF;
}
@media (max-width: 767px) {
  .sec_news .news__item--category {
    font-size: 1.25rem;
  }
}


.sec_news .news__item--category[data-cat="cat-wakamatsu_hospital"],
.sec_news .news__item--category[data-cat="cat-family_clinic"] {
  background-color: #39b54a;
}
.sec_news .news__item--category[data-cat="cat-wakamatsu_en"] {
  background-color: #0071bc;
}
.sec_news .news__item--category[data-cat="cat-wakamatsu_en_day"] {
  background-color: #29abe2;
}
.sec_news .news__item--category[data-cat="cat-ashagi"] {
  background-color: #f7931e;
}
.sec_news .news__item--category[data-cat="recruit"] {
  background-color: #fbb03b;
}
.sec_news .news__item--category[data-cat="kouhoushi"] {
  background-color: #c69c6d;
}
.sec_news .news__item--category[data-cat="covid-19"] {
  background-color: #ed1c24;
}
.sec_news .news__item--category[data-cat="chaprenshitu"] {
  background-color: #8cc63f;
}

.sec_news .news__item--title {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.75;
  padding-top: 0.5em;
  width: 100%;
}

@media (max-width: 768px) {
  .sec_news .news__item--title {
    flex: auto;
    font-size: 1.5rem;
    margin-top: 1em;
  }
}

.sec_news .news__item--link {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sec_news .news__item--link.arrow {
  position: relative;
  padding-right: 2rem;
}
.sec_news .news__item--link.arrow::after {
  content: '';
  position: absolute;
  display: inline-block;
  background: url(../img/common/arrow.png) center no-repeat;
  background-size: contain;
  width: 1.39rem;
  height: 0.9rem;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}



/*----- PAGER -----*/
.pager {
  margin: 5rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0 1rem;
}

.pager .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #FFF;
  background-color: #e94d48;
  border: solid 1px #e94d48;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  @media (max-width: 768px) {
    font-size: 1.4rem;
    width: 3rem;
    height: 3rem;
  }
}
.pager .page-numbers.next,
.pager .page-numbers.prev {
  border: none;
  background: none;
  color: #e94d48;
}
.pager .page-numbers .arrow {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #e94d48;
}
.pager .next-arrow {
  clip-path: polygon(40% 0, 90% 50%, 40% 100%, 30% 90%, 70% 50%, 30% 10%);
}
.pager .prev-arrow {
  clip-path: polygon(40% 0, 90% 50%, 40% 100%, 30% 90%, 70% 50%, 30% 10%);
  transform: rotate(180deg);
}

.pager .page-numbers.current {
  background-color: #FFF;
  color: #e94d48;
}


.sec_news .section__inner {
  padding-top: 2rem;
}

/*ARTICLE*/
.article {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.article .article__head {
  margin-bottom: 3rem;
  border-bottom: solid 1px #b3b3b3;
}

.article .article__title {
  font-size: 2.0rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 1em 0;
}
@media (max-width: 768px) {
  .article .article__title {
  }
}

.article .article__date {
  display: inline-block;
  color: #231815;
  font-size: 1.4rem;
}

.article .article__cat {
  border-radius: 1.5rem;
  display: inline-block;
  margin-left: 1rem;
  color: #FFF;
  background-color: #e94d48;
}

.article .article__cat>* {
  display: block;
  font-size: 1.4rem;
  padding: 0.2em 0.5em;
  color: #FFF;
}

.article .article__cat.cat-wakamatsu_hospital,
.article .article__cat.cat-family_clinic {
  background-color: #39b54a;
}
.article .article__cat.cat-wakamatsu_en,
.article .article__cat.cat-wakamatsu_en_day {
  background-color: #29abe2;
}
.article .article__cat.cat-ashagi {
  background-color: #f7931e;
}

.article .article__text {
  font-size: 1.6rem;
  line-height: 1.75;
}
@media (max-width: 768px) {
  .article .article__text {
    font-size: 1.5rem;
  }
}

.article__text h3 {
  font-size: 20px;
  padding: 10px;
  background: #ecbe91;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.contents_inarticle__textner_post h4 {
  font-size: 18px;
  padding: 10px;
  border-bottom: 1px dashed #999999;
  padding: 5px 10px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #e8443f;
}

.article__text h5 {
  font-size: 16px;
  padding: 10px;
  background: #fdf1f0;
  margin-bottom: 20px;
  font-weight: bold;
}

.article__text h6 {
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0 10px;
  font-weight: bold;
}

.article__text .blocks-gallery-grid,
.article__text .wp-block-gallery {
  justify-content: center;
  margin-bottom: 10px;
}

.article__text em {
  font-style: italic;
}

.article__text a {
  position: relative;
  display: block;
  border-bottom: 1px solid #b3b3b3;
  padding: 0 15px 10px;
  margin-bottom: 10px;
  &::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5em 0 0.5em 0.8em;
    border-color: transparent transparent transparent #e94d48;
    position: absolute;
    top: 0.55em;
    left: 0;
    margin: auto;
  }
}
.article__text a .icon-paperclip {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  &::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 2.0rem;
    background-image: url('../img/common/icon_doc.svg');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
  }
}


/* img */
.article__text img {
  display: block;
  margin: 0 auto 10px;
}
.article__text .aligncenter {
  clear: both;
}
.article__text .alignright {
  float: right;
}
.article__text .alignleft {
  float: left;
}
#article__text #gallery-1 img {
  border: none
}



.paging {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 5rem 0;
  gap: 0 2rem;
}
@media (max-width: 767px) {
  .paging {
    gap: 0 1rem;
  }
}

.paging .page-link {
  display: block;
  max-width: 200px;
  min-width:100px;
  padding: 1em 1em;
  position: relative;
  line-height: 1;
  color: #e94d48;
  font-size: 1.6rem;
  background-color: transparent;
  border: solid 1px #e94d48;
  border-radius: 3rem;
  font-weight: bold;
  text-align: center;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  transition: all 0.2s ease;
  flex: 1;
}
@media (max-width: 767px) {
  .paging .page-link {
    padding: 0.5em 1em;
    border-width: 1.5px;
    width: auto;
    font-size: 1.5rem;
  }
}

.paging .btn__list {
  background-color: #FFF;
  color: #000;
  border: solid 1px #e94d48;
  margin: 0;
  max-width: 200px;
  min-width:100px;
  text-align: center;
  flex: 1;
}

.paging .page-link:hover {
  background-color: #e94d48;
  color: #FFF;
}

.paging .btn__list:hover {
  background-color: #FFF;
  color: #e94d48;
}

.paging .arrow {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #e94d48;
}
.paging .next-arrow {
  clip-path: polygon(40% 0, 90% 50%, 40% 100%, 30% 90%, 70% 50%, 30% 10%);
}
.paging .prev-arrow {
  clip-path: polygon(40% 0, 90% 50%, 40% 100%, 30% 90%, 70% 50%, 30% 10%);
  transform: rotate(180deg);
}

