/* Top CAREERS — 左テキストを広め（約55%）／写真、座標は design canvas で比例 */

.top-career__wrap {
  align-items: center;
  display: grid;
  gap: 2rem 0;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  padding: 6rem 0 10rem;
}

.top-career__text {
  background-color: #f7f7f7;
  box-sizing: border-box;
  max-width: none;
  min-width: 0;
  padding: 6rem clamp(3rem, 4vw, 6rem) 6rem clamp(3rem, 4vw, 6rem);
  width: 100%;
}

.top-career__image {
  align-self: stretch;
  background-color: #fff;
  margin-left: 0;
  overflow: visible;
  padding: 2rem 0 2rem 0;
  position: relative;
  width: 100%;
  z-index: 3;
}

.top-career__collage {
  --width: 760;
  --height: 580;
  margin: 0 0 0 auto;
  max-width: 72rem;
  min-height: clamp(32rem, 42vw, 46rem);
  overflow: visible;
  position: relative;
  width: 100%;
}

.top-career__photo {
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0.8rem 2.8rem rgba(0, 0, 0, 0.12);
  left: auto;
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.top-career__photo img {
  display: block;
  height: 100%;
  margin: 0;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

/* 1枚目：左上・縦（奥）— top / right で配置、幅は canvas 比 */
.top-career__photo--1 {
  --top: 180;
  --right: -90;
  --frame-w: 400;
  aspect-ratio: 300 / 240;
  bottom: auto;
  right: calc(100% * var(--right) / var(--width));
  top: calc(100% * var(--top) / var(--height));
  width: calc(100% * var(--frame-w) / var(--width));
  z-index: 2;
}

/* 2枚目：中央・横長（左に canvas 単位で少しはみ出す） */
.top-career__photo--2 {
  --top: 0;
  --left: -60;
  --frame-w: 600;
  aspect-ratio: 389 / 239;
  bottom: auto;
  left: calc(100% * var(--left) / var(--width));
  right: auto;
  top: calc(100% * var(--top) / var(--height));
  width: calc(100% * var(--frame-w) / var(--width));
  z-index: 1;
}

/* 3枚目：右下・縦（最前面）— bottom / right で右下角に固定 */
.top-career__photo--3 {
  --bottom: -120;
  --left: 50;
  --frame-w: 480;
  aspect-ratio: 310 / 259;
  bottom: calc(100% * var(--bottom) / var(--height));
  left: calc(100% * var(--left) / var(--width));
  top: auto;
  width: calc(100% * var(--frame-w) / var(--width));
  z-index: 3;
}

/* @media screen and (768px <= width <= 1200px) {
  .top-career__wrap {
    gap: 1.5rem 0;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    padding: 4rem 0 8rem;
  }

  .top-career__image {
    margin-top: 0;
    padding-left: 2vw;
  }

  .top-career__collage {
    --width: 700;
    --height: 540;
    min-height: clamp(28rem, 48vw, 40rem);
  }

  .top-career__photo--1 {
    --top: 14;
    --right: 468;
    --frame-w: 222;
  }

  .top-career__photo--2 {
    --top: 78;
    --left: -36;
    --frame-w: 496;
  }

  .top-career__photo--3 {
    --bottom: 0;
    --right: 0;
    --frame-w: 256;
  }
} */

@media screen and (max-width: 767px) {
  .top-career__wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 4rem;
  }

  .top-career__image {
    margin-left: 0;
    margin-top: 0;
    padding: 1.5rem 0 2rem;
    width: 100%;
  }

  .top-career__collage {
    --width: 1;
    --height: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    min-height: 0;
    position: static;
    width: 100%;
  }

  .top-career__photo {
    inset: auto;
    left: auto;
    margin: 0 auto;
    max-width: 40rem;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .top-career__photo img {
    height: auto;
  }

  .top-career__photo--1,
  .top-career__photo--2,
  .top-career__photo--3 {
    --bottom: auto;
    --left: auto;
    --right: auto;
    --top: auto;
    --frame-w: auto;
    z-index: auto;
    aspect-ratio: auto;
  }
}
