/* ==============================================
　↓　SP/NEWS
===============================================*/

.section--news{
  margin-top: 35vw;
}

.section__title{
  letter-spacing: 10px;
}

.news__container {
  background-image: url(../images/sp/news-back.png);
  background-repeat: repeat;
  background-size: auto;
  padding: 56px 4.2%;
  margin-top: 5vw;
  position: relative;
}

.section__title--news{
  position: relative;
}

.news__list {
  background-color: #FCF9F3;
  padding: 24px 4.2%;
  max-width: 500px;
  margin: 0 auto;
}

.news__item {
  padding: 8vw 5vw 5vw;
  padding-bottom: 8vw;
  border-bottom: 1px dashed #107a92;
}

.news__item:first-of-type{
  padding-top:2vw;
}

.news__title {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
}

.news__topic {
  margin-top: 24px;
}

.news__topic:first-of-type {
  margin-top: 0;
}

.news__date {
  background-color:#F1EDE6;
  padding: 4px 16px;
  text-align: center;
  font-size: clamp(0.1rem, 3.73vw, 1.4rem);
  font-weight: 600;
  line-height: 1;
}

.news__txt {
  font-size: clamp(0.1rem, 3.73vw, 1.4rem);
  margin-top: 8px;
  letter-spacing: 1px;
}

.news__img{
  width: 100%;
  margin: 12px auto;
}

.loading{
  text-align: center;
}

.new-icon {
  width: 33px;
  height: auto;
  vertical-align: middle;
  margin-left: 8px;
}

.loading-cat{
  width: 60px;
  margin: 0 auto;
}

.loading-txt{
  font-family: 'Courier New', Courier, monospace;
  padding-bottom: 2vw;
  font-weight: 600;
}

.section--access{
  margin-top: 23vw;
}

/* === News-imge modal === */

#news-modal {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease-in-out;
  z-index: 3;
}

#news-modal-img {
  display: block;
  margin: 50% auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border-radius: 0px;
  transition: transform 0.3s;
}

#news-modal-img:hover {
  transform: scale(1.02);
}

.modal-close {
  position: absolute;
  bottom: 10px;
  left: 49%;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: #ffb3b3;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* === PC === */


@media screen and (min-width: 769px) {

  .headerber__container {
    background-image: url(../images/sp/sp-header-about.png);
  }

  .news__list {
    background-color: #FCF9F3;
    max-width: 90%;
    justify-content: center;
    margin-top: 2vw;
    padding: 2vw 0 0;
  }

  .news__item{
    padding: 2vw 8vw 5vw 8vw;
  }
  
  .news__date{
    font-size: 1.6rem;
    letter-spacing: 1.5px;
  }
  
  .news__title {
    font-size: 2.4rem;
  }
  
  .news__txt{
    font-size: 1.6rem;
  }
  
  .news__img img{
    width: 90%;
  }

  .section--news{
    margin-top: 10vw;
  }

  .loading-cat{
    width: 90px;
  }

  #news-modal {
    position: fixed;
    transform: translateY(-50%)
  }

  .news__detail{
    margin-top: 12px;
    display: flex;
  }



}


/* news.css end */