/* ============================================
   NEXT CLEAN - Style
   Dark #111827 + Cyan #06B6D4 + White
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans JP', 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #e2e8f0;
  background: #111827;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-main, .nav-desktop a, .section-label, .flow-num, .service-num, .system-feature-num, .number-value, .hero-stat-num {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

/* --- Sample Banner --- */
.sample-banner {
  background: #06B6D4;
  color: #111827;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1001;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Headers --- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #06B6D4;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: #94a3b8;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17,24,39,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,182,212,0.1);
  transition: box-shadow 0.3s;
  margin-top: 37px;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(6,182,212,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.15em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.nav-desktop a:not(.nav-cta):hover {
  color: #06B6D4;
}

.nav-cta {
  background: transparent;
  color: #06B6D4 !important;
  padding: 9px 22px;
  border: 1px solid #06B6D4;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: #06B6D4;
  color: #111827 !important;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #06B6D4;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,24,39,0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-inner a {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.mobile-nav-cta {
  border: 1px solid #06B6D4;
  color: #06B6D4 !important;
  padding: 14px 40px;
  border-radius: 4px;
  margin-top: 12px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0f1a;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.04) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #06B6D4;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-200px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 800px;
}

.hero-badge-line {
  margin-bottom: 28px;
}

.hero-badge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #06B6D4;
  border: 1px solid rgba(6,182,212,0.3);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
}

.hero-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
  background: #06B6D4;
  color: #111827;
}

.btn-primary:hover {
  background: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,0.3);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #06B6D4;
  color: #06B6D4;
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #06B6D4;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12px;
  color: #64748b;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #06B6D4, transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

/* --- About --- */
.about {
  background: #111827;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-desc {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-metrics {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

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

.about-metric-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #06B6D4;
  line-height: 1.2;
  font-family: 'Space Grotesk', sans-serif;
}

.about-metric-label {
  font-size: 12px;
  color: #64748b;
}

.about-visual svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- AI System --- */
.system {
  background: #0a0f1a;
}

.system-diagram {
  margin-bottom: 60px;
  overflow-x: auto;
}

.system-svg {
  width: 100%;
  min-width: 700px;
  height: auto;
}

.system-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.system-feature {
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.1);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.system-feature:hover {
  border-color: rgba(6,182,212,0.3);
  transform: translateY(-2px);
}

.system-feature-num {
  font-size: 32px;
  font-weight: 700;
  color: rgba(6,182,212,0.2);
  margin-bottom: 12px;
}

.system-feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.system-feature p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}

/* --- Services --- */
.services {
  background: #111827;
}

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

.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06B6D4, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(6,182,212,0.2);
  transform: translateY(-2px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-size: 36px;
  font-weight: 700;
  color: rgba(6,182,212,0.15);
  margin-bottom: 8px;
}

.service-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-tags span {
  font-size: 11px;
  font-weight: 500;
  color: #06B6D4;
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* --- Numbers --- */
.numbers {
  background: #0a0f1a;
  padding: 80px 0;
  border-top: 1px solid rgba(6,182,212,0.08);
  border-bottom: 1px solid rgba(6,182,212,0.08);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.number-value {
  font-size: 48px;
  font-weight: 700;
  color: #06B6D4;
  line-height: 1.2;
  margin-bottom: 8px;
}

.number-unit {
  font-size: 16px;
  font-weight: 500;
}

.number-label {
  font-size: 13px;
  color: #64748b;
}

/* --- Works --- */
.works {
  background: #111827;
}

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

.work-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.work-card:hover {
  border-color: rgba(6,182,212,0.2);
  transform: translateY(-4px);
}

.work-image svg {
  width: 100%;
  height: auto;
  display: block;
}

.work-info {
  padding: 24px;
}

.work-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.work-tags span {
  font-size: 10px;
  font-weight: 500;
  color: #06B6D4;
  border: 1px solid rgba(6,182,212,0.2);
  padding: 3px 8px;
  border-radius: 3px;
}

.work-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.work-info p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

/* --- Flow --- */
.flow {
  background: #0a0f1a;
}

.flow-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(6,182,212,0.15);
}

.flow-step {
  padding-left: 80px;
  padding-bottom: 40px;
  position: relative;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.flow-num {
  position: absolute;
  left: 12px;
  width: 42px;
  height: 42px;
  background: #111827;
  border: 1.5px solid #06B6D4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #06B6D4;
  z-index: 2;
}

.flow-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #06B6D4;
  background: rgba(6,182,212,0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

.flow-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}

/* --- Company --- */
.company {
  background: #111827;
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
}

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

.company-table th,
.company-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 150px;
  font-weight: 700;
  color: #06B6D4;
}

.company-table td {
  color: #94a3b8;
}

/* --- Contact --- */
.contact {
  background: #0a0f1a;
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.required {
  font-size: 10px;
  color: #111827;
  background: #06B6D4;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.3s;
  background: rgba(255,255,255,0.03);
  color: #e2e8f0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #06B6D4;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2306B6D4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #111827;
  color: #e2e8f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Tech --- */
.tech {
  background: #0a0f1a;
  border-top: 1px solid rgba(6,182,212,0.06);
}

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

.tech-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(6,182,212,0.03);
  border: 1px solid rgba(6,182,212,0.08);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s;
}

.tech-item:hover {
  border-color: rgba(6,182,212,0.25);
  transform: translateY(-2px);
}

.tech-icon-wrap {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.tech-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #06B6D4;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

.tech-item p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Footer --- */
.footer {
  background: #080c14;
  color: #e2e8f0;
  padding: 56px 0 0;
  border-top: 1px solid rgba(6,182,212,0.08);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-desc {
  font-size: 13px;
  color: #475569;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #06B6D4;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #94a3b8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: #334155;
}

.footer-credit a {
  color: #06B6D4;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid .work-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .system-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 34px;
  }

  .sp-hide {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-metrics {
    justify-content: center;
  }

  .system-features {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .number-value {
    font-size: 36px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-grid .work-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat-divider {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .company-table th {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step {
    padding-left: 68px;
  }

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

  .company-table th {
    border-bottom: none;
    padding-bottom: 2px;
  }

  .company-table td {
    padding-top: 2px;
  }
}
