/* ========================================
   BS Test Page — レイアウトのみ（タイポは ehps / product-bs に準拠）
   ======================================== */

.product-bs-test-page .bs-test-banner {
  margin: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 136, 0, 0.18);
  border-bottom: 1px solid var(--color-secondary);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  text-align: center;
}

.product-bs-test-page .ehps-main-box > .ehps-section {
  gap: var(--spacing-sm);
}

/* タイポグラフィ統一（ehps-page .content-box と同階層） */
.product-bs-test-page .ehps-main-box .section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.product-bs-test-page .ehps-main-box .section-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.product-bs-test-page .ehps-main-box p,
.product-bs-test-page .ehps-main-box .bs-feature-list li {
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.product-bs-test-page .ehps-main-box p {
  margin-bottom: var(--spacing-sm);
}

.product-bs-test-page .ehps-main-box .ehps-section > p:last-child,
.product-bs-test-page .ehps-main-box .bs-usecases > p:last-child {
  margin-bottom: 0;
}

.product-bs-test-page .bs-test-spec-simple {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
}

.product-bs-test-page .bs-test-note {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-gray-600);
}

/* --- 1. 冒頭：見出し中央 + 構成図 + リード文 --- */
.product-bs-test-page .bs-test-intro {
  position: relative;
}

.product-bs-test-page .bs-test-intro-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: 0 0 var(--spacing-lg);
  width: 100%;
  text-align: center;
}

.product-bs-test-page .bs-test-intro-headline .section-title {
  flex: none;
  width: 100%;
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: var(--line-height-tight);
  text-align: center !important;
}

.product-bs-test-page .bs-test-intro-headline .section-subtitle {
  flex: none;
  width: 100%;
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  text-align: center !important;
}

.product-bs-test-page .bs-test-intro-visual {
  margin: 0;
  width: 100%;
  background: none;
  border: none;
}

.product-bs-test-page .bs-test-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 箇条書き：・＋本文（余白のみ調整・文字サイズは base） */
.product-bs-test-page .bs-feature-list {
  gap: calc(var(--spacing-sm) * 0.3);
}

.product-bs-test-page .bs-feature-list li {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  padding-left: 0;
  position: static;
}

.product-bs-test-page .bs-feature-list li::before {
  content: '・';
  position: static;
  left: auto;
  flex-shrink: 0;
  color: var(--color-white);
}

/* --- 2. 単線図 --- */
.product-bs-test-page .bs-test-diagram-wide {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.product-bs-test-page .bs-test-figure-frame {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: none;
  border: none;
}

.product-bs-test-page .bs-test-line-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* --- 3. 主要仕様 + 特徴（2カラム） --- */
.product-bs-test-page .bs-test-spec-features {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
  align-items: start;
}

/* 各カラムも .ehps-section と同じ見出し〜下線〜本文の余白 */
.product-bs-test-page .bs-test-spec-features__spec,
.product-bs-test-page .bs-test-spec-features__features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.product-bs-test-page .bs-test-spec-features__spec .section-divider,
.product-bs-test-page .bs-test-spec-features__features .section-divider {
  margin-bottom: var(--spacing-md);
}

.product-bs-test-page .bs-test-spec-simple {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.product-bs-test-page .bs-test-spec-simple th,
.product-bs-test-page .bs-test-spec-simple td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #fff;
  text-align: left;
  vertical-align: top;
  font-weight: var(--font-weight-normal);
  color: #fff;
  background: transparent;
}

.product-bs-test-page .bs-test-spec-simple th {
  width: 38%;
}

/* --- 4. PCS 一覧 --- */
.product-bs-test-page .bs-test-pcs-frame {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
}

.product-bs-test-page .bs-test-pcs-image {
  display: block;
  width: 100%;
  min-width: 560px;
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.product-bs-test-page .bs-test-note {
  margin: var(--spacing-md) 0 0;
  text-align: center;
}

/* 資料DL：cubicle.html と同様（見出し・罫線なし・ボタンのみ） */
.product-bs-test-page .storage-stand-download {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.product-bs-test-page .storage-stand-download .btn-primary {
  color: var(--color-white);
  background-color: transparent;
  border: 2px solid var(--color-white);
}

.product-bs-test-page .storage-stand-download .btn-primary:hover {
  color: var(--color-gray-300);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

@media (min-width: 992px) {
  .product-bs-test-page .bs-test-spec-features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 768px) {
  .product-bs-test-page .ehps-hero .page-title {
    line-height: 0.95;
  }

  .product-bs-test-page .ehps-hero .page-subtitle {
    width: calc(100% - var(--spacing-xl));
    font-size: clamp(0.8125rem, 3.4vw, 1rem);
    line-height: 1.25;
    margin-top: calc(var(--font-size-3xl) * 0.95 + var(--spacing-xs));
  }

  .product-bs-test-page .bs-test-intro-headline {
    align-items: center;
    text-align: center;
  }

  .product-bs-test-page .bs-test-intro-visual img {
    margin-inline: auto;
  }

  .product-bs-test-page .ehps-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: left;
  }

  .product-bs-test-page .ehps-section-header .section-title {
    width: 100%;
    margin: 0 !important;
    padding-top: 0 !important;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(1.3125rem, 6.2vw, var(--font-size-3xl));
    line-height: 1.35;
  }

  .product-bs-test-page .ehps-section-header .section-subtitle {
    width: 100%;
    margin: 0 !important;
    text-align: left;
    white-space: nowrap;
    font-size: clamp(0.8125rem, 3.6vw, 1rem);
    line-height: 1.3;
  }
}

/* 輸送と据付：2枚横並び */
.product-bs-test-page .bs-test-install-photos {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  background: none;
  border: none;
}

.product-bs-test-page .bs-test-install-photos img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .product-bs-test-page .bs-test-install-photos {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
