

.top-hero {
  position: relative;
  height: 544px;
  background: url("../images/top-hero-bg.webp") center 58% / cover no-repeat;
  overflow: hidden;
}
.top-hero__note {
  position: absolute; left: max(18px, calc(50% - 702px)); top: 53px;
  background: #ffffff; padding: 16px 24px;
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 26px; line-height: 1.4; color: #000000;
}
.top-hero__copies {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1440px; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.top-hero__copy {
  background: #ffffff; height: 139px; padding: 26px 40px;
  display: flex; flex-direction: column; gap: 13px; align-items: center; justify-content: center;
}
.top-hero__copy-jp { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 26px; line-height: 1; color: #000000; white-space: nowrap; }
.top-hero__copy-en { font-family: var(--font-en); font-weight: var(--fw-bold); font-size: 53px; line-height: 1; color: #000000; white-space: nowrap; }

.top-band { position: relative; overflow: hidden; }
.top-band--learn { background: var(--c-accent-blue, #2149ff); padding: 120px 0 0; }
.top-band--teach { background: #f870ff; padding: 120px 0; }
.top-band::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 900px;
  background: url("../images/top-keyvisual.webp") center top / cover no-repeat;
  opacity: 0.1; pointer-events: none;
}
.top-band__inner { position: relative; z-index: 1; max-width: 1440px; margin-inline: auto; padding-inline: 90px; display: flex; flex-direction: column; gap: 64px; }
.top-band__head { display: flex; flex-direction: column; gap: 32px; color: #ffffff; }
.top-band__title { display: flex; gap: 24px; align-items: baseline; font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 88px; line-height: 65px; }
.top-band__title-sub { font-size: 34px; line-height: 49px; }
.top-band__lead { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 20px; line-height: 1.6; }

.top-learn__cols { display: flex; gap: 48px; justify-content: center; }
.top-learn__col { position: relative; width: 606px; height: 446px; flex: none; }
.top-learn__photo { position: absolute; right: 0; top: 50%; transform: translateY(calc(-50% - 34px)); width: 440px; height: 377px; }
.top-learn__body { position: absolute; left: 0; top: 0; width: 314px; display: flex; flex-direction: column; gap: 32px; color: #ffffff; }
.top-learn__title { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 34px; line-height: 1.45; }
.top-learn__en { font-family: var(--font-en); font-weight: 500; font-size: 20px; line-height: 1.6; margin-top: -24px; }
.top-learn__btns { display: flex; gap: 24px; }
.top-learn__btn {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 16px 24px; border-radius: 8px;
  font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 16px; line-height: 1;
  color: #ffffff; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease;
}
.top-learn__btn:hover { opacity: 0.85; }
.top-learn__btn:not([href]) { cursor: default; }
.top-learn__btn--green { background: #22c55e; }
.top-learn__btn--magenta { background: #f879ff; }
.top-learn__btn img { width: 6px; height: 12px; }

.top-courses { display: flex; gap: 48px; justify-content: center; }
.top-course-card {
  width: 388px; flex: none; display: flex; flex-direction: column;
  text-decoration: none; overflow: hidden;
  transition: opacity 0.2s ease;
}
.top-course-card:hover { opacity: 0.7; }
.top-course-card__photo { width: 100%; height: 230px; object-fit: cover; display: block; }
.top-course-card__body { background: #ffffff; flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; }
.top-course-card__strip {
  border-top: 1px solid #131936; border-bottom: 1px solid #131936;
  display: flex; gap: 14px; align-items: center; justify-content: center; padding: 16px 0;
}
.top-course-card__striptext { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 18px; line-height: 1.2; color: #131936; text-align: center; }
.top-course-card__main { display: flex; flex-direction: column; gap: 16px; }
.top-course-card__title { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 28px; line-height: 1.45; color: var(--c-accent-blue); text-align: center; }
.top-course-card__text { font-family: var(--font-jp); font-weight: var(--fw-regular); font-size: 16px; line-height: 1.74; color: #131936; }
.top-course-card__btn {
  margin-top: auto;
  border: 1.5px solid #cbd5e1; border-radius: 8px; background: #ffffff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 24px;
  font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 16px; line-height: 1.74; color: var(--c-accent-blue);
}
.top-course-card__btn img { width: 6px; height: 12px; }

.top-no1 { position: relative; display: inline-flex; align-items: flex-end; gap: 0.292em; color: #f879ff; padding-top: 0.583em; font-size: 24px; }
.top-no1 img { width: 1em; height: auto; }
.top-no1__mirror { transform: scaleX(-1); }
.top-no1__cap {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 0.583em; line-height: 1; letter-spacing: 0.125em; white-space: nowrap;
}
.top-no1__num { font-family: var(--font-en); font-weight: var(--fw-bold); font-size: 1em; line-height: 1; }
.top-no1__num b { font-family: var(--font-en); font-weight: 600; font-size: 1.833em; line-height: 0.86; }

.school-info--top .si-stack { display: flex; flex-direction: column; gap: 64px; padding-block: 0 120px; }

.top-taisaku { display: flex; flex-direction: column; gap: 64px; }
.top-taisaku .si2-inner { padding-block: 0; }
.top-taisaku .top-taisaku__intro { gap: 32px; }
.top-taisaku .photo-gallery { padding-block: 0; }

.top-recruit .si-subhead--left { align-items: flex-start; }
.top-recruit .si-subhead--left .si-subhead__title { text-align: left; }
.top-recruit-subhead { margin-bottom: -32px; }
.top-recruit { padding-top: 80px; }

.top-news .si2-inner { gap: 32px; }
.top-news__title { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 44px; line-height: 1.4; color: #131936; text-align: center; width: 100%; }
.top-news__list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1280px; border-bottom: 1px solid #e2e8f0; }
.top-news__item { border-top: 1px solid #e2e8f0; }
.top-news__link { display: flex; align-items: center; gap: 24px; padding: 20px 0; text-decoration: none; transition: opacity 0.2s ease; }
.top-news__link:hover { opacity: 0.7; }
.top-news__meta { display: flex; align-items: center; gap: 10px; flex: none; }
.top-news__date { font-family: var(--font-en); font-weight: var(--fw-regular); font-size: 16px; line-height: 1.8; color: #131936; }
.top-news__new { background: #d81b60; color: #ffffff; font-family: var(--font-en); font-size: 12px; line-height: 1.4; padding: 3px 8px; }
.top-news__text { font-family: var(--font-jp); font-weight: var(--fw-bold); font-size: 20px; line-height: 1.6; color: #131936; min-width: 0; }
.top-news__more { margin-inline: auto; margin-top: 32px; }
.top-news.si2-band { padding-bottom: 0; }

@media (max-width: 1439px) {
  .top-hero__copies { padding-inline: 0; }
  .top-hero__copy-en { font-size: clamp(32px, 3.7vw, 53px); }
  .top-hero__copy-jp { font-size: clamp(18px, 1.85vw, 26px); }

  .top-band__inner { padding-inline: 48px; }
  .top-learn__cols { flex-wrap: nowrap; gap: 32px; }
  .top-learn__col { flex: 0 1 606px; min-width: 0; }
  .top-learn__photo { width: min(440px, 76%); height: auto; }

  .top-courses { flex-wrap: nowrap; gap: 24px; }
  .top-course-card { flex: 0 1 388px; min-width: 0; }
  .top-course-card__body { padding: 32px clamp(16px, 1.65vw, 24px); }
  .top-course-card__striptext { font-size: clamp(13px, 1.25vw, 18px); }
  .top-course-card__title { font-size: clamp(22px, 1.95vw, 28px); }
  .top-course-card__text { font-size: clamp(13px, 1.12vw, 16px); }
  .top-no1 { font-size: clamp(17px, 1.67vw, 24px); }
}

@media (max-width: 1023px) {
  .top-band__inner { padding-inline: 24px; }
  .top-band__title { font-size: 64px; }
  .top-band__title-sub { font-size: 26px; }
  .top-hero { height: 420px; }
  .top-hero__note { font-size: 20px; top: 32px; }
  .top-hero__copy { height: auto; padding: 18px 24px; gap: 8px; }
}

@media (max-width: 767px) {
  .top-hero { height: 340px; }
  .top-hero__note { left: 12px; top: 20px; padding: 12px 16px; font-size: 15px; }
  .top-hero__copies { flex-direction: column; align-items: stretch; gap: 0; }
  .top-hero__copy { height: auto; padding: 10px 16px; gap: 4px; align-items: flex-start; }
  .top-hero__copy-jp { font-size: 13px; }
  .top-hero__copy-en { font-size: 24px; }

  .top-band--learn { padding-top: 64px; }
  .top-band--teach { padding-block: 64px; }
  .top-band__inner { padding-inline: 12px; gap: 40px; }
  .top-band__head { gap: 16px; }
  .top-band__title { font-size: 44px; flex-direction: column; align-items: flex-start; gap: 8px; line-height: 1.1; }
  .top-band__title-sub { font-size: 18px; line-height: 1.4; }
  .top-band__lead { font-size: 15px; font-weight: var(--fw-regular); }

  .top-learn__cols { flex-direction: column; gap: 40px; padding-bottom: 48px; }
  .top-learn__col { width: 100%; height: auto; display: flex; flex-direction: column; gap: 20px; }
  .top-learn__photo { position: static; transform: none; align-self: flex-end; width: min(75%, 330px); height: auto; }
  .top-learn__body { position: static; width: 100%; gap: 16px; }
  .top-learn__en { margin-top: -8px; }
  .top-learn__title { font-size: 24px; }
  .top-learn__title br { display: none; }

  .top-courses { flex-direction: column; gap: 24px; }
  .top-course-card { width: 100%; flex: 0 0 auto; }

  .top-course-card__body { padding: 32px 24px; }
  .top-course-card__striptext { font-size: 18px; }
  .top-no1 { font-size: 24px; }
  .top-course-card__title { font-size: 24px; }
  .top-course-card__text { font-size: 14px; }

  .school-info--top .si-stack { gap: 40px; padding-bottom: 64px; }

  .top-taisaku { gap: 32px; }
  .top-recruit-subhead { margin-bottom: 16px; }
  .top-recruit .si-subhead--left { align-items: center; }
  .top-recruit .si-subhead--left .si-subhead__title { text-align: center; }

  .top-news__title { font-size: var(--fs-h2-sp, 24px); }
  .top-news__link { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 0; }
  .top-news__text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .top-learn__btn, .top-course-card, .top-news__link { transition: none; }
}
