@charset "UTF-8";
/* ==========================================================
   news.css: お知らせ一覧(/news/)と記事ページ(/news/{フォルダ}/)専用
   読み込むのは news/index.html と 44 記事だけ。他のページには影響しない。
   ========================================================== */

/* 太字(700)を追加で読み込む。common.css は 300/400/500/800 のみ */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@700&display=swap");

/* ---------- 共通: 背景は白 ----------
   common.css は背景色を指定していない(透明)ため、閲覧環境によってグレーに見える。
   このファイルは一覧と記事だけで読み込むので、html にそのまま指定してよい。 */
html,
body.news-archive,
body.news-article {
  background-color: #fff;
}

/* ---------- 共通: ヘッダーロゴの下の余白(一覧・記事のみ詰める) ----------
   common.css は 75px。ヘッダーは全ページ共通なので、common.css は変えずにここで上書きする。 */
body.news-archive #header .headerInner,
body.news-article #header .headerInner {
  padding-bottom: 48px;
}
@media (max-width: 960px) {
  body.news-archive #header .headerInner,
  body.news-article #header .headerInner {
    padding-bottom: 36px;
  }
}

/* ---------- 共通: 戻るボタン(一覧・記事のみ小さめにする) ----------
   common.css の .back-button は他のページでも使うため、common.css は変えずにここで上書きする。 */
body.news-archive #content article .back-button,
body.news-article #content article .back-button {
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 22px 6px 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 共通: 製品タグ ---------- */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #c3c8cf;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #14181f;
  white-space: nowrap;
}

/* ==========================================================
   一覧ページ
   ========================================================== */
body.news-archive #content article.archive {
  width: 100%;
  max-width: 1080px; /* 1040px + 左右 20px */
  padding: 0 20px 96px;
}
body.news-archive #content article.archive > h1.page_title {
  margin-bottom: 24px;
}

.news-list {
  width: 100%;
  padding: 0 40px;
  color: #14181f;
}

/* 製品の絞り込み */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-filter[hidden],
.news-pager[hidden] {
  display: none;
}
.news-filter-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #c3c8cf;
  border-radius: 18px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #14181f;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.news-filter-btn.is-active {
  border-color: #14181f;
  background: #14181f;
  color: #fff;
  cursor: default;
}
@media (hover: hover) {
  .news-filter-btn:not(.is-active):hover {
    border-color: #14181f;
  }
}

/* 件数表示 */
.news-count {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #5b6169;
}

/* 記事リスト */
.news-posts {
  margin-top: 12px;
  border-top: 1px solid #14181f;
}
.news-post[hidden] {
  display: none;
}
.news-post > a {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #e3e5e8;
}
.news-post-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 96px;
  white-space: nowrap;
}
.news-post-date {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: #14181f;
}
.news-post-cat {
  font-size: 12px;
  line-height: 1.7;
  color: #5b6169;
}
.news-post-main {
  flex: 1 1 auto;
  min-width: 0;
}
.news-post-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #14181f;
}

/* ページ送り */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}
.news-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  border: 1px solid transparent;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #14181f;
  cursor: pointer;
}
.news-pager .news-pager-num {
  width: 36px;
  height: 36px;
  padding: 0;
  border-color: #c3c8cf;
  border-radius: 50%;
}
.news-pager .news-pager-num.is-current {
  border-color: #14181f;
  background: #14181f;
  color: #fff;
  cursor: default;
}
.news-pager .news-pager-step {
  padding: 0 14px;
  border-radius: 18px;
}
.news-pager .news-pager-step:disabled {
  color: #8a9099;
  cursor: default;
}
@media (hover: hover) {
  .news-pager .news-pager-num:not(.is-current):hover {
    border-color: #14181f;
  }
  .news-pager .news-pager-step:not(:disabled):hover {
    opacity: 0.5;
  }
}

/* フッター(一覧) */
body.news-archive #footer .footerInner {
  width: 100%;
  max-width: 1080px;
  padding: 32px 60px;
}
body.news-archive #footer .footerInner .copyright {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: #5b6169;
}

/* ==========================================================
   記事ページ
   ========================================================== */
body.news-article #content article.single {
  width: 100%;
  max-width: 1000px; /* 960px + 左右 20px */
  padding: 0 20px 100px;
  align-items: stretch;
  color: #14181f;
}
body.news-article #content article.single > .back-button {
  align-self: flex-start;
}

/* 日付・製品タグ・カテゴリ */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.news-meta-date {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.56px;
  color: #14181f;
}
.news-meta-cat {
  font-size: 12px;
  line-height: 1.7;
  color: #5b6169;
}

/* タイトル */
body.news-article #content article.single > h1.news-title {
  margin: 20px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.55;
  color: #141414;
}

/* サムネイル */
.news-thumb {
  margin: 40px 0 0;
}
.news-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* 企業名とロゴの枠(導入事例のみ) */
.news-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 12px;
}
.news-company-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  color: #141414;
}
body.news-article .news-company img.news-company-logo {
  display: block;
  float: none;
  width: 280px;
  max-width: 100%;
  height: 90px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

/* 区切り線 + 本文の枠 */
body.news-article #content article.single .articleInner {
  max-width: none;
  margin-top: 32px;
  padding: 32px 0 0;
  border-top: 1px solid #e0e0e0;
}
body.news-article #content article.single .news-company + .articleInner {
  margin-top: 0;
}

/* 本文 */
body.news-article #content article.single .single-body {
  counter-reset: news-chapter;
  font-size: 16px;
  line-height: 1.9;
  color: #292929;
}
body.news-article #content article.single .single-body .block {
  margin-top: 0;
}
body.news-article #content article.single .single-body p {
  margin-top: 30px;
}
body.news-article #content article.single .single-body p:first-child {
  margin-top: 0;
}

/* 章見出しの枠 */
body.news-article #content article.single .single-body .news-chapter {
  counter-increment: news-chapter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 72px 0 56px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #f6f6f6;
}
body.news-article #content article.single .single-body .news-chapter:first-child {
  margin-top: 0;
}
body.news-article #content article.single .single-body .news-chapter-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
  color: #737373;
}
body.news-article #content article.single .single-body .news-chapter-label::before {
  content: counter(news-chapter, decimal-leading-zero) "\00a0\00a0";
}
body.news-article #content article.single .single-body h3.news-chapter-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  color: #141414;
}

/* 質問の見出し、およびプレスリリースの h3 */
body.news-article #content article.single .single-body h4.news-question,
body.news-article #content article.single .single-body h3:not(.news-chapter-title) {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.85;
  color: #141414;
}
/* プレスリリースの h4 */
body.news-article #content article.single .single-body h4:not(.news-question) {
  margin: 32px 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.85;
  color: #141414;
}
body.news-article #content article.single .single-body h3 + p,
body.news-article #content article.single .single-body h4 + p,
body.news-article #content article.single .single-body h3 + ul,
body.news-article #content article.single .single-body h4 + ul {
  margin-top: 0;
}

/* 本文中の画像 */
body.news-article #content article.single .single-body p.news-img {
  margin: 44px 0 40px;
}
body.news-article #content article.single .single-body p.news-img img,
body.news-article #content article.single .single-body img.news-img-in-text {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}
body.news-article #content article.single .single-body img.news-img-in-text {
  margin: 44px 0 40px;
}

/* 太字 */
body.news-article #content article.single .single-body strong,
body.news-article #content article.single .single-body b {
  font-weight: 700 !important;
}

/* 「news一覧へ戻る」 */
.news-back {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 36px;
  border-top: 1px solid #e0e0e0;
}
.news-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 28px;
  border: 1px solid #14181f;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #14181f;
}

/* フッター(記事) */
body.news-article #footer .footerInner {
  max-width: 1200px;
  padding-bottom: 24px;
}
body.news-article #footer .footerInner .copyright {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
  color: #737373;
}

/* ==========================================================
   スマートフォン(幅 750px 以下)
   ========================================================== */
@media (max-width: 750px) {
  body.news-archive #content article.archive,
  body.news-article #content article.single {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .news-list {
    padding: 0;
  }
  .news-filter-btn {
    padding: 0 16px;
  }
  .news-post > a {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }
  .news-post-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
  }
  .news-post-title {
    font-size: 15px;
  }
  .news-pager {
    gap: 6px;
    margin-top: 48px;
  }
  .news-pager .news-pager-step {
    padding: 0 8px;
  }
  body.news-archive #footer .footerInner {
    padding: 24px 20px;
  }

  body.news-article #content article.single > h1.news-title {
    font-size: 24px;
  }
  .news-company {
    padding: 20px 0;
  }
  body.news-article #content article.single .single-body .news-chapter {
    margin: 56px 0 40px;
    padding: 20px 22px;
  }
  body.news-article #content article.single .single-body h3.news-chapter-title {
    font-size: 20px;
  }
  body.news-article #content article.single .single-body h4.news-question,
  body.news-article #content article.single .single-body h3:not(.news-chapter-title) {
    font-size: 17px;
  }
  body.news-article #content article.single .single-body p.news-img,
  body.news-article #content article.single .single-body img.news-img-in-text {
    margin: 32px 0 28px;
  }
}
