/* ========================================
   RELAY - EC物流代行・3PL専門
   ======================================== */

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

:root {
  --purple: #5C2D91;
  --purple-dark: #4A2374;
  --purple-light: #7B4DB5;
  --purple-bg: #F3EEFB;
  --purple-muted: #E8DCF5;
  --purple-subtle: #D4C1EB;
  --white: #FFFFFF;
  --gray-50: #F9F9FB;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8EB;
  --gray-400: #9E9EA7;
  --gray-600: #6B6B76;
  --gray-800: #2D2D34;
  --gray-900: #1A1A1F;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-jp);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-gray { background: var(--gray-100); }
.section-purple { background: var(--purple); }

.text-white { color: var(--white); }
.sp-only { display: none; }

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sample-banner a { color: #c9a5f7; text-decoration: underline; }

/* --- Header --- */
.header {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.04em;
}

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-desktop a:hover { color: var(--purple); }
.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--purple-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  transition: all var(--transition);
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-mobile.active { right: 0; }
.nav-mobile-inner { text-align: center; }
.nav-mobile-link {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 16px 0;
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--purple); }
.nav-mobile-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--purple);
  color: var(--white) !important;
  padding: 14px 40px;
  border-radius: 10px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,45,145,0.3);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.btn-full { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 34px;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,45,145,0.85) 0%, rgba(42,20,72,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-sub {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.85;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-label-light { color: rgba(255,255,255,0.6); }
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-desc {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-icon { width: 100%; max-width: 320px; margin: 0 auto; }
.about-text .section-label { text-align: left; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 20px;
}
.about-text p { color: var(--gray-600); margin-bottom: 16px; font-size: 14.5px; line-height: 2; }

/* --- Service Flow --- */
.flow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flow-step {
  text-align: center;
  flex: 0 0 auto;
  width: 150px;
}
.flow-icon {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--purple-muted);
}
.flow-icon svg { width: 36px; height: 36px; }
.flow-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-800);
}
.flow-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
}
.flow-arrow svg { width: 32px; height: 20px; }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--purple-muted);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.service-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 18px;
}
.service-features { display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-800);
  padding-left: 22px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-bg);
  border: 2px solid var(--purple);
}

/* --- Numbers --- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.number-item {
  text-align: center;
  padding: 24px 16px;
}
.number-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.counter, .counter-decimal {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.number-unit {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.number-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* --- Works --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.work-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.work-image {
  height: 200px;
  overflow: hidden;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-image img { transform: scale(1.05); }
.work-body { padding: 24px; }
.work-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.work-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.work-desc {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- System --- */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.system-text .section-label { text-align: left; }
.system-text .section-title { text-align: left; margin-bottom: 16px; }
.system-lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
}
.system-text p { font-size: 14.5px; color: var(--gray-600); line-height: 2; margin-bottom: 24px; }
.system-features { display: flex; flex-direction: column; gap: 14px; }
.system-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
}

/* System Mockup */
.system-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.mockup-header {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}
.mockup-body { display: flex; min-height: 280px; }
.mockup-sidebar {
  width: 52px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mockup-nav-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--gray-200);
}
.mockup-nav-item.active { background: var(--purple); }
.mockup-content { flex: 1; padding: 20px; }
.mockup-stat-row { display: flex; gap: 12px; margin-bottom: 20px; }
.mockup-stat {
  flex: 1;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--gray-200);
}
.mockup-stat-num {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}
.mockup-stat-label {
  width: 60%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
}
.mockup-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.mockup-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--purple), var(--purple-light));
  border-radius: 4px 4px 0 0;
  animation: barGrow 1.5s ease-out;
}
@keyframes barGrow {
  from { height: 0; }
}
.mockup-table { display: flex; flex-direction: column; gap: 8px; }
.mockup-row {
  height: 12px;
  background: var(--gray-100);
  border-radius: 4px;
}

/* --- Process / Flow --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--purple-muted);
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-num {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  background: var(--purple);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(92,45,145,0.25);
}
.process-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.process-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- Company --- */
.company-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--gray-200); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 180px;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-50);
  text-align: left;
  vertical-align: top;
}
.company-table td {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contact-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}
.contact-info-sub {
  font-size: 12.5px;
  color: var(--gray-400);
  margin-top: 2px;
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.required {
  font-size: 11px;
  color: #e53e3e;
  font-weight: 500;
  margin-left: 4px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: var(--font-jp);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(92,45,145,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; appearance: auto; }

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
.footer-credit a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-credit a:hover { color: rgba(255,255,255,0.8); }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-steps::before { display: none; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .section { padding: 72px 0; }

  .hamburger { display: flex; }
  .nav-desktop { display: none; }

  .hero { min-height: 540px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 260px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-icon { max-width: 220px; }
  .about-text .section-label,
  .about-text .section-title { text-align: center; }

  .flow-diagram { flex-direction: column; align-items: center; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding-top: 0; }
  .flow-step { width: 200px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px; }

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

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

  .system-grid { grid-template-columns: 1fr; gap: 40px; }
  .system-text .section-label,
  .system-text .section-title { text-align: center; }
  .system-mockup .mockup-content { padding: 14px; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0 16px;
    text-align: left;
  }
  .process-num {
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }
  .process-title { margin-bottom: 4px; }

  .company-table th {
    display: block;
    width: 100%;
    padding: 14px 20px 4px;
    background: transparent;
  }
  .company-table td {
    display: block;
    padding: 4px 20px 14px;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .hero { min-height: 480px; max-height: 700px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-sub { font-size: 13px; }
  .hero-actions .btn { width: 100%; padding: 14px 24px; font-size: 14px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 13.5px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .number-item { padding: 16px 8px; }
  .counter, .counter-decimal { font-size: 36px; }
  .number-unit { font-size: 14px; }
  .number-label { font-size: 12.5px; }
  .service-card { padding: 24px 20px; }
  .service-name { font-size: 18px; }
  .service-desc { font-size: 13.5px; }
  .service-features li { font-size: 13px; }
  .work-image { height: 170px; }
  .work-body { padding: 20px; }
  .work-title { font-size: 16px; }
  .work-desc { font-size: 13px; }
  .flow-step { width: 170px; }
  .flow-icon { width: 62px; height: 62px; }
  .flow-icon svg { width: 30px; height: 30px; }
  .flow-label { font-size: 14px; }
  .flow-desc { font-size: 12px; }
  .process-num { width: 50px; height: 50px; font-size: 18px; }
  .process-title { font-size: 14px; }
  .process-desc { font-size: 12.5px; }
  .system-lead { font-size: 14px; }
  .system-text p { font-size: 13.5px; }
  .system-feature { font-size: 13.5px; gap: 10px; }
  .system-mockup { border-radius: var(--radius); }
  .mockup-stat-num { font-size: 13px; }
  .mockup-chart { height: 56px; }
  .contact-form { padding: 20px; }
  .form-label { font-size: 13px; }
  .form-input { padding: 10px 14px; font-size: 14px; }
  .btn { padding: 14px 28px; font-size: 14px; }
  .company-table th { padding: 12px 16px 2px; font-size: 13px; }
  .company-table td { padding: 2px 16px 12px; font-size: 13.5px; }
  .contact-info-value { font-size: 14px; }
  .contact-info-label { font-size: 11px; }
  .footer { padding: 48px 0 0; }
  .footer-col h4 { font-size: 13px; }
  .footer-col a { font-size: 12.5px; }
  .footer-desc { font-size: 12.5px; }
  .footer-bottom { font-size: 11.5px; padding: 20px 0; }
  .about-lead { font-size: 15px; }
  .about-text p { font-size: 13.5px; }
  .about-icon { max-width: 180px; }
  .sample-banner { font-size: 11.5px; padding: 6px 12px; }
}

/* --- Hover & Focus States (Desktop) --- */
@media (hover: hover) {
  .service-card:hover .service-icon svg {
    transform: scale(1.08);
    transition: transform 0.3s ease;
  }
  .work-card:hover .work-tag {
    background: var(--purple);
    color: var(--white);
    transition: all 0.3s ease;
  }
  .process-step:hover .process-num {
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }
  .contact-info-item:hover .contact-info-icon {
    background: var(--purple);
    transition: background 0.3s ease;
  }
  .contact-info-item:hover .contact-info-icon svg path,
  .contact-info-item:hover .contact-info-icon svg circle {
    stroke: var(--white);
    transition: stroke 0.3s ease;
  }
  .footer-col a:hover {
    padding-left: 4px;
    transition: all 0.3s ease;
  }
}

/* --- Print Styles --- */
@media print {
  .sample-banner,
  .header,
  .nav-mobile,
  .hero-scroll,
  .hamburger { display: none !important; }
  .hero { height: auto; min-height: auto; page-break-after: always; }
  .hero-overlay { background: rgba(92,45,145,0.6); }
  .section { padding: 40px 0; page-break-inside: avoid; }
  .footer { background: #333; }
  body { font-size: 12px; }
}

/* --- Selection Color --- */
::selection {
  background: var(--purple);
  color: var(--white);
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }