/* ============================================
   ノードワークス 事業内容ページ専用スタイル
   ============================================ */

/* ===== SERVICE TAB NAV ===== */
.service-tab-nav {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 72px;
  z-index: 800;
  transition: var(--transition);
}

.service-tab-nav.sticky {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.service-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.stab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stab:last-child {
  border-right: none;
}

.stab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stab:hover,
.stab.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.stab:hover::after,
.stab.active::after {
  transform: scaleX(1);
}

.stab i {
  font-size: 16px;
  color: var(--accent);
}

/* ===== SERVICES INTRO ===== */
.services-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.si-text {
  flex: 1;
}

.si-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  min-width: 220px;
}

.si-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
}

.si-stat i {
  font-size: 20px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.si-stat strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.si-stat span {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== SERVICE SECTIONS ===== */
.service-section {
  padding: 80px 0;
}

.service-section-alt {
  background: var(--secondary);
}

.service-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}

.service-detail-rev {
  grid-template-columns: 1fr 360px;
}

.service-detail-rev .sd-visual {
  order: 2;
}

.service-detail-rev .sd-content {
  order: 1;
}

/* Visual block */
.sd-visual {
  border-radius: var(--radius-lg);
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sd-v-blue1 { background: url('../images/services_broadcast.jpg')  center center / cover no-repeat; }
.sd-v-teal  { background: url('../images/services_nursecall.jpg')  center center / cover no-repeat; }
.sd-v-blue2 { background: url('../images/services_tv.jpg')         center center / cover no-repeat; }
.sd-v-dark  { background: url('../images/services_security.jpg')   center center / cover no-repeat; }
.sd-v-cyan  { background: url('../images/services_audio.jpg')      center center / cover no-repeat; }
.sd-v-blue3 { background: url('../images/services_network.jpg')    center center / cover no-repeat; }
.sd-v-indigo { background: url('../images/services_clock.jpg')     center center / cover no-repeat; }
.sd-v-teal2 { background: url('../images/services_interphone.jpg') center center / cover no-repeat; }
.sd-v-blue4 { background: url('../images/services_projector.jpg')  center center / cover no-repeat; }
.sd-v-slate { background: linear-gradient(135deg, #37474f, #546e7a); }

.sd-visual::before {
  content: none;
}

.sd-visual::after {
  content: none;
}

.sd-icon-bg {
  width: 120px;
  height: 120px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}

.sd-num {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  z-index: 1;
  letter-spacing: -2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Content block */
.sd-content {}

.service-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,130,58,0.10);
  border: 1px solid rgba(232,130,58,0.25);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.sd-content h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sd-content > p {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 28px;
}

/* Features list */
.sd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.sd-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
  padding: 10px 14px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500;
}

.sd-feat i {
  color: var(--accent-dark);
  font-size: 12px;
  flex-shrink: 0;
}

/* Target */
.sd-target {
  padding: 16px 20px;
  background: rgba(42,42,45,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42,42,45,0.1);
}

.sd-target strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
}

.sd-target strong i {
  color: var(--accent-dark);
}

.sd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== SVC CTA ===== */
.svc-cta-inner {
  text-align: center;
}

.svc-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .service-detail,
  .service-detail-rev {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail-rev .sd-visual,
  .service-detail-rev .sd-content {
    order: unset;
  }

  .sd-visual {
    height: 260px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  /* 写真背景: タブレットでもcover表示を維持 */
  .sd-v-blue1 { background: url('../images/services_broadcast.jpg')  center center / cover no-repeat; }
  .sd-v-teal  { background: url('../images/services_nursecall.jpg')  center center / cover no-repeat; }
  .sd-v-blue2 { background: url('../images/services_tv.jpg')         center center / cover no-repeat; }
  .sd-v-dark  { background: url('../images/services_security.jpg')   center center / cover no-repeat; }
  .sd-v-cyan  { background: url('../images/services_audio.jpg')      center center / cover no-repeat; }
  .sd-v-blue3 { background: url('../images/services_network.jpg')    center center / cover no-repeat; }
  .sd-v-indigo { background: url('../images/services_clock.jpg')     center center / cover no-repeat; }
  .sd-v-teal2 { background: url('../images/services_interphone.jpg') center center / cover no-repeat; }
  .sd-v-blue4 { background: url('../images/services_projector.jpg')  center center / cover no-repeat; }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .si-stat-grid {
    min-width: unset;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .service-section {
    padding: 56px 0;
  }

  .sd-visual {
    height: 220px;
  }

  /* 写真背景: モバイルでもcover表示を維持 */
  .sd-v-blue1 { background: url('../images/services_broadcast.jpg')  center center / cover no-repeat; }
  .sd-v-teal  { background: url('../images/services_nursecall.jpg')  center center / cover no-repeat; }
  .sd-v-blue2 { background: url('../images/services_tv.jpg')         center center / cover no-repeat; }
  .sd-v-dark  { background: url('../images/services_security.jpg')   center center / cover no-repeat; }
  .sd-v-cyan  { background: url('../images/services_audio.jpg')      center center / cover no-repeat; }
  .sd-v-blue3 { background: url('../images/services_network.jpg')    center center / cover no-repeat; }
  .sd-v-indigo { background: url('../images/services_clock.jpg')     center center / cover no-repeat; }
  .sd-v-teal2 { background: url('../images/services_interphone.jpg') center center / cover no-repeat; }
  .sd-v-blue4 { background: url('../images/services_projector.jpg')  center center / cover no-repeat; }

  .sd-features {
    grid-template-columns: 1fr;
  }

  .si-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stab span {
    display: none;
  }

  .stab {
    padding: 12px 14px;
  }

  .stab i {
    font-size: 18px;
  }

  .sd-visual {
    height: 200px;
  }

  /* 写真背景: 最小サイズでもcover表示を維持 */
  .sd-v-blue1 { background: url('../images/services_broadcast.jpg')  center center / cover no-repeat; }
  .sd-v-teal  { background: url('../images/services_nursecall.jpg')  center center / cover no-repeat; }
  .sd-v-blue2 { background: url('../images/services_tv.jpg')         center center / cover no-repeat; }
  .sd-v-dark  { background: url('../images/services_security.jpg')   center center / cover no-repeat; }
  .sd-v-cyan  { background: url('../images/services_audio.jpg')      center center / cover no-repeat; }
  .sd-v-blue3 { background: url('../images/services_network.jpg')    center center / cover no-repeat; }
  .sd-v-indigo { background: url('../images/services_clock.jpg')     center center / cover no-repeat; }
  .sd-v-teal2 { background: url('../images/services_interphone.jpg') center center / cover no-repeat; }
  .sd-v-blue4 { background: url('../images/services_projector.jpg')  center center / cover no-repeat; }

  .services-intro {
    padding: 24px;
  }
}

/* ===== SERVICES PAGE HERO ===== */
.services-page-hero {
  background:
    linear-gradient(
      to bottom,
      rgba(26, 26, 29, 0.82) 0%,
      rgba(36, 36, 40, 0.70) 45%,
      rgba(26, 26, 29, 0.82) 100%
    ),
    url('../images/services_hero_illust.jpg') center / cover no-repeat;
  background-color: #1a1a1d;
}

.services-page-hero::before,
.services-page-hero::after {
  content: none;
}

@media (max-width: 768px) {
  .services-page-hero {
    background:
      linear-gradient(
        to bottom,
        rgba(26, 26, 29, 0.88) 0%,
        rgba(36, 36, 40, 0.78) 50%,
        rgba(26, 26, 29, 0.88) 100%
      ),
      url('../images/services_hero_illust.jpg') center / cover no-repeat;
  }
}
