/* ヒーローセクション全体 */
.news-detail-hero {
    position: relative;
    width: 100vw;
    min-height: 85vh; /* ← 背景が全体表示されるよう高さを保証 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0; /* ヘッダー分の余白 */
    overflow: hidden; /* ★ decorがセクションをはみ出たら非表示 */
  }

.news-detail-header {
  position: absolute;
  display: flex;
  gap: 0.5vw;
  align-items: center;
  left: 33vw;
  top: 13vw;
  z-index: 10000
}

.news-detail-tag {
  display: inline-block;
  background-color: #535353;
  font-size: 1.1vw;
  line-height: 1.3vw;
  color: #ffffff;
  border-radius: 2vw;
  padding: 0.1vw 2vw;
  line-height: 2.1vw;
  width: fit-content;
  padding-top: -3vw;
  margin-left: -11vw;
}

.news-detail-date {
  color: #535353;
  font-size: 1.6vw;
  line-height: 0.2vw;
  margin-top: 0.3vw;
  margin-left: 2vw;
  margin-right: 1vw;
}

.news-detail-title {
  position: absolute;
  flex: 1;
  font-size: 2vw;
  align-items: left;
  margin-left: 2vw;
  padding-top: 1vw;
  top: 16vw;
  left: 20vw;
  right: auto;
  z-index: 10000;
}
  
  .decor {
    position: absolute;
    height: auto;
    z-index: 0; /* 背景にするなら 0、前面なら 2+ */
  }
  
  /* 各位置調整用クラス */
  .news-detail-decor1 {
    top: 0vw;
    right: 0vw;
    width: 100vw; /* 任意のサイズに変更可能 */
    height: 28vw;
  }

  .news-detail-decor2 {
    top: 7vw;
    right: 91.5vw;
    width: 2.5vw; /* 任意のサイズに変更可能 */
  }

  .news-detail-decor3 {
    top: 0vw;
    right: 1vw;
    width: 18.5vw; /* 任意のサイズに変更可能 */
  }

  .news-detail-decor4 {
    top: 13vw;
    right: 67vw;
    width: 4vw; /* 任意のサイズに変更可能 */
  }

  .news-detail-decor5 {
    top: 20vw;
    right: 1vw;
    width: 5vw; /* 任意のサイズに変更可能 */
    z-index: 9998; 
    animation-delay: 0.2s;
    transform: rotate(-70deg); /* 回転 */
  }

@media (max-width: 768px) {
  /* decor 削除 */
  .news-decor1,
  .news-decor2,
  .news-decor3,
  .news-decor4,
  .news-decor5 {
    display: none !important;
  }

  /* .news-hero 背景をスマホ用画像に切り替え */
  .news-detail-hero {
    background-image: url("assets/images/news_top.png") !important; /* スマホ用画像を指定 */
    background-size: 92% auto; /* 必要に応じて contain に変更 */
    background-position: center top;
    background-repeat: no-repeat;
  }
 .news-detail-header {
    position: static;
    display: flex;
    gap: 2vw;
    align-items: center;
    margin-top: 10vw;
    margin-right: 32vw;
    justify-content: center;
    flex-wrap: wrap;
  }

  .news-detail-tag {
    font-size: 3vw;
    line-height: 1;
    padding: 0.8vw 4vw;
    border-radius: 5vw;
    margin: 0 auto;
    line-height: 3.2vw;
    margin-top: 22vw;
  }

  .news-detail-date {
    font-size: 3vw;
    margin: 1vw auto 0;
    margin-top: 22vw;
  }

  .news-detail-title {
    position: static;
    font-size: 4vw;
    text-align: left;
    margin-top: 5vw;
    line-height: 1.5;
    left: vw;
  }
}  

/*詳細セクションについて*/
.news-detail-section {
  position: relative;
  background-color: #ffffff;
  padding: 0.5vw 3vw;
  border-radius: 1vw;
  max-width: 55vw;
  margin: 5vw auto;
  color: #535353;
  margin-bottom: -20vw;
  bottom: 22vw;
  z-index: 10000;
}

.news-detail-body {
  margin-top: 3vw;
  text-align: center;
}

.news-detail-body p {
  margin-top: 2vw;
  font-size: 1.4vw;
  line-height: 1.8;
  text-align: left;
  margin-top: 5vw;
}

.news-thumb {
  width: 25vw;
  height: auto;
  border-radius: 1vw;
  object-fit: cover;
  margin-top: 0.1vw;
  margin-right: 0.5vw;
  top: 40vw;
}

.news-back-button {
  margin-top: 10vw;
  text-align: center;
}

.news-back-button a {
  display: inline-flex;
  align-items: center;
  font-size: 1.5vw;
  color: #16bbe0;;
  text-decoration: none;
}

.news-back-button .circle {
  display: inline-block;
  font-size: 1.2vw;
  width: 2.4vw;
  height: 2.4vw;
  border: 0.1vw solid #535353;
  border-radius: 50%;
  text-align: center;
  line-height: 2.3vw;
  margin-right: 0.8vw;
}

@media (max-width: 768px) {
  .news-detail-section {
    max-width: 80vw;             /* 幅を広げる */
    padding: 4vw;                /* 内側の余白を調整 */
    margin: -100vw auto 0;         /* 上に引き上げる */
    border-radius: 3vw;
    bottom: auto;                /* デスクトップの bottom を無効化 */
  }

  .news-detail-body {
     margin-top: 3vw;
     text-align: center;
  }

  .news-detail-body p {
     margin-top: 2vw;
     font-size: 3vw;
     line-height: 1.8;
     text-align: left;
     margin-top: 5vw;
  }

  .news-thumb {
    width: 50vw;
    height: auto;
    border-radius: 1vw;
    object-fit: cover;
    margin-top: 0.1vw;
    margin-right: 0.5vw;
    top: 40vw;
  }

  .news-back-button {
    margin-top: 10vw;
    text-align: center;
 }

  .news-back-button a {
    display: inline-flex;
    align-items: center;
    font-size: 4vw;
    color: #16bbe0;;
    text-decoration: none;
  }

  .news-back-button .circle {
    display: inline-block;
    width: 8vw;
    height: 8vw;
    border: 0.1vw solid #535353;
    border-radius: 50%;
    text-align: center;
    line-height: 8vw;
    margin-right: 4vw;
    font-size: 4vw;
  }
}
