/* ============================================
   やまと足場 - YAMATO ASHIBA
   Japanese Bold Scaffolding Company
   Deep Red (#8B0000) + Black (#111111) + Off-white (#FAF8F5)
   ============================================ */

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

:root {
  --red: #8B0000;
  --red-light: #A52A2A;
  --red-dark: #6B0000;
  --black: #111111;
  --dark: #1A1A1A;
  --gray: #666666;
  --gray-light: #999999;
  --gray-border: #E0DCDA;
  --bg: #FAF8F5;
  --bg-alt: #F0ECE6;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --header-h: 72px;
  --banner-h: 28px;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--red);
  color: var(--white);
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.sp-only {
  display: none;
}

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

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 16px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.sample-banner a {
  color: #FFD700;
  text-decoration: underline;
  font-weight: 700;
}

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

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  z-index: 9998;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover .logo-text {
  color: var(--red);
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

/* --- Global Nav --- */
.gnav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gnav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
}

.gnav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.gnav-link:hover {
  color: var(--red);
}

.gnav-link:hover::after {
  width: 100%;
}

.gnav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
}

.gnav-cta::after {
  display: none;
}

.gnav-cta:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 6px auto;
  transition: var(--transition);
  border-radius: 1px;
}

.hamburger.active span {
  background: var(--white);
}

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

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

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

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(17, 17, 17, 0.97);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  text-align: center;
}

.mobile-nav-link {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  padding: 16px 0;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s ease;
}

.mobile-nav-link:hover {
  color: var(--red);
}

.mobile-nav.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.10s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.30s; }
.mobile-nav.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-cta {
  color: var(--red) !important;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  margin-top: 12px;
  display: inline-block;
  padding: 12px 40px !important;
}

.mobile-nav-cta:hover {
  background: var(--red);
  color: var(--white) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.82) 0%,
    rgba(139, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  opacity: 0.85;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}

/* --- Hero Scroll Indicator --- */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 16px;
}

.section-title.center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.9;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '足場';
  position: absolute;
  top: 40px;
  right: -20px;
  font-size: 160px;
  font-weight: 900;
  color: var(--red);
  opacity: 0.03;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-icon {
  margin-bottom: 24px;
}

.about-body {
  font-size: 15px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 16px;
}

.about-body:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  transform: translate(12px, 12px);
  z-index: -1;
}

.about-image img {
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* ============================================
   CHALLENGE SECTION
   ============================================ */
.challenge {
  position: relative;
  overflow: hidden;
}

.challenge::before {
  content: '挑戦';
  position: absolute;
  bottom: 20px;
  left: -10px;
  font-size: 140px;
  font-weight: 900;
  color: var(--red);
  opacity: 0.03;
  pointer-events: none;
}

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

.challenge-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}

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

.challenge-card:hover::before {
  width: 100%;
}

.challenge-icon { margin: 0 auto 20px; display: flex; justify-content: center; }
.challenge-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; color: var(--black); }
.challenge-lead { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.challenge-body { font-size: 14px; line-height: 1.9; color: var(--gray); text-align: left; }

/* ============================================
   SERVICE SECTION
   ============================================ */
.service {
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '技術';
  position: absolute;
  top: 30px;
  left: -10px;
  font-size: 140px;
  font-weight: 900;
  color: var(--black);
  opacity: 0.02;
  pointer-events: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}

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

.service-card:hover::after {
  width: 60%;
}

.service-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.service-icon svg { transition: transform var(--transition); }
.service-card:hover .service-icon svg { transform: scale(1.08); }
.service-name { font-size: 17px; font-weight: 900; margin-bottom: 12px; color: var(--black); }
.service-desc { font-size: 13px; line-height: 1.9; color: var(--gray); text-align: left; }

/* ============================================
   WORKS SECTION
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.works-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.works-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.works-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.works-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.works-card:hover .works-img img {
  transform: scale(1.06);
}

.works-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.works-info { padding: 24px; }
.works-name { font-size: 17px; font-weight: 900; margin-bottom: 10px; color: var(--black); }
.works-detail { font-size: 13px; line-height: 1.9; color: var(--gray); margin-bottom: 14px; }
.works-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray-light); }
.works-meta span { position: relative; }
.works-meta span:not(:last-child)::after { content: '|'; position: absolute; right: -10px; color: var(--gray-border); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--black) 0%, #2A0000 100%);
  padding: 64px 0;
  overflow: hidden;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-banner-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cta-banner-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.cta-banner-action {
  text-align: center;
  flex-shrink: 0;
}

.cta-banner-tel { margin-top: 16px; }
.cta-banner-tel-label { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.cta-banner-tel-number { font-size: 22px; font-weight: 900; color: var(--red); letter-spacing: 0.05em; transition: color var(--transition); }
.cta-banner-tel-number:hover { color: var(--red-light); }

/* ============================================
   REASON / WHY YAMATO SECTION
   ============================================ */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.reason-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reason-card:hover::after {
  width: 100%;
}

.reason-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--red);
  opacity: 0.12;
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
}

.reason-icon-wrap { margin-bottom: 16px; }
.reason-icon-wrap svg { transition: transform var(--transition); }
.reason-card:hover .reason-icon-wrap svg { transform: scale(1.1); }
.reason-title { font-size: 17px; font-weight: 900; margin-bottom: 10px; color: var(--black); }
.reason-desc { font-size: 13px; line-height: 1.9; color: var(--gray); }

/* ============================================
   NUMBERS SECTION
   ============================================ */
.numbers {
  background: var(--black) !important;
  color: var(--white);
}

.numbers .section-label {
  color: var(--red);
}

.numbers .section-title {
  color: var(--white);
}

.numbers .section-title::after {
  background: var(--red);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.number-item {
  text-align: center;
  padding: 24px 0;
  position: relative;
}

.number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.number-value { font-size: clamp(40px, 6vw, 64px); font-weight: 900; color: var(--red); line-height: 1; }
.number-unit { font-size: 20px; font-weight: 700; color: var(--white); margin-left: 4px; opacity: 0.8; }
.number-label { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-top: 8px; font-weight: 500; }

/* ============================================
   FLOW SECTION
   ============================================ */
.flow-list {
  max-width: 720px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.flow-item::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 68px;
  width: 2px;
  height: calc(100% - 36px);
  background: rgba(139, 0, 0, 0.12);
}

.flow-item:last-child {
  border-bottom: none;
}

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

.flow-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  min-width: 56px;
  line-height: 1;
  opacity: 0.7;
}

.flow-content { flex: 1; }
.flow-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; color: var(--black); }
.flow-desc { font-size: 14px; line-height: 1.9; color: var(--gray); }

/* ============================================
   COMPANY SECTION
   ============================================ */
.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th {
  font-size: 14px;
  font-weight: 700;
  padding: 18px 20px;
  text-align: left;
  width: 180px;
  vertical-align: top;
  background: rgba(139, 0, 0, 0.04);
  color: var(--black);
}

.company-table td {
  font-size: 14px;
  padding: 18px 20px;
  line-height: 1.8;
  color: var(--gray);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-phone-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray);
}

.contact-phone-number {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.contact-phone-number:hover {
  color: var(--red-light);
}

.contact-phone-hours {
  font-size: 13px;
  color: var(--gray-light);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black);
}

.req {
  font-size: 10px;
  background: var(--red);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #DDD;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
  color: var(--black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-size: 16px; font-weight: 900; color: var(--white); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
}

.footer-credit a { color: var(--red); text-decoration: underline; }
.footer-credit a:hover { color: var(--red-light); }

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(139, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade for grid cards */
.challenge-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.challenge-card.fade-in:nth-child(3) { transition-delay: 0.2s; }

.service-card.fade-in:nth-child(2) { transition-delay: 0.08s; }
.service-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.service-card.fade-in:nth-child(4) { transition-delay: 0.24s; }

.reason-card.fade-in:nth-child(2) { transition-delay: 0.08s; }
.reason-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.reason-card.fade-in:nth-child(4) { transition-delay: 0.24s; }

.works-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.works-card.fade-in:nth-child(3) { transition-delay: 0.2s; }

.flow-item.fade-in:nth-child(2) { transition-delay: 0.06s; }
.flow-item.fade-in:nth-child(3) { transition-delay: 0.12s; }
.flow-item.fade-in:nth-child(4) { transition-delay: 0.18s; }
.flow-item.fade-in:nth-child(5) { transition-delay: 0.24s; }

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .challenge-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .gnav { display: none; }
  .hamburger { display: block; }
  .section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image { order: -1; }
  .about-image::after { transform: translate(8px, 8px); }
  .about::before { font-size: 100px; }
  .challenge-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .challenge-icon svg { width: 120px; height: 120px; }
  .challenge::before { font-size: 90px; }
  .service-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .service::before { font-size: 90px; }
  .reason-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .reason-num { font-size: 36px; }
  .cta-banner { padding: 48px 0; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .btn-lg { padding: 16px 40px; font-size: 15px; }
  .works-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .works-img { height: 200px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .flow-item { gap: 20px; }
  .flow-num { font-size: 28px; min-width: 44px; }
  .flow-item::before { left: 21px; }
  .company-table th { width: 120px; padding: 14px 12px; font-size: 13px; }
  .company-table td { padding: 14px 12px; font-size: 13px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { letter-spacing: 0.02em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-scroll { bottom: 24px; }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .challenge-card { padding: 28px 20px; }
  .hero { min-height: 100svh; }
  .number-item { padding: 16px 0; }
  .numbers-grid { gap: 16px; }
  .number-item:not(:last-child)::after { display: none; }
  .reason-card { padding: 24px 20px; }
  .reason-num { font-size: 32px; }
  .cta-banner { padding: 40px 0; }
  .cta-banner-title { font-size: 20px; }
  .back-to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
  .flow-item::before { left: 21px; }
  .sample-banner { font-size: 10px; padding: 5px 12px; }
  .logo-text { font-size: 17px; }
}

/* --- Print --- */
@media print {
  .sample-banner, .scroll-progress, .header, .mobile-nav,
  .hamburger, .hero-scroll, .back-to-top, .cta-banner { display: none !important; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-bg, .hero-overlay { display: none; }
  .hero-content { color: var(--black); padding: 40px 0; }
  .section { padding: 40px 0; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  body { font-size: 12px; color: #000; background: #fff; }
}
