/* =====================
   詳細ページ全体
   ===================== */
.news-detail {
  padding: var(--space-8) 0;
}

.news-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

/* =====================
   ヘッダー
   ===================== */
.news-detail-header {
  margin-bottom: var(--space-4);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.news-date {
  font-size: 14px;
  color: var(--muted);
}

.news-title {
  font-size: var(--fs-2xl);
  line-height: 1.4;
}

/* =====================
   写真
   ===================== */
.news-image {
  margin: var(--space-5) 0;
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* =====================
   本文
   ===================== */
.news-content {
  font-size: var(--fs-base);
  line-height: 1.9;
}

.news-content p {
  margin-bottom: 1.5em;
}

/* =====================
   スマホ調整
   ===================== */
@media (max-width: 768px) {
  .news-detail-container {
    padding: 0 20px;
  }

  .news-title {
    font-size: var(--fs-xl);
  }

  .news-image {
    margin: var(--space-4) 0;
  }
}



/* =====================
   What's New 一覧
   ===================== */
.news-list {
  padding: var(--space-8) 0;
}

.news-list-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   news-item（1件）
   ===================== */
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
  border-bottom: none;
}

/* =====================
   写真
   ===================== */
.news-item-image {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 4 / 3;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* =====================
   本文
   ===================== */
.news-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.news-item-date {
  font-size: 14px;
  color: var(--muted);
}

.news-item-title {
  font-size: var(--fs-lg);
  line-height: 1.4;
  margin-bottom: 6px;
}

.news-item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-more {
  margin-top: auto;
}

.news-item-more a {
  font-size: 14px;
  color: var(--primary);
}

/* =====================
   SP（完全対策版）
   ===================== */
@media (max-width: 768px) {

  /* コンテナの左右余白はそのままでもOK */
  .news-list-container {
    padding: 0 16px; 
  }

  /* news-item は block 表示に */
  .news-item {
    display: block;
    border-bottom: 1px solid #e5e5e5;
  }

  .news-item:last-child {
    border-bottom: none;
  }


  .news-item-body {
    width: 100%;
  }

  /* メタ情報・タイトル・本文の調整 */
  .news-item-meta {
    margin-bottom: 4px;
  }

  .news-item-title {
    font-size: var(--fs-md);
    margin-bottom: 6px;
  }

  .news-item-text {
    font-size: var(--fs-sm);
    margin-bottom: 8px;
  }

  .news-item-more a {
    font-size: 14px;
  }
}

/* =====================
   PC版：詳細ページと同じ幅で画像右寄せ
   ===================== */
@media (min-width: 769px) {

  /* ニュース一覧全体のコンテンツ幅を詳細ページに揃える */
  .news-list-container {
    max-width: 800px; /* 詳細ページと同じ */
    margin: 0 auto;
    padding: 0 16px; /* 必要に応じて左右余白 */
  }

  /* 各記事を横並びにして画像右側 */
  .news-item {
    display: flex;
    flex-direction: row-reverse; /* 画像を右側に */
    align-items: flex-start;
    gap: 24px; /* 本文との間隔 */
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    width: 100%; /* 親コンテナ幅に合わせる */
    box-sizing: border-box;
  }

  /* 画像 */
  .news-item-image {
    flex-shrink: 0;
    width: 250px; /* 固定幅 or 必要に応じて調整 */
    height: auto;
    margin: 0; /* 左右余白リセット */
  }

  .news-item-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    object-fit: cover;
  }

  /* 本文部分 */
  .news-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}


@media (max-width: 768px) {
  .news-item {
    display: flex;
    flex-direction: column; /* 縦並び */
  }

  .news-item-body {
    order: 1; /* 本文を先に表示 */
  }

  .news-item-image {
    order: 2; /* 画像を後ろに表示 */
    width: 100%;
    margin: 6px 0 0 0;
  }
}
