@charset "utf-8";

/* =========================================================
   Common course banner
   Used by /index.html and /rishu/index.html
   ========================================================= */

#course-banner {
  position: relative;
  width: 96%;
  max-width: 960px;
  height: 300px;
  margin: 0 auto 20px;
  overflow: hidden;
  background: #111;
}

#course-banner .course-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

#course-banner .course-banner-slide.active {
  opacity: 1;
}

#course-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.10) 48%,
    rgba(0, 0, 0, 0.02) 78%
  );
}

#course-banner .course-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#course-banner .course-banner-title {
  width: 465px;
  max-width: 70%;
  height: auto;
}

#course-banner .course-banner-catch {
  width: 320px;
  max-width: 58%;
  height: auto;
}

@media only screen and (max-width: 639px) {
  #course-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 639 / 358;
    margin: 0 0 20px;
  }

  #course-banner .course-banner-copy {
    box-sizing: border-box;
    gap: 15px;
    padding: 0 5%;
  }

  #course-banner .course-banner-title {
    max-width: 78%;
  }

  #course-banner .course-banner-catch {
    max-width: 66%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #course-banner .course-banner-slide {
    transition: none;
  }
}
