/* =============================================
   VentroX — news.html（ニュース・導入企業一覧）
   - リスト行の見た目は style.css の .news-row / .news-title / .news-desc / .news-link を踏襲
   - 本ファイルではページ全体のレイアウト・サイドバー・タブ・一覧ページ用の差分のみ定義
   - PC / SP は別ブロック（CODING-RULES準拠）
   ============================================= */

/* ---------- PC ---------- */
@media (min-width: 768px) {
  .news-page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 160px 48px 96px 48px;
  }

  .news-container {
    max-width: 1200px;
    margin: 0 auto 0 auto;
  }

  .news-page-head {
    margin: 0 0 48px 0;
  }

  .news-page-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin: 0 0 0 0;
  }

  .news-layout {
    display: flex;
    align-items: flex-start;
    gap: 56px;
  }

  .news-sidebar {
    position: sticky;
    top: 120px;
    flex-shrink: 0;
    width: 220px;
  }

  .news-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 0 0;
  }

  .news-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px 14px 20px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .news-tab::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
  }

  .news-tab:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.03);
  }

  .news-tab.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .news-tab.is-active::before {
    background: linear-gradient(180deg, #a26bff 0%, #0e6fff 100%);
  }

  .news-tab-count {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
  }

  .news-tab.is-active .news-tab-count {
    color: rgba(255, 255, 255, 0.7);
  }

  .news-content {
    flex: 1;
    min-width: 0;
  }

  /* 一覧ページ用の .news-list 差分（トップの margin-top: 48px をリセット） */
  .news-list--page {
    margin: 0 0 0 0;
  }

  /* 行全体を <a class="news-row"> で包むパターンの装飾調整
     transition を shorthand で上書きすると .anim-up の transition-property が潰れるため
     hover bg の transition は指定しない（.anim-up の fade-in を優先） */
  .news-list--page .news-row {
    text-decoration: none;
    color: inherit;
  }

  .news-list--page .news-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  .news-list--page .news-row:hover .news-link {
    opacity: 0.7;
  }

  .news-empty {
    padding: 48px 0 48px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
  }
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .news-page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 100px 16px 64px 16px;
  }

  .news-container {
    max-width: 100%;
    margin: 0 auto 0 auto;
  }

  .news-page-head {
    margin: 0 0 24px 0;
  }

  .news-page-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin: 0 0 0 0;
  }

  .news-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .news-sidebar {
    width: 100%;
  }

  .news-tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-tabs::-webkit-scrollbar {
    display: none;
  }

  .news-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 14px 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
  }

  .news-tab.is-active {
    background: linear-gradient(135deg, rgba(162, 107, 255, 0.2) 0%, rgba(14, 111, 255, 0.2) 100%);
    border-color: rgba(162, 107, 255, 0.45);
    color: #ffffff;
  }

  .news-tab-count {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    font-variant-numeric: tabular-nums;
  }

  .news-tab.is-active .news-tab-count {
    color: rgba(255, 255, 255, 0.75);
  }

  .news-content {
    width: 100%;
  }

  .news-list--page {
    margin: 0 0 0 0;
  }

  /* SP でも transition の shorthand を使わずに .anim-up を尊重 */
  .news-list--page .news-row {
    text-decoration: none;
    color: inherit;
  }

  .news-empty {
    padding: 32px 0 32px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
  }
}

/* ---------- 共通（非表示制御） ---------- */
.news-row[hidden] {
  display: none;
}
