/* ==================================================
   富士梱包 お知らせ一覧ページ STYLES
   Figmaに専用デザインなし。企業情報ページのヘッダーパターン＋
   トップのお知らせカードUI（top.css の .news-card / .news-item）を流用
   ================================================== */

/* ---------- Global (news-page) ---------- */
.news-page *, .news-page *::before, .news-page *::after {
  box-sizing: border-box;
}
.news-page { margin: 0; padding: 0; background: var(--color-bg-gray, #f3f3f3); }
.news-page ul  { list-style: none; margin: 0; padding: 0; }
.news-page a   { text-decoration: none; color: inherit; }
.news-page img { display: block; max-width: 100%; }
.news-page p   { margin: 0; }
.news-page h1, .news-page h2, .news-page h3 { margin: 0; }

/* Header（内部ページは Navy Black 背景） */
.news-page .top-header {
  background: rgba(0, 12, 33, .9);
}

/* ==================================================
   PAGE HEADER（company-header と同パターン）
   ================================================== */
.news-header {
  background: #000c21;
  width: 100%;
}

.news-header__title {
  padding: 100px 40px 60px;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
}

.news-header__title-inner {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.news-title-group {
  display: flex;
  align-items: stretch;
  gap: 30px;
  flex-shrink: 0;
}

.news-title-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.news-title-en {
  font-family: var(--font-deco, 'Helvetica Neue', sans-serif);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
}

.news-title-ja {
  font-family: var(--font-ja, 'Noto Sans JP', sans-serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 2.4px;
}

.news-title-sep {
  width: 5px;
  background: var(--color-red, #ca242e);
  align-self: stretch;
}

/* ==================================================
   NEWS LIST（カードは top.css の .news-card を流用）
   ================================================== */
.news-archive {
  padding: 80px 40px;
}

.news-archive__container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ---- ページネーション ---- */
.news-archive .navigation.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

.news-archive .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--font-en, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-blue, #0050d1);
  background: #fff;
  border: 1px solid var(--color-blue, #0050d1);
  transition: opacity .2s;
}

.news-archive .page-numbers.current {
  background: var(--color-blue, #0050d1);
  color: #fff;
}

.news-archive a.page-numbers:hover { opacity: .7; }

.news-archive .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ==================================================
   SINGLE（投稿詳細・single.php）
   ================================================== */
.news-single {
  align-items: stretch;
}

.news-single__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.news-single__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-single__title {
  font-family: var(--font-ja, 'Noto Sans JP', sans-serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1.4px;
  line-height: 1.5;
  color: var(--color-text, #3e3e3e);
}

.news-single__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
  width: 100%;
}

.news-single__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 本文タイポグラフィ（.news-page のリセットで消えるマージンを戻す） */
.news-single__content {
  width: 100%;
  font-family: var(--font-ja, 'Noto Sans JP', sans-serif);
  font-size: 16px;
  letter-spacing: .8px;
  line-height: 2;
  color: var(--color-text, #3e3e3e);
}

.news-single__content p {
  margin: 0 0 1.5em;
}

.news-single__content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 2em 0 1em;
  padding-left: 14px;
  border-left: 5px solid var(--color-blue, #0050d1);
}

.news-single__content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.8em 0 .8em;
}

.news-single__content ul,
.news-single__content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.news-single__content ul { list-style: disc; }
.news-single__content ol { list-style: decimal; }

.news-single__content a {
  color: var(--color-blue, #0050d1);
  text-decoration: underline;
}

.news-single__content img {
  height: auto;
  border-radius: 10px;
  margin: 1em 0;
}

/* 画像ブロック＋キャプション（2026-10-14 社員研修旅行の記事で初使用） */
.news-single__content figure {
  margin: 0 0 2em;
}

.news-single__content figure img {
  display: block;
  width: 100%;
  margin: 0;
}

.news-single__content figcaption {
  margin-top: .6em;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text, #3e3e3e);
}

.news-single__back {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* CONTACT帯の青背景版（.news-contact）は 2026-10-07 に削除。全ページでトップと同じ白地のデザインに統一（top.css .top-contact） */

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 767px) {
  .news-header__title {
    padding: 90px 20px 40px;
    min-height: 180px;
  }
  .news-title-en { font-size: 40px; }

  .news-archive { padding: 50px 20px; }
}

/* ==================================================
   総点検 2026-10-07
   ・詳細のタイトルがSPで4行になっていたので 22px に。カードの内側余白も詰めて本文幅を確保
   ・ページヘッダーは共通部品（top.css .page-head）。旧 .news-header 系は未使用
   ================================================== */
@media (max-width: 767px) {
  .news-single__title { font-size: 22px; letter-spacing: .04em; }
  .news-page .news-single.news-card { padding: 28px 16px 24px; }
}
