.ai-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(45,127,249,.28), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef6ff 48%, #dbeafe 100%);
  font-family: "Noto Sans JP", sans-serif;
}

.ai-hero * {
  box-sizing: border-box;
}

.ai-hero-container {
  position: relative;
  z-index: 5;
  width: min(1400px, 92%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 48px;
}

.ai-hero-copy {
  max-width: 620px;
}

.ai-hero-badge {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(45,127,249,.12);
  color: #1565d8;
  font-weight: 800;
  margin-bottom: 28px;
}

.ai-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.15;
  color: #0a2a66;
  font-weight: 900;
  margin: 0 0 28px;
}

.ai-hero p {
  color: #475569;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.9;
  margin: 0 0 38px;
}

.ai-hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ai-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: .25s ease;
}

.ai-hero-btn-primary {
  background: #0a2a66;
  color: #fff;
  box-shadow: 0 16px 40px rgba(10,42,102,.22);
}

.ai-hero-btn-primary:hover {
  background: #2d7ff9;
  color: #fff;
  transform: translateY(-2px);
}

.ai-hero-btn-secondary {
  border: 2px solid #0a2a66;
  color: #0a2a66;
  background: rgba(255,255,255,.45);
}

.ai-hero-btn-secondary:hover {
  background: #0a2a66;
  color: #fff;
  transform: translateY(-2px);
}

.ai-control-center {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 0 0 1px rgba(45,127,249,.18),
    0 30px 90px rgba(10,42,102,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-core {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d7ff9 0%, #0a2a66 70%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 18px rgba(45,127,249,.12),
    0 0 70px rgba(45,127,249,.65);
}

.ai-core span {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.ai-core small {
  font-size: 18px;
  font-weight: 700;
  opacity: .9;
}

/* =========================
   AI Control Center Nodes - Fixed
========================= */

.ai-control-center {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

.ai-node {
  position: absolute;
  width: 150px;
  min-height: 74px;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(45,127,249,.22);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(10,42,102,.12);
  backdrop-filter: blur(10px);
  color: #0a2a66;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
  white-space: normal;
}

.node-chat {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.node-filemaker {
  top: 34%;
  left: 2%;
}

.node-dashboard {
  bottom: 22%;
  left: 2%;
}

.node-dify {
  top: 34%;
  right: 2%;
}

.node-web {
  bottom: 22%;
  right: 2%;
}

.node-auto {
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.ai-core {
  position: relative;
  z-index: 5;
}

.ai-node {
  flex-direction: column;
  gap: 4px;
}

.ai-node-icon {
  font-size: 22px;
  line-height: 1;
}

.ai-node strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.ai-node small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

/* =========================
   Step 13-7: Node Layout Refinement
========================= */

.ai-node {
  width: 168px;
  min-height: 86px;
  padding: 14px 16px;
}

.node-chat {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.node-filemaker {
  top: 34%;
  left: 6%;
}

.node-dashboard {
  bottom: 24%;
  left: 6%;
}

.node-dify {
  top: 34%;
  right: 6%;
}

.node-web {
  bottom: 24%;
  right: 6%;
}

.node-auto {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

/* =========================
   Connector Lines Clean
========================= */

.ai-control-center {
  position: relative;
  overflow: visible !important;
}

.ai-connector-lines {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.ai-connector-lines .line {
  position: absolute;
  display: block;
  background: #2d7ff9;
  opacity: .9;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(45,127,249,.75);
}

/* 上 */
.ai-connector-lines .line-chat {
  width: 4px;
  height: 115px;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
}

/* 下 */
.ai-connector-lines .line-auto {
  width: 4px;
  height: 115px;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
}

/* 左上 */
.ai-connector-lines .line-filemaker {
  width: 145px;
  height: 4px;
  left: 25%;
  top: 47%;
}

/* 左下 */
.ai-connector-lines .line-dashboard {
  width: 145px;
  height: 4px;
  left: 25%;
  bottom: 39%;
}

/* 右上 */
.ai-connector-lines .line-dify {
  width: 145px;
  height: 4px;
  right: 25%;
  top: 47%;
}

/* 右下 */
.ai-connector-lines .line-web {
  width: 145px;
  height: 4px;
  right: 25%;
  bottom: 39%;
}

.ai-core {
  z-index: 10 !important;
}

.ai-node {
  z-index: 8 !important;
}

.ai-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

.ai-connector-svg line {
  stroke: #2d7ff9;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .85;
  filter: drop-shadow(0 0 8px rgba(45,127,249,.7));
}

.ai-core {
  z-index: 10 !important;
}

.ai-node {
  z-index: 8 !important;
}

@media (max-width: 767px) {
  .ai-control-center {
    width: 100%;
    aspect-ratio: auto;
    min-height: 640px;
  }

  .ai-node {
    width: 138px;
    font-size: 13px;
  }

  .node-filemaker,
  .node-dashboard {
    left: 0;
  }

  .node-dify,
  .node-web {
    right: 0;
  }
}

.ai-core{

    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:190px;
    height:190px;
    z-index:20;
}

@media (max-width: 1024px) {
  .ai-hero-container {
    grid-template-columns: 1fr;
    padding: 100px 0;
  }

  .ai-hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .ai-hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .ai-hero-container {
    width: min(100% - 32px, 720px);
    padding: 72px 0;
  }

  .ai-control-center {
    border-radius: 28px;
  }

  .ai-core {
    width: 150px;
    height: 150px;
  }

  .ai-core span {
    font-size: 44px;
  }
}