/*↓StyleCSSにスタイルを定義　文字コードUTF-8------------*/
@charset "utf-8";

/* タイトル */
.archive-title {
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin: 80px auto 50px;
  position: relative;
}

.archive-title::after {
  content: "News";
  display: block;
  font-size: 20px;
  margin-top: 15px;
  letter-spacing: 0.3em;
  color: #777;
}

/* リスト */
#news-list {
  list-style: none;
  padding: 0;
  max-width: 700px;   /* 好きな幅に */
  margin: 0 auto;     /* これで中央へ */    
}
  
#news-list li {
  border-bottom: 1px solid #ddd;
}

/* リンク全体を横並びに */
.news-item {
  display: flex;
  flex-direction: column;   /* ← 縦並びにする */      
  align-items: center;
  padding: 35px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;

}

.news-item:hover {
  opacity: 0.7;
}

/* 日付 */
.news-date {
  width:200px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #E69E7C;
    padding: 10px;
}
/* タイトル・説明 */
.news-content {
  flex: 1;
text-align: center;
}

.news-title {
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  justify-content: flex-start;  /* ← 変更 */
  gap: 8px;                     /* タイトルとPDFの間隔 */
}
.news-title-text{
  display: inline-block;
}
.badge-pdf{
  background: #00b3c4;   /* 色は変更OK */
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}


.news-desc {
  font-size: 14px;
  color: #666;
  white-space: pre-line;    
}
/* 戻るボタン */
.back-home {
  text-align: center;
  margin-top: 80px;
 margin-bottom: 80px;    
}

.back-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid #E69E7C;
  color: #E69E7C;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #E69E7C;
  color: #fff;
}
/*
=========================
パソコン表示（768px以上）
=========================
*/
@media (min-width: 768px) {

 .news-item {
    flex-direction: row;   /* ← 横並びに戻す */
    align-items: center;
    text-align: center ;
  }

 .news-date {
    width: 130px;          /* PCでは幅固定 */
    margin-bottom: 0;
  }
  .news-desc {
  white-space: normal;    
}    
}
