/* ============================================================
   news.css
   ニュース一覧ページ + ニュース詳細ページ 共通スタイル
   index_news.html / 20230131.html / 20171016.html 用
   style.css に定義済みのクラスは使用、未定義のものをここに記述
   ============================================================ */


/* ================================================================
   1. ページヒーロー（ニュース一覧）
   ================================================================ */

.news-page-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.news-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.news-page-hero .section-tag {
  color: var(--accent-cyan);
  margin-bottom: 16px;
  position: relative;
}
.news-page-hero .section-tag::before {
  background: var(--accent-cyan);
}
.news-page-title {
  font-family: var(--font-serif-ja);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
  position: relative;
}
.news-page-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  position: relative;
}


/* ================================================================
   2. セクション共通ヘッダー
   ================================================================ */

.news-section {
  padding: 64px 0 0;
}
.case-section {
  padding: 48px 0 64px;
}
.news-section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.news-section-header .section-tag {
  margin-bottom: 0;
}
.news-section-header .section-title {
  font-size: 22px;
  margin: 0;
}


/* ================================================================
   3. ニュース一覧（ページ版）
   ================================================================ */

/* style.css の .news-item を継承しつつ、幅いっぱいに拡張 */
.news-list-page .news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.25s;
}
.news-list-page .news-item:first-child {
  border-top: 1px solid var(--border-light);
}
.news-list-page .news-item:hover {
  padding-left: 8px;
}
.news-list-page .news-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}
.news-list-page .news-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}
.news-list-page .news-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.news-list-page .news-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-list-page .news-item:hover .news-title {
  color: var(--brand-red);
}

/* NEWバッジ */
.news-cat-new {
  background: var(--brand-red) !important;
  color: #fff !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
  letter-spacing: 0.05em;
}

/* データ活用塾カテゴリ */
.news-cat.bigdata {
  background: rgba(0,184,160,0.1);
  color: var(--accent-teal);
}

/* 外部リンクアイコン */
.news-external-icon {
  flex-shrink: 0;
  opacity: 0.5;
}

/* サブリンク */
.news-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-sub-link {
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: underline;
  transition: color 0.2s;
}
.news-sub-link:hover { color: var(--brand-red-dark); }


/* ================================================================
   4. 事例紹介カードグリッド
   ================================================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.case-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(153,0,0,0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(153,0,0,0.2);
}
.case-card:hover::before { opacity: 1; }
.case-card-marker {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
  flex-shrink: 0;
}
.case-card-body { flex: 1; }
.case-card-company {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.case-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.case-card-arrow {
  flex-shrink: 0;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
}
.case-card:hover .case-card-arrow {
  color: var(--brand-red);
  transform: translateX(3px);
}


/* ================================================================
   5. ニュース詳細ページ共通
   ================================================================ */

/* ヒーロー内メタ行（日付 + カテゴリバッジ）*/
.na-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  position: relative;
}
.na-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* 記事ラッパー */
.na-article {
  max-width: 800px;
  margin: 56px auto 64px;
  padding: 0;
}

/* 本文共通 */
.na-body {
  font-size: 15px;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.na-body p {
  margin-bottom: 20px;
}
.na-body p:last-child {
  margin-bottom: 0;
}

/* 本文内 h2 */
.na-section-title {
  font-family: var(--font-serif-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  border-left: 4px solid var(--brand-red);
  padding-left: 14px;
  margin: 32px 0 16px;
  line-height: 1.4;
}

/* セクションブロック（本文区分）*/
.na-section-block {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 2;
  color: var(--text-primary);
}
.na-section-block p {
  margin-bottom: 16px;
}
.na-section-block p:last-child {
  margin-bottom: 0;
}

/* リスト */
.na-list {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}
.na-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 6px 0 6px 24px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.na-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  opacity: 0.7;
}

/* 注釈 */
.na-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 画像横並び */
.na-img-row {
  display: flex;
  gap: 16px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.na-img {
  flex: 1;
  min-width: 200px;
  max-width: 48%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* リンク */
.na-link {
  color: var(--brand-red);
  text-decoration: underline;
  transition: color 0.2s;
  word-break: break-all;
}
.na-link:hover { color: var(--brand-red-dark); }

/* 問い合わせ情報 */
.na-contact-info {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 16px;
  border: 1px solid var(--border);
}
.na-contact-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 1.6;
}
.na-contact-row:last-child { border-bottom: none; }
.na-contact-label {
  flex-shrink: 0;
  width: 72px;
  font-weight: 700;
  color: var(--brand-navy);
}

/* ニュース一覧へ戻るリンク */
.na-back-link {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}


/* ================================================================
   6. 挨拶文ページ専用（20230131.html）
   ================================================================ */

/* 冒頭の挨拶文 */
.na-salutation {
  font-size: 15px;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* 結びの「敬具」*/
.na-closing {
  text-align: right;
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 24px;
}

/* 署名エリア */
.na-signature {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}
.na-signature-date {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  padding-top: 4px;
}
.na-signature-addr {
  text-align: right;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-primary);
}
.na-signature-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 6px;
}

/* 役員人事テーブルブロック */
.na-board {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.na-board-title {
  text-align: center;
  font-family: var(--font-serif-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 20px;
  letter-spacing: 0.3em;
}
.na-board-table {
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15px;
}
.na-board-table tr {
  border-bottom: 1px solid var(--border-light);
}
.na-board-table tr:last-child {
  border-bottom: none;
}
.na-board-role {
  padding: 12px 24px 12px 0;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.na-board-name {
  padding: 12px 24px;
  color: var(--brand-navy);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.1em;
}
.na-board-note {
  padding: 12px 0;
  color: var(--brand-red);
  font-size: 13px;
  white-space: nowrap;
}
.na-board-end {
  text-align: right;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
}


/* ================================================================
   7. プレスリリースページ専用（20171016.html）
   ================================================================ */

/* プレスリリース前文ブロック */
.na-press-header {
  background: var(--bg-section);
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 24px 28px;
  margin-bottom: 32px;
}
.na-press-to {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.na-press-title {
  font-family: var(--font-serif-ja);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.5;
  margin-bottom: 12px;
}
.na-press-org {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.7;
}


/* ================================================================
   8. レスポンシブ
   ================================================================ */

@media (max-width: 860px) {
  /* ニュース一覧 */
  .news-list-page .news-item {
    flex-direction: column;
    gap: 8px;
  }
  .news-list-page .news-meta {
    min-width: auto;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }

  /* 詳細ページ */
  .na-article {
    margin: 40px auto 48px;
  }
  .na-signature {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .na-board-table {
    font-size: 14px;
  }
  .na-board-role,
  .na-board-name {
    padding: 10px 12px 10px 0;
  }
}

@media (max-width: 600px) {
  /* ニュース一覧 */
  .news-page-hero {
    padding: 40px 0 32px;
  }
  .news-section-header {
    flex-direction: column;
    gap: 4px;
  }

  /* 詳細ページ */
  .na-img-row {
    flex-direction: column;
  }
  .na-img {
    max-width: 100%;
  }
  .na-contact-row {
    flex-direction: column;
    gap: 4px;
  }
  .na-press-header {
    padding: 16px 18px;
  }
}

/* ================================================================
   9. 協業・プレスリリース記事専用（20230301_collaborate_with_ww.html）
   ================================================================ */

/* ---- 協業内容サマリーボックス ---- */
.na-collab-summary {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 0;
}
.na-collab-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.na-collab-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.na-collab-list li:last-child {
  border-bottom: none;
}
.na-collab-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--accent-cyan) 100%);
}
.na-collab-highlight {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.8;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-cyan);
  margin: 0;
}

/* ---- バナー画像ブロック ---- */
.na-banner-block {
  margin: 20px 0 24px;
  text-align: center;
}
.na-banner-img {
  max-width: 100%;
  width: 820px;
  height: auto;
  display: inline-block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.na-banner-caption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
  line-height: 1.7;
}

/* ---- サービス紹介カード（スタビジ・スタアカ・Z-Adam）---- */
.na-service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.na-service-card:last-of-type {
  margin-bottom: 0;
}
.na-service-card-head {
  background: var(--brand-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.na-service-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-red);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.na-service-card-body {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  background: #fff;
}
.na-service-card-body p {
  margin-bottom: 14px;
}
.na-service-card-body p:last-child {
  margin-bottom: 0;
}
.na-service-highlight {
  font-size: 16px;
  color: var(--brand-red);
  display: block;
  margin-bottom: 6px;
}

/* ---- 関連リンクリスト ---- */
.na-related-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.na-related-link {
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: underline;
  line-height: 1.6;
  transition: color 0.2s;
  word-break: break-all;
}
.na-related-link:hover {
  color: var(--brand-red-dark);
}
.na-related-link::before {
  content: '・';
  color: var(--brand-red);
  font-weight: 700;
  margin-right: 4px;
}

/* ---- Z-Adam製品リンク ---- */
.na-zadam-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.na-zadam-links .na-link {
  font-size: 14px;
  line-height: 1.6;
}

/* ---- レスポンシブ追記 ---- */
@media (max-width: 860px) {
  .na-collab-summary {
    padding: 20px 18px;
  }
  .na-service-card-body {
    padding: 16px 18px;
  }
}
@media (max-width: 600px) {
  .na-collab-highlight {
    font-size: 14px;
  }
  .na-service-card-head {
    font-size: 15px;
    flex-wrap: wrap;
  }
  .na-banner-img {
    width: 100%;
  }
}
