@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Colors - Neo-Tech v2 (Deep Blue-Purple Accent) */
  --bg-body: #FFFFFF;
  --bg-surface: #F8FAFC;
  /* Slate-50 */
  --bg-surface-alt: #F1F5F9;
  /* Slate-100 */

  --text-main: #0F172A;
  /* Slate-900 */
  --text-sub: #475569;
  /* Slate-600 */
  --text-muted: #94A3B8;
  /* Slate-400 */

  /* Identity Colors */
  --primary: #4F46E5;
  /* Indigo-600 */
  --primary-hover: #4338CA;
  /* Indigo-700 */
  --primary-light: #EEF2FF;
  /* Indigo-50 */
  --primary-ring: rgba(79, 70, 229, 0.4);

  --accent: #6366F1;
  /* Indigo-500 */
  --accent-gradient: linear-gradient(135deg, #1E293B 0%, #475569 100%);
  /* Sharp & Techy */

  /* Borders & Dividers */
  --border: #E2E8F0;
  /* Slate-200 */
  --border-sub: #F1F5F9;
  /* Slate-100 */
  --border-focus: #6366F1;
  /* Indigo-500 */

  --white: #FFFFFF;
  --alert-red: #EF4444;

  /* Spacing */
  --container-width: 1080px;
  /* Tighter for readability */
  --header-height: 72px;
  --section-padding: 120px 24px;
  --mobile-section-padding: 80px 20px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  /* Smooth Modern */
  --radius-full: 9999px;

  /* Shadows (Depth) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  /* Tech Glow */

  /* Transitions */
  --transition-base: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* Snappy */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-sub);
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

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

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

.text-primary {
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 2.5rem;
  /* More breathing room */
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Heading Sizes & Styles */
.heading-xl {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.heading-lg {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.text-sm {
  font-size: 0.875rem;
  color: var(--text-sub);
}

@media (max-width: 768px) {
  .heading-xl {
    font-size: 2.5rem;
  }

  .heading-lg {
    font-size: 1.875rem;
  }

  .heading-md {
    font-size: 1.35rem;
  }
}

/* Buttons - Product Feel */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--primary-focus);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Tech Backgrounds */
.bg-surface {
  background-color: var(--bg-surface);
  background-image:
    radial-gradient(#E2E8F0 1px, transparent 1px);
  background-size: 32px 32px;
  /* Subtle dot grid */
  background-position: center;
}

/* Hero - Neo-Tech Special */
.hero {
  padding: 140px 24px 100px;
  background: var(--white);
  position: relative;
  /* SVG Grid Data URI */
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%),
    radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M40 0L0 0 0 40" fill="none" stroke="%23E2E8F0" stroke-width="0.8" opacity="0.6"/%3E%3C/svg%3E');
  background-size: cover, cover, 40px 40px;
  text-align: center;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* Card UI - Neo-Tech v2 */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-base);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1) rotate(-3deg);
}

/* Header */
.header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Font styles removed for image logo */
}

.logo img {
  height: 28px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 24px;
  }
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: normal;
  margin-left: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo-sub {
    display: none;
  }
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-sub);
  font-size: 0.95rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Footer */
.footer {
  background: var(--white);
  padding: 80px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--text-main);
}

.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-weight: 700;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-sub);
  font-size: 0.95rem;
}

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

.copyright {
  text-align: center;
  border-top: 1px solid var(--border-sub);
  padding-top: 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--bg-surface);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
  background: var(--white);
}

/* Works Components */
.work-item {
  margin-bottom: 5rem;
}

.work-img {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.work-img:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.875rem;
  background: var(--bg-surface);
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}