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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dim: #dbeafe;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-eleven {
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .14em;
  font-family: 'Inter', sans-serif;
}
.logo-biz {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: .06em;
  font-family: 'Inter', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  color: var(--gray-500);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gray-900); }

.btn-nav {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .85rem !important;
  font-weight: 500;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--accent) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  border-top: 1px solid var(--gray-200);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  font-size: 1.1rem;
  color: var(--gray-700);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: .03em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-ghost {
  color: var(--gray-700);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--accent); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
}
.stat-num small { font-size: 1rem; }
.stat-label {
  font-size: .75rem;
  color: var(--gray-400);
  letter-spacing: .04em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

/* ===== Code Window ===== */
.hero-visual {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.code-window {
  background: #0f1117;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.08);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1a1d27;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window-title {
  margin-left: 8px;
  font-size: .8rem;
  color: #6b7280;
  font-family: 'Inter', monospace;
}

.code-content {
  padding: 24px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: .82rem;
  line-height: 1.9;
  white-space: pre;
  color: #e5e7eb;
}
.c-purple { color: #c084fc; }
.c-blue   { color: #60a5fa; }
.c-green  { color: #86efac; }
.c-yellow { color: #fde68a; }
.c-white  { color: #f9fafb; }
.c-comment { color: #6b7280; }

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}
.card-top { top: -16px; right: -16px; color: #16a34a; }
.card-bot { bottom: -16px; left: -16px; }
.check-icon { font-size: 1rem; }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.5s infinite;
}

/* ===== Section Commons ===== */
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--gray-900);
}
.section-desc {
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  font-size: .95rem;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), inset 0 0 40px rgba(37,99,235,.03);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-card p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 18px;
  line-height: 1.8;
}
.service-note {
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags li {
  font-size: .76rem;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Inter', monospace;
  font-weight: 500;
}

/* ===== About ===== */
.about {
  padding: 120px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left .section-title { text-align: left; }
.about-lead {
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.9;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid var(--gray-100);
}
.company-table th, .company-table td {
  padding: 12px 0;
  font-size: .88rem;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  color: var(--gray-400);
  width: 100px;
  font-weight: 500;
}
.company-table td { color: var(--gray-700); }

.value-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.value-num {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.value-card p {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== Careers ===== */
.careers {
  padding: 120px 0;
  background: var(--gray-50);
}
.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.career-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s, transform .25s;
}
.career-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.career-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
  letter-spacing: .06em;
}
.career-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.career-card p {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}
.career-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.career-meta span {
  font-size: .76rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 100px;
}
.btn-career {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color .2s;
  align-self: flex-start;
  margin-top: 4px;
}
.btn-career:hover { color: var(--gray-900); }

/* ===== Contact ===== */
.contact { padding: 120px 0; }
.contact-box {
  max-width: 640px;
  margin: 0 auto;
}
.contact-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 12px;
}
.contact-sub {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 40px;
  font-size: .95rem;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
}
.required { color: var(--accent); }
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-900);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.btn-submit {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
  align-self: flex-start;
  font-family: inherit;
}
.btn-submit:hover { background: var(--accent); transform: translateY(-1px); }

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 260px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; display: flex; }
.footer-brand .logo-mark { color: var(--accent-light); }
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-links { display: flex; gap: 64px; }
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gray-200);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .875rem;
  color: var(--gray-400);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: var(--gray-400);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.9); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left .section-title { text-align: center; }
  .about-lead { text-align: center; }
  .careers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-inner { flex-direction: column; }
}
