@charset "UTF-8";

/* ============================
   NEWSページ専用CSS
============================ */

/* セクション全体の余白と幅設定 */
.news-section {
  width: 85%;
  margin: 30px auto;
}

/* セクションタイトルの装飾 */
.news-section__title {
  font-family: "ads-strong", sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  border-radius: 24px;
  margin: 0 auto 5px;
  width: 100%;
  display: block;
  background-color: #FFB828;
  color: white;
}

/* 説明リード文のデザイン */
.news-section__lead {
  font-family: sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* 各お知らせブロックの囲い線と余白 */
.news-detail-wrap {
  border-bottom: 1px solid #ccc;
  padding: 60px 0;
}
.news-detail-wrap:first-of-type {
  border-top: 1px solid #ccc;
}

/* テキストと画像の2カラムレイアウト */
.news-detail {
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
}

/* ============================
   スライダー関連
============================ */

/* スライダー画像を囲む枠 */
.news-detail__image-box {
  background-color: #F4F4F4;
  aspect-ratio: 1 / 1; /* 正方形 */
  flex: 0 0 clamp(300px, 40vw, 500px); /* 最小300px, 最大500px */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* スライダーコンテナ */
.news-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各スライド（画像） */
.news-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none; /* 初期状態で非表示 */
  align-items: center;
  justify-content: center;
}
.news-slide.active {
  display: flex; /* 表示＋中央寄せ */
}

/* スライド内の画像の最大サイズ制限 */
.news-slide img {
  max-width: 90%;
  max-height: 90%;
  height: auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

/* 左右矢印の共通スタイル */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 10px;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s ease;
}
.slider-arrow:hover {
  background-color: rgba(0,0,0,0.7);
}

/* 矢印の位置調整 */
.slider-arrow.prev {
  left: 10px;
}
.slider-arrow.next {
  right: 10px;
}

/* ============================
   テキスト部分のデザイン
============================ */

.news-detail__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: sans-serif;
  position: relative;
  min-width: 0;
}

.news-detail__text-upper {
  padding-right: 0;
}

/* 見出し */
.news-detail__heading h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

/* 日付やサブ情報 */
.news-detail__date {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

/* 本文テキスト */
.news-detail__desc {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap; /* 改行をそのまま表示 */
}

/* タグ（使ってない場合は削除可） */
.news-detail__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-detail__tags li {
  background-color: #FFA31E;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 24px;
  font-weight: bold;
}

/* ============================
   レスポンシブ対応（スマホ）
============================ */
@media screen and (max-width: 768px) {
.news-section{
  width: 100%; 
}		
  .news-detail {
    flex-direction: column;
    gap: 24px;
  }

  .news-detail__image-box {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
  }

  .news-detail__text {
    width: 100%;
    max-width: 500px;
    padding: 0 16px;
    text-align: left;
  }

  .news-detail__text-upper {
    text-align: left;
    padding: 0;
  }

  .news-detail__heading h3 {
    margin-bottom: 4px;
  }
}