/*
 * product.css — 現役製品・サービスページ（旧URL維持）の共通スタイル
 *
 * 対象: /file-box/ /NX/ /h3c/ /fcgw/ /si/
 * 前提: template.css を先に読み込む（トークン・ヘッダー・フッター・hero・section を共有）。
 * legacy.css（提供終了ページ用）とは併用しない。
 */

/* ===== Skip link / focus ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.product-page a:focus-visible,
.product-page button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Breadcrumb（hero 内・濃色背景前提） ===== */
.page-breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
}

.page-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
}

.page-breadcrumb li + li::before {
  content: '/';
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-breadcrumb [aria-current="page"] { color: #fff; }

/* Hero のサブタイトルは template.css の既定より濃くして可読性を確保する */
.hero-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* ===== Hero visual ===== */
.hero-visual {
  flex: 0 1 42%;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #fff;
}

/* ===== 本文（prose） ===== */
.prose {
  max-width: 760px;
  color: var(--text-primary);
}

.prose p + p { margin-top: 16px; }

.prose--wide { max-width: none; }

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.prose a:hover { color: var(--primary-hover); }

/* ===== 図版 ===== */
.figure {
  margin: 32px 0 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.figure--plain img { border: none; }

/* 図版を横並びにする（構成例など） */
.figure-grid {
  display: grid;
  gap: 32px;
  margin-top: 8px;
}

.figure-grid .figure { margin-top: 0; }

.figure-grid h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ===== 特長カード ===== */
.feature-card h3,
.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-card .figure { margin-top: 16px; }

/* ===== 比較表 ===== */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.compare-table thead th {
  background: var(--surface-muted);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.compare-table tbody th {
  width: 24%;
  background: var(--surface-muted);
  font-weight: 700;
  white-space: nowrap;
}

.compare-table .is-highlight {
  background: rgba(56, 128, 255, 0.06);
  font-weight: 600;
}

/* ===== 箇条書き ===== */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.75;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== 対応ベンダーのロゴ一覧 ===== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-grid li {
  display: flex;
}

.logo-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.logo-grid a:hover { border-color: var(--border-strong); }

.logo-grid img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
}

/* ===== 事例・実績リスト ===== */
.case-list {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-list h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.case-list p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* セクション内の区切り見出し（template.css の text-muted はコントラスト不足） */
.section-divider span { color: var(--primary); }

/* ===== 補助リンク ===== */
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  font-size: 15px;
}

.link-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-list a:hover { color: var(--primary-hover); text-decoration: underline; }

.section-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-visual { width: 100%; flex: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { font-size: 14px; }
}
