/*
|---------------------------------------------------------------
| qinc2026-top-hero.css - トップヒーローセクション
|---------------------------------------------------------------
*/

/* ==========================================================================
   Top Hero
   ========================================================================== */
.top-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  max-height: clamp(640px, calc(457px + 17.86vw), 800px);
  margin-top: calc(-1 * (var(--header-height) + 47px));
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */
.top-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.top-hero__bg-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.top-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Inner Layout
   -------------------------------------------------------------------------- */
.top-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: calc(var(--header-height) + 47px);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Content (Left)
   -------------------------------------------------------------------------- */
.top-hero__content {
  flex: 0 0 auto;
  width: 45%;
  padding-left: clamp(var(--container-padding-x), 5vw, 92px);
}

/* Heading */
.top-hero__heading {
  margin: 0 0 40px;
  font-family: var(--font-family-ja);
  font-weight: 900;
  font-size: clamp(36px, 3.65vw, 70px);
  line-height: 1.33;
  letter-spacing: 0.5px;
  color: var(--color-blue01);
  font-feature-settings: 'palt';
}

.top-hero__heading-line2 {
  padding-left: 1em;
}

.top-hero__heading-accent {
  background: linear-gradient(to right, #03178c, #0367a6 54.8%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lead */
.top-hero__lead {
  margin: 0 0 40px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.69;
  color: var(--color-blue01);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Actions (Buttons)
   -------------------------------------------------------------------------- */
.top-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.top-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 62px;
  padding: 0 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.top-hero__btn:hover {
  opacity: 0.8;
  text-decoration: none;
}

.top-hero__btn--primary {
  background-color: var(--color-blue01);
  color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.top-hero__btn--primary:hover {
  color: var(--color-white);
}

.top-hero__btn--outline {
  background-color: var(--color-white);
  border: 1px solid var(--color-blue01);
  color: var(--color-blue01);
}

.top-hero__btn--outline:hover {
  color: var(--color-blue01);
}

.top-hero__btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Visual (Right - PC Graph)
   -------------------------------------------------------------------------- */
.top-hero__visual {
  position: absolute;
  right: 0;
  top: 65%;
  transform: translateY(-50%);
  width: 55%;
  animation: hero-visual-fade-in 0.8s ease-out forwards;
}

@keyframes hero-visual-fade-in {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.top-hero__visual-img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Scroll Indicator
   -------------------------------------------------------------------------- */
.top-hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: top-hero-bounce 1s infinite;
}

@keyframes top-hero-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.top-hero__scroll-text {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.top-hero__scroll-icon {
  width: 20px;
  height: 20px;
  color: #cbd5e1;
}

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

/* --- Tablet (1200px) --- */
@media screen and (max-width: 1200px) {
  .top-hero {
    margin-top: calc(-1 * (var(--header-height-sp) + 47px));
  }

  .top-hero__inner {
    padding-top: calc(var(--header-height-sp) + 47px);
  }

  .top-hero__content {
    width: 50%;
  }
}

/* --- Tablet Portrait (1024px) --- */
@media screen and (max-width: 1024px) {
  .top-hero {
    margin-top: calc(-1 * (var(--header-height-sp) + 40px));
    height: auto;
    min-height: 100vh;
  }

  .top-hero__inner {
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height-sp) + 40px + 40px) var(--container-padding-x) 80px;
  }

  .top-hero__content {
    width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .top-hero__heading {
    font-size: 40px;
  }

  .top-hero__heading-line2 {
    padding-left: 0;
  }

  .top-hero__actions {
    justify-content: center;
  }

  .top-hero__visual {
    position: static;
    transform: none;
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
    animation-name: hero-visual-fade-in-sp;
  }

  @keyframes hero-visual-fade-in-sp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --- Mobile (768px) --- */
@media screen and (max-width: 768px) {
  .top-hero {
    margin-top: calc(-1 * (var(--header-height-sp) + 36px));
  }

  .top-hero__inner {
    padding-top: calc(var(--header-height-sp) + 36px + 32px);
    padding-bottom: 60px;
  }

  .top-hero__heading {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .top-hero__lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: left;
  }

  .top-hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .top-hero__btn {
    width: 100%;
    height: 54px;
    font-size: 16px;
  }

  .top-hero__visual {
    max-width: 100%;
  }

  .top-hero__scroll {
    display: none;
  }
}
