/* news-detail page */

#news-box{
  background: url(../img/bk/bk-white-wa.jpg) repeat;
}

#news-item {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 50px 60px 60px;
}

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

.news-item-info-detail.is-houwa {
  gap: 0;
}

#up_ymd span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01rem;
  color: #201542;
  padding: 2px 0;
  border-radius: 4px;
}

#category span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #201542;
  padding: 1px 8px;
  white-space: nowrap;
  letter-spacing: 0.15em;
  border: 1px solid #20154273;
}

/* タイトル */
#news-item .detailText h3 {
  margin-bottom: 30px;
  border-bottom: 1px solid rgb(86 90 145 / 43%);
  font-family: "Hina Mincho", serif;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: #201542;
}

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

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

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

/* 本文エディタで作成した箇条書き（サイト共通のli{list-style:none}を#detail内のみ復元） */
#detail ul,
#detail ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

#detail ul li { list-style: disc; }
#detail ol li { list-style: decimal; }

#detail a {
  color: #4a7ba6;
  text-decoration: underline;
}

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

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

/* YouTube動画（専用フィールドおよび本文に直接貼り付けられたiframeの両方に適用） */
.detail-youtube {
  margin: 24px 0;
}

.detail-youtube iframe,
#detail iframe {
  display: block;
  width: 100%;
  aspect-ratio: 560 / 315;
  height: auto;
  border: 0;
  border-radius: 10px;
}

/* 戻るボタン */
.button-back {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-top: 1px solid rgb(86 90 145 / 43%);
  padding-top: 30px;
}

.news-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 0 20px;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background-color: rgba(32, 21, 66, 0.9);
  box-shadow: 0 5px 14px rgba(43, 25, 57, 0.18);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.news-button p,
.news-button i {
  font-weight: 500;
  color: #fff;
}

.news-button:hover {
  background-color: #201542;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(43, 25, 57, 0.24);
}


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

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

@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;
  }
  
  #up_ymd span {
    font-size: 0.75rem;
  }
  
  #category span {
    font-size: 0.75rem;
  }
  
}

@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;
  }
}
