/**
 * Main Stylesheet
 * Production-ready CSS for corporate website
 */

/* ========================================
 * Base & Reset
 * ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
 * Typography
 * ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
}

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

a:hover,
a:focus {
  color: var(--color-primary-hover);
}

/* ========================================
 * Layout Components
 * ======================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  font-weight: var(--font-weight-regular);
}

.section-action {
  text-align: center;
  margin-top: var(--space-4xl);
}

/* ========================================
 * Page Header
 * ======================================== */

.page-header {
  padding-top: calc(var(--space-xl));
}

@media (max-width: 767px) {
  .page-header {
    padding-top: calc(var(--header-height-mobile) + var(--space-xl));
  }
}

/* ========================================
 * Splash Screen
 * ======================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-slower), visibility var(--transition-slower);
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
}

.splash-title {
  font-family: "Helvetica Neue Bold", "Arial Bold", "Noto Sans Bold", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ========================================
 * Skip Link (Accessibility)
 * ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  z-index: var(--z-tooltip);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
 * Header & Navigation
 * ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95); /* Force white background for Safari iOS */
  border-bottom: 1px solid var(--border-color-light);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  /* Safari iOS specific fixes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Only enable backdrop-filter on desktop (Safari mobile has bugs) */
@media (min-width: 768px) {
  .header {
    -webkit-backdrop-filter: var(--header-backdrop-filter);
    backdrop-filter: var(--header-backdrop-filter);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ロゴを大きく（ヘッダー内に収まるよう） */
.logo img {
  width: 150px; /* 120pxから大きく */
  height: auto; /* アスペクト比維持 */
  max-height: calc(var(--header-height) - 2rem); /* ヘッダー高さを超えない */
  object-fit: contain;
}

/* Navigation */
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: var(--space-sm);
}

.lang-btn {
  background: none;
  border: none;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn:focus {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.lang-btn.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  --hamburger-scan-duration: 2s;
  --hamburger-scan-bar-width: 24px;
  --hamburger-scan-travel-time: 0.6s; /* Time for bar to fully cross */
  --hamburger-scan-hold-time: 0.5s; /* Hold time showing perfect hamburger */
}

.hamburger-line {
  width: 100%;
  height: 2px;
  position: relative;
  overflow: hidden; /* Clipping frame */
  margin-bottom: 4px;
  transform-origin: center;
  transition: all var(--transition-base);
  background: transparent;
}

/* Bar element (starts visible, moves left → right) */
.hamburger-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--hamburger-scan-bar-width);
  background: var(--color-text);
  transform: translate3d(0, 0, 0); /* Start fully visible */
  animation: hamburgerCascade var(--hamburger-scan-duration) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}

/* Top bar - starts immediately */
.hamburger-line:nth-child(1)::before {
  animation-delay: 0s;
}

/* Middle bar - starts when top has moved 1/4 width (6px @ 0.6s travel time) */
.hamburger-line:nth-child(2)::before {
  animation-delay: 0.15s; /* 0.6s * 0.25 = 0.15s */
}

/* Bottom bar - starts when top has moved 1/2 width (12px @ 0.6s travel time) */
.hamburger-line:nth-child(3)::before {
  animation-delay: 0.3s; /* 0.6s * 0.5 = 0.3s */
}

.hamburger-line:last-child {
  margin-bottom: 0;
}

/* Pause animation when menu is open */
.hamburger[aria-expanded="true"] .hamburger-line::before {
  animation-play-state: paused;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff; /* Force white background for Safari iOS */
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 1030; /* Explicit high z-index to ensure visibility above all content */
  width: 100%;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  /* -webkit-overflow-scrolling deprecated in iOS 13+, removed for better compatibility */
}

.mobile-nav-list {
  list-style: none;
  padding: var(--space-md);
  margin: 0;
  /* Ensure list is visible */
  position: relative;
  z-index: 1;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color-light);
  /* Ensure each item is visible and rendered */
  position: relative;
  min-height: 48px;
  display: block;
  opacity: 1;
  visibility: visible;
}

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

.mobile-nav-link {
  display: block;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: #202124; /* Force dark text color for Safari iOS - var(--color-gray-900) */
  transition: all var(--transition-fast);
  /* Ensure link is always visible */
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  width: 100%;
  text-decoration: none;
  /* Safari iOS specific fixes */
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ========================================
 * Hero Section
 * ======================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: heroFade 24s infinite;
}

.hero-bg-image--active {
  opacity: 1;
  z-index: 2;
}

/* Stagger animation delays for 4 images (6s each = 24s total) */
.hero-bg-image:nth-child(1) {
  animation-delay: 0s;
}

.hero-bg-image:nth-child(2) {
  animation-delay: 6s;
}

.hero-bg-image:nth-child(3) {
  animation-delay: 12s;
}

.hero-bg-image:nth-child(4) {
  animation-delay: 18s;
  object-position: center top;
  transform: scale(1.25);
}

@keyframes heroFade {
  0% {
    opacity: 0;
    z-index: 1;
  }
  4.17% {
    opacity: 1;
    z-index: 2;
  }
  25% {
    opacity: 1;
    z-index: 2;
  }
  29.17% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 0;
    z-index: 1;
  }
}

/* Hide mobile hero on desktop */
.hero-bg-mobile {
  display: none;
}

/* Show desktop hero on desktop */
.hero-bg-desktop {
  display: block;
}

/* Responsive adjustments for mobile hero (540px and below) */
@media (max-width: 540px) {
  /* Hide hero title on mobile */
  .hero .hero-title {
    display: none;
  }

  /* Show mobile hero, hide desktop hero */
  .hero-bg-mobile {
    display: block;
  }

  .hero-bg-desktop {
    display: none;
  }

  /* Adjust hero height to maintain 375:566 aspect ratio for mobile image */
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 375 / 566;
  }

  .hero-bg,
  .hero-bg-placeholder {
    aspect-ratio: 375 / 566;
    height: auto;
  }

  /* Ensure mobile image displays correctly */
  .hero-bg-mobile .hero-bg-image {
    animation: none;
    opacity: 1;
    z-index: 2;
  }
}

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

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-title-line {
  display: block;
}

/* ========================================
 * Buttons
 * ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: var(--btn-height);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
}

/* ========================================
 * Cards
 * ======================================== */

.card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  padding: var(--card-padding);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.card-description {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.card-link {
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
}

.card-link:hover,
.card-link:focus {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ========================================
 * Blog Section
 * ======================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.blog-card .card-title {
  margin-bottom: var(--space-sm);
  flex: 1;
}

.blog-card .card-description {
  margin-bottom: var(--space-md);
}

/* ========================================
 * Footer
 * ======================================== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-lg);
}

.footer-content {
  margin-bottom: var(--space-xl);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-700);
}

.footer-company-info p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  line-height: var(--line-height-normal);
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-800);
}

.footer-copyright p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

/* ========================================
 * Back to Top Button
 * ======================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: var(--z-fixed);
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
 * Animations
 * ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes hamburgerCascade {
  0% {
    /* Start fully visible */
    transform: translate3d(0, 0, 0);
  }
  30% {
    /* Fully exited right (clipped) */
    transform: translate3d(24px, 0, 0);
  }
  30.5% {
    /* Instantly teleport to left (hidden by clipping) - no visible jump */
    transform: translate3d(-24px, 0, 0);
  }
  60% {
    /* Slide back from left to visible (grows into view) */
    transform: translate3d(0, 0, 0);
  }
  75% {
    /* Fully visible - start of hold period */
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* End of hold - perfect hamburger ready for next cycle */
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ========================================
 * Responsive Design
 * ======================================== */

/* Large Desktop (1440px+) - Default styles above */

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
  .container {
    max-width: 1024px;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .lang-switch {
    display: none;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (390px - 767px) */
@media (max-width: 767px) {
  .hero {
    min-height: 500px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* モバイル調整 */
  .header .container {
    padding: 1rem 2rem;
  }
  .header-inner {
    padding: 0.5rem 0;
    gap: 1rem;
  }
  .logo img {
    width: 120px; /* モバイルでは小さく */
  }
  .nav-link {
    font-size: var(--text-base); /* モバイルでは標準サイズ */
  }
}

/* Small Mobile (< 390px) */
@media (max-width: 389px) {
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}

/* ========================================
 * Mobile Menu States
 * ======================================== */

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu[aria-hidden="false"] {
  display: block !important; /* Force display */
  visibility: visible !important; /* Force visibility */
  opacity: 1 !important; /* Force opacity */
  pointer-events: auto !important; /* Enable interactions */
}

/* Ensure all children are visible when menu is open */
.mobile-menu[aria-hidden="false"] .mobile-nav-list {
  display: block !important;
  visibility: visible !important;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-link {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Additional safeguard for mobile breakpoint */
@media (max-width: 1023px) {
  .mobile-menu[aria-hidden="false"] {
    display: block !important;
    min-height: 50px; /* Ensure menu has minimum height */
  }

  .mobile-nav-item {
    display: block !important;
    visibility: visible !important;
  }

  .mobile-nav-link {
    display: block !important;
    visibility: visible !important;
  }
}

/* ========================================
 * Print Styles
 * ======================================== */

@media print {
  .header,
  .hamburger,
  .mobile-menu,
  .back-to-top {
    display: none !important;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    padding: var(--space-xl) 0;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* ========================================
 * High Contrast Mode Support
 * ======================================== */

@media (prefers-contrast: high) {
  .btn-outline {
    border-width: 3px;
  }
  
  .form-input:focus,
  .form-textarea:focus {
    outline: 3px solid;
    outline-offset: 2px;
  }
}

/* ========================================
 * Reduced Motion Support
 * ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-title,
  .hero-subtitle{
    animation: none;
    opacity: 1;
  }
  
  .splash-screen {
    transition: none;
  }
}

/* ========================================
 * Scan Button (c-btn-scan)
 * ======================================== */

.c-btn-scan {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 2.5rem;
  background: transparent;
  color: #000;
  text-decoration: none;
  border-radius: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  isolation: isolate;
}

/* Gradient background fill effect */
.c-btn-scan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 50%, #2a2a2a 100%);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.c-btn-scan:hover::before,
.c-btn-scan:focus-visible::before {
  transform: translateX(0);
}

.c-btn-scan:hover {
  color: #fff;
}

.c-btn-scan:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.c-btn-scan__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.c-btn-scan__text {
  margin: 0;
  padding: 0 1.5rem;
}

/* 走査線エフェクト */
.c-btn-scan__lines {
  display: none;
}

.c-btn-scan__lines span {
  position: absolute;
  background: var(--btn-scan-line-color);
  transition: 
    transform var(--timing-about-duration) var(--timing-about-smooth),
    background-color var(--timing-scan-duration) ease;
}

/* 縦線 */
.c-btn-scan__lines span:nth-child(1),
.c-btn-scan__lines span:nth-child(2) {
  top: 8px;
  bottom: 8px;
  width: 1px;
}

.c-btn-scan__lines span:nth-child(1) { left: 14px; }
.c-btn-scan__lines span:nth-child(2) { right: 14px; }

/* 横線 */
.c-btn-scan__lines span:nth-child(3),
.c-btn-scan__lines span:nth-child(4) {
  left: 8px;
  right: 8px;
  height: 1px;
}

.c-btn-scan__lines span:nth-child(3) { top: 12px; }
.c-btn-scan__lines span:nth-child(4) { bottom: 12px; }

/* ホバー時の走査エフェクト */
.c-btn-scan:hover .c-btn-scan__lines span,
.c-btn-scan:focus-visible .c-btn-scan__lines span {
  background: var(--btn-scan-line-hover-color);
  transform: scale(0.4);
}

/* Right arrow (default visible, fades out and moves right on hover) */
.c-btn-scan__arrow {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 18px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.c-btn-scan__arrow::before,
.c-btn-scan__arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  width: 11px;
  height: 1.5px;
  border-radius: 9999px;
  background-color: #000;
  transform-origin: calc(100% - 1px) 50%;
  transition: background-color 0.35s ease;
}

.c-btn-scan__arrow::before {
  transform: rotate(45deg);
}

.c-btn-scan__arrow::after {
  transform: rotate(-45deg);
}

/* Left arrow (hidden by default, fades in from left on hover) */
.c-btn-scan__inner::before,
.c-btn-scan__inner::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 1px);
  width: 11px;
  height: 1.5px;
  border-radius: 9999px;
  background-color: #fff;
  transform-origin: calc(100% - 1px) 50%;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.c-btn-scan__inner::before {
  transform: translateX(-10px) rotate(45deg);
}

.c-btn-scan__inner::after {
  transform: translateX(-10px) rotate(-45deg);
}

/* Hover: Right arrow fades out and moves right */
.c-btn-scan:hover .c-btn-scan__arrow,
.c-btn-scan:focus-visible .c-btn-scan__arrow {
  opacity: 0;
  transform: translateX(10px);
}

/* Hover: Left arrow fades in from left */
.c-btn-scan:hover .c-btn-scan__inner::before,
.c-btn-scan:focus-visible .c-btn-scan__inner::before {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

.c-btn-scan:hover .c-btn-scan__inner::after,
.c-btn-scan:focus-visible .c-btn-scan__inner::after {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);
}

.c-btn-scan.c-btn-scan--light:hover,
.c-btn-scan.c-btn-scan--light:focus-visible {
  color: #fff;
}

/* Replace/extend the .c-btn-scan.c-btn-scan--light rules to add the sliding-triangle hover effect */
.c-btn-scan.c-btn-scan--light {
  --scan-btn-bg: transparent;
  --scan-btn-border: #000;
  --scan-btn-fg: #000;
  color: #000;
  backdrop-filter: none;
  border: 1px solid #000;
  position: relative;      /* required for pseudo elements */
  overflow: hidden;        /* clip pseudo elements */
}

/* Two triangular overlays that slide in from left/right */
.c-btn-scan.c-btn-scan--light::before,
.c-btn-scan.c-btn-scan--light::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-color: #000; /* hover fill color (black) */
  z-index: 0;
  transition: transform 0.5s cubic-bezier(.2,.9,.2,1), opacity 0.35s ease;
  pointer-events: none;
}

/* left piece (slides in from left) */
.c-btn-scan.c-btn-scan--light::before {
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  transform: translateX(-100%);
}

/* right piece (slides in from right) */
.c-btn-scan.c-btn-scan--light::after {
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(100%);
}

/* Ensure button content is above overlays */
.c-btn-scan.c-btn-scan--light .c-btn-scan__inner {
  position: relative;
  z-index: 2;
}

/* Hover / focus: bring overlays into view and make text/arrow white */
.c-btn-scan.c-btn-scan--light:hover,
.c-btn-scan.c-btn-scan--light:focus-visible,
.about-full__overlay:hover .c-btn-scan.c-btn-scan--light,
.about-full__overlay:focus-within .c-btn-scan.c-btn-scan--light {
  color: #fff;
  border-color: transparent;
}

.c-btn-scan.c-btn-scan--light:hover::before,
.c-btn-scan.c-btn-scan--light:focus-visible::before,
.about-full__overlay:hover .c-btn-scan.c-btn-scan--light::before {
  transform: translateX(0);
}

.c-btn-scan.c-btn-scan--light:hover::after,
.c-btn-scan.c-btn-scan--light:focus-visible::after,
.about-full__overlay:hover .c-btn-scan.c-btn-scan--light::after {
  transform: translateX(0);
}

/* Make the right-arrow lines white on hover (they are black by default) */
.c-btn-scan.c-btn-scan--light:hover .c-btn-scan__arrow::before,
.c-btn-scan.c-btn-scan--light:hover .c-btn-scan__arrow::after,
.c-btn-scan.c-btn-scan--light:focus-visible .c-btn-scan__arrow::before,
.c-btn-scan.c-btn-scan--light:focus-visible .c-btn-scan__arrow::after,
.about-full__overlay:hover .c-btn-scan.c-btn-scan--light .c-btn-scan__arrow::before,
.about-full__overlay:hover .c-btn-scan.c-btn-scan--light .c-btn-scan__arrow::after {
  background-color: #fff;
}

/* Mobile: Show black button with left arrow by default */
@media (max-width: 767px) {
  .c-btn-scan.c-btn-scan--light {
    background: #000;
    color: #fff;
    border-color: #000;
  }

  /* Ensure text is white on mobile */
  .c-btn-scan.c-btn-scan--light .c-btn-scan__text {
    color: #fff;
  }

  /* Hide the triangular overlays on mobile */
  .c-btn-scan.c-btn-scan--light::before,
  .c-btn-scan.c-btn-scan--light::after {
    display: none;
  }

  /* Hide right arrow by default on mobile */
  .c-btn-scan.c-btn-scan--light .c-btn-scan__arrow {
    opacity: 0;
    display: none;
  }

  /* Show left arrow by default on mobile */
  .c-btn-scan.c-btn-scan--light .c-btn-scan__inner::before,
  .c-btn-scan.c-btn-scan--light .c-btn-scan__inner::after {
    opacity: 1;
    transform: translateX(0) rotate(45deg);
  }

  .c-btn-scan.c-btn-scan--light .c-btn-scan__inner::after {
    transform: translateX(0) rotate(-45deg);
  }

  /* Remove all hover/focus effects on mobile */
  .c-btn-scan.c-btn-scan--light:hover,
  .c-btn-scan.c-btn-scan--light:focus-visible,
  .about-full__overlay:hover .c-btn-scan.c-btn-scan--light,
  .about-full__overlay:focus-within .c-btn-scan.c-btn-scan--light {
    background: #000;
    color: #fff;
    border-color: #000;
  }

  /* Keep arrows static on mobile hover */
  .c-btn-scan.c-btn-scan--light:hover .c-btn-scan__arrow,
  .c-btn-scan.c-btn-scan--light:focus-visible .c-btn-scan__arrow,
  .about-full__overlay:hover .c-btn-scan.c-btn-scan--light .c-btn-scan__arrow {
    opacity: 0;
    display: none;
  }

  .c-btn-scan.c-btn-scan--light:hover .c-btn-scan__inner::before,
  .c-btn-scan.c-btn-scan--light:focus-visible .c-btn-scan__inner::before,
  .about-full__overlay:hover .c-btn-scan.c-btn-scan--light .c-btn-scan__inner::before {
    opacity: 1;
    transform: translateX(0) rotate(45deg);
  }

  .c-btn-scan.c-btn-scan--light:hover .c-btn-scan__inner::after,
  .c-btn-scan.c-btn-scan--light:focus-visible .c-btn-scan__inner::after,
  .about-full__overlay:hover .c-btn-scan.c-btn-scan--light .c-btn-scan__inner::after {
    opacity: 1;
    transform: translateX(0) rotate(-45deg);
  }
}

/* ========================================
 * Full Width About Section
 * ======================================== */

.about-full {
  position: relative;
  width: 100%;
  min-height: clamp(350px, 50vh, 600px);
  overflow: hidden;
}

.about-full__media,
.about-full__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-full__img {
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s linear;
}

/* Split image in half - show left half */
.about-full__img--left-half {
  object-fit: cover;
  object-position: 25% center;
  transform: scale(2) translateX(-25%);
}

/* Split image in half - show right half */
.about-full__img--right-half {
  object-fit: cover;
  object-position: 75% center;
  transform: scale(2) translateX(25%);
}

/* PCのみ: Aboutセクションの特定画像を上寄せで表示 */
@media (min-width: 1024px) {
  .about-full__img--pc-top { object-position: 50% 15%; }
}

.about-full:hover .about-full__img,
.about-full:focus-within .about-full__img {
  transform: scale(1.12);
  transition: transform 2s linear;
}

/* Hover effects for split images */
.about-full:hover .about-full__img--left-half,
.about-full:focus-within .about-full__img--left-half {
  transform: scale(2.24) translateX(-25%);
  transition: transform 2s linear;
}

.about-full:hover .about-full__img--right-half,
.about-full:focus-within .about-full__img--right-half {
  transform: scale(2.24) translateX(25%);
  transition: transform 2s linear;
}

.about-full__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  z-index: 10;  /* Ensure overlay is above the white cover */
}

.about-full__overlay::before {
  content: "";
  position: absolute;
  inset: 0;

  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 0;
}

.about-full__inner {
  position: relative;
  z-index: 100;  /* Much higher z-index to ensure text is above everything */
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  padding: clamp(0rem, 0vw, 0.5rem);
  color: #000 !important;  /* Force black color */
  text-align: center;
  align-items: center;
}

.about-full__subtitle {
  font-size: clamp(.7rem, .5rem + .5vw, .9rem);
  letter-spacing: .28em;
  font-weight: 400;
  text-transform: uppercase;
  opacity: .90;
  color: #000 !important;  /* Force black color */
  position: relative;
  z-index: 101;
  margin-bottom: 0;
}

.about-full__copy {
  font-size: clamp(1rem, 0.7rem + 1.2vw, 1.6rem);
  line-height: 1.40;
  font-weight: 300;
  letter-spacing: .07em;
  margin: 0;
  color: #000 !important;  /* Force black color */
  position: relative;
  z-index: 101;
}

.about-full__copy span {
  display: inline-block;
  will-change: transform;
  color: #000 !important;  /* Force black color */
}

/* Sophisticated bold text effect - luxury blackish style */
.about-full__copy span.knockout-text {
  font-weight: 550;
  font-size: clamp(1.8rem, 2vw + 0.5rem, 3rem);
  letter-spacing: 0.15em;
  color: #000000 !important;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #2a2a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.about-full__copy span.knockout-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.5px);
  opacity: 0.4;
}

.about-full__action {
  margin-top: .25rem;
  position: relative;
  z-index: 101;
}

.c-btn-scan.c-btn-scan--light {
  --scan-btn-bg: transparent;
  --scan-btn-border: #000;
  --scan-btn-fg: #000;
  color: #000;
  backdrop-filter: none;
  border: 1px solid #000;
}

.c-btn-scan.c-btn-scan--light .c-btn-scan__lines span {
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.1));
}

.c-btn-scan.c-btn-scan--light:hover,
.c-btn-scan.c-btn-scan--light:focus-visible {
  box-shadow: none;
}

.about-full .c-btn-scan__text {
  letter-spacing: .18em;
}

@media (max-width: 820px) {
  .about-full__inner {
    text-align: center;
    align-items: center;
  }
  .about-full__inner[data-logo-bg]::before {
    left: auto;
    right: -4%;
    top: 55%;
    width: clamp(140px, 48vw, 260px);
    transform: translateY(-50%) rotate(4deg);
  }
  .about-full__copy {
    font-size: clamp(1.55rem, 1.1rem + 3.2vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-full__img { transition: none; }
}

/* ========================================
 * Responsive Design
 * ======================================== */

/* Mobile (390px - 767px) */
@media (max-width: 767px) {
  .c-btn-scan {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
 * Accessibility & Reduced Motion
 * ======================================== */

@media (prefers-reduced-motion: reduce) {
  .c-btn-scan__lines span,
  .c-btn-scan__arrow {
    transition: none !important;
    animation: none !important;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .c-btn-scan:focus-visible {
    outline-width: 4px;
  }
}

/* About Full shrink white cover */
.about-full {
  position: relative;
}

.about-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);          /* 文字や画像が透ける白 */
  border: 0 solid rgba(255,255,255,0.75);
  transition:
    clip-path .85s cubic-bezier(.19,1,.22,1),
    background .6s ease,
    border-color .6s ease;
  clip-path: inset(0 0 0 0 round 0);           /* 全面覆う */
  -webkit-clip-path: inset(0 0 0 0 round 0);   /* Safari specific */
  z-index: 1;                                  /* Below overlay */
  pointer-events: none;
}

/* Only enable backdrop-filter on desktop (Safari mobile has bugs) */
@media (min-width: 768px) {
  .about-full::after {
    -webkit-backdrop-filter: blur(2px);        /* Safari 9+ */
    backdrop-filter: blur(2px);                /* Standard */
  }
}

.about-full:hover::after,
.about-full:focus-within::after {
  clip-path: inset(20px 20px 20px 20px round 8px);  /* 四方15px内側に縮む */
  -webkit-clip-path: inset(20px 20px 20px 20px round 8px);  /* Safari specific */
  background: rgba(255,255,255,0.55);                  /* 透明化して枠感 */
  border-width: 2px;
  /* border-color: rgba(255,255,255,0.7); */
}

/* Reduced motion: 縮みは残しつつ速く */
@media (prefers-reduced-motion: reduce) {
  .about-full::after {
    transition: clip-path .01ms linear, background .01ms linear, border-color .01ms linear;
  }
}

/* ========== Proxy hover from overlay to scan button ========== */
.about-full__overlay:hover .c-btn-scan,
.about-full__overlay:focus-within .c-btn-scan {
  color: #fff;
}

.about-full__overlay:hover .c-btn-scan::before,
.about-full__overlay:focus-within .c-btn-scan::before {
  transform: translateX(0);
}

/* Right arrow fades out and moves right */
.about-full__overlay:hover .c-btn-scan__arrow,
.about-full__overlay:focus-within .c-btn-scan__arrow {
  opacity: 0;
  transform: translateX(10px);
}

/* Left arrow fades in from left */
.about-full__overlay:hover .c-btn-scan__inner::before,
.about-full__overlay:focus-within .c-btn-scan__inner::before {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

.about-full__overlay:hover .c-btn-scan__inner::after,
.about-full__overlay:focus-within .c-btn-scan__inner::after {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);
}

/* 追加: 視覚的にホバー可能と示したい場合はポインタ */
.about-full__overlay {
  cursor: pointer;
}

/* Reduced Motion 対応 (既存ルールに合わせて無効化) */
@media (prefers-reduced-motion: reduce) {
  .about-full__overlay:hover .c-btn-scan__lines span,
  .about-full__overlay:focus-within .c-btn-scan__lines span,
  .about-full__overlay:hover .c-btn-scan__arrow,
  .about-full__overlay:focus-within .c-btn-scan__arrow {
    transform: none;
  }
}

/* About Full – Scroll reveal (zoom + rise) */
/* Default: All elements visible */
.about-full__subtitle,
.about-full__copy,
.about-full__copy span,
.about-full__action {
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important; /* Safari specific */
}

/* Only apply animation on desktop when JS is loaded */
@media (min-width: 768px) {
  .js-loaded .about-full[data-animate] .about-full__subtitle,
  .js-loaded .about-full[data-animate] .about-full__copy span,
  .js-loaded .about-full[data-animate] .about-full__action {
    opacity: 0;
    transform: translateY(28px) scale(.92);
    will-change: transform, opacity;
  }

  .about-full.in-view .about-full__subtitle,
  .about-full.in-view .about-full__copy span,
  .about-full.in-view .about-full__action {
    opacity: 1;
    transform: translateY(0) scale(1);
    -webkit-transform: translateY(0) scale(1); /* Safari specific */
    transition:
      opacity 0.8s cubic-bezier(.19,1,.22,1),
      transform 1.0s cubic-bezier(.19,1,.22,1),
      -webkit-transform 1.0s cubic-bezier(.19,1,.22,1); /* Safari specific */
  }

  .about-full.in-view .about-full__subtitle { transition-delay: .15s; }
  .about-full.in-view .about-full__copy span:nth-child(1){ transition-delay: .11s; }
  .about-full.in-view .about-full__copy span:nth-child(2){ transition-delay: 1.8; }
  .about-full.in-view .about-full__action { transition-delay: .6s; }
}

/* Ensure both company and business sections are always visible */
#company .about-full__copy,
#company .about-full__copy span,
#company .about-full__subtitle,
#company .about-full__action,
#business .about-full__copy,
#business .about-full__copy span,
#business .about-full__subtitle,
#business .about-full__action {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .about-full[data-animate] .about-full__subtitle,
  .about-full[data-animate] .about-full__copy span,
  .about-full[data-animate] .about-full__action {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Business Page Specific Styles ===== */

/* Business Stats Section */
.business-stats {
  background: var(--color-gray-50);
  padding: var(--space-4xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  font-weight: 500;
}

/* Enhanced Business Cards */
.business-card {
  position: relative;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image Area - positioned above card-content */
.card-image-area {
  width: 100%;
  height: 150px; /* Fixed height for image area */
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-card-icon {
  padding: var(--space-xl);
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  height: 120px; /* Fixed height: 48px SVG + 2 * var(--space-xl) padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-card-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.business-card:hover .business-card-icon::before {
  transform: rotate(45deg) scale(1.2);
}

.business-card-icon svg {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.business-card-icon img {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}

/* Business Card Variants */
.business-card--consulting .business-card-icon { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); }
.business-card--rpo .business-card-icon { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); }
.business-card--webads .business-card-icon { background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%); }
.business-card--marketing .business-card-icon { background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%); }
.business-card--creative .business-card-icon { background: linear-gradient(135deg, #FF5722 0%, #D84315 100%); }

.business-card .card-content {
  padding: var(--space-xl);
}

.business-card .card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-gray-900);
}

.business-card .card-description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

.business-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-features li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  position: relative;
  padding-left: var(--space-lg);
}

.business-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

.business-features li:last-child {
  border-bottom: none;
}

/* Business Process Flow */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border-radius: 50%;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.process-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-md);
}

.process-description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-600);
}

/* Business CTA Section */
.business-cta {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
  color: white;
  text-align: center;
  padding: var(--space-6xl) 0;
  position: relative;
  overflow: hidden;
}

.business-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.cta-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cta-phone svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (min-width: 768px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }

  .process-flow::before {
    content: "";
    position: absolute;
    top: 90px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 25%, var(--color-primary) 75%, transparent 100%);
    z-index: 0;
  }

  .process-step {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 767px) {

  .business-stats {
    padding: var(--space-3xl) 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .business-cta {
    padding: var(--space-5xl) 0;
  }

  .business-card-icon {
    padding: var(--space-lg);
  }

  .business-card-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* ===== Company Page Specific Styles ===== */

/* Company Hero Section */
.company-hero {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 500px;
}

.company-hero-left {
  flex: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl);
}

.company-hero-content {
  text-align: center;
}

.company-hero-subtitle {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.company-hero-title {
  font-size: clamp(1rem, 3.2vw, 3.2rem);
  font-weight: 550;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-text);
  margin: 0;
  font-family: "Helvetica Neue", "Arial", sans-serif;
}

.company-hero-right {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.company-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .company-hero {
    height: auto;
    flex-direction: column;
  }

  .company-hero-left {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 250px;
  }

  .company-hero-title {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .company-hero-right {
    flex: 1;
    min-height: 300px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .company-hero {
    height: 400px;
  }
}

/* Company Information Table */
.company-details-table {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

.company-info-table tbody tr {
  border-bottom: 1px solid var(--color-gray-100);
  transition: background-color 0.2s ease;
}

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

.company-info-table tbody tr:hover {
  background-color: var(--color-gray-50);
}

.company-info-table th {
  text-align: left;
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  color: var(--color-gray-700);
  background-color: var(--color-gray-50);
  width: 200px;
  vertical-align: top;
  font-size: var(--text-sm);
}

.company-info-table td {
  padding: var(--space-lg) var(--space-xl);
  color: var(--color-gray-900);
  line-height: 1.6;
  font-size: var(--text-base);
}

/* Responsive Design for Company Table */
@media (max-width: 767px) {
  .company-info-table {
    display: block;
  }

  .company-info-table tbody {
    display: block;
  }

  .company-info-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
  }

  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
  }

  .company-info-table th {
    background-color: transparent;
    padding-bottom: var(--space-xs);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .company-info-table td {
    padding-top: 0;
  }
}

/* ========================================
 * Contact Form 7 - Privacy Consent
 * ======================================== */

.CF7_privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.CF7_privacy .wpcf7-form-control-wrap {
  display: inline-flex;
  align-items: center;
}

.CF7_privacy .wpcf7-acceptance {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.CF7_privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-400);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: var(--space-xs);
  transform: translateY(-1px);
}

.CF7_privacy input[type="checkbox"]:hover {
  border-color: var(--color-primary);
}

.CF7_privacy input[type="checkbox"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.CF7_privacy input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.CF7_privacy input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.CF7_privacy a {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.CF7_privacy a:hover,
.CF7_privacy a:focus {
  color: var(--color-primary-hover);
}

/* Validation states */
.CF7_privacy .wpcf7-not-valid-tip {
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
  color: var(--color-error, #dc3545);
  font-size: var(--text-xs);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .CF7_privacy {
    padding: var(--space-md);
    font-size: var(--text-sm);
  }
}
