/* デジタルパワー画面スタイル */
body {
  font:16px/1.6 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans JP";
  color: #333;
  line-height: 1.7;
  background: #f5f5f5;
  margin: 0;
}

.breadcrumbs {
  max-width: 1100px;
  margin: 20px auto 16px;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  padding: 0 20px;
}

.grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* スライダー */
.slider {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slider-images {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 1 0 100%;
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 左右矢印 */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0099ff;  
  font-size: 64px;  
  line-height: 60px;
  text-align: center;
  font-weight: 900;
  user-select: none;
  transition: color 0.3s;
  z-index: 10;
}

.slider-prev::before,
.slider-next::before {
  display: block;
  font-family: sans-serif;
}

.slider-prev::before {
  content: "‹";
}

.slider-next::before {
  content: "›";
}

.slider-prev { left: 5px; } 
.slider-next { right: 5px; }

.slider-prev:hover,
.slider-next:hover {
  color: #009dff;
}

.slider-dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #007bff;
}

/* Huaweiロゴセクション */
.logo-section {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.huawei-logo {
  max-width: 350px;
  height: auto;
}

/* メインタイトル */
.h2 {
  font-size: 2em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  padding: 15px 40px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1060px; /* .product-categoryのpadding（20px合計）を考慮 */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 製品カテゴリ */
.product-category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #ecf0f1;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* カテゴリラベル */
.category-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.category-label {
  padding: 8px 15px;
  text-align: center;
  flex: 1;
  margin-right: 18px;
  border-radius: 5px;
  font-weight: 500;
  color: #fff;
  width: 32%;
}

.category-label:last-child {
  margin-right: 0;
}

.residential {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.industrial {
  background: linear-gradient(90deg, #0099ff, #009dff);
}

/* 製品行 */
.product-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* カード */
.card {
  border: 2px solid #ddd;
  padding: 15px;
  width: 32%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  background: #fff;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.residential {
  border-color: #27ae60;
}

.industrial {
  border-color: #0099ff;
}

.card_title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
  background: #ecf0f1;
  padding: 8px 15px;
  border-radius: 5px;
}

.image-container {
  margin-bottom: 10px;
  height: 220px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
}

.card_image {
  max-width: 95%;
  height: auto;
  object-fit: cover;
}

.product-features {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 0.9em;
}

.product-features li {
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 6px 12px;
  background: #f9f9f9;
  border-left: 5px solid #3498db;
  border-radius: 5px;
  color: #34495e;
}

/* パートナーシップセクション */
.partnership-section {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.partnership-logo {
  max-width: 100px;
  height: auto;
  margin-right: 20px;
  vertical-align: middle;
}

.partnership-text {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

.partnership-text p {
  margin: 5px 0;
  color: #2c3e50;
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0 10px;
  }

  .grid {
    padding: 10px;
  }

  .product-row {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
  }

  .category-row {
    flex-direction: column;
  }

  .category-label {
    margin-bottom: 10px;
    width: 100%;
  }

  .slider-images {
    height: auto;
  }

  .slide img {
    height: auto;
  }

  .slider-prev, .slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-bottom-width: 8px;
    border-top-width: 8px;
    border-left-width: 8px;
    border-right-width: 8px;
    left: 10px;
    right: 10px;
  }

  .partnership-section {
    flex-direction: column;
    text-align: center;
  }

  .partnership-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .category-row { display: none; }
  .product-row { display:flex; flex-direction:column; gap:16px; }

  .card { width:100%; max-width:none; margin:0; padding:16px; box-sizing:border-box; }

  .card::before {
    display:block;
    font-weight:700;
    padding:8px 12px;
    margin-bottom:10px;
    border-radius:6px;
    color:#fff;
    width:fit-content;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    font-size:0.95rem;
  }

  .product-row .card:nth-child(1)::before { content: "住宅用"; background: linear-gradient(90deg,#27ae60,#2ecc71); width: 94%;}
  .product-row .card:nth-child(2)::before { content: "産業用"; background: linear-gradient(90deg,#0099ff, #009dff); width: 94%;}
  .product-row .card:nth-child(3)::before { content: "産業用"; background: linear-gradient(90deg,#0099ff, #009dff); width: 94%;}

  .image-container { height:auto; max-height:240px; }
  .card_image { max-width:100%; height:auto; }
}
