.hero {
  position: relative;
  width: 100%;
  
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.pc-bg { display: block; }
.sp-bg { display: none; }

@media (max-width: 768px) {
  .pc-bg { display: none; }
  .sp-bg { display: block; }
  .hero {
    aspect-ratio: 3 / 4; /* 縦長 */}
}


#news {
  padding: 40px 20px;
  border-top: 1px solid #ccc;
}

.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  cursor: pointer;
  padding: 10px 0;
}

.news-list .date {
  font-size: 0.9em;
  color: #777;
  margin-right: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  position: relative;
}

#modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.popup-news {
  margin-bottom: 24px;
}

.popup-news h3 {
  margin-bottom: 8px;
  font-size: 1.1em;
}

.popup-news.important h3 {
  color: #c00;
}
