/* ========================================
   Cubicle Test Page — レイアウトのみ（BSテスト / ehps 準拠）
   ======================================== */

.product-cubicle-test-page .cubicle-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-cubicle-test-page .ehps-main-box > .ehps-section {
  gap: var(--spacing-sm);
}

.product-cubicle-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-cubicle-test-page .ehps-main-box .section-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

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

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

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

/* --- 1. 冒頭：見出し2行中央 + 設備画像 + リード2段落 --- */
.product-cubicle-test-page .cubicle-test-intro {
  position: relative;
}

.product-cubicle-test-page .cubicle-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-cubicle-test-page .cubicle-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-cubicle-test-page .cubicle-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-cubicle-test-page .cubicle-test-intro-visual {
  margin: 0 auto var(--spacing-md);
  width: 100%;
  max-width: min(520px, 78%);
  background: none;
  border: none;
}

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

.product-cubicle-test-page .cubicle-test-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--spacing-sm) * 0.3);
}

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

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

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

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

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

/* --- 3. 太陽光発電システム図（単線図と同程度の表示幅） --- */
.product-cubicle-test-page .cubicle-test-solar-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: none;
  border: none;
}

.product-cubicle-test-page .cubicle-test-solar-diagram {
  display: block;
  width: 100%;
  min-width: min(100%, 560px);
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

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

.product-cubicle-test-page .cubicle-test-spec-features__spec,
.product-cubicle-test-page .cubicle-test-spec-features__features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

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

.product-cubicle-test-page .cubicle-test-spec-simple th,
.product-cubicle-test-page .cubicle-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-cubicle-test-page .cubicle-test-spec-simple th {
  width: 32%;
}

/* --- 5. ラインアップ表 --- */
.product-cubicle-test-page .cubicle-test-lineup-frame {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
}

.product-cubicle-test-page .cubicle-test-lineup-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: transparent;
}

.product-cubicle-test-page .cubicle-test-lineup-table th,
.product-cubicle-test-page .cubicle-test-lineup-table td {
  padding: 0.5rem 0.65rem;
  border: 1px solid #fff;
  text-align: center;
  vertical-align: middle;
  font-weight: var(--font-weight-normal);
  color: #fff;
  background: transparent;
}

.product-cubicle-test-page .cubicle-test-lineup-table thead th {
  font-weight: var(--font-weight-semibold);
}

.product-cubicle-test-page .cubicle-test-lineup-table tbody th {
  text-align: left;
  font-weight: var(--font-weight-semibold);
}

.product-cubicle-test-page .cubicle-test-lineup-table tbody td[rowspan] {
  vertical-align: middle;
}

/* 資料DL */
.product-cubicle-test-page .storage-stand-download {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

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

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

.product-cubicle-test-page .storage-stand-download .btn-primary.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

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

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

  .product-cubicle-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-cubicle-test-page .cubicle-test-intro-headline {
    align-items: center;
    text-align: center;
  }

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

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

  .product-cubicle-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-cubicle-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;
  }
}
