/* ============================================
   ノードワークス トップページ専用スタイル
   ============================================ */

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(150deg,
      rgba(26,26,29,0.88)  0%,
      rgba(36,36,40,0.82) 45%,
      rgba(26,26,29,0.88) 100%),
    url('../images/hero_matsuyama.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,130,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,130,58,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,130,58,0.15) 0%, transparent 70%);
  top: -100px; right: 10%;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(200,104,32,0.18) 0%, transparent 70%);
  bottom: -80px; left: 5%;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(232,130,58,0.10) 0%, transparent 70%);
  bottom: 20%; right: 20%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Hero Left */
.hero-left {
  padding-right: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(232,130,58,0.15);
  border: 1px solid rgba(232,130,58,0.40);
  color: #f0a060;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #e8823a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: 3px;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', '游明朝', 'Hiragino Mincho ProN', 'HGS明朝E', serif;
}

/* 2行共通：シャイニーホワイト〜オレンジで統一 */
.hero-title-line {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #fcd0a8 60%, #f0a060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}

/* 1行目：少し遅れてふわっと上から */
.ht-line1 {
  animation: heroLineFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* 2行目：さらに遅れてふわっと */
.ht-line2 {
  animation: heroLineFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@keyframes heroLineFade {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 2;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.9s ease 0.3s both;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s ease 0.4s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
}

.trust-item i {
  color: #f0a060;
  font-size: 13px;
}

/* Hero Right - Visual */
.hero-right {
  display: flex;
  justify-content: center;
  animation: fadeIn 1.2s ease 0.3s both;
}

.hero-visual {
  position: relative;
  width: 380px;
  height: 460px;
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.vc-main {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  animation: floatCard 4s ease-in-out infinite;
}

.vc-secondary {
  width: 190px;
}
.vc-s1 {
  top: 120px;
  left: -20px;
  animation: floatCard 4.5s ease-in-out 0.5s infinite;
}
.vc-s2 {
  top: 120px;
  right: -20px;
  animation: floatCard 5s ease-in-out 1s infinite;
}
.vc-s3 {
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  animation: floatCard 4.2s ease-in-out 0.8s infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50% { transform: translateY(-8px) translateX(var(--tx, 0)); }
}
.vc-main { --tx: -50%; }
.vc-s3 { --tx: -50%; }

.vc-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(232,130,58,0.3), rgba(232,130,58,0.1));
  border: 1px solid rgba(232,130,58,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #f0a060;
  flex-shrink: 0;
}

.vc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.vc-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}



/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.75);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(232,130,58,0.7), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Keyframes */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c86820, #f0a060);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(42,42,45,0.15);
  transform: translateY(-6px);
  border-color: rgba(232,130,58,0.35);
}

.fc-icon-wrap {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f5ede4, #ead5be);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #c86820;
  transition: all 0.3s ease;
}

.feature-card:hover .fc-icon-wrap {
  background: linear-gradient(135deg, #c86820, #e8823a);
  color: #fff;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 17px;
  color: #1a1a1d;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 14px;
  color: #7a7a82;
  line-height: 1.8;
}

/* ===== STATS ===== */
.stats-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(232,130,58,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

#stats {
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #f0a060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c86820, #f0a060);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(42,42,45,0.15);
  transform: translateY(-4px);
  border-color: rgba(232,130,58,0.35);
}

.sc-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f5ede4, #ead5be);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #c86820;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.service-card:hover .sc-icon {
  background: linear-gradient(135deg, #c86820, #e8823a);
  color: #fff;
}

.service-card h3 {
  font-size: 14px;
  color: #1a1a1d;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.service-card p {
  font-size: 12px;
  color: #7a7a82;
  line-height: 1.7;
  flex: 1;
}

.sc-arrow {
  margin-top: 12px;
  width: 28px;
  height: 28px;
  background: rgba(232,130,58,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #e8823a;
  transition: all 0.3s ease;
}

.service-card:hover .sc-arrow {
  background: #e8823a;
  color: #fff;
  transform: translateX(2px);
}

/* ===== WORKS PREVIEW ===== */
.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e0d8d0;
  box-shadow: 0 2px 12px rgba(42,42,45,0.08);
  transition: all 0.3s ease;
}

.work-card:hover {
  box-shadow: 0 12px 40px rgba(42,42,45,0.18);
  transform: translateY(-6px);
}

.wc-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.wc-img-1 {
  background: url('../images/works_interphone.jpg') center 10% / cover no-repeat;
}
.wc-img-2 {
  background: url('../images/works_security.jpg') center center / cover no-repeat;
}
.wc-img-3 {
  background: url('../images/works_wifi.jpg') center center / cover no-repeat;
}
.wc-img-4 {
  background: url('../images/works_broadcast.jpg') center center / cover no-repeat;
}

.wc-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 30% 40%, rgba(232,130,58,0.12) 0%, transparent 50%),
    linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2));
}

.wc-img::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.wc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.wc-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,104,32,0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

/* Work card body icon overlay */
.wc-img-1::before,
.wc-img-2::before,
.wc-img-3::before,
.wc-img-4::before {
  background-image:
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.15) 100%);
}

/* Center icon in wc-img */
.wc-img-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 48px;
  color: rgba(255,255,255,0.15);
}

.wc-body {
  padding: 20px;
}

.wc-body h3 {
  font-size: 15px;
  color: #1a1a1d;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 700;
}

.wc-body p {
  font-size: 13px;
  color: #7a7a82;
  line-height: 1.8;
  margin-bottom: 12px;
}

.wc-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #c86820;
  font-weight: 600;
}

.wc-location i {
  font-size: 11px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  margin: 12px 0 16px;
  line-height: 1.3;
  letter-spacing: 1px;
}

.cta-title span {
  color: #f0a060;
}

.cta-content > p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 28px;
}

.cta-tel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-tel i {
  color: #f0a060;
  font-size: 20px;
}

.cta-tel a {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.cta-tel a:hover {
  color: #f0a060;
}

.tel-hours {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-right {
    display: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }

  /* stats: 3列を維持 */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item {
    border-bottom: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(3) {
    border-right: none;
  }

  /* 写真背景: カバー表示を維持 */
  .wc-img-1 {
    background: url('../images/works_interphone.jpg') center 10% / cover no-repeat;
  }
  .wc-img-2 {
    background: url('../images/works_security.jpg') center center / cover no-repeat;
  }
  .wc-img-3 {
    background: url('../images/works_wifi.jpg') center center / cover no-repeat;
  }
  .wc-img-4 {
    background: url('../images/works_broadcast.jpg') center center / cover no-repeat;
  }

  .works-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .cta-tel {
    justify-content: center;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .works-preview-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc .sp-br {
    display: none;
  }

  /* stats: タブレット縦は3列維持 */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* SCROLL位置 */
  .hero-scroll-hint {
    bottom: -10px;
  }

  /* 写真背景: モバイルでもカバー表示を維持 */
  .wc-img-1 {
    background: url('../images/works_interphone.jpg') center 10% / cover no-repeat;
  }
  .wc-img-2 {
    background: url('../images/works_security.jpg') center center / cover no-repeat;
  }
  .wc-img-3 {
    background: url('../images/works_wifi.jpg') center center / cover no-repeat;
  }
  .wc-img-4 {
    background: url('../images/works_broadcast.jpg') center center / cover no-repeat;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* stats: スマホは3列を維持（文字サイズで対応） */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item {
    padding: 32px 10px;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(3) {
    border-right: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* SCROLL位置 */
  .hero-scroll-hint {
    bottom: -10px;
  }

  /* 写真背景: 最小サイズでもカバー表示を維持 */
  .wc-img-1 {
    background: url('../images/works_interphone.jpg') center 10% / cover no-repeat;
  }
  .wc-img-2 {
    background: url('../images/works_security.jpg') center center / cover no-repeat;
  }
  .wc-img-3 {
    background: url('../images/works_wifi.jpg') center center / cover no-repeat;
  }
  .wc-img-4 {
    background: url('../images/works_broadcast.jpg') center center / cover no-repeat;
  }
}
