/* ============================================================
   SERVICE PAGE — AI CONSULTING SECTION
   Dark section: navy-deep background + floating gradient orbs
   3-step horizontal flow (設計→開発→レビュー)
   ============================================================ */

/* --- Section Container --- */
.service-ai {
  position: relative;
  padding: 120px 0 100px;
  background: var(--c-navy-deep);
  overflow: hidden;
  z-index: var(--z-content, 10);
}

/* --- Floating Gradient Orbs --- */
.service-ai__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.service-ai__orb--1 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.12) 0%,
    rgba(201, 168, 76, 0.08) 40%,
    transparent 70%
  );
  animation: service-ai-orb-float 10s ease-in-out infinite;
}

.service-ai__orb--2 {
  width: 360px;
  height: 360px;
  top: -60px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.14) 0%,
    transparent 70%
  );
  animation: service-ai-orb-drift 14s ease-in-out infinite alternate;
}

.service-ai__orb--3 {
  width: 280px;
  height: 280px;
  bottom: -40px;
  left: 5%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.10) 0%,
    transparent 70%
  );
  animation: service-ai-orb-drift 12s ease-in-out infinite alternate-reverse;
}

@keyframes service-ai-orb-float {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -52%) scale(1.08); }
}

@keyframes service-ai-orb-drift {
  from { opacity: 0.5; transform: translate(0, 0); }
  to   { opacity: 0.9; transform: translate(-20px, 20px); }
}

/* --- Inner Container --- */
.service-ai__inner {
  position: relative;
  z-index: 2;
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}

/* --- Section Header --- */
.service-ai__header {
  text-align: center;
  margin-bottom: 72px;
}

.service-ai__eyebrow {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 20px;
}

.service-ai__title {
  font-family: var(--f-heading-ja);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin: 0 0 24px;
}

.service-ai__sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Flow Layout (横並び3ステップ) --- */
.service-ai__flow {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Arrow --- */
.service-ai__arrow {
  flex-shrink: 0;
  color: var(--c-gold);
  opacity: 0.6;
  margin: 0 8px;
  margin-top: -32px; /* step-num オフセット補正 */
}

/* --- Step Card --- */
.service-ai__step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 40px 28px 36px;
  text-align: center;
  transition: background 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
  cursor: default;
}

.service-ai__step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-6px);
}

/* --- Step Number --- */
.service-ai__step-num {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  opacity: 0.8;
  margin-bottom: 20px;
}

/* --- Step Icon --- */
.service-ai__step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 103, 42, 0.25) 0%, rgba(201, 168, 76, 0.15) 100%);
  border: 1px solid rgba(232, 103, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--c-gold);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.service-ai__step:hover .service-ai__step-icon {
  background: linear-gradient(135deg, rgba(232, 103, 42, 0.40) 0%, rgba(201, 168, 76, 0.25) 100%);
  border-color: rgba(201, 168, 76, 0.5);
}

/* --- Step Label --- */
.service-ai__step-label {
  font-family: var(--f-heading-ja);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin: 0 0 12px;
}

/* --- Step Description --- */
.service-ai__step-desc {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.60);
  margin: 0 0 20px;
}

/* --- AI Tool Tags --- */
.service-ai__tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.service-ai__tool {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 3px;
  padding: 3px 8px;
}

/* --- Bottom Note --- */
.service-ai__note {
  text-align: center;
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.60);
  margin: 64px 0 0;
}

.service-ai__note strong {
  color: var(--c-gold);
  font-weight: 700;
}

/* --- Stagger Delays (rv base定義はbase.cssに集約済み) --- */
.service-ai .d1 { transition-delay: 0.10s; }
.service-ai .d2 { transition-delay: 0.22s; }
.service-ai .d3 { transition-delay: 0.34s; }
.service-ai .d4 { transition-delay: 0.46s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .service-ai {
    padding: 96px 0 80px;
  }

  .service-ai__flow {
    gap: 0;
  }

  .service-ai__step {
    min-width: 170px;
    padding: 32px 20px 28px;
  }
}

@media (max-width: 768px) {
  .service-ai {
    padding: 72px 0 64px;
  }

  .service-ai__header {
    margin-bottom: 48px;
  }

  .service-ai__flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .service-ai__step {
    width: 100%;
    max-width: 400px;
    min-width: unset;
    margin-bottom: 0;
  }

  /* 縦並び時の矢印は下向き */
  .service-ai__arrow {
    margin: 8px 0;
    margin-top: 0;
    transform: rotate(90deg);
  }

  .service-ai__note {
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .service-ai {
    padding: 56px 0 48px;
  }

  .service-ai__eyebrow {
    font-size: 11px;
  }

  .service-ai__step {
    padding: 28px 20px 24px;
  }

  .service-ai__note {
    font-size: 0.9rem;
  }
}
