@charset "UTF-8";

/* ==== color ========================== */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-primary: #8CBD3D;
  --color-blue: #0081C2;
  --color-bgGray: #F2F2F2;
  --futura: "futura-pt", sans-serif;
}

/*================================================
 *  subVisual
 ================================================*/
#subVisual::before {
  background-image: url(../../images/news/subVisual.png);
}

@media screen and (max-width:767px) {
  #subVisual::before {
    background-position: center right 33%;
  }

}

/*================================================
 *  news__list
 ================================================*/
#news {
  padding: 6.66vw 0 16.66vw;
}

#news ul.news__list li {
  margin-bottom: 1.74%;
}

#news ul.news__list li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  align-items: stretch;
}

#news ul.news__list li a:hover {
  opacity: 1;
}

#news ul.news__list li a p:first-of-type {
  width: 17.4%;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  border-radius: 0.83vw;
  padding: 1.66vw 0;
  display: grid;
  place-content: center;
  line-height: 1.75;
  font-weight: 500;
}

#news ul.news__list li a p:nth-of-type(2) {
  width: 81.2%;
  border-radius: 0.83vw;
  border: 1px solid #DEDBDB;
  padding: 1.66vw 6.33vw 1.66vw 2.5vw;
  position: relative;
  line-height: 1.75;
  font-weight: 500;
}

#news ul.news__list li a p:nth-of-type(2)::before {
  position: absolute;
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  display: inline-block;
  background-image: url(../../images/news/arrow.png);
  width: 2.3em;
  height: 0;
  padding-bottom: 2.3em;
  top: 50%;
  right: 2em;
  transform: translateY(-50%);
  transition: .4s;
}

#news ul.news__list li a:hover p:nth-of-type(2)::before {
  right: 1em;
}

/* pagination */
.pnavi {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  margin: 4.5vw auto 0;
  /* 数字 */
  font-family: var(--futura);
  font-size: 2.15em;
  padding: 0 3vw 0 6vw;
}

.pnavi .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.64em;
  height: 1.71em;
  text-align: center;
  line-height: 1;
  margin: 0.3em;
  border: 1px solid var(--color-blue);
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 400;
  border-radius: 0.46em;
}

.pnavi .current {
  color: var(--color-blue);
  background: var(--color-white);
}

.pnavi .page-numbers.prev,
.pnavi .page-numbers.next {
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  background-color: transparent;
}

.pnavi .page-numbers.prev {
  left: 0;
  background-image: url(../../images/news/prev.png);
}

.pnavi .page-numbers.next {
  right: 0;
  background-image: url(../../images/news/next.png);
}

@media screen and (max-width:767px) {
  #news {
    padding: 12vw 0;
  }

  #news ul.news__list li {
    margin-bottom: 1em;
  }

  #news ul.news__list li a {
    display: block;
    border: 1px solid #DEDBDB;
    padding: 1.5em 20% 1.5em 1.5em;
    position: relative;
    border-radius: 1em;
  }

  #news ul.news__list li a::before {
    position: absolute;
    content: "";
    position: absolute;
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    background-image: url(../../images/news/arrow.png);
    width: 2em;
    height: 0;
    padding-bottom: 2em;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
  }

  #news ul.news__list li a p:first-of-type,
  #news ul.news__list li a p:nth-of-type(2) {
    width: 100%;
    border-radius: 0;
    border: unset;
    padding: 0;
    display: block;
  }

  #news ul.news__list li a p:nth-of-type(2)::before {
    content: none;
  }

  .pnavi {
    margin: 10.5vw auto 0;
    max-width: 92%;
    font-size: 1.86em;
    padding: 0 6vw 0 10vw;
  }
}

/*================================================
 *  news__detail
 ================================================*/
#news__detail {
  padding: 6.66vw 0 16.66vw;
}

#news__detail .date {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto 7%;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.2em 2em;
  letter-spacing: 0.05em;
}

#news__detail h2 {
  text-align: center;
  color: var(--color-blue);
  font-size: 1.923em;
  font-weight: bold;
  margin-bottom: 6%;
  letter-spacing: 0.05em;
}

#news__detail p:not(.date) {
  font-weight: 400;
  line-height: 1.95;
  margin-bottom: 1em;
}

#news__detail img {
  padding-top: 1em;
}

@media screen and (max-width:767px) {
  #news__detail {
    padding: 12vw 0 3.33vw;
  }

  #news__detail h2 {
    font-size: 1.66em;
    line-height: 1.72;
  }

  #news__detail .date {
    font-size: 0.933em;
  }

  #news__detail p:not(.date) {
    line-height: 2;
  }
}