/* ========================================
   EHPS (特高変電所) Page Styles
   ======================================== */

.ehps-hero {
  background-image: url('../images/products/pro_back.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* 縦方向はグローバル .section と重ねず、カード下の余白は .content-box の margin に一本化 */
.ehps-main-section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  margin-bottom: 0;
}

.ehps-main-box {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  text-align: left !important;
}

.ehps-hero-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.ehps-hero-title-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--spacing-lg);
  width: 100%;
}

.ehps-hero-title-group .ehps-hero-subtitle {
  flex: none;
  min-width: 0;
}

.ehps-hero-title-group .ehps-hero-subtitle-en {
  flex-shrink: 0;
  margin-left: auto;
}

.ehps-hero-main-image {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: auto;
}

.ehps-hero-subtitle {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #FF6600;
  text-align: center;
  margin: 0;
}

.ehps-hero-subtitle-en {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  text-align: right;
  margin: 0;
}


.ehps-section,
.ehps-main-box .section-header,
.ehps-main-box .section-divider,
.ehps-main-box .products-links,
.ehps-main-box .ehps-product-images,
.ehps-main-box .ehps-main-products {
  width: 100%;
}

.ehps-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-align: left !important;
}

.ehps-section p {
  text-align: left !important;
}

.ehps-section ul {
  text-align: left !important;
  padding-left: var(--spacing-lg);
}

.ehps-section li {
  text-align: left !important;
}

.ehps-section > h3.section-title,
.ehps-section > h4.section-title {
  margin-top: 0;
  margin-bottom: var(--spacing-xs);
}

.ehps-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-lg);
  width: 100%;
}

.ehps-section-header .section-title {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ehps-section-header .section-subtitle {
  flex-shrink: 0;
  text-align: right;
  margin: 0;
}

.ehps-hero-release {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  margin: var(--spacing-sm) 0 0;
}

.ehps-features-list,
.ehps-support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-xl);
  display: grid;
  gap: var(--spacing-sm);
  text-align: left !important;
}

.ehps-features-list li,
.ehps-support-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  text-align: left !important;
}

.ehps-features-list li::before,
.ehps-support-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
}

.ehps-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-xl) 0;
  font-size: var(--font-size-base);
}

.ehps-spec-table th,
.ehps-spec-table td {
  border: 1px solid var(--color-gray-200);
  padding: var(--spacing-sm);
  text-align: left;
}

.ehps-spec-table thead {
  background-color: var(--color-gray-100);
}

/* 製品仕様表：product-tx5000 の製品仕様スタイルに合わせる（content-box 内） */
.ehps-page .content-box .ehps-spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-table-border);
  margin: var(--spacing-xl) 0;
  background: transparent;
}

.ehps-page .content-box .ehps-spec-table tr {
  border-bottom: 1px solid var(--color-table-border);
}

.ehps-page .content-box .ehps-spec-table tr:last-child {
  border-bottom: none;
}

.ehps-page .content-box .ehps-spec-table th,
.ehps-page .content-box .ehps-spec-table td {
  border-right: 1px solid var(--color-table-border);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  text-align: left;
  color: var(--color-white);
}

.ehps-page .content-box .ehps-spec-table th:last-child,
.ehps-page .content-box .ehps-spec-table td:last-child {
  border-right: none;
}

.ehps-page .content-box .ehps-spec-table thead th {
  width: 35%;
  background-color: var(--color-main-bg);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  vertical-align: middle;
}

.ehps-page .content-box .ehps-spec-table tbody th {
  width: 35%;
  background-color: rgba(255, 255, 255, 0.08);
  font-weight: var(--font-weight-semibold);
  vertical-align: middle;
}

.ehps-page .content-box .ehps-spec-table tbody td {
  width: 65%;
}

.ehps-main-box .section-header {
  align-items: flex-start;
}

.ehps-main-box .section-title,
.ehps-main-box .section-subtitle {
  text-align: left;
}

@media (max-width: 991px) {
  .ehps-main-section {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }

  .ehps-main-box {
    gap: var(--spacing-2xl);
  }

  .ehps-hero-block {
    align-items: center;
    text-align: center;
  }

  .ehps-hero-title-group {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .ehps-section-header {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .ehps-section-header .section-title,
  .ehps-section-header .section-subtitle {
    text-align: center;
  }

  .ehps-features-list,
  .ehps-support-list {
    gap: var(--spacing-xs);
  }

  .ehps-spec-table {
    font-size: var(--font-size-sm);
  }

  .ehps-hero-main-image {
    max-width: 100%;
  }

  .ehps-hero-subtitle {
    font-size: var(--font-size-2xl);
    text-align: center;
  }

  .ehps-hero-subtitle-en {
    text-align: center;
    margin-top: var(--spacing-xs);
  }
}

@media (max-width: 576px) {
  .ehps-main-box {
    gap: var(--spacing-xl);
  }

  .ehps-hero-subtitle {
    font-size: var(--font-size-xl);
    text-align: center;
  }

  .ehps-hero-subtitle-en {
    text-align: center;
  }

  .ehps-spec-table th,
  .ehps-spec-table td {
    font-size: var(--font-size-sm);
  }

  .ehps-features-list li,
  .ehps-support-list li {
    font-size: var(--font-size-sm);
  }
}

.ehps-hero .page-title,
.ehps-hero .page-subtitle {
  color: var(--color-white);
}

.ehps-diagram {
  display: block;
  max-width: 90%;
  height: auto;
  margin: var(--spacing-xl) auto;
  border: none;
}

.ehps-diagram-stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.ehps-diagram-stack .ehps-diagram {
  margin: 0 auto;
}

.ehps-product-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.ehps-main-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.ehps-product-thumb,
.ehps-main-product-thumb {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-gray-200);
}

/* 商品詳細と同様の暗いグレー＋白文字に統一 */
.ehps-page .content-box {
  background-color: var(--color-gray-300);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-none);
  padding: var(--spacing-3xl);
  /* margin-bottom は pages.css の .content-box に任せる（二重にならないようにする） */
  text-align: left !important;
}

.ehps-page .content-box .section-title,
.ehps-page .content-box .section-subtitle,
.ehps-page .content-box p,
.ehps-page .content-box li,
.ehps-page .content-box .ehps-intro-text,
.ehps-page .content-box .product-link {
  color: var(--color-white);
}

.ehps-page .content-box .ehps-hero-subtitle {
  color: var(--color-white);
}

.ehps-page .content-box .solution-back-link .btn-outline,
.ehps-page .content-box .solution-back-link .btn,
.ehps-page .solution-back-link-mobile .btn-outline,
.ehps-page .solution-back-link-mobile .btn {
  color: var(--color-white);
  background-color: transparent;
  border-color: var(--color-white);
}
.ehps-page .content-box .solution-back-link .btn-outline:hover,
.ehps-page .content-box .solution-back-link .btn:hover,
.ehps-page .solution-back-link-mobile .btn-outline:hover,
.ehps-page .solution-back-link-mobile .btn:hover {
  color: var(--color-gray-300);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.ehps-page .content-box .btn-primary,
.ehps-page .content-box .btn-outline {
  color: var(--color-white);
  background-color: transparent;
  border-color: var(--color-white);
}
.ehps-page .content-box .btn-primary:hover,
.ehps-page .content-box .btn-outline:hover {
  color: var(--color-gray-300);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.ehps-page .content-box .ehps-features-list li,
.ehps-page .content-box .ehps-support-list li {
  color: var(--color-white);
}
.ehps-page .content-box .ehps-features-list li::before,
.ehps-page .content-box .ehps-support-list li::before {
  color: var(--color-white);
}

.ehps-page .content-box .section-divider {
  background-color: rgba(255, 255, 255, 0.3);
}

.ehps-page .section-header {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.ehps-page .section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin: 0;
}

.ehps-page .content-box .section-title {
  color: var(--color-white);
}

.ehps-page .section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  margin: 0;
  font-style: italic;
}

.ehps-page .content-box .section-subtitle {
  color: var(--color-white);
}

.ehps-page .section-divider {
  width: 100%;
  height: 1px;
  background-color: #d1d5db;
  margin-bottom: var(--spacing-md);
}

.ehps-page main p {
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-md);
}

.ehps-page .content-box p {
  color: var(--color-white);
}

.ehps-page .ehps-main-box p,
.ehps-page .ehps-main-box li {
  color: var(--color-white);
}

.ehps-page main p:last-of-type {
  margin-bottom: 0;
}

.ehps-page .text-center {
  text-align: center;
}

.ehps-page .products-links {
  margin-top: var(--spacing-md);
  text-align: center;
}

.ehps-page .product-link {
  display: block;
  font-size: var(--font-size-base);
  color: var(--color-black);
  text-decoration: underline;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.ehps-page .content-box .product-link {
  color: var(--color-white);
}

.ehps-page .product-link:hover {
  color: var(--color-black);
  text-decoration: none;
}

.ehps-page .content-box .product-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ehps-page .product-link:last-child {
  margin-bottom: 0;
}

/* スマホ: 他ページの .content-box .section-title と同じ余白・見出しスケール */
@media (max-width: 768px) {
  .ehps-page .section-title {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
    font-size: clamp(1.25rem, 4.2vw, 1.75rem);
    line-height: var(--line-height-tight);
  }
}

