/*============================================= NEWS =============================================*/

.news-warpper {
    position: relative;
    padding-bottom: 50px;
    text-align: center;
    background-image: url(/contents/top-main.jpg);
    background-position: 50% 30%;
}

.news-warpper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* ここで暗さを調整 */
    z-index: 0; /* 背景画像より後ろに配置 */
}

.news-warpper > * {
    position: relative;
    z-index: 1; /* 中身は暗くならないようにする */
}

.ptext {
    color: #ddc79b;
    text-align: left;
    margin: auto;
    width: 80%;
    border: #ddc79b solid 1px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 3px;
    position: relative; /* .decorationをこの要素の下に配置するためにrelativeに */
    z-index: 1; /* .decorationがこの要素の下に重なるようにする */
    margin-bottom: 30px; /* .decorationと間隔を取る */
}

.news-card{
    padding-bottom: 100px;
}

.news-card ul {
    display: flex;
    flex-wrap: wrap; /* ✅ 折り返す！ */
    justify-content: center;
    gap: 20px;
    padding: 0;
}
  
  .news-card li {
    flex: 0 0 180px; /* 固定幅にする（幅180px） */
    height: 100px; /* 高さも揃える */
    border: #b11e00 solid 1px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ddc79b;
    padding: 10px;
    list-style: none;
    text-align: center;
    display: flex;
    align-items: center; /* テキストを中央寄せ */
    justify-content: center; /* テキストを中央寄せ */
  }

.containar-4 {

}

.contact-warpper2 {
    max-width: 1100px;
    margin: 0 auto;
   
}



.space{
    height: 100px;
}

.text-gallery {
    color: #ddc79b; 
    width: 80%;
    margin: 0 auto;
    padding: 30px 50px;
    background-color: rgba(13, 15, 18, 0.5);
    position: relative; /* 擬似要素のために必要 */
}


.boundary img {
    margin-top: 100px;
  }

  @media screen and (max-width: 768px) {
    .news-card ul {
      justify-content: center;
    }
  
    .news-card li {
      flex: 0 0 45%; /* ✅ スマホだと2列にする */
      height: 80px;  /* ✅ 高さも少し小さくする */
    }
  }

/* New styles for .news-list matching .news-card layout */
.news-list {
    display: flex;
    flex-wrap: wrap; /* 折り返す */
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.news-list li {
    flex: 0 0 180px; /* 固定幅 */
    height: 100px; /* 高さ統一 */
    border: #b11e00 solid 1px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ddc79b;
    padding: 10px;
    list-style: none;
    text-align: center;
    display: flex;
    align-items: center; /* 縦中央揃え */
    justify-content: center; /* 横中央揃え */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.news-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7);
    
}

.news-list li {
    flex-direction: column;
    padding: 15px;
    align-items: center; /* 中央揃えはそのまま */
    justify-content: flex-start; /* ← 上から並べる！ここが大事！ */
}
  
.news-list .news-date {
    font-size: 18px;
    color: #b70000;
    margin-bottom: 8px; /* 日付とタイトルの間に余白 */
    border-bottom: #b11e00 solid 1px;
    padding: 1px 10px;
    width: 80%;
    text-align: center; /* テキストは中央に */
}

  .news-date {
    border-bottom: #b11e00 solid 1px;
    padding: 1px 10px;
    width: 80%;

  }
  
  .news-list .news-title {
    font-size: 16px; /* タイトルをちょっと大きめに */
    color: #ddc79b; /* タイトルは今まで通りゴールド系 */
  }

@media screen and (max-width: 768px) {
    .news-list li {
        flex: 0 0 45%; /* スマホ時は2列 */
        height: 80px;
    }
}

.news-buttons {
  text-align: center;
  margin-bottom: 20px;
}

.news-buttons button {
  font-family: "Noto Serif JP", serif;
  background: rgba(0, 0, 0, 0.6);
  color: #ddc79b;
  border: 1px solid #b11e00;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-buttons button:hover {
  background: #b11e00;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.5);
}
.news-buttons button.active {
  background: #b11e00;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.5);
}