/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 23 2026 | 02:22:05 */
/* Baby-J 受験対策 HERO：独立スコープ。761px以上はPC、760px以下はSP */
.bj-exam-hero,
.bj-exam-hero * { box-sizing: border-box; }
.bj-exam-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1940 / 1293;
  overflow: hidden;
  isolation: isolate;
  background: #f5f2ec;
  color: #0e284c;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.bj-exam-hero__media,
.bj-exam-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}
.bj-exam-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bj-exam-hero__media img {
  object-fit: cover;
  object-position: center;
}
.bj-exam-hero__content {
  position: absolute;
  inset: 0;
  padding: 5.5% 0 5% 6.7%;
}
.bj-exam-hero__content h1 {
  margin: 0;
  font-size: clamp(27px, 4.8vw, 96px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .025em;
  color: #0e3262;
}
.bj-exam-hero__eyebrow {
  margin: .3% 0 0;
  font-family: Georgia, serif;
  font-size: clamp(9px, .75vw, 15px);
  letter-spacing: .09em;
  font-weight: 700;
}
.bj-exam-hero__lead {
  margin: .5% 0 0;
  font-size: clamp(12px, 1.35vw, 26px);
  font-weight: 700;
}
.bj-exam-hero__small {
  margin: .2% 0 0;
  font-size: clamp(7px, .58vw, 12px);
  letter-spacing: .015em;
}
.bj-exam-hero__body {
  position: absolute;
  top: 50%;
  left: 8.5%;
  width: 44%;
  color: #172e3d;
}
.bj-exam-hero__body p { margin: 0; }
.bj-exam-hero__statement {
  margin-bottom: 2% !important;
  font-size: clamp(13px, 1.65vw, 32px);
  line-height: 1.8;
  font-weight: 700;
}
.bj-exam-hero__body p:last-child {
  font-size: clamp(11px, 1.3vw, 26px);
  line-height: 2;
  font-weight: 600;
}
.bj-exam-hero__actions {
  position: absolute;
  left: 8.5%;
  bottom: 10.9%;
  display: flex;
  align-items: center;
  gap: 2.65vw;
}
.bj-exam-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1em;
  min-width: 18.4vw;
  min-height: 4.2vw;
  padding: .6em 1.2em;
  border-radius: 100px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(10px, 1.17vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.bj-exam-hero__button--primary { background: #0e243f; color: #fff; }
.bj-exam-hero__button--secondary { background: #fff; color: #0e243f; }
.bj-exam-hero__button:focus-visible { outline: 3px solid #bd912e; outline-offset: 3px; }

/* TB: PCの構図を保持し、文字とCTAを画面幅に追従 */
@media (min-width: 761px) and (max-width: 1199px) {
  .bj-exam-hero__content { padding-top: 5.5%; }
  .bj-exam-hero__content h1 { font-size: clamp(33px, 4.7vw, 57px); line-height: 1.43; }
  .bj-exam-hero__eyebrow { font-size: clamp(12px, 1.25vw, 16px); }
  .bj-exam-hero__lead { font-size: clamp(17px, 1.9vw, 24px); }
  .bj-exam-hero__small { font-size: clamp(10px, 1.05vw, 14px); }
  .bj-exam-hero__body { top: 49%; width: 49%; }
  .bj-exam-hero__statement { font-size: clamp(14px, 1.65vw, 21px); line-height: 1.6; }
  .bj-exam-hero__body p:last-child { font-size: clamp(10px, 1.18vw, 15px); line-height: 1.8; }
  .bj-exam-hero__actions { bottom: 9%; gap: 2.5vw; }
  .bj-exam-hero__button { min-width: 19vw; min-height: 4.4vw; font-size: clamp(10px, 1.05vw, 14px); }
}
/* SPと縦向きTB：写真上のコピーと縦積みCTAを完成画に合わせる */
@media (max-width: 760px), (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .bj-exam-hero { aspect-ratio: 3 / 4; }
  .bj-exam-hero__content { padding: 10.4% 0 0 5.1%; }
  .bj-exam-hero__content h1 { font-size: clamp(23px, 6.05vw, 63px); line-height: 1.45; letter-spacing: .015em; }
  .bj-exam-hero__eyebrow { margin-top: 3.3%; font-size: clamp(12px, 2.65vw, 23px); letter-spacing: .09em; }
  .bj-exam-hero__lead { margin-top: 1.2%; font-size: clamp(17px, 3.75vw, 32px); }
  .bj-exam-hero__small { margin-top: .45%; font-size: clamp(9px, 2.05vw, 18px); }
  .bj-exam-hero__body { top: 49.5%; left: 5.1%; width: 57%; }
  .bj-exam-hero__statement { margin-bottom: 5% !important; font-size: clamp(11px, 2.35vw, 24px); line-height: 1.6; }
  .bj-exam-hero__body p:last-child { font-size: clamp(8px, 1.75vw, 18px); line-height: 1.9; }
  .bj-exam-hero__actions { left: 5.1%; bottom: 7.3%; flex-direction: column; align-items: flex-start; gap: 3.1vw; }
  .bj-exam-hero__button { min-width: 0; width: 39vw; min-height: 8.8vw; padding: .6em 1.1em; font-size: clamp(10px, 2.15vw, 22px); justify-content: space-around; }
}
@media (max-width: 390px) {
  .bj-exam-hero__content h1 { font-size: 6vw; }
  .bj-exam-hero__body { width: 62%; }
  .bj-exam-hero__body p:last-child { font-size: 1.68vw; }
  .bj-exam-hero__button { width: 43vw; font-size: 2.2vw; }
}


/* Baby-J｜受験対策 Section 02 — isolated styles */
.bj-exam .bj-exam02 {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1939 / 902;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #e7e1c9;
  color: #0e284c;
}
.bj-exam .bj-exam02,
.bj-exam .bj-exam02 * { box-sizing: border-box; }
.bj-exam .bj-exam02__background,
.bj-exam .bj-exam02__background img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.bj-exam .bj-exam02__background img {
  max-width: none;
  object-fit: fill; /* exported image and section have identical proportions */
}
.bj-exam .bj-exam02__content {
  position: absolute;
  top: 11.7%;
  left: 50.5%;
  width: 47%;
  z-index: 1;
  font-family: "Noto Serif JP", "Source Han Serif", serif;
}
.bj-exam .bj-exam02__title {
  margin: 0;
  font-size: clamp(23px, 3.3vw, 64px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .005em;
}
.bj-exam .bj-exam02__goldline { display: none; }
.bj-exam .bj-exam02__body {
  margin: clamp(22px, 4.6vw, 88px) 0 0;
  font-size: clamp(14px, 1.65vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
}
/* Tablet: preserve right-column composition without text clipping */
@media (min-width: 761px) and (max-width: 1279px) {
  .bj-exam .bj-exam02__content { top: 10%; left: 50%; width: 49%; }
  .bj-exam .bj-exam02__title { font-size: clamp(22px, 3.1vw, 40px); line-height: 1.42; }
  .bj-exam .bj-exam02__body { margin-top: 3.2vw; font-size: clamp(13px, 1.65vw, 21px); line-height: 1.46; }
}
/* SP: top copy / lower portrait, matching the supplied vertical composition */
@media (max-width: 760px) {
  .bj-exam .bj-exam02 { aspect-ratio: 1086 / 1448; }
  .bj-exam .bj-exam02__content {
    top: 4.5%;
    left: 8.2%;
    width: 87%;
  }
  .bj-exam .bj-exam02__title {
    font-size: clamp(20px, 6.4vw, 48px);
    line-height: 1.28;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  .bj-exam .bj-exam02__goldline {
    display: block;
    width: 57%;
    height: clamp(7px, 1.6vw, 14px);
    margin-top: 1.6%;
    border-top: clamp(2px, .6vw, 5px) solid #caa03a;
    border-radius: 55% 50% 0 0;
    transform: rotate(-1.5deg);
  }
  .bj-exam .bj-exam02__body {
    margin: 2.1% 0 0;
    font-size: clamp(12px, 2.8vw, 24px);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -.02em;
  }
}
@media (max-width: 360px) {
  .bj-exam .bj-exam02__title { font-size: 6.15vw; }
  .bj-exam .bj-exam02__body { font-size: 2.7vw; }
}


/* ==========================================================
   Baby-J 受験対策｜Section 03
   写真全面・文字みエール
   ========================================================== */

.bj-exam .bj-exam03,
.bj-exam03 {
  --bj03-ink: #0e284c;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1940 / 800;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f6f3ed;
  color: var(--bj03-ink);
}

.bj-exam03,
.bj-exam03 * {
  box-sizing: border-box;
}

/* 写真：常にセクション全面 */
.bj-exam03__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background:
    url('https://service.baby-j.site/wp-content/uploads/2026/11/exam-03-01-scaled.webp')
    73% center / cover no-repeat;
}

/* img要素を使用している場合にも対応 */
.bj-exam03__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 73% center;
}

/* コピー */
.bj-exam03__copy {
  position: absolute;
  z-index: 2;
  top: 19%;
  left: 6.9%;
  width: 43%;
  font-family:
    'Noto Serif JP',
    'Yu Mincho',
    'Hiragino Mincho ProN',
    serif;
  text-shadow: 0 1px 2px rgba(255,255,255,.20);
}

/* 文字みエール：文字周辺だけ */
.bj-exam03__copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -8% -8% -10% -10%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 28% 43%,
    rgba(250,248,243,.18) 0%,
    rgba(250,248,243,.10) 45%,
    rgba(250,248,243,0) 76%
  );
}

.bj-exam03__copy h2 {
  margin: 0 0 clamp(24px, 4.2vw, 80px);
  font-size: clamp(29px, 3.25vw, 64px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .025em;
}

.bj-exam03__copy p {
  margin: 0;
  font-size: clamp(16px, 1.55vw, 30px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .015em;
}

/* TB */
@media (min-width: 761px) and (max-width: 1279px) {
  .bj-exam03__copy {
    top: 17%;
    left: 6.5%;
    width: 46%;
  }

  .bj-exam03__copy h2 {
    font-size: clamp(26px, 3.2vw, 41px);
    margin-bottom: clamp(18px, 3vw, 38px);
  }

  .bj-exam03__copy p {
    font-size: clamp(13px, 1.55vw, 20px);
    line-height: 1.55;
  }
}

/* SP */
@media (max-width: 760px) {
  .bj-exam .bj-exam03,
  .bj-exam03 {
    aspect-ratio: auto;
    height: clamp(620px, 135vw, 980px);
    min-height: 620px;
  }

  .bj-exam03__photo {
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: 73% center;
  }

  .bj-exam03__photo img {
    object-position: 73% center;
  }

  .bj-exam03__copy::before {
    content: none;
  }

  .bj-exam03__copy {
    top: 6%;
    left: 7%;
    width: 86%;
  }

  .bj-exam03__copy h2 {
    margin-bottom: clamp(22px, 5.5vw, 38px);
    font-size: clamp(32px, 7.4vw, 54px);
    line-height: 1.42;
  }

  .bj-exam03__copy p {
    line-height: 1.75;
  }
}

/* Section 03｜SP文字バランス・可読性調整 */
@media (max-width: 760px) {

  .bj-exam03__copy {
    top: 5%;
    left: 7%;
    width: 86%;
    text-shadow: none;
  }

  .bj-exam03__copy h2 {
    font-size: clamp(27px, 6.5vw, 43px);
    line-height: 1.42;
    margin-bottom: clamp(18px, 4vw, 28px);
  }

  .bj-exam03__copy p {
    font-size: clamp(12px, 3.05vw, 17px);
    line-height: 1.65;
    letter-spacing: 0;
  }

  /* 文字みエール：上部だけ自然に明度補正 */
  .bj-exam03__copy::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -12% -6% -10% -9%;
    pointer-events: none;
    background: radial-gradient(
      ellipse at 24% 32%,
      rgba(250,248,243,.55) 0%,
      rgba(250,248,243,.28) 45%,
      rgba(250,248,243,0) 78%
    );
  }
}



/* ==========================================================
   Baby-J 受験対策｜Section 04
   旧MIKO｜写真先行・文字みエール
   Section 01〜03には影響しない
   ========================================================== */

.bj-exam04,
.bj-exam04 * {
  box-sizing: border-box;
}

.bj-exam04 {
  --bj04-ink: #0e284c;

  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1940 / 800;

  margin: 0;
  padding: 0;
  overflow: hidden;

  background: #f6f1ea;
  color: var(--bj04-ink);
}

/* 写真レイヤー */
.bj-exam04__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.bj-exam04__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* コピーは写真と独立 */
.bj-exam04__copy {
  position: absolute;
  z-index: 2;

  top: 18%;
  right: 5.8%;
  width: 36%;

  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
}

/* 文字みエール：四角い背景を使わない */
.bj-exam04__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9% -9% -12% -12%;
  pointer-events: none;

  background: radial-gradient(
    ellipse at 60% 42%,
    rgba(250, 247, 242, .18) 0%,
    rgba(250, 247, 242, .08) 46%,
    rgba(250, 247, 242, 0) 80%
  );
}

/* タイトル */
.bj-exam04__title {
  margin: 0 0 clamp(26px, 4.2vw, 82px);
  font-size: clamp(30px, 3.25vw, 64px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
}

/* 本文 */
.bj-exam04__body {
  margin: 0;
  font-size: clamp(16px, 1.55vw, 30px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .015em;
}

/* ==========================================================
   TB｜761〜1279px
   ========================================================== */

@media (min-width: 761px) and (max-width: 1279px) {

  .bj-exam04__copy {
    top: 16%;
    right: 5%;
    width: 40%;
  }

  .bj-exam04__title {
    font-size: clamp(25px, 3.2vw, 41px);
    margin-bottom: clamp(18px, 3vw, 38px);
  }

  .bj-exam04__body {
    font-size: clamp(13px, 1.55vw, 20px);
    line-height: 1.55;
  }
}

/* ==========================================================
   SP｜761px未満
   写真と文字は同じ一枚の画面
   ========================================================== */

@media (max-width: 760px) {

  .bj-exam04 {
    aspect-ratio: auto;
    height: clamp(620px, 135vw, 980px);
    min-height: 620px;
  }

  .bj-exam04__media {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .bj-exam04__media img {
    object-fit: cover;
    object-position: 27% center;
  }

  .bj-exam04__copy {
    top: 7%;
    right: 5%;
    width: 57%;
  }

  .bj-exam04__title {
    margin-bottom: clamp(20px, 4.5vw, 34px);
    font-size: clamp(25px, 5.8vw, 42px);
    line-height: 1.42;
    letter-spacing: .01em;
  }

  .bj-exam04__body {
    font-size: clamp(12px, 2.7vw, 18px);
    line-height: 1.7;
    letter-spacing: 0;
  }
}

/* ==========================================================
   Small SP｜650px以下
   トシミチ調整の写真構図を優先
   ========================================================== */


/* Section 04｜SP：写真先行・右側文字配置 */
@media (max-width: 650px) {

  .bj-exam04 {
    aspect-ratio: auto;
    height: clamp(560px, 135vw, 780px);
    min-height: 0;
    overflow: hidden;
  }

  /* 写真の表示領域は全面 */
  .bj-exam04__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* 写真の縮尺・位置を独立制御 */
  .bj-exam04__media img {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: 14% center;

    transform: translate(-50%, -50%) scale(.85);
    transform-origin: center;
  }

  /* 文字は右下を基準に配置 */
  .bj-exam04__copy {
    position: absolute;
    top: auto;
    bottom: 9%;
    right: 5%;
    left: auto;
    width: 61%;
    text-align: right;
    z-index: 2;
  }

  .bj-exam04__title {
    font-size: clamp(23px, 5.8vw, 38px);
    line-height: 1.4;
    margin: 0 0 clamp(14px, 3.5vw, 24px);
  }

  .bj-exam04__body {
    font-size: clamp(11px, 2.65vw, 16px);
    line-height: 1.7;
  }

  /* 文字みエール：四角い背景なし */
  .bj-exam04__copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12% -8% -14% -18%;
    pointer-events: none;

    background: radial-gradient(
      ellipse at 65% 45%,
      rgba(250,247,242,.42) 0%,
      rgba(250,247,242,.20) 46%,
      rgba(250,247,242,0) 80%
    );
  }
}
/* ==========================================================
   Section 04｜SP 文字みエール FIX
   文字・写真・配置は変更しない
   ========================================================== */

@media (max-width: 650px) {

  .bj-exam .bj-exam04__copy {
    isolation: isolate;
  }

  .bj-exam .bj-exam04__copy::before {
    content: "";
    position: absolute;
    z-index: -1;

    /* 右寄せコピー全体を柔らかく包む */
    inset: -18% -10% -19% -34%;

    pointer-events: none;

    background: radial-gradient(
      ellipse 78% 70% at 75% 49%,
      rgba(250, 248, 244, 0.76) 0%,
      rgba(250, 248, 244, 0.54) 34%,
      rgba(250, 248, 244, 0.25) 64%,
      rgba(250, 248, 244, 0) 100%
    );
  }

  .bj-exam .bj-exam04__title,
  .bj-exam .bj-exam04__body {
    color: #0e284c;
    text-shadow: 0 1px 2px rgba(255, 253, 249, 0.28);
  }
}

/* Section 04｜SP 写真構図 FIX */
@media (max-width: 650px) {

  .bj-exam .bj-exam04__media img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 14% center;

    transform: none;
  }

}

/* ==========================================================
   Baby-J EXAM / SECTION 04
   SP｜HIGH-SWEETNESS MILKY GLASS
   ========================================================== */

@media (max-width: 650px) {

  .bj-exam .bj-exam04__copy {
    isolation: isolate;
  }

  .bj-exam .bj-exam04__copy::before {
    content: "";
    position: absolute;
    z-index: -1;

    /* 文字の周囲まで柔らかく広げる */
    inset: -20% -13% -22% -38%;

    pointer-events: none;

    /* 中心は濃密、外側は透明へ */
    background: radial-gradient(
      ellipse 82% 76% at 72% 48%,
      rgba(255, 253, 249, .94) 0%,
      rgba(255, 251, 246, .82) 27%,
      rgba(255, 249, 242, .60) 49%,
      rgba(255, 247, 239, .27) 72%,
      rgba(255, 247, 239, 0) 100%
    );

    /* 背景のディテールを残したまま柔らかく */
    -webkit-backdrop-filter: blur(5px) saturate(1.12);
    backdrop-filter: blur(5px) saturate(1.12);

    /* パネルの輪郭を感じさせない */
    -webkit-mask-image: radial-gradient(
      ellipse 76% 74% at 72% 48%,
      #000 28%,
      rgba(0, 0, 0, .82) 53%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 76% 74% at 72% 48%,
      #000 28%,
      rgba(0, 0, 0, .82) 53%,
      transparent 100%
    );
  }

  .bj-exam .bj-exam04__title,
  .bj-exam .bj-exam04__body {
    color: #0e284c;
    text-shadow:
      0 1px 1px rgba(255, 255, 255, .65),
      0 2px 7px rgba(255, 253, 249, .35);
  }
}
/* ==========================================================
   Baby-J EXAM / SECTION 05
   PC + SP
   ========================================================== */

.bj-exam05 {
  width: 100%;
  overflow: hidden;
  background: #142746;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
}

/* ==========================
   VISUAL
   ========================== */

.bj-exam05__visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bj-exam05__visual picture {
  display: block;
  width: 100%;
}

.bj-exam05__photo {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================
   COPY / PC
   ========================== */

.bj-exam05__copy {
  position: absolute;
  top: 29%;
  left: 5.8%;
  z-index: 2;
  color: #142746;
}

.bj-exam05__heading {
  margin: 0;
  font-size: clamp(15px, 1.75vw, 34px);
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: 0.12em;
}

.bj-exam05__rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 14px 0 11px;
  background: #bba078;
}

.bj-exam05__description {
  margin: 0;
  font-size: clamp(8px, 0.78vw, 15px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.035em;
}

/* ==========================
   CATEGORY / PC
   ========================== */

.bj-exam05__categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  background: #142746;
  padding: 22px 0 24px;
}

.bj-exam05__category {
  min-width: 0;
  text-align: center;
  color: #fff;
  padding: 0 10px;
}

.bj-exam05__category + .bj-exam05__category {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.bj-exam05__category img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.bj-exam05__category h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(9px, 0.93vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.09em;
}

.bj-exam05__category p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(6px, 0.59vw, 11px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* ==========================
   TABLET
   ========================== */

@media (min-width: 768px) and (max-width: 1100px) {
  .bj-exam05__copy {
    top: 27%;
  }

  .bj-exam05__categories {
    padding: 18px 0 20px;
  }

  .bj-exam05__category img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
}

/* ==========================
   SP
   ========================== */

@media (max-width: 767px) {

  .bj-exam05__copy {
    top: 6.5%;
    left: 8%;
    right: 5%;
  }

  .bj-exam05__heading {
    font-size: clamp(17px, 4.45vw, 25px);
    line-height: 1.52;
    letter-spacing: 0.11em;
  }

  .bj-exam05__rule {
    width: 35px;
    margin: 12px 0 9px;
  }

  .bj-exam05__description {
    font-size: clamp(8px, 2.05vw, 11px);
    line-height: 1.8;
    letter-spacing: 0.025em;
  }

  .bj-exam05__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 0 24px;
    row-gap: 0;
  }

  .bj-exam05__category {
    position: relative;
    padding: 13px 9px 17px;
  }

  .bj-exam05__category + .bj-exam05__category {
    border-left: 0;
  }

  .bj-exam05__category:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .bj-exam05__category:nth-child(n+3) {
    margin-top: 10px;
    padding-top: 19px;
  }

  .bj-exam05__category:nth-child(n+3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
  }

  .bj-exam05__category img {
    width: 39px;
    height: 39px;
    margin-bottom: 10px;
  }

  .bj-exam05__category h3 {
    font-size: clamp(11px, 3vw, 14px);
    margin-bottom: 8px;
  }

  .bj-exam05__category p {
    font-size: clamp(7px, 1.95vw, 10px);
    line-height: 1.65;
  }
}

/* ==========================
   SMALL SP
   ========================== */

@media (max-width: 360px) {

  .bj-exam05__heading {
    font-size: 16px;
  }

  .bj-exam05__description {
    font-size: 7.5px;
  }

  .bj-exam05__category p {
    font-size: 7px;
  }
}

/* ==========================================================
   Baby-J EXAM / SECTION 05
   PC｜見出し・アイコン 大幅拡大 FIX 03
   ========================================================== */

@media (min-width: 1101px) {

  /* 上部の文字 */
  .bj-exam .bj-exam05__copy {
    top: 23%;
    left: 5.8%;
  }

  .bj-exam .bj-exam05__heading {
    font-size: clamp(38px, 4.1vw, 78px);
    line-height: 1.35;
    letter-spacing: 0.045em;
  }

  .bj-exam .bj-exam05__description {
    font-size: clamp(17px, 1.8vw, 34px);
    line-height: 1.7;
  }

  .bj-exam .bj-exam05__rule {
    width: 70px;
    margin: 18px 0;
  }

  /* 濃紺エリア */
  .bj-exam .bj-exam05__categories {
    padding: clamp(30px, 3vw, 55px) 0;
  }

  /* アイコンを大きく */
  .bj-exam .bj-exam05__category img {
    width: clamp(110px, 11vw, 180px);
    height: clamp(110px, 11vw, 180px);
    object-fit: contain;
    margin: 0 auto 14px;
  }

  .bj-exam .bj-exam05__category h3 {
    font-size: clamp(19px, 2vw, 36px);
    margin-bottom: 10px;
  }

  .bj-exam .bj-exam05__category p {
    font-size: clamp(13px, 1.3vw, 24px);
    line-height: 1.6;
  }
}

/* TB：文字のはみ出し防止 */
@media (min-width: 768px) and (max-width: 1100px) {

  .bj-exam .bj-exam05__heading {
    font-size: clamp(28px, 3.2vw, 36px);
  }

  .bj-exam .bj-exam05__description {
    font-size: clamp(13px, 1.4vw, 17px);
  }

  .bj-exam .bj-exam05__category img {
    width: 95px;
    height: 95px;
  }

  .bj-exam .bj-exam05__category h3 {
    font-size: clamp(15px, 1.8vw, 20px);
  }

  .bj-exam .bj-exam05__category p {
    font-size: clamp(10px, 1.1vw, 14px);
  }
}

/* ==========================================================
   Baby-J EXAM / SECTION 05
   PC｜タイトル・サブタイトル・アイコン 強制拡大
   ========================================================== */

@media (min-width: 1101px) {

  /* メインタイトル */
  .bj-exam .bj-exam05 .bj-exam05__heading {
    font-size: clamp(44px, 5vw, 96px) !important;
    line-height: 1.3;
    letter-spacing: .035em;
  }

  /* サブタイトル */
  .bj-exam .bj-exam05 .bj-exam05__description {
    font-size: clamp(21px, 2.1vw, 40px) !important;
    line-height: 1.65;
  }

  /* タイトル全体の配置 */
  .bj-exam .bj-exam05 .bj-exam05__copy {
    top: 16%;
    left: 5.8%;
  }

  /* 4つのアイコン */
  .bj-exam .bj-exam05 .bj-exam05__category img {
    display: block;
    width: clamp(140px, 14vw, 240px) !important;
    height: clamp(140px, 14vw, 240px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 auto 12px;
  }

  /* カテゴリー名 */
  .bj-exam .bj-exam05 .bj-exam05__category h3 {
    font-size: clamp(22px, 2.2vw, 42px) !important;
  }

  /* カテゴリー説明 */
  .bj-exam .bj-exam05 .bj-exam05__category p {
    font-size: clamp(15px, 1.35vw, 26px) !important;
  }

  .bj-exam .bj-exam05 .bj-exam05__categories {
    padding: 30px 0 38px;
  }
}

/* ==========================================================
   Baby-J EXAM / SECTION 05
   SP｜文字・アイコン拡大
   ========================================================== */

@media (max-width: 767px) {

  /* 上部タイトル */
  .bj-exam .bj-exam05__heading {
    font-size: clamp(23px, 6.2vw, 36px);
    line-height: 1.48;
    letter-spacing: .08em;
  }

  /* 上部サブコピー */
  .bj-exam .bj-exam05__description {
    font-size: clamp(11px, 2.85vw, 17px);
    line-height: 1.75;
  }

  /* 濃紺エリア */
  .bj-exam .bj-exam05__categories {
    padding: 22px 0 28px;
  }

  /* アイコン */
  .bj-exam .bj-exam05__category img {
    width: clamp(65px, 15vw, 95px);
    height: clamp(65px, 15vw, 95px);
    max-width: none;
    object-fit: contain;
    margin-bottom: 12px;
  }

  /* カテゴリータイトル */
  .bj-exam .bj-exam05__category h3 {
    font-size: clamp(14px, 3.6vw, 20px);
    margin-bottom: 8px;
  }

  /* 説明文 */
  .bj-exam .bj-exam05__category p {
    font-size: clamp(10px, 2.5vw, 14px);
    line-height: 1.6;
  }
}


/* ==========================================================
   Baby-J EXAM｜SECTION 06
   Boarding School Preparation
   PC / Tablet / SP
   ========================================================== */

.bj-exam .bj-exam06,
.bj-exam .bj-exam06 * {
  box-sizing: border-box;
}

.bj-exam .bj-exam06 {
  --exam06-navy: #0e284c;
  --exam06-gold: #c49b56;
  --exam06-bg: #f7f5f1;

  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;

  background: var(--exam06-bg);
  color: var(--exam06-navy);

  font-family:
    "Noto Serif JP",
    "Source Han Serif",
    "Yu Mincho",
    serif;
}

/* ==========================
   PC｜全体レイアウト
   ========================== */

.bj-exam .bj-exam06__inner {
  display: grid;
  grid-template-columns: 52% minmax(0, 1fr);
  gap: 3%;

  width: 100%;
  max-width: 1940px;
  margin: 0 auto;

  padding: 3.8% 1.8% 3.2%;
  align-items: stretch;
}

/* ==========================
   左側｜写真
   ========================== */

.bj-exam .bj-exam06__visual {
  min-width: 0;
  overflow: hidden;
}

.bj-exam .bj-exam06__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center;
}

/* ==========================
   右側｜コンテンツ
   ========================== */

.bj-exam .bj-exam06__content {
  min-width: 0;
  padding: 0 2.5% 0 0;
}

/* 国内・海外＋ゴールドライン */

.bj-exam .bj-exam06__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;

  width: 100%;
  margin: 0 0 6.5%;

  color: var(--exam06-gold);
  font-size: clamp(15px, 1.85vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .06em;
  white-space: nowrap;
}

.bj-exam .bj-exam06__eyebrow::before,
.bj-exam .bj-exam06__eyebrow::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(196, 155, 86, .65);
}

/* メインタイトル */

.bj-exam .bj-exam06__title {
  margin: 0 0 5.5%;

  color: var(--exam06-navy);
  font-size: clamp(29px, 3.25vw, 63px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
}

/* ゴールドのリード */

.bj-exam .bj-exam06__lead {
  margin: 0 0 5.5%;

  color: #c4a66a;
  font-size: clamp(17px, 1.9vw, 37px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .035em;
}

/* 本文 */

.bj-exam .bj-exam06__body {
  color: #172a43;
}

.bj-exam .bj-exam06__body p {
  margin: 0 0 5.2%;

  font-size: clamp(12px, 1.12vw, 22px);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .01em;
}

/* ==========================
   4つのサポート項目
   ========================== */

.bj-exam .bj-exam06__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 6%;
  row-gap: 0;

  margin-top: 8%;
}

.bj-exam .bj-exam06__service {
  display: grid;
  grid-template-columns: 19% minmax(0, 1fr);
  align-items: start;

  column-gap: 6%;
  min-width: 0;

  padding: 6% 0 8%;
}

.bj-exam .bj-exam06__service:nth-child(n+3) {
  border-top: 1px solid rgba(196, 155, 86, .5);
}

.bj-exam .bj-exam06__service img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.bj-exam .bj-exam06__service-copy {
  min-width: 0;
}

.bj-exam .bj-exam06__service h3 {
  margin: 0 0 5%;

  color: var(--exam06-navy);
  font-size: clamp(12px, 1.14vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

.bj-exam .bj-exam06__service p {
  margin: 0;

  color: #172a43;
  font-size: clamp(9px, .82vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

/* ==========================
   TB｜761〜1279px
   ========================== */

@media (min-width: 761px) and (max-width: 1279px) {

  .bj-exam .bj-exam06__inner {
    grid-template-columns: 51% minmax(0, 1fr);
    gap: 3%;
    padding: 3.5% 2%;
  }

  .bj-exam .bj-exam06__eyebrow {
    font-size: clamp(14px, 1.8vw, 23px);
    margin-bottom: 5%;
  }

  .bj-exam .bj-exam06__title {
    font-size: clamp(25px, 3.1vw, 40px);
    line-height: 1.4;
    margin-bottom: 4%;
  }

  .bj-exam .bj-exam06__lead {
    font-size: clamp(15px, 1.8vw, 23px);
    margin-bottom: 4%;
  }

  .bj-exam .bj-exam06__body p {
    font-size: clamp(10px, 1.1vw, 15px);
    line-height: 1.8;
    margin-bottom: 4%;
  }

  .bj-exam .bj-exam06__services {
    margin-top: 5%;
    column-gap: 4%;
  }

  .bj-exam .bj-exam06__service {
    grid-template-columns: 18% minmax(0, 1fr);
    column-gap: 5%;
    padding: 5% 0 6%;
  }

  .bj-exam .bj-exam06__service h3 {
    font-size: clamp(11px, 1.15vw, 15px);
  }

  .bj-exam .bj-exam06__service p {
    font-size: clamp(8px, .8vw, 11px);
  }
}

/* ==========================
   SP｜760px以下
   ========================== */

@media (max-width: 760px) {

  .bj-exam .bj-exam06__inner {
    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 0 0 9%;
  }

  /* 写真を横幅いっぱいに */
  .bj-exam .bj-exam06__visual {
    width: 100%;
    aspect-ratio: 4 / 4.3;
  }

  .bj-exam .bj-exam06__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% center;
  }

  /* コピー領域 */
  .bj-exam .bj-exam06__content {
    width: 100%;
    padding: 7% 6% 0;
  }

  .bj-exam .bj-exam06__eyebrow {
    margin-bottom: 6%;
    font-size: clamp(16px, 4vw, 25px);
  }

  .bj-exam .bj-exam06__title {
    font-size: clamp(27px, 7vw, 48px);
    line-height: 1.45;
    margin-bottom: 5%;
    letter-spacing: .015em;
  }

  .bj-exam .bj-exam06__lead {
    font-size: clamp(17px, 4.2vw, 27px);
    margin-bottom: 6%;
  }

  .bj-exam .bj-exam06__body p {
    font-size: clamp(12px, 3.05vw, 18px);
    line-height: 1.9;
    margin-bottom: 5%;
  }

  .bj-exam .bj-exam06__pc-break {
    display: none;
  }

  /* 4項目は2×2を維持 */
  .bj-exam .bj-exam06__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5%;
    margin-top: 8%;
  }

  .bj-exam .bj-exam06__service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 15px 0 18px;
  }

  .bj-exam .bj-exam06__service img {
    width: clamp(40px, 10vw, 65px);
    height: clamp(40px, 10vw, 65px);
    object-fit: contain;
  }

  .bj-exam .bj-exam06__service h3 {
    font-size: clamp(12px, 3.1vw, 18px);
    margin-bottom: 7px;
  }

  .bj-exam .bj-exam06__service p {
    font-size: clamp(10px, 2.5vw, 15px);
    line-height: 1.65;
  }
}

/* ==========================
   SMALL SP｜360px以下
   ========================== */

@media (max-width: 360px) {

  .bj-exam .bj-exam06__content {
    padding-left: 5%;
    padding-right: 5%;
  }

  .bj-exam .bj-exam06__title {
    font-size: 6.7vw;
  }

  .bj-exam .bj-exam06__service h3 {
    font-size: 3vw;
  }

  .bj-exam .bj-exam06__service p {
    font-size: 2.45vw;
  }
}

/* ==========================================================
   Baby-J EXAM｜SECTION 06
   TB〜SP｜2×2カード中央揃え
   ========================================================== */

@media (max-width: 1024px) {

  .bj-exam .bj-exam06__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bj-exam .bj-exam06__service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
  }

  .bj-exam .bj-exam06__service img {
    display: block;
    width: clamp(46px, 6vw, 70px);
    height: clamp(46px, 6vw, 70px);
    max-width: none;
    object-fit: contain;
    margin: 0 auto 12px;
  }

  .bj-exam .bj-exam06__service-copy {
    width: 100%;
    text-align: center;
  }

  .bj-exam .bj-exam06__service h3,
  .bj-exam .bj-exam06__service p {
    text-align: center;
  }
}

/* SPはアイコンの存在感を少し強める */
@media (max-width: 760px) {

  .bj-exam .bj-exam06__service img {
    width: clamp(52px, 12vw, 75px);
    height: clamp(52px, 12vw, 75px);
  }

}




/* ============================================================
   Baby-J EXAM | SECTION 07
   EDUCATION CONCIERGE
   FULL CSS REPLACEMENT

   PC : Reference composition / left upper copy
   TB : Controlled background and subject visibility
   SP : Full-width portrait image / dark lower content
   CTA: v5 Rainbow Lap + Starburst

   Scope: .bj-exam .bj-exam07
   ============================================================ */


/* ------------------------------------------------------------
   01. BASE
   ------------------------------------------------------------ */

.bj-exam .bj-exam07 {
  position: relative;
  isolation: isolate;

  width: 100%;
  overflow: hidden;

  background: #151b23;
  color: #ffffff;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif;
}

.bj-exam .bj-exam07 *,
.bj-exam .bj-exam07 *::before,
.bj-exam .bj-exam07 *::after {
  box-sizing: border-box;
}


/* ------------------------------------------------------------
   02. BACKGROUND
   PC / TB: Landscape image
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__background {
  position: absolute;
  inset: 0;
  z-index: -1;

  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bj-exam .bj-exam07__background img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* Gentle dark support for lower content */

.bj-exam .bj-exam07::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 56%,
    rgba(15, 21, 29, .08) 67%,
    rgba(15, 21, 29, .52) 85%,
    rgba(15, 21, 29, .88) 100%
  );
}


/* ------------------------------------------------------------
   03. PC INNER
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__inner {
  position: relative;

  width: 100%;
  max-width: 1800px;

  min-height: clamp(660px, 58vw, 960px);

  margin: 0 auto;

  padding:
    clamp(45px, 4.5vw, 82px)
    clamp(32px, 4.5vw, 80px)
    clamp(34px, 3.6vw, 65px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
}


/* ------------------------------------------------------------
   04. HEADING
   Reference: Upper-left dark area
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__heading {
  position: relative;
  z-index: 1;

  width: min(42%, 630px);

  margin: 0;
  padding: 0;

  text-align: left;
}

.bj-exam .bj-exam07__eyebrow {
  margin: 0 0 18px;

  color: #e8d2a2;

  font-family: Georgia, serif;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: .15em;
}

.bj-exam .bj-exam07__title {
  margin: 0;

  color: #ffffff;

  font-size: clamp(34px, 3.6vw, 64px);
  font-weight: 500;

  line-height: 1.45;
  letter-spacing: .025em;

  text-wrap: balance;
}

.bj-exam .bj-exam07__subtitle {
  margin: 24px 0 0;

  color: #f7f1e8;

  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 400;

  line-height: 1.95;
  letter-spacing: .035em;
}


/* ------------------------------------------------------------
   05. FEATURES
   Three icons above CTA
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__features {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;

  width: min(100%, 920px);

  gap: clamp(14px, 2.4vw, 36px);

  margin: auto auto 28px;
}

.bj-exam .bj-exam07__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-width: 0;
  gap: 10px;

  text-align: center;
}

.bj-exam .bj-exam07__feature img {
  display: block;

  width: clamp(58px, 5.4vw, 80px);
  height: clamp(58px, 5.4vw, 80px);

  max-width: none;

  object-fit: contain;
}

.bj-exam .bj-exam07__feature h3 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 500;

  line-height: 1.6;
  letter-spacing: .07em;

  text-align: center;
}


/* ------------------------------------------------------------
   06. CTA BASE
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__cta {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: min(100%, 780px);
  min-height: 108px;

  margin: 0 auto;

  border: 2px solid #c9ced5;
  border-radius: 999px;

  background: #fffdfa;
  color: #0e284c;

  text-decoration: none;

  box-shadow:
    0 10px 28px rgba(14, 40, 76, .10);

  overflow: visible;

  -webkit-tap-highlight-color: transparent;
}

.bj-exam .bj-exam07__cta:visited {
  color: #0e284c;
}

.bj-exam .bj-exam07__cta-inner {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 14px 36px;
  gap: 18px;
}

.bj-exam .bj-exam07__book {
  display: block;

  width: 78px;
  height: 72px;

  flex: 0 0 auto;

  object-fit: contain;
}

.bj-exam .bj-exam07__cta-label {
  color: #0e284c;

  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;

  line-height: 1.5;
  letter-spacing: .045em;

  text-align: center;
  white-space: nowrap;
}

.bj-exam .bj-exam07__arrow {
  color: #0e284c;

  font-family: Arial, sans-serif;
  font-size: 43px;
  font-weight: 300;
  line-height: 1;

  flex: 0 0 auto;
}


/* ------------------------------------------------------------
   07. CTA RAINBOW — v5
   Preserve existing JS class hooks
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__edge {
  position: absolute;
  inset: -4px;

  width: calc(100% + 8px);
  height: calc(100% + 8px);

  overflow: visible;
  pointer-events: none;
}

.bj-exam .bj-exam07__edge path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.bj-exam .bj-exam07__trail {
  stroke: url(#bj-exam07-pearl);
  stroke-width: 8;
  stroke-linecap: round;

  stroke-dasharray: 12 88;
  stroke-dashoffset: 12;

  opacity: 0;
  filter: blur(5px);
}

.bj-exam .bj-exam07__beam {
  stroke: url(#bj-exam07-pearl);
  stroke-width: 3.5;
  stroke-linecap: round;

  stroke-dasharray: 12 88;
  stroke-dashoffset: 12;

  opacity: 0;
}

.bj-exam .bj-exam07__cta.is-running
.bj-exam07__trail,
.bj-exam .bj-exam07__cta.is-running
.bj-exam07__beam {
  opacity: 1;

  animation: bj-exam07-lap 1.1s
    cubic-bezier(.32, .05, .62, 1) both;
}

.bj-exam .bj-exam07__cta.is-running
.bj-exam07__trail {
  opacity: .5;
}

@keyframes bj-exam07-lap {
  from {
    stroke-dashoffset: 12;
  }

  to {
    stroke-dashoffset: -88;
  }
}


/* ------------------------------------------------------------
   08. STAR BURST — v5
   ------------------------------------------------------------ */

.bj-exam .bj-exam07__spark {
  position: absolute;

  right: 5.5%;
  top: -26px;
  z-index: 4;

  width: 58px;
  height: 58px;

  pointer-events: none;

  opacity: 0;

  transform: scale(.25);
  transform-origin: center;

  filter: drop-shadow(0 0 7px #d5d6ff);
}

.bj-exam .bj-exam07__spark::before,
.bj-exam .bj-exam07__spark::after {
  content: "";
  position: absolute;
}

.bj-exam .bj-exam07__spark::before {
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent 0%,
    #e5e9ff 33%,
    #fff 50%,
    #f3d9f5 67%,
    transparent 100%
  );

  clip-path: polygon(
    50% 0%,
    56% 38%,
    100% 50%,
    56% 62%,
    50% 100%,
    44% 62%,
    0% 50%,
    44% 38%
  );
}

.bj-exam .bj-exam07__spark::after {
  inset: 9px;

  background: #fffdfc;

  clip-path: polygon(
    50% 0%,
    56% 38%,
    100% 50%,
    56% 62%,
    50% 100%,
    44% 62%,
    0% 50%,
    44% 38%
  );

  transform: rotate(45deg);
  opacity: .72;
}

.bj-exam .bj-exam07__spark i {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 15px;
  height: 15px;

  border-radius: 50%;

  transform: translate(-50%, -50%);

  background: #ffffff;

  box-shadow:
    0 0 9px 5px #ffffff,
    0 0 19px 9px #cde6ff,
    0 0 31px 12px #f4dcff;
}

.bj-exam .bj-exam07__spark.is-flashing {
  animation: bj-exam07-starburst 1.05s
    cubic-bezier(.2, .75, .2, 1) forwards;
}

@keyframes bj-exam07-starburst {
  0% {
    opacity: 0;
    transform: scale(.16);
  }

  18% {
    opacity: 1;
    transform: scale(.55);
  }

  45% {
    opacity: 1;
    transform: scale(1.38);
  }

  68% {
    opacity: 1;
    transform: scale(1.12);
  }

  88% {
    opacity: .9;
    transform: scale(1.12);
  }

  100% {
    opacity: .62;
    transform: scale(1.12);
  }
}


/* ------------------------------------------------------------
   09. MEDIUM PC
   1025px – 1279px
   ------------------------------------------------------------ */

@media (min-width: 1025px) and (max-width: 1279px) {

  .bj-exam .bj-exam07__inner {
    min-height: 730px;

    padding:
      50px 4%
      45px;
  }

  .bj-exam .bj-exam07__heading {
    width: 45%;
  }

  .bj-exam .bj-exam07__title {
    font-size: clamp(33px, 3.5vw, 46px);
  }

  .bj-exam .bj-exam07__features {
    width: min(100%, 790px);
    margin-bottom: 24px;
  }

  .bj-exam .bj-exam07__cta {
    width: min(100%, 700px);
    min-height: 96px;
  }
}


/* ------------------------------------------------------------
   10. WIDE TABLET
   951px – 1024px
   ------------------------------------------------------------ */

@media (min-width: 951px) and (max-width: 1024px) {

  .bj-exam .bj-exam07__inner {
    min-height: 680px;
    padding: 42px 4% 38px;
  }

  .bj-exam .bj-exam07__heading {
    width: 46%;
  }

  .bj-exam .bj-exam07__title {
    font-size: clamp(30px, 3.5vw, 39px);
  }

  .bj-exam .bj-exam07__subtitle {
    font-size: 14px;
    margin-top: 15px;
  }

  .bj-exam .bj-exam07__features {
    width: min(100%, 720px);
    gap: 12px;
    margin-bottom: 22px;
  }

  .bj-exam .bj-exam07__feature img {
    width: 60px;
    height: 60px;
  }

  .bj-exam .bj-exam07__feature h3 {
    font-size: 15px;
  }

  .bj-exam .bj-exam07__cta {
    width: min(100%, 680px);
    min-height: 90px;
  }

  .bj-exam .bj-exam07__book {
    width: 62px;
    height: 58px;
  }

  .bj-exam .bj-exam07__cta-label {
    font-size: 21px;
  }
}


/* ------------------------------------------------------------
   11. TABLET
   768px – 950px

   Keep landscape photo visible.
   Reduce aggressive cropping.
   ------------------------------------------------------------ */

@media (min-width: 768px) and (max-width: 950px) {

  .bj-exam .bj-exam07 {
    background: #151b23;
  }

  .bj-exam .bj-exam07__background {
    height: auto;
    aspect-ratio: 1940 / 1024;
    bottom: auto;
  }

  .bj-exam .bj-exam07__background img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
  }

  .bj-exam .bj-exam07::after {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 44%,
      rgba(21, 27, 35, .35) 57%,
      #151b23 77%,
      #151b23 100%
    );
  }

  .bj-exam .bj-exam07__inner {
    min-height: clamp(650px, 80vw, 760px);

    padding: 36px 5% 42px;
  }

  .bj-exam .bj-exam07__heading {
    width: 48%;
    margin: 0;
    text-align: left;
  }

  .bj-exam .bj-exam07__eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .bj-exam .bj-exam07__title {
    font-size: clamp(28px, 3.8vw, 36px);
    line-height: 1.45;
  }

  .bj-exam .bj-exam07__subtitle {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.8;
  }

  .bj-exam .bj-exam07__features {
    width: min(100%, 650px);
    gap: 12px;
    margin-bottom: 22px;
  }

  .bj-exam .bj-exam07__feature img {
    width: 58px;
    height: 58px;
  }

  .bj-exam .bj-exam07__feature h3 {
    font-size: 15px;
  }

  .bj-exam .bj-exam07__cta {
    width: min(100%, 650px);
    min-height: 88px;
  }

  .bj-exam .bj-exam07__cta-inner {
    padding: 10px 26px;
  }

  .bj-exam .bj-exam07__book {
    width: 60px;
    height: 56px;
  }

  .bj-exam .bj-exam07__cta-label {
    font-size: 20px;
  }
}


/* ------------------------------------------------------------
   12. SMARTPHONE
   0 – 767px

   Portrait image keeps its natural proportions.
   Copy at top-left.
   Features and CTA on dark lower area.
   ------------------------------------------------------------ */

@media (max-width: 767px) {

  .bj-exam .bj-exam07 {
    background: #151b23;
  }

  /* SP image: no forced full-height cover */

  .bj-exam .bj-exam07__background {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: auto;

    width: 100%;
    height: auto;

    aspect-ratio: 1118 / 1375;
    overflow: hidden;
  }

  .bj-exam .bj-exam07__background img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
  }

  /* Blend portrait image into dark bottom */

  .bj-exam .bj-exam07::after {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 42%,
      rgba(21, 27, 35, .12) 50%,
      rgba(21, 27, 35, .72) 63%,
      #151b23 77%,
      #151b23 100%
    );
  }

  .bj-exam .bj-exam07__inner {
    min-height: 0;

    height: auto;

    padding:
      clamp(22px, 6vw, 42px)
      5%
      clamp(30px, 7vw, 48px);

    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Upper-left copy, matching SP reference */

  .bj-exam .bj-exam07__heading {
    width: 62%;
    max-width: 330px;

    margin: 0;

    text-align: left;
  }

  .bj-exam .bj-exam07__eyebrow {
    margin: 0 0 10px;

    font-size: clamp(8px, 2.3vw, 11px);
    line-height: 1.5;
    letter-spacing: .11em;
  }

  .bj-exam .bj-exam07__title {
    font-size: clamp(24px, 6.1vw, 36px);

    line-height: 1.42;
    letter-spacing: .015em;
  }

  .bj-exam .bj-exam07__subtitle {
    margin-top: 12px;

    font-size: clamp(10px, 2.7vw, 14px);
    line-height: 1.8;
    letter-spacing: .02em;
  }

  /* Reserve photo area before lower content */

  .bj-exam .bj-exam07__features {
    width: 100%;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;

    margin:
      clamp(240px, 72vw, 440px)
      0
      26px;
  }

  .bj-exam .bj-exam07__feature {
    gap: 7px;
  }

  .bj-exam .bj-exam07__feature img {
    width: clamp(48px, 13vw, 68px);
    height: clamp(48px, 13vw, 68px);
  }

  .bj-exam .bj-exam07__feature h3 {
    font-size: clamp(11px, 3vw, 15px);
    letter-spacing: .025em;
    line-height: 1.5;
  }

  /* CTA */

  .bj-exam .bj-exam07__cta {
    width: 100%;
    min-height: 80px;
    border-radius: 999px;
  }

  .bj-exam .bj-exam07__cta-inner {
    padding: 9px 15px;
    gap: 8px;
  }

  .bj-exam .bj-exam07__book {
    width: clamp(39px, 12vw, 52px);
    height: clamp(39px, 12vw, 52px);
  }

  .bj-exam .bj-exam07__cta-label {
    font-size: clamp(12px, 3.5vw, 17px);
    letter-spacing: .01em;
  }

  .bj-exam .bj-exam07__arrow {
    font-size: 30px;
  }

  .bj-exam .bj-exam07__spark {
    width: 45px;
    height: 45px;

    top: -20px;
    right: 4%;
  }
}


/* ------------------------------------------------------------
   13. SMALL SMARTPHONE
   ------------------------------------------------------------ */

@media (max-width: 360px) {

  .bj-exam .bj-exam07__inner {
    padding-left: 4%;
    padding-right: 4%;
  }

  .bj-exam .bj-exam07__heading {
    width: 65%;
  }

  .bj-exam .bj-exam07__title {
    font-size: clamp(22px, 6.5vw, 25px);
  }

  .bj-exam .bj-exam07__features {
    margin-top: 70vw;
    margin-bottom: 22px;
  }

  .bj-exam .bj-exam07__cta-inner {
    padding-inline: 12px;
    gap: 5px;
  }

  .bj-exam .bj-exam07__book {
    width: 39px;
    height: 39px;
  }

  .bj-exam .bj-exam07__cta-label {
    font-size: 12px;
  }

  .bj-exam .bj-exam07__arrow {
    font-size: 26px;
  }
}


/* ------------------------------------------------------------
   14. REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

  .bj-exam .bj-exam07__cta.is-running
  .bj-exam07__trail,
  .bj-exam .bj-exam07__cta.is-running
  .bj-exam07__beam,
  .bj-exam .bj-exam07__spark.is-flashing {
    animation: none;
    opacity: 0;
  }
}
