/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-color: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f6f7fb;
  --bg-dark: #0b1020;
  --border: #e5e7eb;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nowrap {
  white-space: nowrap;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa 60%, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  transition: color 0.3s;
}

.logo-main {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
  transition: color 0.3s;
}

.header.is-scrolled .logo-sub {
  color: var(--text-light);
}

.header.is-scrolled .logo-main {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header.is-scrolled .nav-links a {
  color: var(--text-color);
}

.header.is-scrolled .nav-links a:hover {
  color: var(--primary-color);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.55);
}

.btn-arrow {
  transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ヒーローセクション */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: #2563eb;
  top: -160px;
  left: -120px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: #7c3aed;
  bottom: -180px;
  right: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #db2777;
  top: 40%;
  left: 45%;
  opacity: 0.25;
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-content h1 {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.8s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ヒーロー右側のクラウド構成図 */
.hero-visual {
  position: relative;
  aspect-ratio: 440 / 400;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  animation: fadeUp 1s 0.4s ease both;
}

.cloud-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cloud-diagram .links path {
  opacity: 0.5;
}

.cloud-diagram .links .dashed {
  stroke-dasharray: 4 6;
  opacity: 0.3;
}

.cloud-diagram .pulse {
  fill: #c4b5fd;
  filter: drop-shadow(0 0 6px #a78bfa);
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.node strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.node small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.node-tl { left: 20.5%; top: 22.5%; }
.node-tr { left: 79.5%; top: 22.5%; animation-delay: -1.5s; }
.node-bl { left: 20.5%; top: 77.5%; animation-delay: -3s; }
.node-br { left: 79.5%; top: 77.5%; animation-delay: -4.5s; }

.node-center {
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.45);
  animation: none;
}

.node-center img {
  width: 48px;
  height: 48px;
}

.node-center span {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 14px;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* 技術スタック（マーキー） */
.tech-strip {
  background: #0f1529;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee 40s linear infinite;
}

.tech-track span {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 32px)); }
}

/* セクション共通 */
section {
  padding: 120px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.3;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-light);
}

/* スクロール時のフェードイン */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* サービスセクション */
.services {
  background: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s, opacity 0.8s ease;
}

.service-card:nth-child(3n + 2) { transition-delay: 0.08s; }
.service-card:nth-child(3n) { transition-delay: 0.16s; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.35);
  transition-delay: 0s;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 14.5px;
}

.service-no {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: #eef0f6;
}

.service-points {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.service-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  margin-bottom: 8px;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(-45deg);
}

/* 強みセクション */
.strengths {
  background: var(--white);
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strength {
  border-top: 2px solid var(--border);
  padding-top: 28px;
  position: relative;
}

.strength::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gradient);
}

.strength-num {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
  margin-bottom: 20px;
}

.strength h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.strength p {
  color: var(--text-light);
  font-size: 15px;
}

/* 進め方セクション */
.process {
  background: var(--bg-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #4f46e5;
  filter: blur(140px);
  opacity: 0.25;
  top: -300px;
  right: -200px;
}

.process .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.process-steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-steps li {
  position: relative;
  padding: 32px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-steps li:nth-child(2) { transition-delay: 0.1s; }
.process-steps li:nth-child(3) { transition-delay: 0.2s; }
.process-steps li:nth-child(4) { transition-delay: 0.3s; }

.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(167, 139, 250, 0.7);
  border-right: 2px solid rgba(167, 139, 250, 0.7);
  transform: translateY(-50%) rotate(45deg);
}

.step-no {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a78bfa;
  margin-bottom: 14px;
}

.process-steps h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.process-steps p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* 会社概要セクション */
.about {
  background: var(--bg-light);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 40px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 22px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

.about-table th {
  width: 30%;
  color: var(--text-light);
  font-weight: 500;
}

.about-sub {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* フッター */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-footer .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps li::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
  }

  .service-grid,
  .strength-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    max-width: 560px;
    margin: 0 auto;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .service-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .about-content {
    padding: 8px 20px;
  }

  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }

  .about-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .about-table td {
    padding-top: 0;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

  .node {
    padding: 10px 12px;
  }

  .node strong {
    font-size: 13px;
  }

  .node small {
    font-size: 9px;
  }

  .node-center img {
    width: 36px;
    height: 36px;
  }
}

/* 動きを減らす設定のユーザーにはアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cloud-diagram .pulses {
    display: none;
  }
}
