/* Native Lightning G3 slider, front page, slide 1 only.
 * Reference canvas: 1672 x 941. Image stays in the native picture element.
 * Self-hosted subsets cover the approved TOP copy only; see assets/fonts licenses.
 */
@font-face {
  font-family: 'ForwardX Inter';
  src: url('../fonts/forwardx-inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ForwardX Noto Sans JP';
  src: url('../fonts/forwardx-noto-sans-jp-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body.home .ltg-slide .swiper-slide.item-1 {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: #080808;
  height: clamp(600px, 56.28vw, 941px);
  overflow: hidden;
}
body.home .ltg-slide .item-1 > a { display: block; height: 100%; }
body.home .ltg-slide .item-1 picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.home .ltg-slide .item-1 picture .ltg-slide-item-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
body.home .ltg-slide .item-1 .ltg-slide-cover { display: none; }
body.home .ltg-slide .item-1 .ltg-slide-text-set {
  position: absolute;
  inset: 0;
  /* Lightning adds an inline top:calc(50% + 32px). This full-height
   * flex overlay must start at the slide's top, not its midpoint. */
  top: 0 !important;
  transform: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  color: #080808;
  text-shadow: none;
}
body.home .ltg-slide .item-1 .mini-content-container-1 {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 0 7.8%;
  margin: 0;
  text-align: left;
}
body.home .ltg-slide .item-1 .ltg-slide-text-title {
  font-family: 'ForwardX Inter', 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(100px, 13.65vw, 228px);
  line-height: .88;
  letter-spacing: -.055em;
  color: #080808;
  text-shadow: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
body.home .ltg-slide .item-1 .forwardx-hero-line {
  display: block;
  white-space: nowrap;
  /* Style the actual text nodes directly: legacy h3 typography must not
   * determine the size or line boxes of these two block-level lines. */
  font-family: 'ForwardX Inter', 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(100px, 13.65vw, 228px);
  line-height: .88;
  letter-spacing: -.055em;
  color: #080808;
  text-shadow: none;
  font-synthesis: none;
}
@media (min-width: 768px) {
  body.home .ltg-slide .item-1 .ltg-slide-text-title > .forwardx-hero-line {
    font-size: clamp(100px, 14.05vw, 235px);
    line-height: .855;
    position: relative;
    left: -.034em;
    transform: translateY(.034em) scaleY(.95);
    transform-origin: left bottom;
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-title > .forwardx-hero-line:last-of-type {
    letter-spacing: -.011em;
    left: -.068em;
    transform: translateY(.0255em);
  }
}
/* The Customizer can insert a br between the already-block-level spans. */
body.home .ltg-slide .item-1 .ltg-slide-text-title > br { display: none; }
body.home .ltg-slide .item-1 .ltg-slide-text-caption {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding-left: clamp(44px, 3.95vw, 66px);
  padding-inline-start: calc(clamp(44px, 3.95vw, 66px) + clamp(20px, 1.9vw, 32px));
  max-width: 100%;
  margin: clamp(28px, 2.5vw, 42px) 0 0;
  font-family: 'ForwardX Noto Sans JP', 'Noto Sans JP', sans-serif;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .12em;
  font-synthesis: none;
  color: #080808;
  /* Caption color/shadow are also emitted as inline styles by Lightning. */
  text-shadow: none !important;
  text-align: left;
}
body.home .ltg-slide .item-1 .ltg-slide-text-caption::before {
  content: '';
  display: block;
  position: absolute;
  inset: auto;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 3.95vw, 66px);
  height: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #2445ff;
}
body.home .ltg-slide .item-1 .ltg-slide-text-caption p {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
body.home .ltg-slide .item-1 .ltg-slide-text-caption .forwardx-caption-line {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
}
@media (min-width: 768px) {
  body.home .ltg-slide .item-1 .ltg-slide-text-caption::before {
    /* PC: move only the accent line 3px below line-box centering. */
    top: calc(50% + 3px);
  }
}
@media (max-width: 767px) {
  body.home .ltg-slide .item-1 .ltg-slide-text-caption .forwardx-caption-line {
    display: block;
    white-space: nowrap;
    font: inherit;
    letter-spacing: inherit;
  }
  body.home .ltg-slide .swiper-slide.item-1 {
    height: calc(100vh - var(--forwardx-flow-before, 0px));
    height: calc(100svh - var(--forwardx-flow-before, 0px));
    /* Cover the current visible height when browser chrome makes dvh > svh.
     * Copy spacing stays based on svh; no arbitrary spacer is added. */
    min-height: calc(100dvh - var(--forwardx-flow-before, 0px));
  }
  body.home .ltg-slide .item-1 picture {
    inset: 22% 0 auto;
    height: 78%;
    /* Keep the existing X geometry even when the slide grows beyond svh. */
    top: calc((100svh - var(--forwardx-flow-before, 0px)) * .22);
    height: calc((100svh - var(--forwardx-flow-before, 0px)) * .78);
  }
  body.home .ltg-slide .item-1 picture .ltg-slide-item-img {
    object-fit: cover;
    object-position: 87% center;
    opacity: .7;
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-set {
    align-items: flex-start;
  }
  body.home .ltg-slide .item-1 .mini-content-container-1 {
    padding-inline: 6.8%;
    padding-top: calc(var(--forwardx-header-inset, 64px) + (100vh - var(--forwardx-flow-before, 0px) - var(--forwardx-header-inset, 64px)) * .18);
    padding-top: calc(var(--forwardx-header-inset, 64px) + (100svh - var(--forwardx-flow-before, 0px) - var(--forwardx-header-inset, 64px)) * .18);
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-title,
  body.home .ltg-slide .item-1 .ltg-slide-text-title > .forwardx-hero-line {
    font-size: clamp(60px, 19.8vw, 148px);
    line-height: .94;
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-title {
    max-width: none;
    /* Existing Additional CSS sets an important bottom margin on mobile. */
    margin-bottom: 0 !important;
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-caption {
    /* Explicit phrase spans control the break; width no longer chooses it. */
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding-left: 36px;
    padding-inline-start: 36px;
    /* Only these properties conflict with the published mobile Additional CSS. */
    font-size: clamp(13px, 4.2vw, 18px) !important;
    gap: 8px;
    margin-top: clamp(32px, 10vw, 48px);
    letter-spacing: .02em;
    line-height: 1.8 !important;
    line-break: strict;
    word-break: normal;
    overflow-wrap: normal;
  }
  body.home .ltg-slide .item-1 .ltg-slide-text-caption::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 3px;
  }
  body.home .ltg-slide .item-1 .forwardx-hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 10px 16px;
    margin: 0;
    background: transparent;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .24em;
    box-shadow: none;
    cursor: pointer;
  }
  body.home .ltg-slide .item-1 .forwardx-hero-scroll::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
  }
  body.home .ltg-slide .item-1 .forwardx-hero-scroll:focus-visible {
    outline: 2px solid #2445ff;
    outline-offset: 3px;
  }
  /* iOS WebKit only: small empirical guard for the reported Safari viewport
   * shortfall. Do not change the svh-based copy/X geometry or desktop styles. */
  @supports (-webkit-touch-callout: none) {
    body.home .ltg-slide .swiper-slide.item-1 {
      --forwardx-safari-height-guard: 24px;
      min-height: calc(100dvh - var(--forwardx-flow-before, 0px) + var(--forwardx-safari-height-guard));
    }
    body.home .ltg-slide .item-1 .forwardx-hero-scroll {
      /* Offset the extra slide height so SCROLL stays at its existing
       * visible position instead of moving below the browser viewport. */
      bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--forwardx-safari-height-guard));
    }
  }
}
