/* ========================================
   BRAND COLOR PALETTE
   ======================================== */
/* Custom brand palette based on TENKI-JAPAN guidelines */
:root {
	--primary: #e0252f;
	--grey: #afb4bb;
}

/* ========================================
   BRAND CTA BUTTONS
   ======================================== */
.brand-cta {
	background-color: var(--primary);
	color: white;
}

.brand-cta:hover {
	background-color: #c0202b;
}

/* ========================================
   BRAND OUTLINE BUTTONS
   ======================================== */
.brand-outline {
	color: var(--primary);
	border: 2px solid var(--primary);
	/* Add a subtle semi窶奏ransparent background so the text remains legible over busy hero images */
	/* Increase opacity to improve legibility over decorative backgrounds */
	/* Increase opacity so the Request Demo button text remains readable over detailed hero backgrounds */
	background-color: rgba(255, 255, 255, 0.6);
}

.brand-outline:hover {
	background-color: var(--primary);
	color: white;
}

/* ========================================
   TYPOGRAPHY
/* Use recommended fonts: Arial for English and Meiryo for Japanese */
body {
	font-family: 'Noto Sans JP', 'Meiryo', 'Arial', sans-serif;
}
html, body {
  overflow-x: hidden;
}

/* ========================================
   MODAL LIGHTBOX (SHARED)
   ======================================== */
/* Modal overlay for image gallery */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal:target {
	display: flex;
}

.modal img {
	max-width: 90%;
	max-height: 80%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	border-radius: 0.5rem;
}

.modal a.close,
.modal a.prev,
.modal a.next {
	position: absolute;
	background: #ffffff;
	color: #000000;
	padding: 0.5rem 0.75rem;
	border-radius: 9999px;
	font-weight: bold;
	text-decoration: none;
	opacity: 0.9;
}
.modal a.close { top: 1rem; right: 1rem; }
.modal a.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.modal a.next { right: 1rem; top: 50%; transform: translateY(-50%); }


/* ========================================
   LOGO WALL - INFINITE SCROLL
   ======================================== */
/* Logo wall styles */
.logo-wall {
  overflow: visible;
	width: 100%;
	padding: 0.25rem 0;
	/* arrange rows vertically with gaps for visible spacing */
	display: flex;
	flex-direction: column;
	row-gap: 2px;
}
.logo-row {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	animation: scrollX var(--duration) linear infinite;
	contain: layout paint;
	will-change: transform;
	content-visibility: auto;
	contain-intrinsic-size: auto 500px;
}

.logo-row:nth-child(even) {
	animation-direction: reverse;
}

.logo-wrapper {
	position: relative;
	flex: none;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	transition: transform 0.3s ease;
}

.logo-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: grayscale(100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.logo-wrapper img[src] {
	opacity: 0.8;
}

.logo-wrapper.logo-placeholder {
	background-color: #f3f4f6;
}

.logo-wrapper:hover {
	transform: scale(1.4);
	z-index: 10;
}

.logo-wrapper:hover img {
	opacity: 1;
	filter: grayscale(0%);
}

.logo-wall {
	contain: layout;
	min-height: calc(14 * (50px + 2px));
}
@keyframes scrollX {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ========================================
   TNKI CTA BUTTON (SECONDARY)
   ======================================== */
.tnki-cta{background:#e0252f;color:#fff;padding:.45rem .8rem;border-radius:.6rem;font-size:.9rem;text-decoration:none}
.tnki-cta:hover{background:#c01e2a}

/* ========================================
   BADGES AND CHIPS
   ======================================== */
.badge-new{background:linear-gradient(90deg,#ef4444,#f59e0b);color:#fff}
.chip{border:1px solid #e5e7eb;border-radius:9999px;padding:.15rem .55rem;font-size:.75rem}

/* ========================================
   POINT SYSTEM CARDS
   ======================================== */
/* POINT System Design */
.point-card {
  position: relative;
  overflow: hidden;
}

.point-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #e0252f 0%, #c01e2a 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.point-card:hover::before {
  opacity: 1;
}

.point-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0252f 0%, #c01e2a 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(224, 37, 47, 0.3);
}

/* ========================================
   PROSE UTILITY - PARAGRAPH RESET
   ======================================== */
.prose-sm p{margin:0}
/* ========================================
   MODAL UTILITY - SHOW STATE
   ======================================== */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.6)}
.modal.show{display:flex}

/* ========================================
   GALLERY STYLES - FILTERING SYSTEM
   ======================================== */
/* Gallery Styles */
.gallery-tab {
  background: white;
  border-color: #e5e7eb;
  color: #374151;
}

.gallery-tab:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.gallery-tab.active {
  background: #e0252f;
  border-color: #e0252f;
  color: white;
}

.subcategory-btn {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.subcategory-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.subcategory-btn.active {
  background: #1f2937;
  border-color: #1f2937;
  color: white;
}

#galleryGrid img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#galleryGrid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MAIN BANNER SECTION
   ======================================== */
.main-banner {
  background: #1b2d6b;
  color: #fff;
}

.banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 2rem 1rem;
}

/* ---- Text column ---- */
.banner-text {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.banner-heading-mobile  { display: none; }
.banner-heading-desktop { display: block; }
.banner-bullets-mobile  { display: none !important; }
.banner-bullets-desktop { display: flex; }

.banner-label {
  font-size: 1rem;
  font-weight: 700;
  color: #f5c842;
  margin: 0;
  letter-spacing: 0.02em;
}

.banner-heading {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
}

.banner-heading-accent {
  color: #f5c842;
  font-weight: 900;
}

.banner-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.banner-bullets li {
  font-size: 0.975rem;
  color: #e8eaf0;
  padding-left: 1.2em;
  position: relative;
  line-height: 1.5;
}

.banner-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f5c842;
  font-weight: 900;
}

/* ---- CTA ---- */
.banner-cta-wrapper {
  margin-top: 0.5rem;
}

.banner-cta {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  background: #e0252f;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(224, 37, 47, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(224, 37, 47, 0.55);
}

.banner-trust {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

/* ---- Visual column ---- */
.banner-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.banner-image-grid {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.banner-img-main {
  flex: 0 0 58%;
  width: 58%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.banner-image-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.banner-img-top,
.banner-img-bottom {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.banner-img-top  { flex: none; }
.banner-img-bottom { flex: none; }

.banner-img-caption {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  text-align: left;
}

/* ---- Stats bar ---- */
.banner-stats {
  background: #1b2d6b;
}

.banner-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.banner-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.stat-trophy {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 1rem;
  color: #f5c842;
  font-weight: 700;
}

.stat-value {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
}

.banner-stat-divider {
  width: 2px;
  height: 70px;
  background: rgba(255,255,255,1);
  margin: 0 4rem;
  flex-shrink: 0;
}

.banner-stat-message {
  flex: 0 0 auto;
  min-width: 240px;
  padding-left: 0.5rem;
}

.stat-msg-title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f5c842;
  line-height: 1.4;
}

.stat-msg-sub {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

/* ========================================
   BANNER - MOBILE 
   ======================================== */
@media (max-width: 1000px) {

  .tnki-topnav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    padding-top: 65px;
  }

  .banner-heading-desktop { display: none !important; }
  .banner-heading-mobile  { display: block !important; }
  .banner-bullets-desktop { display: none !important; }
  .banner-bullets-mobile  { display: flex !important; }

  .banner-inner {
    flex-direction: column;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1rem;
  }

  .banner-text {
    flex: none;
    width: 100%;
    text-align: center;
    gap: 0.85rem;
  }

  .banner-visual {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .banner-text {
    flex: none;
    width: 100%;
    text-align: center;
    gap: 1rem;
  }

  .banner-label {
    text-align: center;
  }

  .banner-heading {
    font-size: 2rem;
    text-align: center;
    line-height: 1.4;
  }

  .banner-bullets {
    text-align: left;
    width: fit-content;
    margin: 0 auto;
  }

  .banner-bullets li::before {
    content: "✓";
    color: #f5c842;
  }

  .banner-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.1rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    box-sizing: border-box;
  }

  .banner-trust {
    text-align: center;
  }

  .banner-heading {
    font-size: 2rem;
    text-align: center;
    line-height: 1.4;
  }

  .banner-bullets {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }

  .banner-bullets li::before {
    content: "✓";
    color: #f5c842;
  }

  .banner-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.1rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    box-sizing: border-box;
  }

  .banner-trust {
    text-align: center;
  }

  /* --- Visual column: only left image shown --- */
  .banner-visual {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .banner-img-side {
    display: none;
  }

  .banner-img-main {
    flex: none;
    width: 100%;
  }

  .banner-img-caption {
    display: none;
  }

  /* --- Stats bar --- */
  .banner-stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 1rem;
  }

  .banner-stat {
    flex: 0 0 30%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .stat-trophy {
    width: 70px;
    height: 70px;
  }

  .banner-stat-divider-last {
    display: none;
  }

  .stat-text {
    align-items: center;
  }

  .banner-stat-divider {
    width: 1px;
    height: 80px;
    margin: 0 0.5rem;
    align-self: center;
  }

  .banner-stat-message {
    flex: 0 0 100%;
    text-align: center;
    padding: 1rem 0 0;
    min-width: unset;
  }

  .stat-msg-title {
    font-size: 1.2rem;
  }

  .stat-msg-sub {
    font-size: 0.9rem;
  }
}

/* ========================================
   MOBILE RESPONSIVE - OTHER SECTIONS
   ======================================== */
@media (max-width: 1000px) {
  #gallery h2 { font-size: 1.25rem !important; white-space: nowrap; }
  #gallery p { font-size: 0.875rem !important; line-height: 1.5; }
  #clients p { font-size: 0.875rem !important; line-height: 1.5; }
  #features .point-card p { font-size: 0.8rem !important; line-height: 1.4; }
  #pricing li { font-size: 0.8rem !important; line-height: 1.4; }
  #demo h2 { font-size: 1.25rem !important; white-space: nowrap; }
  #demo p { font-size: 0.875rem !important; line-height: 1.5; }
  #enterprise h2 { font-size: 1rem !important; line-height: 1.5; }
  #impact h2 { font-size: 1.25rem !important; line-height: 1.4; white-space: nowrap; }
  #clientvoices h2 { font-size: 1.5rem !important; white-space: nowrap; }
  #clients h2 { font-size: 1.25rem !important; line-height: 1.4; }
  #news h2 { white-space: nowrap; }
  #news h3 { font-size: 0.95rem !important; line-height: 1.4; }
  #features h2 { font-size: 1.35rem !important; white-space: nowrap; }
  #features h3 { font-size: 1rem !important; line-height: 1.3; }
  #compare h2 { font-size: 1.35rem !important; white-space: nowrap; }
  #pricing h2 { font-size: 1.5rem !important; white-space: nowrap; }
  #pricing h3 { font-size: 1.25rem !important; white-space: nowrap; }
  #faq h2 { font-size: 1.5rem !important; white-space: nowrap; }

  .pricing-swipe-hint {
    display: block;
    margin: -1rem 0 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.04em;
  }

  .pricing-cards-rail {
    scrollbar-width: none;
  }

  .pricing-cards-rail::-webkit-scrollbar {
    display: none;
  }

  .compare-switcher {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .compare-switcher > span {
    flex: 0 0 100%;
    align-self: center;
    margin-bottom: 0.125rem;
    text-align: center;
  }

  .compare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    background: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    font-size: 0.875rem;
    max-width: 100%;
  }

  .compare-link.font-semibold {
    border-color: #4f46e5;
    background: #eef2ff;
  }

  .compare-cards-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.25rem;
    position: relative;
  }

  .compare-cards-rail::-webkit-scrollbar {
    display: none;
  }

  .compare-cards-rail::after {
    content: "";
    position: sticky;
    right: 0;
    width: 1.25rem;
    flex: 0 0 1.25rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(249, 250, 251, 0), rgba(249, 250, 251, 0.95));
  }

  .compare-mobile-card {
    flex: 0 0 64vw;
    max-width: 17rem;
    padding: 0.625rem;
  }

  .compare-mobile-card-header {
    margin-bottom: 0.375rem;
  }

  .compare-mobile-card-title {
    font-size: 0.95rem;
  }

  .compare-mobile-card-why {
    margin-top: 0.125rem;
    font-size: 11px;
    line-height: 1.35;
  }

  .compare-mobile-card-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .compare-mobile-card-panel {
    padding: 0.5rem;
  }

  .compare-mobile-card-panel .prose {
    line-height: 1.25rem;
  }
}


/* ========================================
   CLIENT VOICES CAROUSEL - DESKTOP
   ======================================== */
/* Desktop: Click-based carousel */
.voices-scroll-container {
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    perspective: 1500px;
}

.voices-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 520px;
}

.voices-scroll-wrapper .voice-card {
    position: absolute;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    width: 450px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.voices-scroll-wrapper .voice-card:hover {
    box-shadow: 0 20px 40px rgba(224, 37, 47, 0.2);
}

.voices-scroll-wrapper .voice-card img {
    height: 280px !important;
}

.voices-scroll-wrapper .voice-card h3 {
    font-size: 1.5rem !important;
}

.voices-scroll-wrapper .voice-card ul {
    font-size: 1rem !important;
}

.voices-swipe-hint {
    display: none;
}

.pricing-swipe-hint {
    display: none;
}

@media (max-width: 1024px) {
    .voices-scroll-container {
        max-width: 900px;
        padding: 2rem 0;
    }
    
    .voices-scroll-wrapper {
        min-height: 450px;
    }
    
    .voices-scroll-wrapper .voice-card {
        width: 380px;
        padding: 1.75rem;
    }
    
    .voices-scroll-wrapper .voice-card img {
        height: 240px !important;
    }
    
    .voices-scroll-wrapper .voice-card h3 {
        font-size: 1.35rem !important;
    }
}

/* ========================================
   CLIENT VOICES CAROUSEL - MOBILE
   ======================================== */
/* Mobile: Classic horizontal scroll */
@media (max-width: 1000px) {
    .voices-swipe-hint {
        display: block;
        margin: 0 0 0.5rem;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
        color: #6b7280;
        letter-spacing: 0.04em;
    }

    .voices-scroll-container {
        padding: 0.75rem 0 1rem;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    
    .voices-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .voices-scroll-wrapper {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        padding: 0 1.5rem;
        min-height: auto;
        width: max-content;
    }
    
    .voices-scroll-wrapper .voice-card {
        position: relative !important;
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
        width: 72vw;
        max-width: 350px;
        flex-shrink: 0;
        scroll-snap-align: center;
        pointer-events: auto !important;
        cursor: default !important;
    }
    
    .voices-scroll-wrapper .voice-card:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* ========================================
   IMPACT CAROUSEL - DESKTOP
   ======================================== */
.impact-carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.impact-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
    perspective: 1200px;
}

.impact-carousel-slide {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.impact-carousel-slide.center {
    z-index: 30;
    transform: translateX(0) scale(1.8);
    opacity: 1;
}

.impact-carousel-slide.left {
    z-index: 20;
    transform: translateX(-450px) scale(0.75);
    opacity: 0.6;
}

.impact-carousel-slide.right {
    z-index: 20;
    transform: translateX(450px) scale(0.75);
    opacity: 0.6;
}

.impact-carousel-slide.hidden {
    z-index: 10;
    transform: translateX(0) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.impact-card {
    width: 450px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s;
}

.impact-carousel-slide.center .impact-card {
    box-shadow: 0 20px 60px rgba(224, 37, 47, 0.3);
}

.impact-card img {
    width: 100%;
    height: 300px;
    object-fit:  contain;
}

.impact-card figcaption {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

.impact-nav-btn {
    display: none;
}

.impact-nav-btn:hover {
    background: #e0252f;
    color: white;
    box-shadow: 0 6px 20px rgba(224, 37, 47, 0.3);
}

.impact-nav-prev {
    left: 2rem;
}

.impact-nav-next {
    right: 2rem;
}

/* ========================================
   IMPACT CAROUSEL - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .impact-carousel-wrapper {
        height: 500px;
    }
    
    .impact-card {
        width: 380px;
    }
    
    .impact-card img {
        height: 250px;
    }
    
    .impact-carousel-slide.center {
        transform: translateX(0) scale(1.15);
    }
    
    .impact-carousel-slide.left {
        transform: translateX(-380px) scale(0.7);
    }
    
    .impact-carousel-slide.right {
        transform: translateX(380px) scale(0.7);
    }
    
    .impact-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }
    
    .impact-nav-prev {
        left: 1rem;
    }
    
    .impact-nav-next {
        right: 1rem;
    }
}

/* ========================================
   IMPACT CAROUSEL - MOBILE
   ======================================== */
@media (max-width: 1000px) {
    /* Reduce section padding on mobile */
    #impact,
    #効果 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Reduce wrapper margin-top on mobile */
    #impact .mt-8,
    #効果 .mt-8 {
        margin-top: 1rem !important;
    }
    
    /* Reduce KPI cards margin on mobile */
    #impact .mt-6,
    #効果 .mt-6 {
        margin-top: 1rem !important;
    }
    
    .impact-carousel-container {
        padding: 0;
        position: relative;
        margin-top: 0;
    }
    
    .impact-carousel-wrapper {
        height: auto;
        min-height: 0;
        padding: 0;
    }
    
    .impact-card {
        width: 82vw;
        max-width: 450px;
        height: auto;
        background: transparent;
        box-shadow: none;
    }
    
    .impact-card img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    
    .impact-carousel-slide.center {
        position: relative;
        transform: translateX(0) scale(1);
        animation: slideIn 0.4s ease-out;
    }
    
    .impact-carousel-slide.left,
    .impact-carousel-slide.right {
        display: none;
    }
    
    #impactCaption {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .impact-nav-btn {
        display: none;
    }
    
    .impact-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .impact-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .impact-dot.active {
        background: #e0252f;
        width: 24px;
        border-radius: 4px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========================================
   GALLERY RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 1000px) {
    .gallery-tab {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .subcategory-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   MOBILE BURGER MENU
   ======================================== */
/* Burger button animation */
#burgerBtn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

#burgerBtn.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burgerBtn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   MOBILE MENU NAVIGATION PANEL
   ======================================== */
/* Mobile menu navigation panel */
.mobile-menu-nav {
  background: white;
  width: 80%;
  max-width: 320px;
  height: 100%;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active .mobile-menu-nav {
  transform: translateX(0);
}

/* ========================================
   MOBILE MENU LINKS
   ======================================== */
/* Mobile menu links */
.mobile-menu-link {
  padding: 1rem 1.5rem;
  color: #374151;
  font-size: 1rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.mobile-menu-link:active,
.mobile-menu-link:hover {
  background: #f9fafb;
  border-left-color: #e0252f;
  color: #e0252f;
}

/* ========================================
   MOBILE MENU CTA BUTTON
   ======================================== */
/* Mobile CTA button in menu */
.mobile-menu-cta {
  margin: 1.5rem 1.5rem 0;
  padding: 0.875rem;
  background: #e0252f;
  color: white;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-menu-cta:active {
  background: #c01e2a;
}

/* ========================================
   MOBILE MENU RESPONSIVE HIDE
   ======================================== */
/* Hide mobile menu on desktop */
@media (min-width: 1000px) {
  .mobile-menu {
    display: none;
  }
}

/* ========================================
   BODY SCROLL LOCK
   ======================================== */
/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
