/* ============================================================
   SOA Solutions - Redesigned Corporate Website
   ============================================================ */

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

:root {
  --red:       #c0392b;
  --red-dark:  #96281b;
  --red-light: #e74c3c;
  --navy:      #0d1f3c;
  --navy-mid:  #1a3558;
  --blue:      #1e5799;
  --blue-lt:   #2980b9;
  --gray-bg:   #f5f6f8;
  --gray-mid:  #e2e6ea;
  --gray-text: #6b7280;
  --text:      #1a202c;
  --white:     #ffffff;
  --font-jp:   'Noto Sans JP', sans-serif;
  --font-en:   'Raleway', sans-serif;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --trans:     0.4s cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.section { padding: 100px 0; }
.bg-gray  { background: var(--gray-bg); }

.mt-2 { margin-top: 24px; display: inline-block; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background var(--trans), transform .2s, box-shadow .2s;
  border: 2px solid var(--red);
  font-family: var(--font-jp);
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,.7);
  transition: all .3s;
  font-family: var(--font-jp);
  font-size: 0.95rem;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.section-line {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 16px auto;
  border-radius: 2px;
}
.section-desc { font-size: .95rem; color: var(--gray-text); max-width: 600px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s, box-shadow .4s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  background: rgba(255,255,255,0);
  transition: background .4s, box-shadow .4s, height .3s;
}
#header.scrolled .header-inner {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  height: 60px;
}
.logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s;
}
#header.scrolled .logo img { filter: none; }

.pc-nav ul { display: flex; align-items: center; gap: 4px; }
.pc-nav ul li a {
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  border-radius: 4px;
  transition: all .25s;
}
.pc-nav ul li a:hover { color: #fff; background: rgba(255,255,255,.15); }
#header.scrolled .pc-nav ul li a { color: var(--navy); }
#header.scrolled .pc-nav ul li a:hover { background: var(--gray-bg); }

.btn-contact-nav {
  background: var(--red) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}
.btn-contact-nav:hover { background: var(--red-dark) !important; }

.pc-nav a.nav-active {
  color: #fff !important;
  background: rgba(192,57,43,.25) !important;
}
#header.scrolled .pc-nav a.nav-active {
  color: var(--red) !important;
  background: rgba(192,57,43,.08) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
#header.scrolled .hamburger span { background: var(--navy); }

.sp-nav {
  display: none;
  background: var(--white);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.sp-nav.open { max-height: 400px; padding: 16px 0; }
.sp-nav ul li a {
  display: block;
  padding: 12px 32px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-mid);
  transition: background .2s;
}
.sp-nav ul li a:hover { background: var(--gray-bg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,.82) 0%, rgba(13,31,60,.55) 50%, rgba(30,87,153,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 72px;
}
.hero-text { max-width: 680px; }
.hero-sub {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(192,57,43,.4);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  border-left: 3px solid var(--red-light);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title span { display: block; }
.hero-title .accent { color: #f6ad55; }
.hero-desc {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  line-height: 1.9;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 14px 24px;
  text-align: center;
  color: #fff;
  min-width: 100px;
}
.badge-num {
  display: block;
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #f6ad55;
}
.badge-num small { font-size: .85rem; }
.badge-label { font-size: .78rem; margin-top: 4px; display: block; opacity: .85; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-family: var(--font-en);
  font-size: .7rem;
  letter-spacing: .15em;
  z-index: 10;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.4);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   TAGLINE STRIP
   ============================================================ */
.tagline-strip {
  background: var(--navy);
  padding: 18px 0;
  overflow: hidden;
}
.tagline-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.tagline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 500;
}
.tagline-item svg { width: 18px; height: 18px; stroke: #f6ad55; flex-shrink: 0; }
.tagline-sep { color: rgba(255,255,255,.3); font-size: 1.2rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--navy);
}
.about-text p { color: var(--gray-text); margin-bottom: 16px; line-height: 1.85; }
.about-facts { display: flex; gap: 24px; margin: 28px 0; flex-wrap: wrap; }
.fact-item {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 100px;
  text-align: center;
}
.fact-year { display: block; font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; color: #f6ad55; }
.fact-label { font-size: .72rem; opacity: .8; margin-top: 4px; display: block; }

.about-img-wrap { display: flex; flex-direction: column; gap: 20px; }
.about-img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,31,60,.85));
  color: #fff;
  padding: 24px 16px 14px;
  font-size: .85rem;
  font-weight: 500;
}
.license-box {
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .82rem;
  color: var(--gray-text);
}
.license-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .9rem; }

/* ============================================================
   BUSINESS CARDS
   ============================================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* 5th card — center in row of 2 (last row) */
.biz-grid .biz-card:last-child {
  grid-column: 2 / 3;
}

.biz-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.biz-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.biz-card:hover .biz-img-wrap img { transform: scale(1.08); }

.biz-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,60,.0) 0%, rgba(13,31,60,.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .4s;
}
.biz-card:hover .biz-overlay { opacity: 1; }
.biz-overlay ul { width: 100%; }
.biz-overlay ul li {
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  padding: 2px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.biz-overlay ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #f6ad55;
}

.biz-body { padding: 20px 22px 22px; }
.biz-icon {
  width: 44px;
  height: 44px;
  background: rgba(192,57,43,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.biz-icon svg { width: 22px; height: 22px; stroke: var(--red); }
.biz-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.biz-body p { font-size: .85rem; color: var(--gray-text); line-height: 1.7; margin-bottom: 14px; }
.biz-more {
  font-size: .82rem;
  color: var(--red);
  font-weight: 600;
  transition: gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.biz-more:hover { gap: 8px; }

/* ============================================================
   FLOW
   ============================================================ */
.flow-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.flow-step {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  border-top: 4px solid var(--red);
  position: relative;
  transition: transform var(--trans);
}
.flow-step:hover { transform: translateY(-6px); }
.step-num {
  font-family: var(--font-en);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 700;
}
.step-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon svg { width: 24px; height: 24px; stroke: #f6ad55; }
.flow-step h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.flow-step p { font-size: .82rem; color: var(--gray-text); line-height: 1.6; }
.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--red);
  padding: 0 8px;
  font-weight: 300;
}

/* ============================================================
   RESULTS (Parallax BG)
   ============================================================ */
.results {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.results-bg {
  position: absolute;
  inset: 0;
}
.parallax-img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  top: -5%;
  position: absolute;
  will-change: transform;
}
.results-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,31,60,.78);
}
.results-content { position: relative; z-index: 2; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 28px 22px;
  color: #fff;
  transition: background var(--trans), transform var(--trans);
}
.result-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.result-icon {
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.result-icon svg { width: 22px; height: 22px; stroke: #f6ad55; }
.result-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.result-card p { font-size: .83rem; color: rgba(255,255,255,.8); line-height: 1.7; }

/* ============================================================
   MAINTENANCE
   ============================================================ */
.maint-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.maint-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.maint-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.maint-features { display: flex; flex-direction: column; gap: 24px; }
.maint-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--gray-bg);
  border-radius: 10px;
  border-left: 4px solid var(--red);
  transition: transform .3s, box-shadow .3s;
}
.maint-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.maint-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.maint-icon svg { width: 20px; height: 20px; stroke: #f6ad55; }
.maint-text h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.maint-text p { font-size: .83rem; color: var(--gray-text); line-height: 1.7; }

/* ============================================================
   MAKERS
   ============================================================ */
.makers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.maker-item {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.maker-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(192,57,43,.15);
  transform: translateY(-3px);
}

/* ============================================================
   OFFICES
   ============================================================ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.office-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  transition: transform .3s;
}
.office-card:hover { transform: translateY(-4px); }
.office-label {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  padding: 2px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
  font-weight: 500;
}
.office-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.office-card p { font-size: .83rem; color: var(--gray-text); line-height: 1.7; }

.related h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-item {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--blue-lt);
}
.related-item h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.related-item p { font-size: .82rem; color: var(--gray-text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.contact-bg { position: absolute; inset: 0; }
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,.9) 0%, rgba(30,87,153,.8) 100%);
}
.contact-content { position: relative; z-index: 2; }
.contact-inner {
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.contact-form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 20px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.required {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-lt);
  box-shadow: 0 0 0 3px rgba(41,128,185,.12);
}
.form-group textarea { resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 16px 56px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .2s;
}
.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 38px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-catch { font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-address { font-size: .82rem; line-height: 1.8; }
.footer-nav h5 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-en);
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { font-size: .85rem; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-nav ul li a:hover { color: #fff; }
.footer-contact h5 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-en);
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.btn-footer-contact {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: background .25s;
}
.btn-footer-contact:hover { background: var(--red-dark); }
.footer-note { font-size: .8rem; line-height: 1.7; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
}
.copyright { font-size: .78rem; color: rgba(255,255,255,.4); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(192,57,43,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .2s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-up, .reveal-left, .reveal-right, .fade-up {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}

/* Initial states */
.reveal       { transform: translateY(32px); }
.reveal-up    { transform: translateY(48px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.fade-up      { transform: translateY(24px); }

/* Delay variants */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s;  }
.delay-3 { transition-delay: 0.45s; }

/* Animated state */
.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.fade-up.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Data-delay via JS */
.reveal-up[data-delay="0"] { transition-delay: 0s; }
.reveal-up[data-delay="1"] { transition-delay: 0.12s; }
.reveal-up[data-delay="2"] { transition-delay: 0.24s; }
.reveal-up[data-delay="3"] { transition-delay: 0.36s; }
.reveal-up[data-delay="4"] { transition-delay: 0.48s; }
.reveal-up[data-delay="5"] { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid .biz-card:last-child { grid-column: 1 / 2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .maint-wrap  { grid-template-columns: 1fr; gap: 40px; }
  .makers-grid { grid-template-columns: repeat(3, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .pc-nav { display: none; }
  .hamburger { display: flex; }
  .sp-nav { display: block; }
  .hero-content { padding: 0 24px; padding-top: 72px; }
  .hero-btns { gap: 12px; }
  .btn-primary, .btn-outline { padding: 12px 22px; font-size: .88rem; }
  .hero-badges { gap: 12px; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-grid .biz-card:last-child { grid-column: 1; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { max-width: 100%; width: 100%; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .makers-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-scroll { right: 24px; bottom: 24px; }
}

@media (max-width: 480px) {
  .tagline-sep { display: none; }
  .tagline-inner { gap: 12px; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: row; gap: 10px; }
  .badge { padding: 10px 14px; min-width: 80px; }
  .badge-num { font-size: 1.4rem; }
}
