@charset "UTF-8";
/* ==========================================================================
   お知らせ（CMS 連携）2026
   ja/news/index.php ・ ja/news/detail.php 用

   NOTE: php-front/assets/style.css から news-* / article-* / error-page を移植したもの。
         元 CSS は :root と * / body / a / ul への全体リセットを含み、サイト共通の
         style.css・ヘッダー・フッターを壊すため、そのままは読み込めない。
         ここでは変数もリセットも .news-front 配下に閉じ込めてある。
   ========================================================================== */

.news-front {
  /* --- カラー（サイト共通パレットに合わせた値） --- */
  --news-primary:      #0044aa;   /* リンク・タブ選択・バッジ */
  --news-primary-dark: #003380;
  --news-bg:           #fff;
  --news-surface:      #f5f7fa;
  --news-border:       #d8dce5;
  --news-text:         #0c1a49;
  --news-text-muted:   #6b7280;
  --news-tag-bg:       #e8f0fe;
  --news-tag-text:     #0044aa;
  --news-error:        #dc2626;

  /* --- 余白 --- */
  --news-space-xs: 4px;
  --news-space-sm: 8px;
  --news-space-md: 16px;
  --news-space-lg: 24px;
  --news-space-xl: 40px;

  /* --- 角丸 --- */
  --news-radius-sm: 4px;
  --news-radius-md: 8px;

  /* --- 文字 --- */
  --news-font-sm: 14px;
  --news-font-base: 16px;
  --news-font-lg: 18px;
  --news-font-xl: 24px;

  /* 一覧のタイルを最大幅で 4 列並べるため、下層共通の内容幅いっぱいまで使う
     （.under-content = max-width:1440px − 左右 padding 40px × 2） */
  max-width: 1360px;
  margin: 0 auto;
  font-size: var(--news-font-base);
  line-height: 1.7;
  color: var(--news-text);
}

/* 詳細ページの記事本文は読みやすさ優先で従来幅のまま中央寄せにする */
.news-front .article {
  max-width: 1000px;
  margin: 0 auto;
}

/* .news-front 配下のみのリセット（サイト全体には影響させない） */
.news-front ul,
.news-front ol.news-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-front a {
  text-decoration: none;
}

.news-front a:hover {
  opacity: 1;   /* サイト共通の a:hover{opacity:.7} は使わず、色変化で表現する */
}


/* --------------------------------------------------------------------------
   ページ切り替えタブ（News / 出展者からのお知らせ / 出展者プレスリリース）

   タブごとに下線を引き（通し罫は使わない）、選択中（= このページ）だけ
   下線をブルーにしてその中央に▼を出す。対象ページが未公開の項目は
   .news-filter__tab--disabled でクリック不可・淡色表示にする。
   色は :root（style.css）のブルー系から選択中 = --lightblue、
   非選択の下線 = --basegray を使う。
   -------------------------------------------------------------------------- */
.news-filter {
  margin-bottom: var(--news-space-lg);
  padding-bottom: 8px;   /* 選択中タブの▼がはみ出す分 */
}

.news-filter__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--news-space-md) var(--news-space-lg);
}

.news-filter__tab--active a,
.news-filter__tab--disabled span {
  position: relative;
  display: block;
  min-width: 150px;
  padding: var(--news-space-sm) var(--news-space-md) 12px;
  text-align: center;
  font-size: var(--news-font-sm);
  font-weight: 700;
  color: var(--news-text);
  border-bottom: 2px solid var(--basegray);
  transition: border-color 0.15s;
}

.news-filter__tab--active a {
  border-bottom-color: var(--lightblue);
}

/* 選択中タブ: 下線の中央にぶら下がる▼ */
.news-filter__tab--active a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--lightblue);
}

/* 準備中タブ: クリック不可・グレーの下線 + 薄いグレー文字（#999 程度） */
.news-filter__tab--disabled span {
  color: #999;
  border-bottom-color: #999;
  cursor: default;
}


/* --------------------------------------------------------------------------
   タグ絞り込み中バナー
   -------------------------------------------------------------------------- */
.news-tag-filter {
  display: flex;
  align-items: center;
  gap: var(--news-space-sm);
  padding: var(--news-space-sm) var(--news-space-md);
  margin-bottom: var(--news-space-md);
  background: var(--news-tag-bg);
  border-radius: var(--news-radius-sm);
  font-size: var(--news-font-sm);
}

.news-tag-filter__label {
  color: var(--news-text-muted);
}

.news-tag-filter__name {
  font-weight: 700;
  color: var(--news-tag-text);
}

.news-tag-filter__clear {
  margin-left: auto;
  color: var(--news-text-muted);
  font-size: var(--news-font-lg);
  line-height: 1;
}

.news-tag-filter__clear:hover {
  color: var(--news-error);
}


/* --------------------------------------------------------------------------
   件数・ページ情報バー
   -------------------------------------------------------------------------- */
.news-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
  margin-bottom: var(--news-space-md);
  font-size: var(--news-font-sm);
  color: var(--news-text-muted);
}

.news-meta-bar__count {
  margin: 0;
}

.news-meta-bar__count strong {
  color: var(--news-text);
  font-weight: 700;
}

.news-meta-bar__limit {
  display: flex;
  align-items: center;
  gap: var(--news-space-sm);
}

.news-meta-bar__limit-label {
  white-space: nowrap;
}

.news-meta-bar__limit-list {
  display: flex;
  gap: var(--news-space-xs);
}

/* 表示件数ボタン（10件 / 20件 / 50件 / 100件）。
   非選択は線囲み、選択中は塗り。どちらも :root の --ceatecblue で統一する。 */
.news-meta-bar__limit-item a,
.news-meta-bar__limit-item--active span {
  display: inline-block;
  padding: 2px var(--news-space-sm);
  border: 1px solid var(--ceatecblue);
  border-radius: var(--news-radius-sm);
  font-size: var(--news-font-sm);
}

.news-meta-bar__limit-item a {
  color: var(--ceatecblue);
}

.news-meta-bar__limit-item--active span {
  background: var(--ceatecblue);
  color: #fff;
  font-weight: 700;
}

.news-meta-bar__limit-item a:hover {
  background: var(--ceatecblue);
  color: #fff;
}


/* --------------------------------------------------------------------------
   ニュースカード（横並びリスト / PC 2 列・タブレット以下 1 列）

   サムネイルがある場合はカード左側 20% 幅・カード高さいっぱいに表示し、
   ない場合は figure 自体を出力せず（index.php 側）、本文が左寄せでカード幅
   いっぱいに広がる（.news-card--thumb / .news-card--no-thumb で分岐）。

   NOTE: .news-list / .news-card__tags は ul なので、`.news-front ul` リセット
         （margin:0; padding:0）に勝てるよう .news-front 付きで指定している。
   -------------------------------------------------------------------------- */
.news-front .news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding-top: 25px;
}

.news-card {
  /* .news-card__title a::after でカード全体をクリック領域にするための基準 */
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 252, 255, 0.85) 100%);
  border-radius: var(--news-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* サムネイル（カード左側 20% 幅・16:9。上と左のマージンは記事タイトル（.news-card__body の
   padding-top / padding-left）と揃える） */
.news-card__thumb {
  margin: 24px 20px 0 0;
  width: 20%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  align-self: flex-start;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: var(--news-radius-sm);
}

.news-card__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__thumb-img {
  transform: scale(1.05);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 24px 20px 28px;
}

/* NOTE: 下層共通の `.under-content h3:not(.exl-root *)`（32px / padding-top:1.15em）に
         勝つため、要素セレクタ込み（特異度 0,2,1）で指定して打ち消す */
.news-front h3.news-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a2a4a;
  margin: 0 0 10px;
  padding-top: 0;
  transition: color 0.15s;
}

.news-card__title a {
  color: inherit;
}

/* カード全面をクリック領域にする（タグリンクは下の z-index で上に出す） */
.news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-card:hover .news-card__title {
  color: var(--news-primary);
}

/* 日付・カテゴリー（ピル型）。タイトルが短くてもカード下端に揃える */
.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
  margin-top: auto;
}

.news-card__date {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 14px 4px 0;
  color: var(--ceatecblue);
}

.news-card__category {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 14px;
  background: var(--news-primary);
  color: #fff;
  border-radius: 999px;
}

.news-front .news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-xs);
  margin-top: var(--news-space-sm);
  /* タイトルの ::after より前面に出し、タグ絞り込みを押せるようにする */
  position: relative;
  z-index: 2;
}

.news-card__tag a {
  display: inline-block;
  padding: 2px var(--news-space-sm);
  background: var(--news-tag-bg);
  color: var(--news-tag-text);
  border-radius: 999px;
  font-size: 12px;
}

.news-card__tag a:hover {
  background: #c5d9fc;
}

/* 0 件表示 */
.news-empty {
  padding: var(--news-space-xl);
  text-align: center;
  color: var(--news-text-muted);
  font-size: var(--news-font-lg);
  border: 1px dashed var(--news-border);
  border-radius: var(--news-radius-md);
}

.news-empty a {
  display: block;
  margin-top: var(--news-space-sm);
  font-size: var(--news-font-base);
  color: var(--news-primary);
}


/* --------------------------------------------------------------------------
   ページャ
   -------------------------------------------------------------------------- */
.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--news-space-md);
  margin-top: var(--news-space-xl);
}

.news-pager__btn {
  display: inline-block;
  padding: var(--news-space-sm) var(--news-space-lg);
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-sm);
  font-size: var(--news-font-sm);
  color: var(--news-primary);
  background: var(--news-bg);
}

.news-pager__btn:hover {
  background: var(--news-surface);
}

.news-pager__btn--disabled {
  color: var(--news-border);
  cursor: default;
  pointer-events: none;
}

.news-pager__info {
  font-size: var(--news-font-sm);
  color: var(--news-text-muted);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   詳細ページ: 記事
   -------------------------------------------------------------------------- */
.news-front .article__header {
  margin-bottom: var(--news-space-lg);
  padding-bottom: var(--news-space-md);
  border-bottom: 1px solid var(--news-border);
}

/* 記事タイトル: 大きさ・太さはサイト共通の `.under-h3`（32px / 800）に任せ、
   ここでは記事先頭に来るぶんの上余白（`padding-top:1.15em`）だけを打ち消す。
   `.under-content .under-h3:not(.exl-root *)`（0,2,1）に勝つ必要があるため
   クラス 3 つ（0,3,0）で指定している */
.news-front .article__header .article__title {
  line-height: 1.4;
  margin: 0 0 var(--news-space-md);
  padding-top: 0;
}

.news-front .article__meta {
  display: flex;
  align-items: center;
  gap: var(--news-space-sm);
}

.news-front .article__date {
  font-size: var(--news-font-sm);
  color: var(--news-text-muted);
}

.news-front .article__category {
  font-size: var(--news-font-sm);
  padding: 2px var(--news-space-sm);
  background: var(--news-primary);
  color: #fff;
  border-radius: var(--news-radius-sm);
  font-weight: 500;
}

.news-front .article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-xs);
  margin-bottom: var(--news-space-lg);
}

.news-front .article__tag a {
  display: inline-block;
  padding: 2px var(--news-space-sm);
  background: var(--news-tag-bg);
  color: var(--news-tag-text);
  border-radius: var(--news-radius-sm);
  font-size: var(--news-font-sm);
}

.news-front .article__tag a:hover {
  background: #c5d9fc;
}

/* 本文（CMS が出力する HTML） */
.news-front .article__body {
  margin-bottom: var(--news-space-xl);
  line-height: 1.9;
}

/* 本文内の見出し（CMS 出力なのでクラスを付けられない）。
   記事タイトルが `.under-h3` の位置なので、本文はその 1 段下から始まるものとして
   h2 → .under-h4 / h3 → .under-h5 / h4 → .under-h6 の見た目に合わせる。
   サイト側の h5/h6 は上余白を持たない（ページ側が mgt* で調整する前提）ため、
   CMS 本文では段落から離すぶんの margin-top をここで足している。 */
.news-front .article__body h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ceatecblue);
  margin: 1.2em 0 0.25em;
  padding: 0;
  border: none;
}

.news-front .article__body h3 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  margin: 1.2em 0 8px;
  padding: 0 0 0 16px;
}

.news-front .article__body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--ceatecblue);
}

.news-front .article__body h4 {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--news-text);
  margin: 1.2em 0 20px;
  padding: 0 0 0 16px;
}

.news-front .article__body h4::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--ceatecblue);
}

.news-front .article__body p {
  margin-bottom: var(--news-space-md);
}

.news-front .article__body ul,
.news-front .article__body ol {
  margin-bottom: var(--news-space-md);
  padding-left: var(--news-space-xl);
}

.news-front .article__body ul {
  list-style: disc;
}

.news-front .article__body ol {
  list-style: decimal;
}

.news-front .article__body li {
  margin-bottom: var(--news-space-xs);
}

.news-front .article__body a {
  color: var(--news-primary);
  text-decoration: underline;
}

.news-front .article__body img {
  max-width: 100%;
  height: auto;
}

.news-front .article__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--news-space-lg);
}

.news-front .article__body th,
.news-front .article__body td {
  padding: var(--news-space-sm) var(--news-space-md);
  border: 1px solid var(--news-border);
  text-align: left;
}

.news-front .article__body th {
  background: var(--news-surface);
  font-weight: 700;
}

/* 関連リンク・添付ファイル */
/* 関連リンク・添付ファイルの見出し（.article__section-title）は
   サイト共通の `.under-h4`（28px / 800 / --ceatecblue / margin:.7em 0 .25em）
   をそのまま使うため、ここに専用の指定は置かない */

.news-front .article__links,
.news-front .article__attachments {
  margin-bottom: var(--news-space-xl);
}

.news-front .article__link-list,
.news-front .article__att-list {
  display: flex;
  flex-direction: column;
  gap: var(--news-space-sm);
  align-items: flex-start;
}

/* 関連リンクはサイト共通の `.text_link` を使う（外部リンクアイコンは
   add.css の `.text_link::after`（Material Icons の launch）が自動で付く）。
   display / padding-right は .text_link 側が持つので、ここでは色だけ指定する。 */
.news-front .article__link {
  color: var(--news-primary);
}

.news-front .article__link:hover {
  color: var(--news-primary-dark);
}

/* 添付ファイルのリンクはサイト共通のダウンロードボタン（add.css の `.btn.download`）を使う。
   背景・角丸・パディング・左のダウンロードアイコンは add.css 側が持つので、
   ここでは独自のボックス指定を置かず、ボタン上に載る文字の調整だけを行う。
   NOTE: `.btn span { color:#fff }`（0,1,1）より `.news-front .article__att-size`（0,2,0）
         が強いため、ファイルサイズだけは自前で白系に戻す必要がある */
.news-front .article__att-size {
  font-size: var(--news-font-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-left: 0.4em;
}

/* 一覧に戻る */
.news-front .article__back {
  margin-top: var(--news-space-xl);
  padding-top: var(--news-space-lg);
  border-top: 1px solid var(--news-border);
}

.news-front .article__back-link {
  font-size: var(--news-font-sm);
  color: var(--news-text-muted);
}

.news-front .article__back-link:hover {
  color: var(--news-primary);
}


/* --------------------------------------------------------------------------
   エラー表示（404 / 503）
   -------------------------------------------------------------------------- */
.news-error {
  text-align: center;
  padding: var(--news-space-xl) var(--news-space-lg);
}

.news-error__code {
  font-family: "Montserrat", sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: var(--news-border);
  line-height: 1;
  margin: 0 0 var(--news-space-md);
}

.news-front h3.news-error__title {
  font-size: var(--news-font-xl);
  font-weight: 800;
  margin: 0 0 var(--news-space-md);
  padding-top: 0;
}

.news-error__message {
  color: var(--news-text-muted);
  margin: 0 0 var(--news-space-xl);
}

.news-error__back {
  display: inline-block;
  padding: var(--news-space-sm) var(--news-space-lg);
  background: var(--news-primary);
  color: #fff;
  border-radius: var(--news-radius-sm);
  font-weight: 500;
}

.news-error__back:hover {
  background: var(--news-primary-dark);
  color: #fff;
}


/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
/* 一覧タイル: PC 2 列 → タブレット・スマホ 1 列 */
@media screen and (max-width: 1024px) {
  .news-front .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }
}

@media screen and (max-width: 640px) {
  .news-front .news-list {
    gap: 16px;
    padding-top: 16px;
  }

  .news-card__body {
    padding: 16px 16px 20px;
  }

  .news-card__thumb {
    margin: 16px 16px 0 0;
  }

  .news-card__title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .news-card__date,
  .news-card__category {
    font-size: 11px;
    padding: 3px 12px;
  }
}

@media screen and (max-width: 480px) {
  .news-meta-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  /* タブは 2 列に収まる幅まで詰める */
  .news-filter__tabs {
    gap: var(--news-space-md);
  }

  .news-filter__tab--active a,
  .news-filter__tab--disabled span {
    min-width: 120px;
    padding-left: var(--news-space-sm);
    padding-right: var(--news-space-sm);
  }
}
