/* ========================================
   MONOZUKURI - ものづくり製作所
   Tech Minimal: White + Black + Cyan
   Font: Space Grotesk (EN) / Noto Sans JP
   ======================================== */

/* ----------------------------------------
   0. CSS CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  /* Brand Colors */
  --white: #FAFAFA;
  --black: #111111;
  --cyan: #00BCD4;
  --cyan-dark: #0097A7;
  --cyan-light: rgba(0, 188, 212, 0.08);
  --cyan-glow: rgba(0, 188, 212, 0.15);
  --cyan-border: rgba(0, 188, 212, 0.3);

  /* Neutral Scale */
  --gray-50: #F8F9FA;
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #BDBDBD;
  --gray-400: #9E9E9E;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #2A2A2A;
  --gray-900: #1A1A1A;

  /* Typography */
  --font-en: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 100px;

  /* Layout */
  --container-max: 1100px;
  --container-pad: 24px;
  --header-height: 64px;
  --banner-height: 32px;

  /* Easing & Duration */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 0.2s;
  --duration: 0.3s;
  --duration-slow: 0.4s;
  --duration-slower: 0.7s;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-cyan: 0 8px 32px rgba(0, 188, 212, 0.08);
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.06);

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Z-index Scale */
  --z-banner: 9999;
  --z-hamburger: 1001;
  --z-header: 1000;
  --z-mobile-nav: 999;
  --z-hero-content: 2;
}

/* ----------------------------------------
   1. RESET & BASE TYPOGRAPHY
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  background: var(--white);
  color: var(--black);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; border-spacing: 0; }

::selection {
  background: var(--cyan);
  color: #fff;
}

::-moz-selection {
  background: var(--cyan);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ----------------------------------------
   2. CONTAINER
   ---------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

/* ----------------------------------------
   3. SAMPLE BANNER (fixed top bar)
   ---------------------------------------- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-banner);
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-banner a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration);
}

.sample-banner a:hover {
  color: #fff;
}

/* ----------------------------------------
   4. HEADER (fixed, with scroll state)
   ---------------------------------------- */
.header {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: 0 var(--container-pad);
  transition:
    background var(--duration-slow) var(--ease),
    box-shadow var(--duration-slow) var(--ease),
    padding var(--duration) var(--ease);
}

.header.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* -- Logo -- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-cube { flex-shrink: 0; transition: transform var(--duration-slow) var(--ease); }
.logo:hover .logo-cube { transform: rotate(15deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-en { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: var(--black); }
.logo-jp { font-size: 9px; color: var(--gray-500); letter-spacing: 0.08em; }

/* -- Desktop Navigation -- */
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-family: var(--font-en); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--gray-700);
  transition: color var(--duration); position: relative; padding: 4px 0;
}
.nav-desktop a:hover { color: var(--cyan); }
.nav-desktop a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--cyan);
  transition: width var(--duration) var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

/* Nav CTA Button */
.nav-cta {
  background: var(--black) !important; color: #fff !important;
  padding: 8px 20px !important; font-size: 11px !important;
  letter-spacing: 0.08em !important; transition: background var(--duration) !important; border: none;
}
.nav-cta:hover { background: var(--cyan-dark) !important; }
.nav-cta::after { display: none !important; }

/* ----------------------------------------
   5. HAMBURGER MENU BUTTON
   ---------------------------------------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: var(--z-hamburger);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  position: absolute;
  left: 4px;
  transition: all var(--duration) var(--ease);
}

.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 15px; transition: opacity var(--duration-fast); }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* ----------------------------------------
   6. MOBILE NAVIGATION OVERLAY
   ---------------------------------------- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-mobile-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
}

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

.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-nav-links a {
  font-family: var(--font-en); font-size: 18px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--black);
  transition: color var(--duration), transform var(--duration); padding: 4px 0;
}
.mobile-nav-links a:hover { color: var(--cyan); transform: translateX(4px); }
.mobile-cta {
  margin-top: var(--space-md); background: var(--black);
  color: #fff !important; padding: 12px 32px; font-size: 14px !important;
  transition: background var(--duration) !important;
}
.mobile-cta:hover { background: var(--cyan-dark); }

/* ----------------------------------------
   7. HERO SECTION
   ---------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--banner-height);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}

.hero:hover .hero-bg img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.7) 0%,
    rgba(17, 17, 17, 0.5) 50%,
    rgba(17, 17, 17, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: var(--z-hero-content);
  text-align: center;
  color: #fff;
  padding: 0 var(--container-pad);
  max-width: 800px;
}

.hero-label {
  font-family: var(--font-en); font-size: 11px; font-weight: 500;
  letter-spacing: 0.25em; color: var(--cyan); margin-bottom: 24px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px); font-weight: 900;
  line-height: 1.3; letter-spacing: 0.04em; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(13px, 2vw, 16px); font-weight: 300;
  line-height: 1.9; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px;
}
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* -- Scroll Indicator -- */
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-sm); z-index: var(--z-hero-content);
}
.hero-scroll span { font-family: var(--font-en); font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); }
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 1px; height: 100%; background: var(--cyan);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ----------------------------------------
   8. BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-block; padding: 14px 36px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; cursor: pointer; border: none; text-align: center;
  transition: all var(--duration) var(--ease);
  -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,188,212,0.25); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,188,212,0.05); }
.btn-full { width: 100%; text-align: center; padding: 16px 36px; font-size: 14px; font-weight: 600; }

/* ----------------------------------------
   9. SECTION COMMON STYLES
   ---------------------------------------- */
.section { padding: var(--space-4xl) 0; position: relative; }
.section-label {
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--cyan); margin-bottom: var(--space-md);
  text-align: center; text-transform: uppercase;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  line-height: 1.5; letter-spacing: 0.02em; margin-bottom: var(--space-2xl);
}
.section-title.center { text-align: center; }

/* ----------------------------------------
   10. ABOUT SECTION
   ---------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-desc { font-size: 15px; color: var(--gray-700); line-height: 2; margin-bottom: 20px; }
.about-desc:last-of-type { margin-bottom: 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 28px; }
.tag {
  font-size: 11px; font-weight: 500; padding: 6px 14px;
  border: 1px solid var(--gray-200); color: var(--gray-700); letter-spacing: 0.04em;
  transition: border-color var(--duration), color var(--duration), background var(--duration);
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-light); }
.about-visual { display: flex; align-items: center; justify-content: center; }
.tech-icon-box {
  background: var(--gray-900); padding: 40px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; position: relative; overflow: hidden; width: 100%;
}
.tech-icon-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0,188,212,0.06) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(0,188,212,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.tech-icon-svg { width: 180px; height: 180px; }

/* -- SVG Animations -- */
.laser-line {
  animation: laserPulse 2s ease-in-out infinite;
}

@keyframes laserPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.particle {
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(2) { animation-delay: 0.5s; }
.particle:nth-child(3) { animation-delay: 1s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-8px); opacity: 1; }
}

/* ----------------------------------------
   11. TECHNOLOGY SECTION
   ---------------------------------------- */
.technology {
  background: var(--gray-100);
}

.tech-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
}

.tech-card {
  flex: 1;
  background: #fff;
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition:
    border-color var(--duration),
    box-shadow var(--duration-slow) var(--ease);
}

.tech-card:hover {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-cyan);
}

.tech-card-icon { margin-bottom: 20px; }
.tech-card-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.tech-card-sub { font-family: var(--font-en); font-size: 11px; font-weight: 500; color: var(--cyan); letter-spacing: 0.1em; }
.tech-card-list { display: flex; flex-direction: column; gap: 8px; }
.tech-card-list li { font-size: 13px; color: var(--gray-700); padding-left: 16px; position: relative; line-height: 1.7; }
.tech-card-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px; background: var(--cyan);
}
.tech-card-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-en); font-size: 9px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--cyan);
  border: 1px solid var(--cyan); padding: 3px 10px; text-transform: uppercase;
}

/* -- Fusion Element -- */
.tech-fusion {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px 16px; min-width: 80px;
}
.fusion-icon svg { transition: transform var(--duration-slow) var(--ease); }
.fusion-icon:hover svg { transform: rotate(180deg); }
.fusion-text { font-size: 10px; color: var(--gray-500); text-align: center; margin-top: 8px; writing-mode: vertical-rl; letter-spacing: 0.1em; }

/* -- Tech Result -- */
.tech-result { text-align: center; }
.tech-result-inner {
  display: inline-block; padding: 20px 40px;
  border: 1px solid var(--cyan); background: var(--cyan-light);
  transition: background var(--duration);
}
.tech-result-inner:hover { background: rgba(0,188,212,0.12); }
.tech-result-label {
  font-family: var(--font-en); font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--cyan); margin-bottom: 8px; text-transform: uppercase;
}
.tech-result-text { font-size: 14px; color: var(--black); line-height: 1.7; }
.tech-result-text strong { color: var(--cyan-dark); font-weight: 700; }

/* ----------------------------------------
   12. SERVICES SECTION
   ---------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  padding: 40px 32px; border: 1px solid var(--gray-200); background: #fff;
  position: relative; overflow: hidden;
  transition: border-color var(--duration), box-shadow var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--cyan);
  transition: width var(--duration-slow) var(--ease);
}
.service-card:hover::before { width: 100%; }
.service-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-cyan); transform: translateY(-2px); }
.service-num {
  font-family: var(--font-en); font-size: 48px; font-weight: 700;
  color: var(--gray-200); line-height: 1;
  position: absolute; top: 20px; right: 24px; transition: color var(--duration);
}
.service-card:hover .service-num { color: var(--cyan-light); }
.service-icon { margin-bottom: 20px; }
.service-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.service-desc { font-size: 13px; color: var(--gray-700); line-height: 1.9; margin-bottom: 16px; }
.service-features { display: flex; flex-direction: column; gap: 6px; }
.service-features li { font-size: 12px; color: var(--gray-500); padding-left: 14px; position: relative; line-height: 1.6; }
.service-features li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; background: var(--cyan); border-radius: 50%;
}

/* ----------------------------------------
   13. WORKS SECTION
   ---------------------------------------- */
.works { background: var(--gray-900); color: #fff; }
.works .section-label { color: var(--cyan); }
.works .section-title { color: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: var(--gray-800); overflow: hidden;
  transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow);
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.work-img { aspect-ratio: 4/3; overflow: hidden; }
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease); filter: brightness(0.85);
}
.work-card:hover .work-img img { transform: scale(1.05); filter: brightness(1); }
.work-info { padding: 24px; }
.work-tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--cyan); border: 1px solid var(--cyan-border);
  padding: 3px 10px; display: inline-block; margin-bottom: 12px; transition: background var(--duration);
}
.work-card:hover .work-tag { background: rgba(0,188,212,0.1); }
.work-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.work-desc { font-size: 12px; color: var(--gray-300); line-height: 1.8; }

/* ----------------------------------------
   14. NUMBERS / COUNTER STATS
   ---------------------------------------- */
.numbers {
  background: var(--black);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 188, 212, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 188, 212, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; position: relative; }
.number-item { padding: 16px 8px; }
.number-value {
  font-family: var(--font-en); font-size: clamp(36px, 5vw, 52px);
  font-weight: 700; color: var(--cyan); line-height: 1.2; margin-bottom: 8px;
}
.counter { display: inline-block; }
.number-unit { font-size: 16px; font-weight: 400; color: rgba(0,188,212,0.7); margin-left: 2px; }
.number-label { font-size: 12px; color: var(--gray-500); letter-spacing: 0.05em; }

/* ----------------------------------------
   15. FLOW / TIMELINE STEPS
   ---------------------------------------- */
.flow-steps { max-width: 700px; margin: 0 auto; position: relative; }
.flow-steps::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 1px; background: var(--gray-200);
}
.flow-step { display: flex; gap: 32px; padding: 32px 0; position: relative; }
.flow-step:last-child { padding-bottom: 0; }
.flow-num {
  flex-shrink: 0; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 16px; font-weight: 600;
  color: var(--cyan); border: 1px solid var(--cyan); background: var(--white);
  z-index: 1; transition: background var(--duration), color var(--duration);
}
.flow-step:hover .flow-num { background: var(--cyan); color: #fff; }
.flow-content { flex: 1; padding-top: 4px; }
.flow-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.flow-desc { font-size: 13px; color: var(--gray-700); line-height: 1.9; }

/* ----------------------------------------
   16. COMPANY SECTION
   ---------------------------------------- */
.company { background: var(--gray-100); }
.company-table { max-width: 700px; margin: 0 auto; }
.company-table table { width: 100%; }
.company-table tr { border-bottom: 1px solid var(--gray-200); transition: background var(--duration); }
.company-table tr:hover { background: rgba(0,188,212,0.02); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  text-align: left; padding: 16px 20px; font-size: 13px; font-weight: 600;
  width: 160px; vertical-align: top; color: var(--black); background: rgba(0,188,212,0.04);
}
.company-table td { padding: 16px 20px; font-size: 13px; color: var(--gray-700); line-height: 1.7; }

/* ----------------------------------------
   17. CONTACT FORM
   ---------------------------------------- */
.contact-lead {
  text-align: center; font-size: 14px; color: var(--gray-700);
  line-height: 2; margin-bottom: 40px; margin-top: -24px;
}
.contact-box { max-width: 700px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--black); letter-spacing: 0.04em; }
.required { color: var(--cyan); font-weight: 700; }

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  font-size: 14px;
  font-family: var(--font-jp);
  color: var(--black);
  transition:
    border-color var(--duration),
    background var(--duration),
    box-shadow var(--duration);
  outline: none;
  resize: vertical;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(0,188,212,0.08); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); font-size: 13px; }
.form-group textarea { min-height: 120px; }

/* ----------------------------------------
   18. FOOTER
   ---------------------------------------- */
.footer { background: var(--black); color: var(--gray-500); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; }
.footer .logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-text { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--gray-300); letter-spacing: 0.1em; }
.footer-copy { font-size: 11px; margin-top: 8px; color: var(--gray-500); }
.footer-credit a { font-size: 11px; color: var(--gray-500); transition: color var(--duration); }
.footer-credit a:hover { color: var(--cyan); }

/* ----------------------------------------
   19. SCROLL / FADE ANIMATIONS
   ---------------------------------------- */

/* Hero entrance */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s var(--ease) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Scroll-triggered */
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-slower) var(--ease), transform var(--duration-slower) var(--ease);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Alternative fade-up class */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------
   20. RESPONSIVE: <= 1024px
   ---------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --container-pad: 20px;
  }

  .nav-desktop { gap: 20px; }
  .nav-desktop a { font-size: 11px; }
  .about-grid { gap: 40px; }
  .tech-card { padding: 32px 24px; }
  .services-grid { gap: 20px; }
  .service-card { padding: 32px 24px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { gap: 24px; }
}

/* ----------------------------------------
   21. RESPONSIVE: <= 768px
   ---------------------------------------- */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }

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

  .about-visual { order: -1; }

  .tech-icon-box {
    max-width: 320px;
    margin: 0 auto;
  }

  .tech-compare {
    flex-direction: column;
    gap: 16px;
  }

  .tech-fusion {
    flex-direction: row;
    padding: 12px;
    min-width: unset;
  }

  .fusion-text { writing-mode: horizontal-tb; }
  .services-grid { grid-template-columns: 1fr; }

  .works-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-title { font-size: clamp(28px, 5vw, 42px); }
  .section { padding: 80px 0; }
  .section-title { margin-bottom: 36px; }
  .company-table th { width: 120px; padding: 14px; }
  .company-table td { padding: 14px; }
  .flow-step { gap: 24px; }
  .tech-result-inner { padding: 16px 24px; }
}

/* ----------------------------------------
   22. RESPONSIVE: <= 480px
   ---------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
    --banner-height: 28px;
  }

  .sample-banner { font-size: 10px; padding: 6px 12px; }
  .header-inner { height: 56px; }
  .section { padding: 64px 0; }

  .section-title {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 28px;
  }

  .hero { min-height: 100svh; }
  .hero-title { font-size: 28px; letter-spacing: 0.02em; }
  .hero-sub { font-size: 13px; margin-bottom: 32px; }
  .hero-label { font-size: 10px; letter-spacing: 0.2em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .hero-scroll { bottom: 24px; }
  .about-desc { font-size: 14px; }
  .tech-icon-box { padding: 32px; }
  .tech-icon-svg { width: 140px; height: 140px; }
  .tech-card { padding: 28px 20px; }
  .tech-card-title { font-size: 18px; }
  .tech-card-badge { top: 16px; right: 16px; font-size: 8px; }
  .tech-result-inner { padding: 14px 16px; }
  .tech-result-text { font-size: 13px; }
  .service-card { padding: 28px 20px; }
  .service-num { font-size: 40px; top: 16px; right: 20px; }
  .service-title { font-size: 16px; }
  .work-info { padding: 20px; }
  .work-title { font-size: 14px; }
  .numbers { padding: 60px 0; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .number-value { font-size: clamp(32px, 8vw, 40px); }
  .form-row { grid-template-columns: 1fr; }
  .contact-lead { font-size: 13px; margin-top: -16px; text-align: left; }
  .company-table th { width: 100px; padding: 12px; font-size: 12px; }
  .company-table td { padding: 12px; font-size: 12px; }
  .flow-step { gap: 20px; padding: 24px 0; }
  .flow-num { width: 48px; height: 48px; font-size: 14px; }
  .flow-steps::before { left: 23px; }
  .flow-title { font-size: 15px; }
  .flow-desc { font-size: 12px; }
  .footer { padding: 32px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-brand { align-items: center; }
  .mobile-nav-links a { font-size: 16px; }
  .mobile-cta { padding: 10px 28px; }
}

/* ----------------------------------------
   23. PRINT STYLES
   ---------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body { font-size: 12pt; line-height: 1.6; }

  .sample-banner,
  .header,
  .hamburger,
  .mobile-nav,
  .hero-scroll,
  .hero-actions,
  .footer-credit,
  .contact-form .btn {
    display: none !important;
  }

  .hero {
    height: auto;
    min-height: auto;
    margin-top: 0;
    page-break-after: avoid;
  }

  .hero-bg,
  .hero-overlay {
    display: none !important;
  }

  .hero-content {
    color: #000 !important;
    position: relative;
    padding: 24pt 0;
  }

  .hero-title { font-size: 24pt; color: #000 !important; }
  .hero-sub { color: #333 !important; }
  .hero-label { color: #666 !important; }
  .section { padding: 24pt 0; page-break-inside: avoid; }
  .container { max-width: 100%; padding: 0; }
  .section-label { color: #666 !important; }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .work-img img,
  .hero-bg img {
    filter: none !important;
  }

  .about-grid,
  .services-grid,
  .works-grid,
  .numbers-grid {
    display: block;
  }

  .service-card,
  .work-card,
  .tech-card {
    page-break-inside: avoid;
    margin-bottom: 12pt;
    border: 1px solid #ccc;
  }

  .animate-up,
  .animate-on-scroll,
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  .nav-desktop a[href]::after,
  .mobile-nav-links a[href]::after,
  .logo a[href]::after {
    content: none;
  }

  .company-table table { width: 100%; }
  .company-table th,
  .company-table td { border: 1px solid #ccc; padding: 8pt; }
  .tech-icon-box { background: #f5f5f5 !important; }
  .numbers { padding: 16pt 0; }
  .number-value { color: #000 !important; }
  .footer { padding: 16pt 0; border-top: 1px solid #ccc; }
}

/* ----------------------------------------
   24. REDUCED MOTION PREFERENCE
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-up,
  .animate-on-scroll,
  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-bg img { transition: none; }
  .scroll-line::after { animation: none; }
  .laser-line, .particle { animation: none; }
}
