@charset "UTF-8";
/* =============================================================
   お知らせ詳細ページ専用スタイル（single-post.php）
   デザイン: untracked/_company_slices/Main Container-news.png
   ※ このページは page-product-detail.css を読まないため、
     共通アイキャッチ（.product-detail__eyecatch）は必要分を個別定義する。
   ============================================================= */

.news-detail {
  padding-top: 0;
}

/* ---- アイキャッチ（製品詳細と共通の装飾帯） ---- */
.news-detail .product-detail__eyecatch {
  min-height: clamp(120px, 12vw, 210px);
  background: #f3f9ff url("../images/common/eyecatch-sub-detail.png") center bottom /
    cover no-repeat;
}

/* ---- パンくず（ベースは main.css。中間リンクの色だけ補う） ---- */
.news-detail .breadcrumb a {
  color: #0050a3;
  text-decoration: underline;
}

/* お知らせはタイトルが長くなりやすいため、現在ページ（最後のクラム）を
   想定したレスポンシブ対応。
   ・PC/タブレット：1行に収め、長い場合は末尾を「…」で省略（横スクロールさせない）
   ・スマホ：現在ページを改行して独立行に置き、全文を折り返し表示 */
.news-detail .breadcrumb__inner {
  flex-wrap: nowrap;
  min-width: 0;
}
.news-detail .breadcrumb__home,
.news-detail .breadcrumb a,
.news-detail .breadcrumb__sep {
  flex: 0 0 auto; /* ホーム・お知らせ・区切りは縮めない */
}
.news-detail .breadcrumb__current {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .news-detail .breadcrumb__inner {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .news-detail .breadcrumb__current {
    flex-basis: 100%; /* 改行して独立行に */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere; /* 長い英単語/URLでもはみ出さない */
    line-height: 1.6;
  }
}

/* ---- 記事本体 ---- */
.news-detail__article {
  max-width: 1320px;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

/* 見出しブロック（日付・バッジ・タイトル＋下罫線） */
.news-detail__head {
  padding-bottom: 22px;
  border-bottom: 1px solid #bcdcfa;
}
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.news-detail__date {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 17px;
}
.news-detail__badge {
  background: #0050a3;
  color: #fff;
  font-size: 16px;
  padding: 6px 18px;
  border-radius: 4px;
}
.news-detail__title {
  margin-top: 18px;
  color: #1a1a1a;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.5;
}

/* 本文（the_content） */
.news-detail__body {
  margin-top: clamp(32px, 5vw, 56px);
  padding-inline: clamp(0px, 3vw, 48px);
  color: #333;
  font-size: 16px;
  line-height: 2.1;
}
.news-detail__body p {
  margin: 0 0 1.8em;
}
.news-detail__body p:last-child {
  margin-bottom: 0;
}
.news-detail__body a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}
.news-detail__body img {
  max-width: 100%;
  height: auto;
}

/* フッター（トップページに戻る） */
.news-detail__foot {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid #e2e2e2;
  text-align: center;
}
.news-detail__back.btn {
  min-width: 272px;
  justify-content: center;
}

@media (max-width: 600px) {
  .news-detail__body {
    font-size: 15px;
    line-height: 1.95;
  }
  .news-detail__back.btn {
    width: 100%;
  }
}
