/* Top Banners Carousel Section (Matching j-font.com style) */
.bk-top-banners {
  position: relative;
  z-index: 4;
  background: #ffffff;
  padding: 125px 0 0;
  overflow: visible !important;
  border-bottom: none !important;
}

.bk-top-banners-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.bk-top-banners-slider {
  overflow: visible !important;
  position: relative;
}

.bk-top-banners-slider .swiper-wrapper {
  align-items: stretch;
}

.bk-top-banners-slider .swiper-slide {
  height: auto;
  display: flex;
  overflow: visible !important;
}

/* Banner Card (Large size matching j-font: approx 4:3 ratio, height 280-320px) */
.bk-top-banner-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  min-height: 270px;
  text-decoration: none !important;
  color: #ffffff !important;
  border-radius: 14px;
  overflow: visible !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  background: transparent;
  position: relative;
  cursor: pointer;
}

.bk-top-banner-card--static {
  cursor: default;
}

.bk-top-banner-card:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 3px;
}

/* 1. Card Background Layer (Layer 1: base rounded box) */
.bk-top-banner-bg {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #3f4d63 0%, #293444 100%);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  z-index: 1;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bk-top-banner-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* 2. Hover Figure Layer (Layer 2: popping-up character image) */
.bk-top-banner-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(32px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.32s ease;
  will-change: transform, opacity;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 14%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 14%, black 100%);
}

.bk-top-banner-figure img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

/* Figure Size & Positioning per card */
.bk-top-banner-figure--painting {
  bottom: 25px;
  height: 170%;
  width: 129%;
}

.bk-top-banner-figure--construction {
  bottom: 20px;
  height: 163%;
  width: 106%;
}

.bk-top-banner-figure--ai-chat {
  bottom: 105px;
  height: 112.5%;
  width: 85.5%;
}

.bk-top-banner-figure--sales {
  height: 194%;
  width: 124%;
}

.bk-top-banner-figure--office {
  bottom: 15px;
  height: 159%;
  width: 113%;
}

.bk-top-banner-figure--job {
  bottom: 10px;
  height: 155%;
  width: 120%;
}

.bk-top-banner-figure--contact {
  bottom: 15px;
  height: 152%;
  width: 118%;
}

/* Mouseover: Popping up smoothly / Mouseleave: Reverse playing back smoothly */
.bk-top-banner-card:hover .bk-top-banner-figure {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* 3. Text Content Layer (Layer 3: Topmost foreground) */
.bk-top-banner-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: transparent !important;
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Color Variations per Card (Applied to .bk-top-banner-bg)
   -------------------------------------------------------------------------- */

/* 1. Painting Banner: Bikosha Navy Blue */
.bk-top-banner-card--painting .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="painting"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #1b4569 0%, #12324e 100%);
  box-shadow: 0 8px 24px rgba(18, 50, 78, 0.28);
}

.bk-top-banner-card--painting .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-id="painting"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
}

.bk-top-banner-card--painting:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="painting"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #245784 0%, #173d5e 100%);
  box-shadow: 0 12px 28px rgba(18, 50, 78, 0.4);
}

/* 2. Construction Banner: Dark Deep Purple */
.bk-top-banner-card--construction .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="construction"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #442a5a 0%, #261736 100%);
  box-shadow: 0 8px 24px rgba(42, 26, 58, 0.28);
}

.bk-top-banner-card--construction .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-id="construction"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
}

.bk-top-banner-card--construction:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="construction"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #55366f 0%, #34204a 100%);
  box-shadow: 0 12px 28px rgba(42, 26, 58, 0.4);
}

/* 3. Job Guidelines Banner: Header Contact Cyan-Blue (#0090d4) */
.bk-top-banner-card--job .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="job"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #0aa3ed 0%, #007cb8 100%);
  box-shadow: 0 8px 24px rgba(0, 144, 212, 0.28);
}

.bk-top-banner-card--job .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-id="job"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
}

.bk-top-banner-card--job:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="job"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #22aff3 0%, #008ecc 100%);
  box-shadow: 0 12px 28px rgba(0, 144, 212, 0.4);
}

/* 4. AI Chat Slide Banner: Bikosha Yellow */
.bk-top-banner-card--ai-chat .bk-top-banner-bg,
.bk-top-banner-card[data-banner-type="ai-chat"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #f59018 0%, #eb7e00 100%);
  box-shadow: 0 8px 24px rgba(235, 126, 0, 0.28);
}

.bk-top-banner-card--ai-chat .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-type="ai-chat"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 65%);
}

.bk-top-banner-card--ai-chat:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-type="ai-chat"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #ff9d24 0%, #f58800 100%);
  box-shadow: 0 12px 28px rgba(235, 126, 0, 0.4);
}

/* 5. Sales Banner: Yellow-Green (黄緑) */
.bk-top-banner-card--sales .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="sales"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #6cba28 0%, #468c14 100%);
  box-shadow: 0 8px 24px rgba(80, 158, 30, 0.28);
}

.bk-top-banner-card--sales .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-id="sales"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
}

.bk-top-banner-card--sales:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="sales"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #7ccd30 0%, #519e18 100%);
  box-shadow: 0 12px 28px rgba(80, 158, 30, 0.4);
}

/* 6. Office Banner: Pink (ピンク系) */
.bk-top-banner-card--office .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="office"] .bk-top-banner-bg {
  background: linear-gradient(145deg, #e55c8c 0%, #b83262 100%);
  box-shadow: 0 8px 24px rgba(212, 75, 121, 0.28);
}

.bk-top-banner-card--office .bk-top-banner-bg::before,
.bk-top-banner-card[data-banner-id="office"] .bk-top-banner-bg::before {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24) 0%, transparent 65%);
}

.bk-top-banner-card--office:hover .bk-top-banner-bg,
.bk-top-banner-card[data-banner-id="office"]:hover .bk-top-banner-bg {
  background: linear-gradient(145deg, #f06e9c 0%, #ca3b6e 100%);
  box-shadow: 0 12px 28px rgba(212, 75, 121, 0.4);
}

.bk-top-banner-sub {
  display: block;
  font-family: Arial, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94a3b8;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.bk-top-banner-title {
  display: block;
  font-size: clamp(26.5px, 2.78vw, 34.5px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  max-width: 92%;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: text-shadow 0.25s ease, transform 0.25s ease;
}

.bk-top-banner-note {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  line-height: 1.3;
  transition: text-shadow 0.25s ease;
}

/* On hover / focus / active: Intense black drop shadow for clear text readability over popped-up photo */
.bk-top-banner-card:hover .bk-top-banner-title,
.bk-top-banner-card:hover .bk-top-banner-note,
.bk-top-banner-card:focus-visible .bk-top-banner-title,
.bk-top-banner-card:focus-visible .bk-top-banner-note,
.bk-top-banner-card:active .bk-top-banner-title,
.bk-top-banner-card:active .bk-top-banner-note {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 1), 0 0 4px #000000, 0 0 8px rgba(0, 0, 0, 0.8) !important;
}

/* Future banner image support */
.bk-top-banner-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow Navigation: Pure SVG chevrons like j-font (NO background/border, 110% size in Bikosha Blue) */
.bk-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 52px;
  background: transparent;
  color: var(--rc-blue, #12324e);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.95)) drop-shadow(0 1px 8px rgba(255, 255, 255, 0.8));
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.bk-banner-arrow svg {
  display: block;
  width: 30px;
  height: 48px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.bk-banner-arrow:hover {
  background: transparent;
  color: #1a4f78;
  transform: translateY(-50%) scale(1.1);
  opacity: 0.9;
}

.bk-banner-arrow:focus-visible {
  outline: 2px solid var(--rc-orange, #eb7e00);
  outline-offset: 4px;
}

.bk-banner-prev {
  left: 8px;
}

.bk-banner-next {
  right: 8px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bk-top-banners {
    padding: 135px 0 0;
  }
  .bk-top-banners-inner {
    padding: 0 32px;
  }
  .bk-top-banner-card {
    min-height: 230px;
  }
  .bk-top-banner-title {
    font-size: 25.3px;
  }
  .bk-banner-arrow {
    width: 28px;
    height: 44px;
  }
  .bk-banner-arrow svg {
    width: 25px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .bk-top-banners {
    padding: 125px 0 0;
  }
  .bk-top-banners-inner {
    padding: 0 20px;
  }
  .bk-top-banner-card {
    aspect-ratio: 4 / 3.2;
    min-height: 190px;
    border-radius: 10px;
  }
  .bk-top-banner-bg {
    border-radius: 10px;
  }
  .bk-top-banner-placeholder {
    padding: 20px 14px;
  }
  .bk-top-banner-sub {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .bk-top-banner-title {
    font-size: 21.8px;
  }
  .bk-top-banner-note {
    font-size: 13px;
    margin-top: 8px;
  }
  /* Figure adjustment on mobile to prevent top clipping against hero */
  .bk-top-banner-figure--ai-chat {
    bottom: 60px;
    height: 115%;
  }
  .bk-top-banner-figure--sales {
    height: 170%;
  }
  .bk-top-banner-figure--painting {
    height: 150%;
  }
  .bk-top-banner-figure--construction {
    height: 145%;
  }
  .bk-top-banner-figure--office {
    height: 145%;
  }
  .bk-top-banner-figure--job {
    bottom: 20px;
    height: 135%;
  }
  .bk-top-banner-figure--contact {
    bottom: 20px;
    height: 135%;
  }
  .bk-banner-arrow {
    width: 24px;
    height: 38px;
  }
  .bk-banner-arrow svg {
    width: 22px;
    height: 35px;
  }
  .bk-banner-prev {
    left: 4px;
  }
  .bk-banner-next {
    right: 4px;
  }
}
