/* ===========================================
   Transition Section
   "これらぜ～んぶ、動画でカリトルくんが解決します！"
   Figma: y=1517-1805 (height 288px)
   Background: light pink with diamond pattern overlay
   Layout: text on left, male thumbs-up on right
   Angled edges at top and bottom
   =========================================== */

.transition {
  position: relative;
  padding: 0 16px;
  overflow: visible;
  background: transparent;
}

/* Background image with V-shape built in - SP */
.transition::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/transition/transition-bg-sp.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.transition__inner {
  position: relative;
  z-index: 1;
  max-width: 343px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 200px;
}

/* Text area (left) */
.transition__text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transition__text-prefix {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  line-height: 1.3;
}

/* Logo image (middle of text) */
.transition__logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 4px 0;
}

.transition__text-suffix {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  line-height: 1.3;
}

/* Male illustration (right) */
.transition__illust {
  width: 85px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

/* ============================================================
   PC (>=768px) — Transition: wider layout, angled edges
   ============================================================ */
@media (min-width: 768px) {
  .transition {
    padding: 0;
    height: 581px;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 1;
  }

  .transition::before {
    background-image: url('../../images/transition/transition-bg.png');
    background-size: 100% 581px;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .transition__inner {
    max-width: 1100px;
    min-height: 0;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }

  .transition__text-group {
    flex: 0 0 auto;
    gap: 12px;
  }

  .transition__text-prefix {
    font-size: 48px;
    line-height: 86px;
    color: var(--color-black);
  }

  .transition__text-suffix {
    font-size: 48px;
    line-height: 86px;
    color: var(--color-black);
  }

  .transition__logo {
    width: 480px;
  }

  .transition__illust {
    width: 240px;
    align-self: center;
  }
}
