.home-page :is(.first-step, .beyond-classroom) {
  --step-ink: #343e3e;
  --step-blue: #0168b7;
  --step-rule: #cfc7bb;
  --step-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --step-gutter: clamp(20px, 4vw, 44px);
  --step-gap: clamp(18px, 3vw, 34px);
  color: var(--step-ink);
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 1.8;
}
.home-page .first-step { background: #f3eae1; }
.home-page .beyond-classroom {
  background: #fcfbf8;
  scroll-margin-top: var(--site-header-height, 48px);
}
.home-page .next-step-wrap {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: clamp(42px, 5.6vw, 76px) var(--step-gutter);
}
.home-page .next-step-heading { margin: 0 0 var(--step-gap); }
.home-page .next-step-heading h2, .home-page .beyond-item h3 {
  margin: 0;
  font-family: var(--step-serif);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: anywhere;
}
.home-page .next-step-heading h2 { font-size: clamp(27px, 3.15vw, 39px); }
.home-page .first-step-lead { margin: 10px 0 0; }
.home-page .first-step-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1152 / 300;
  object-position: 36% center;
}
.home-page .first-step-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 8px clamp(15px, 3vw, 36px);
  margin: 0 0 9px;
}
.home-page .first-step-facts > div + div { padding-inline-start: clamp(14px, 2vw, 24px); border-inline-start: 1px solid var(--step-rule); }
.home-page .first-step-facts dt { font-size: 13px; line-height: 1.5; }
.home-page .first-step-facts dd {
  margin: 3px 0 0;
  font: 400 clamp(24px, 2.4vw, 30px)/1.2 Georgia, var(--step-serif);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.home-page .first-step-facts :is(small, dd span) { font: 13px/1.4 system-ui, sans-serif; }
.home-page .first-step-facts small { margin-inline-end: .32em; }
.home-page .first-step-note, .home-page .beyond-study-terms p { margin: 0; font-size: 14px; line-height: 1.65; }
.home-page .first-step-actions { display: grid; justify-items: start; }
.home-page :is(.first-step-cta, .next-step-link) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
}
.home-page .first-step-cta {
  padding: 9px 15px;
  background: var(--step-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 3px;
}
.home-page .first-step-cta:hover, .home-page .first-step-cta:active { background: #004f8e; color: #fff; }
.home-page .next-step-link { color: #085e9c; }
.home-page .next-step-link:hover, .home-page .next-step-link:active { color: #01385e; background-color: #0168b70c; }
.home-page .next-step-arrow {
  position: relative;
  width: 14px;
  border-block-start: 1px solid currentColor;
  flex: 0 0 auto;
}
.home-page .next-step-arrow::after {
  position: absolute;
  content: "";
  inline-size: 5px;
  block-size: 5px;
  inset: -3px 0 auto auto;
  border-block-start: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  transform: rotate(45deg);
}
.home-page :is(.first-step, .beyond-classroom) a:focus-visible {
  outline: 2px solid #005797;
  outline-offset: 3px;
}
.home-page .first-step:focus { outline: none; }
.home-page .first-step:focus-visible #first-step-title {
  outline: 2px solid #005797;
  outline-offset: 5px;
  width: fit-content;
}
.home-page .beyond-classroom .next-step-heading { border-bottom: 1px solid var(--step-rule); padding-block-end: 15px; }
.home-page .beyond-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--step-gap); }
.home-page .beyond-item { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.home-page .beyond-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.home-page .beyond-photo--celi { object-position: center 43%; }
.home-page .beyond-item-heading { margin: 18px 0 0; width: 100%; }
.home-page .beyond-item h3 { font-size: clamp(23px, 2.35vw, 29px); }
.home-page .beyond-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  background: #fff;
  border-block: 1px solid #e5dfd5;
  padding: 5px 10px;
  min-height: 59px;
  margin-block-start: 11px;
}
.home-page .beyond-credential { margin: 0; font-size: 13px; }
.home-page .beyond-mark { display: block; width: 104px; max-width: 100%; height: auto; }
.home-page .beyond-mark--cvcl { width: 132px; }
.home-page .beyond-copy { margin: 13px 0 10px; }
.home-page .beyond-copy p { margin: 0; }
.home-page .beyond-copy p + p { margin-top: 3px; }
.home-page .beyond-study-terms { border-block-start: 1px solid var(--step-rule); padding-block: 7px 9px; width: 100%; }
.home-page .beyond-study-terms strong { display: block; font-weight: 500; }
.home-page .beyond-cta { margin-top: auto; }


.home-page .first-step { background: #f1ebe3; }
.home-page .first-step-layout {
  display: grid;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.home-page :is(.first-step-photo, .beyond-photo) {
  aspect-ratio: auto;
  object-fit: contain;
}
.home-page .first-step-details {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  margin: 0;
  padding: 0;
  border: 0;
}
.home-page .first-step-lead { margin: 0; }
.home-page .first-step-facts {
  padding-block-start: 13px;
  border-block-start: 1px solid var(--step-rule);
}
.home-page .first-step-facts dd { font-size: clamp(24px, 2.2vw, 28px); }
.home-page .first-step-actions { gap: 2px; }
.home-page .beyond-classroom { background: #fff; }
.home-page .beyond-grid { grid-template-columns: minmax(0, 1fr); }
.home-page .beyond-item--celi {
  border-block-start: 1px solid var(--step-rule);
  padding-block-start: 24px;
}
.home-page .beyond-photo--celi { width: min(86%, 365px); }
.home-page .beyond-identity {
  justify-content: flex-start;
  column-gap: 16px;
  padding: 0;
  border: 0;
  min-height: 44px;
  margin-block-start: 7px;
}
.home-page .beyond-mark { width: 112px; }
.home-page .beyond-mark--cvcl { width: 142px; }
.home-page .beyond-cta { margin-top: 3px; }
.home-page .first-step-title-ending { white-space: nowrap; }

@media (min-width: 768px) {
  .home-page .beyond-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
  }
  .home-page .beyond-item--celi {
    padding-block-start: 0;
    padding-inline-start: clamp(12px, 2vw, 28px);
    border: 0;
    border-inline-start: 1px solid var(--step-rule);
  }
}
@media (min-width: 900px) {
  .home-page .first-step-layout { grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); }
}

@media (min-width: 360px) {
  .home-page .first-step-phrase { white-space: nowrap; }
}


.home-page .first-step-details,
.home-page .first-step-lead { font-weight: 400; }
.home-page .first-step-actions { margin-block-start: 7px; }
.home-page .beyond-photo--celi { width: 100%; }

@media (min-width: 768px) {
  .home-page .beyond-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    row-gap: 0;
  }
  .home-page .beyond-item {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    justify-items: start;
    align-items: start;
  }
  .home-page .beyond-item--celi { border: 0; padding: 0; }
  .home-page .beyond-photo { align-self: end; }
  .home-page .beyond-cta { grid-row: 5; }
}
@media (min-width: 960px) {
  .home-page .first-step-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .home-page .first-step-photo { align-self: center; }
  .home-page .first-step-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }
  .home-page .first-step-actions { margin-block-start: 0; }
}

/* CTA reference: completed taiken.html and taiken-trial.css. */
.home-page .first-step .first-step-cta {
  box-sizing: border-box;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 30px;
  background: #0168b7;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.home-page .first-step .first-step-cta:hover { background: #005a9e; }
.home-page .first-step .first-step-cta:focus-visible {
  outline: 3px solid #102f52;
  outline-offset: 4px;
}
.home-page :is(.first-step, .beyond-classroom) a.next-step-link {
  color: #005c9f;
  text-decoration: none;
  text-underline-offset: 4px;
}
.home-page :is(.first-step, .beyond-classroom) a.next-step-link:hover {
  text-decoration: underline;
}
.home-page :is(.first-step, .beyond-classroom) a.next-step-link:focus-visible {
  outline: 3px solid #102f52;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  .home-page .first-step .first-step-cta {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .home-page .first-step-actions { margin-block-start: 12px; }
}
@media (max-width: 359px) {
  .home-page .first-step .first-step-cta { min-height: 44px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .home-page .first-step-layout { grid-template-columns: minmax(0, 1fr); }
  .home-page .first-step-details { display: grid; }
}
@media (min-width: 1100px) {
  .home-page .first-step-layout {
    grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr);
  }
}


/* Finish the story's ivory tone at the entrance to the trial section. */
.home-page .first-step {
  background: linear-gradient(to bottom, #f5efe5, #f1ebe3 146px);
}
.home-page .first-step .next-step-wrap {
  padding-block-start: clamp(40px, 4.8vw, 65px);
}
.home-page .first-step .next-step-heading { margin-block-end: clamp(16px, 2.6vw, 30px); }
.home-page .beyond-classroom .next-step-wrap {
  padding-block-start: clamp(39px, 4.8vw, 65px);
}
.home-page .beyond-classroom .next-step-heading { margin-block-end: clamp(19px, 2.6vw, 29px); }
.home-page .beyond-item-heading { margin-block-start: 16px; }

@media (width < 1000px) {
  .home-page .first-step {
    background: linear-gradient(to bottom, #faf8f3, #f1ebe3 110px);
  }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .home-page .school-intro:not(:focus-within) #school-intro-title { opacity: var(--entry-heading, 1); }
  .home-page .school-intro:not(:focus-within) .school-intro__figure { opacity: var(--entry-photo, 1); }
}

.home-page .first-step { background: #f1ebe3; }

.home-page .school-intro {
  background: linear-gradient(#f5efe5, #f8f3eb 140px, #f8f3eb calc(100% - 98px), #f1ebe3);
  color: #343e3e;
}
.home-page .school-intro__wrap {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: clamp(42px, 5.6vw, 72px) clamp(20px, 4vw, 44px);
}
.home-page .school-intro h2 {
  margin: 0 0 clamp(21px, 3.1vw, 38px);
  color: inherit;
  font: 500 clamp(26px, 3.05vw, 38px)/1.4 "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: .02em;
  line-break: strict;
}
.home-page .school-intro:focus-visible {
  outline: 3px solid #102f52;
  outline-offset: -6px;
}
.home-page .school-intro__feature {
  display: grid;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.home-page .school-intro__lead {
  margin: 0;
  font: 500 clamp(17px, 1.9vw, 23px)/1.85 "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-break: strict;
}
.home-page .school-intro__figure { margin: 0; }
.home-page .school-intro__figure img { display: block; width: 100%; height: auto; }
.home-page .school-intro__history {
  margin: clamp(25px, 4vw, 44px) 0 0;
  max-width: 48rem;
  font-size: clamp(15px, 1.45vw, 17px);
  font-weight: 400;
  line-height: 1.9;
  line-break: strict;
}
.home-page .school-intro__history p { margin: 0; }
.home-page .school-intro__history p + p { margin-top: 10px; }
.home-page .school-intro__history p.school-intro__closing { margin-top: 20px; }
@media (width < 1000px) {
  .home-page .school-intro {
    background: linear-gradient(#faf8f3, #f8f3eb 110px, #f8f3eb calc(100% - 98px), #f1ebe3);
  }
}

.home-page .beyond-classroom .beyond-photo { aspect-ratio: 1000 / 665; object-fit: cover; }
.home-page .beyond-classroom .beyond-photo--celi { object-position: left center; }
@media (min-width: 920px) {
  .home-page .school-intro__feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

/* Prefer phrase boundaries. Overlong phrases still wrap inside their own box. */
.home-page :is(.school-intro, .beyond-classroom) :is(h2, h3, p, strong, .jp-link-label) {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.home-page :is(.school-intro, .beyond-classroom) .jp-phrase {
  display: inline-block;
  max-inline-size: 100%;
}
.home-page .beyond-classroom .jp-link-label { min-inline-size: 0; }
