/**
 * CSS File: hero.css
 * 2026-05-12 | Final checked
 */

.p-top-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  z-index: var(--z_1-up);
}

.p-top-hero__cta {
  display: none;
}

.p-top-hero__container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.p-top-hero__catch {
  width: 100%;
  max-width: 500px;
  text-align: center;
  margin-bottom: 30px;
}

.p-top-hero__catch-img {
  width: 100%;
  height: auto;
}

.p-top-hero__visual {
  width: 80%;
  max-width: 450px;
}

.p-top-hero__visual-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
}

.p-top-hero__visual-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s;
}

.p-top-hero__visual-img.is-active {
  opacity: 1;
}

.p-top-hero__bg,
.p-top-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-about {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: var(--z_10-content);
}

.p-top-about__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.p-top-about-header,
.p-top-about__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-top-about__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.p-top-about__title-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.p-top-about__collab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.p-top-about__systena-img {
  width: auto;
}

.p-top-about__body {
  max-width: 1000px;
  margin: 0 auto;
  color: #333;
  line-height: 1.5;
  text-align: left;
}

.p-top-about__text {
  font-size: 0.9375rem;
  margin-bottom: 1.5em;
  word-break: middle;
}

.p-top-about__footer-visual {
  margin-top: 40px;
}

.p-top-about__footer-visual img {
  width: 100%;
  max-width: 850px;
  height: auto;
}

@media screen and (min-width: 768px) {
  .p-top-hero__cta {
    display: flex;
    gap: 12px;
  }

  .p-top-hero__cta-item {
    position: relative;
    width: 162px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition:
      transform 0.3s ease,
      filter 0.3s ease;
  }

  .p-top-hero__cta-item:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
  }

  .p-top-hero__container {
    flex-direction: row;
    justify-content: space-between;
  }

  .p-top-hero__catch {
    flex: 0 0 48%;
    text-align: left;
    margin-bottom: 0;
  }

  .p-top-hero__visual {
    flex: 0 0 45%;
  }

  .p-top-about__text {
    font-size: 1.25rem;
  }

  .p-top-about__footer-visual {
    margin-top: 60px;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-top-hero img {
    height: 50px;
  }

  .p-top-hero .p-top-hero__container {
    flex-direction: row;
    justify-content: space-around;
    padding: 0 5%;
  }

  .p-top-hero .p-top-hero__catch {
    flex: 0 0 45%;
    max-width: 300px;
    margin-bottom: 0;
  }

  .p-top-hero .p-top-hero__visual {
    flex: 0 0 40%;
    max-width: none;
  }

  .p-top-hero .p-top-hero__visual-inner {
    height: 70vh;
    aspect-ratio: auto;
  }

  .p-top-about .p-top-about__inner {
    padding: 60px 40px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }

  .p-top-about .p-top-about-header {
    flex-direction: unset;
    justify-content: center;
    align-items: center;
    margin-top: 75px;
    margin-bottom: 25px;
  }

  .p-top-about .p-top-about__title-img {
    max-width: 250px;
  }

  .p-top-about .p-top-about__collab {
    height: auto;
  }

  .p-top-about .p-top-about__systena-img {
    width: 250px;
  }

  .p-top-about .p-top-about__body {
    flex: 1;
    height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
  }

  .p-top-about .p-top-about__text {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1em;
  }

  .p-top-about .p-top-about__footer-visual {
    margin-top: 20px;
  }

  .p-top-about .p-top-about__footer-visual img {
    max-width: 100%;
  }
}

/* アクセシビリティ */
/* @media (prefers-reduced-motion: reduce) {
  .p-top-hero {
    height: auto !important;
    overflow: visible !important;
  }
  .p-top-about {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding-top: 60px;
    padding-bottom: 60px;
  }
} */
