/* ===================================
   Halo Corporate Website — Design System
   =================================== */

/* --- CSS Variables --- */
:root {
  --primary: #D4A017;
  --primary-light: #E8C547;
  --primary-dark: #B8860B;
  --primary-glow: rgba(212, 160, 23, 0.15);
  --accent: #6CB4D4;
  --accent-light: #8DC8E0;
  --accent-dark: #4A9BBD;
  --accent-glow: rgba(108, 180, 212, 0.12);
  --text: #2D2D2D;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-warm: #FDFCF9;
  --bg-light: #F7F7F5;
  --bg-section: #FAF9F6;
  --border: #E5E5E0;
  --border-light: #F0EFEB;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

.en {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
}

/* --- Opening Animation --- */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.opening-overlay.fade-out {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.halo-ring-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary-light);
  border-radius: 50%;
  animation: haloSpin 1.2s ease-in-out forwards;
  opacity: 0;
}

.halo-ring-inner {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-bottom-color: var(--accent);
  border-left-color: var(--accent-light);
  border-radius: 50%;
  animation: haloSpinReverse 1.2s 0.15s ease-in-out forwards;
  opacity: 0;
}

.halo-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: haloGlow 1.5s 0.3s ease-out forwards;
  opacity: 0;
}

.opening-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: logoReveal 0.8s 0.8s ease-out forwards;
  position: relative;
  z-index: 1;
}

.opening-tagline {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.3em;
  margin-top: 12px;
  opacity: 0;
  animation: logoReveal 0.6s 1.1s ease-out forwards;
}

@keyframes haloSpin {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.5);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: rotate(360deg) scale(1);
  }
}

@keyframes haloSpinReverse {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.5);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.8;
    transform: rotate(-360deg) scale(1);
  }
}

@keyframes haloGlow {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.3;
    transform: scale(1.3);
  }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.1em;
  position: relative;
}

.logo .dot {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.25);
  color: var(--white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all var(--transition);
  transform-origin: center;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-overlay a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav-overlay a:hover {
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 40px;
}

/* --- Section Common --- */
section {
  padding: 120px 40px;
}

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

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

.page-header {
  padding: 160px 40px 80px;
  background-color: var(--bg-light);
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--primary-glow);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-glow);
  pointer-events: none;
}

.page-header .section-label {
  position: relative;
  z-index: 1;
}

.page-header .section-title {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 5vw, 48px);
}

.page-header .section-description {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-light);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
  color: var(--white);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--primary);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108, 180, 212, 0.3);
  color: var(--white);
}

/* Arrow icon for buttons */
.arrow-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* --- Hero Section (Top Page) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-warm);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(108, 180, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.hero-badge .badge-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-badge .badge-value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.hero-badge .badge-unit {
  font-size: 14px;
  color: var(--text-light);
  margin-left: 4px;
}

/* --- Card Styles --- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  background: var(--primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.card:hover .card-icon svg {
  color: white;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* Feature card with number */
.feature-card {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
}

.feature-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.7;
}

/* --- Service Detail Card --- */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-detail-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.service-detail-card.featured::after {
  content: 'おすすめ';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.service-detail-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-detail-body {
  padding: 32px;
}

.service-detail-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-detail-body p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

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

.service-tag {
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* --- Flow Steps --- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  position: relative;
  padding-bottom: 56px;
}

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

.flow-step::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 80px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border-light));
}

.flow-step:last-child::before {
  display: none;
}

.flow-number {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.flow-content {
  flex: 1;
  padding-top: 14px;
}

.flow-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* --- Company Table --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 900px;
  margin: 0 auto;
}

.company-table tr {
  border-bottom: 1px solid var(--border-light);
}

.company-table th,
.company-table td {
  padding: 24px 20px;
  text-align: left;
  font-size: 15px;
}

.company-table th {
  width: 200px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-light);
  border-right: 3px solid var(--primary);
}

.company-table td {
  color: var(--text-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background-color: var(--primary);
  background-image:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%),
    repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px);
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  line-height: 2;
}

.cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--primary);
  padding: 18px 42px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* --- Contact Form --- */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.contact-phone {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-phone a {
  color: inherit;
}

.contact-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group label .required {
  color: var(--primary);
  margin-left: 4px;
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 18px 48px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 12px;
  align-self: center;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
}

/* --- Footer --- */
footer {
  background: #1E1E1E;
  color: var(--white);
  padding: 80px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
}

.footer-nav h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

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

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

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-wrapper img {
    height: 350px;
  }

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 72px 20px;
  }

  .container,
  .container-wide {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    bottom: -16px;
    left: -8px;
    padding: 14px 20px;
  }

  .hero-badge .badge-value {
    font-size: 22px;
  }

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

  .page-header {
    padding: 130px 20px 60px;
  }

  .page-header .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .flow-step {
    flex-direction: column;
    gap: 16px;
  }

  .flow-step::before {
    display: none;
  }

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

  .company-table th {
    border-bottom: none;
    border-right: none;
    border-left: 3px solid var(--primary);
  }

  .contact-box {
    padding: 32px 20px;
  }

  .contact-phone {
    font-size: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Inline grid sections (concept, service detail) */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .cta-banner {
    padding: 60px 20px;
  }

  .halo-ring-container {
    width: 140px;
    height: 140px;
  }

  .halo-ring {
    width: 110px;
    height: 110px;
  }

  .halo-ring-inner {
    width: 76px;
    height: 76px;
  }

  .halo-glow {
    width: 120px;
    height: 120px;
  }

  .opening-logo {
    font-size: 32px;
  }
}

/* ===================================
   Before After Section
   =================================== */
.before-after-section {
  padding: 100px 40px;
  background-color: var(--bg-section);
  background-image:
    linear-gradient(135deg, rgba(212, 160, 23, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(108, 180, 212, 0.03) 25%, transparent 25%),
    radial-gradient(circle, rgba(0, 0, 0, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
}

.before-after-showcase {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.before-after-case-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 32px 24px 24px;
  color: var(--text);
}

.before-after-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 24px;
}

.before-after-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.before-after-side img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.before-after-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.before-label {
  background: rgba(45, 45, 45, 0.85);
  color: var(--white);
}

.after-label {
  background: var(--primary);
  color: var(--white);
}

.before-after-caption {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  text-align: center;
  padding: 28px 32px 36px;
}

@media (max-width: 768px) {
  .before-after-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .before-after-side img {
    height: 280px;
  }

  .before-after-section {
    padding: 60px 20px;
  }

  .before-after-case-title {
    font-size: 18px;
    padding: 24px 16px 16px;
  }
}