/* news-detail page */



#news-box {
  background: #f5f7fc;
}

#news-item {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 50px 60px 60px;
  box-shadow: 0 4px 20px rgba(0, 29, 136, 0.08);
}

/* 日付・カテゴリ */
.news-item-info-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

#up_ymd span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01rem;
  color: #fff;
  background: #001d88;
  padding: 2px 8px;
  border-radius: 4px;
}

#category span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01rem;
  color: #001d88;
  background: #f7c400;
  padding: 2px 8px;
  border-radius: 4px;
}

/* タイトル */
#news-item .detailText h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #001d88;
  margin-bottom: 30px;
  border-bottom: 3px solid #f7c400;
}

/* 本文 */
#detail {
  margin-bottom: 50px;
}

.detailText,
.detailText span,
.detailText p {
  letter-spacing: 0.04rem;
  line-height: 1.9;
}

.detailText p span{
  font-size: 1rem;
}

/* 画像 */
.detailUpfile {
  margin: 24px 0;
}

.detailUpfile img {
  border-radius: 10px;
  max-width: 100%;
}

/* 戻るボタン */
.button-back {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-top: 1px solid #e0e7f5;
  padding-top: 30px;
}

.news-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #001d88;
  color: #001d88;
  padding: 10px 28px;
  border-radius: 100px;
  letter-spacing: 0.05rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
}

.news-button p ,
.news-button i {
  position: relative;
  z-index: 1;
  font-weight: 600;
  transition: color 0.35s;
}


.news-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7c400;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s;
}

.news-button:hover::before {
  transform: scaleX(1);
}

.news-button:hover,
.news-button:hover i,
.news-button:hover p {
  color: #fff;
}


/* ============ Responsive ============ */

@media (max-width: 1024px) {
  #news-item {
    padding: 40px 40px 50px;
  }
}

@media (max-width: 768px) {
  #news-item {
    padding: 30px 24px 40px;
    border-radius: 12px;
  }

  #news-item .detailText h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }
  
  
  #detail {
    font-size: 90%;
  }

  .button-back {
    margin-top: 30px;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  #news-item {
    padding: 24px 16px 32px;
  }

  #news-item .detailText h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  
  .news-item-info-detail {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  #news-section .news-item-info-detail {
    margin-bottom: 0;
  }
}
