/*	topics
============================== */
#news {
  margin: 0 auto;
  position: relative;
}

#news ul#newslist li {
  position: relative;
  margin: 0 0 1em 0;
  background-color: #fbf7ec;
  /* border-radius: 10px; */
  box-shadow: 8px 8px 0px 0px rgb(0 0 0 / 20%);
  font-size: 100%;
  font-weight: bold;
  background-image: url(../img/bg_ptn.png);
}

#news ul#newslist li span.thum {
  display: block;
  float: left;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  vertical-align: top;
  margin: 0px 3% 0 0;
  position: relative;
}

#news ul#newslist li span.thum img {
  /* width: 150px; */
  /* height: 100px; */
}

#news ul#newslist li p .txt {
  line-height: 1.4;
  font-weight: bold;
  font-size: 105%;
  overflow: hidden;
}

#news ul#newslist li a {
  display: block;
  width: 100%;
  color: #000;
  padding: 10px;
  position: relative;
  box-sizing: border-box;
}

#news ul#newslist li a:not(.nolink2):hover {
  opacity: 0.5;
  transition: 0.4s;
}

#news ul#newslist li a.nolink2 {
  cursor: default;
}

#news ul#newslist li span.ymd {
  position: absolute;
  color: #008ae8;
  /* font-size: 79%; */
  padding: 0.35em 0.2em 0 0.5em;
}

#news ul#newslist li span.tag {
  display: inline-block;
  color: white;
  font-size: 90%;
  font-weight: bold;
  padding: 0.4em 0.5em;
  margin-bottom: 0.3em;
}

#news ul#newslist li span.tag:before {
  position: absolute;
  content: '';
  top: 0;
  right: -6px;
  border: none;
  border-right: solid 6px transparent;
}

.tag1 {
  background-color: #e92828;
}

.tag2 {
  background-color: #0047a3;
}

.tag3 {
  background-color: #6a3906;
}

.tag4 {
  background-color: #eb6100;
}

.triangle::before {
  content: "";
  top: 0;
  right: 0;
  border-bottom: 5em solid transparent;
  border-right: 5em solid rgba(254, 209, 0, 0.8);
  position: absolute;
  z-index: 10;
}

#news {
  height: 320px;
  overflow: scroll;
  position: relative;
  padding: 1vw 5vw 1vw 4vw;
}

.tp_csr ul {
  width: 60%;
  margin: 0 auto;
  /* position: relative; */
}

.tp_csr ul li:hover {
  background-color: hsla(0, 0%, 0%, 0.1);
}

.tp_csr ul li img {
  width: 9%;
  display: block;
  margin: 14px auto 0;
  transform: rotate(90deg);
}

.tp_csr #next, .tp_csr #prev {
  cursor: pointer;
  width: 50%;
  height: 52px;
  position: absolute;
  width: 11%;
}

.tp_csr ul li#next {
  top: 0;
  left: 0;
}

.tp_csr ul li#prev {
  top: 0;
  left: 0;
}

@media all and (min-width: 768px) {
  #news ul#newslist li {
    font-size: 1.22em;
  }

  #news ul#newslist li p .ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.5;
  }

  #news {
    width: 660px;
    padding: 0px 2em;
    margin-bottom: 4em;
    overflow-x: hidden;
  }

  #news ul#newslist li span.thum {
    position: relative;
    height: 0;
    width: 35%;
    padding-top: calc((9 / 16)*35%);
    float: left;
  }

  #news ul#newslist li span.thum img {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
  }
}

@media all and (max-width: 767px) {
  #news ul#newslist li p .ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.05em;
    font-size: 100%;
    text-align: unset;
  }

  #news ul#newslist li p {
    font-weight: bold;
    font-size: 90%;
  }

  #news ul#newslist li p.txt {
    /* height: 2.9em; */
    /* overflow: hidden; */
  }

  #news ul#newslist li a {
    display: block;
    width: 100%;
    color: #000;
    padding: 3vw 2vw 3vw 3vw;
    position: relative;
    /* box-sizing: border-box; */
  }

  /* スクロールバー非表示 */
  #news {
    height: 310px;
    overflow-y: scroll;
    -ms-overflow-style: none;
    /* IE, Edge 対応 */
    scrollbar-width: none;
    /* Firefox 対応 */
  }

  #news::-webkit-scrollbar {
    /* Chrome, Safari 対応 */
    display: none;
  }

  .tp_csr {
    display: none;
  }

  #news ul#newslist li span.thum {
    position: relative;
    height: 0;
    width: 46%;
    padding-top: calc((9 / 16)*46%);
    float: left;
  }

  #news ul#newslist li span.thum img {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
  }
}
