/* お知らせ・施工事例のページの書式（2026/10/9 news/index.html の中から出した）
   読むのは news/index.html と jirei/index.html。記事のページ（/news/<id>・/jirei/<id>）は Functions がこのどちらかを土台に組むので、ここの書式がそのまま効く。
   カード（.nw-card など）はトップでも使うので brand.css にある */
/* お知らせ一覧（2026/10/8 写真つきのカードに。カードの書式は brand.css の .nw-*） */
#list-view{ padding-top: 56px; }
@media(max-width:760px){ #list-view{ padding-top: 32px; } }

/* 個別記事 */
.article-wrap{
  max-width: 760px; margin-inline: auto;
}
.article-meta{
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .1em;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.article-meta .cat{
  color: var(--accent); border: 1px solid var(--accent);
  padding: 2px 10px; border-radius: 3px;
  font-size: 10px;
}
.article-title{
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 48px;
}
.article-eye{
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%;
  border-radius: 14px;
  margin-bottom: 44px;
  background: var(--paper-2);
}
.article-body{
  font-family: var(--serif);
  font-size: 16px; line-height: 1.85; /* 代表メッセージ本文(1.85)に揃える。以前は2で他より広かった */
  color: var(--ink);
}
.article-body h2{ font-family: var(--serif); font-size: 24px; margin: 48px 0 16px; font-weight: 700; }
.article-body h3{ font-family: var(--serif); font-size: 20px; margin: 36px 0 14px; font-weight: 700; }
.article-body p{ margin-bottom: 20px; }
.article-body ul, .article-body ol{ margin: 0 0 20px 24px; }
.article-body li{ margin-bottom: 6px; }
.article-body a{ color: var(--accent); border-bottom: 1px solid currentColor; }
.article-body img{ max-width: 100%; height: auto; border-radius: 6px; margin: 24px 0; }
.article-body blockquote{
  border-left: 3px solid var(--accent);
  padding: 8px 24px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body strong{ font-weight: 700; }

/* 記事の下: お問い合わせ・関連するページ・前後の記事（2026/10/8） */
.nw-cta{
  margin-top: 56px; padding: 30px 32px; border-radius: 16px;
  background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center;
}
.nw-cta h2{ font-size: 20px; font-weight: 900; line-height: 1.5; color: #fff; }
.nw-cta p{ margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.7; }
.nw-cta-btns{ display: flex; flex-wrap: wrap; gap: 10px; }
.nw-cta-btns a{
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 10px; font-weight: 800; font-size: 15px; white-space: nowrap;
}
.nw-cta-tel{ background: var(--orange); color: var(--navy); font-family: var(--num); font-stretch: 92%; font-size: 17px !important; }
.nw-cta-form{ border: 2px solid rgba(255,255,255,.6); color: #fff; }
.nw-cta-form:hover{ background: #fff; color: var(--navy); }
.nw-cta-line{ background: #06c755; color: #fff; }
.nw-related{ margin-top: 28px; }
.nw-related h3{ font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 10px; }
.nw-related-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.nw-related-links a{
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 700; font-size: 14px;
}
.nw-related-links a::after{ content: "→"; }
.nw-related-links a:hover{ background: var(--navy); color: #fff; }
.nw-pager{ margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nw-pager a{
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  white-space: normal; min-width: 0;   /* <nav> の中なので brand.css の nav a{nowrap} が当たる＝長い題名で横にはみ出していた（2026/10/14） */
  transition: border-color .3s, background .3s;
}
.nw-pager a:hover{ border-color: var(--accent); background: #fffaf3; }
.nw-pager small{ display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.nw-pager span{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.55; }
.nw-pager .next{ text-align: right; grid-column: 2; }
.nw-others{ margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
.nw-others-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.nw-others-head h2{ font-size: 22px; font-weight: 900; }
.nw-others-head a{ font-size: 14px; font-weight: 700; color: var(--accent); }
.back-link{
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 40px;
  font-size: 13px; letter-spacing: .1em;
  color: var(--ink-soft);
}
.back-link:hover{ color: var(--accent); }
@media(max-width:640px){
  .nw-cta{ grid-template-columns: 1fr; padding: 24px 20px; }
  .nw-cta-btns a{ flex: 1 1 100%; justify-content: center; }
  .nw-pager{ grid-template-columns: 1fr; }
  .nw-pager .next{ grid-column: 1; }
  .nw-others{ margin-top: 56px; padding-top: 40px; }
}

.empty-state{
  text-align: center; padding: 80px 0;
  color: var(--ink-mute); font-size: 14px;
}

/* 2026/10/9 記事をサーバーで組むようになって足した分 */
/* 確認用の住所で下書きを開いたときの帯（本番の住所では下書きは出ない） */
.ssr-draft{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;   /* 上はヘッダーが重なるので下に固定 */
  margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); text-align: center;
  background: #5b6472; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.6;
}
/* Quill の箇条書き（<ol><li data-list="bullet">）を点で出す */
.article-body ol li[data-list="bullet"]{ list-style-type: disc; }
.article-body ol li[data-list="ordered"]{ list-style-type: decimal; }
/* 本文は社内ポータルの Quill で開いて保存できる形だけで書く（表・figure は Quill が消すので使わない） */
