/* =========================
   Humanoid Robot LP
========================= */
.robot-lp {
  background: #fff;
  color: var(--dark);
}

.robot-kicker {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* =========================
   Title
========================= */
.robot-hero h1,
.robot-about h2,
.robot-problems h2,
.robot-solution h2,
.robot-services h2,
.robot-usecase h2,
.robot-flow h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.robot-cta h2 {
  background: none;
  color: #fff;
}

/* =========================
   Hero
========================= */
.robot-hero {
  padding: 150px 0 90px;
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
}

.robot-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.robot-hero p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray);
}

.robot-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.robot-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(28, 63, 158, 0.18);
}

/* =========================
   Section Common
========================= */
.robot-about,
.robot-problems,
.robot-solution,
.robot-services,
.robot-usecase,
.robot-flow,
.robot-cta {
  padding: 100px 0;
}

.robot-about {
  text-align: center;
}

.robot-about p {
  max-width: 820px;
  margin: 0 auto;
  line-height: 2;
  color: var(--gray);
}

/* =========================
   Problems
========================= */
.robot-problems {
  background: #f7fbff;
}

.robot-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.robot-problem-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  transition: 0.3s;
}

.robot-problem-card:hover {
  transform: translateY(-4px);
}

.robot-problem-card span,
.robot-flow-item span {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.robot-problem-card h3,
.robot-service-card h3,
.robot-usecase-card h3,
.robot-flow-item h3 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--dark);
}

.robot-problem-card p,
.robot-service-card p,
.robot-usecase-card p,
.robot-flow-item p {
  color: var(--gray);
  line-height: 1.8;
}

/* =========================
   Solution
========================= */
.robot-solution-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.robot-solution-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.robot-solution-text p {
  color: var(--gray);
  line-height: 1.9;
}

.robot-check-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.robot-check-list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 10px;
  line-height: 1.8;
}

.robot-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* =========================
   Services
========================= */
.robot-services {
  background: #f7fbff;
}

.robot-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.robot-service-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  transition: 0.3s;
}

.robot-service-card:hover {
  transform: translateY(-4px);
}

/* =========================
   Usecase
========================= */
.robot-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.robot-usecase-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  transition: 0.3s;
}

.robot-usecase-card:hover {
  transform: translateY(-6px);
}

.robot-usecase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.robot-usecase-card h3,
.robot-usecase-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.robot-usecase-card h3 {
  margin-top: 22px;
}

.robot-usecase-card p {
  margin-bottom: 26px;
}

/* =========================
   Flow
========================= */
.robot-flow {
  background: #f7fbff;
}

.robot-flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.robot-flow-item {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

/* =========================
   CTA
========================= */
.robot-cta {
  text-align: center;
  background: linear-gradient(135deg, #2F5FE3, #4AA3FF);
  color: #fff;
}

.robot-cta .robot-kicker {
  color: rgba(255,255,255,0.7);
}

.robot-cta p {
  line-height: 1.9;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .robot-problem-grid,
  .robot-service-grid,
  .robot-flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .robot-hero-inner,
  .robot-solution-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .robot-hero {
    padding: 130px 20px 60px;
  }

  .robot-about,
  .robot-problems,
  .robot-solution,
  .robot-services,
  .robot-usecase,
  .robot-flow,
  .robot-cta {
    padding: 64px 0;
  }

  .robot-problem-grid,
  .robot-service-grid,
  .robot-usecase-grid,
  .robot-flow-list {
    grid-template-columns: 1fr;
  }

  .robot-hero-buttons {
    flex-direction: column;
  }

  .robot-hero-buttons .btn,
  .robot-cta .btn {
    width: 100%;
  }

  .robot-hero h1 {
    font-size: 2rem;
  }
}

/* =========================
   スマホ白画面 強制表示FIX
========================= */
@media (max-width: 768px) {

  .backoffice-lp,
  .fa-lp,
  .robot-lp {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bo-hero,
  .fa-hero,
  .robot-hero {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bo-hero-inner,
  .fa-hero-inner,
  .robot-hero-inner {
    display: block !important;
  }

  .bo-hero-text,
  .fa-hero-text,
  .robot-hero-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bo-hero h1,
  .fa-hero h1,
  .robot-hero h1 {
    display: block !important;
    background: none !important;
    color: #1C3F9E !important;
  }

  .bo-hero p,
  .fa-hero p,
  .robot-hero p {
    display: block !important;
    color: #333 !important;
  }

}

/* =========================
   SP：見出しはみ出し修正
========================= */
@media (max-width: 768px) {
  .manufacturing-lp {
    overflow-x: hidden;
  }

  .mf-hero,
  .mf-about,
  .mf-problems,
  .mf-solution,
  .mf-points,
  .mf-services,
  .mf-flow,
  .mf-cta {
    overflow: hidden;
  }

  .mf-hero h1,
  .mf-about h2,
  .mf-problems h2,
  .mf-solution h2,
  .mf-points h2,
  .mf-services h2,
  .mf-flow h2,
  .mf-cta h2 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .mf-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .mf-hero-text,
  .mf-about .container,
  .mf-problems .container {
    max-width: 100%;
  }

  .mf-hero-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sp-only {
    display: block !important;
  }

  .mf-hero h1 {
    font-size: 2rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
}

/* =========================
   SP：FA見出しの自然な折り返し
========================= */
@media (max-width: 768px) {
  .fa-hero h1,
  .fa-about h2,
  .fa-problems h2,
  .fa-solution h2,
  .fa-services h2,
  .fa-usecase h2,
  .fa-flow h2,
  .fa-cta h2 {
    width: 100% !important;
    max-width: 100% !important;

    font-size: clamp(1.55rem, 6.2vw, 1.95rem) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.04em !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
  }

  .fa-about h2 {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem) !important;
  }
}