:root {
  color-scheme: light;
  --ink: #15171d;
  --muted: #5a6170;
  --soft: #f4f6f8;
  --line: #dfe4ea;
  --panel: #ffffff;
  --brand: #f15a24;
  --brand-dark: #c83e13;
  --blue: #183f7a;
  --teal: #0d8676;
  --shadow: 0 18px 45px rgba(21, 23, 29, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(241, 90, 36, 0.35);
  outline-offset: 3px;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 228, 234, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2b303a;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: #fff1ec;
  color: var(--brand-dark);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--brand);
  color: #ffffff;
}

.site-nav .nav-cta:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(650px, calc(100svh - 128px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 58px 0;
  color: var(--ink);
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.08) saturate(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.93) 37%, rgba(255, 255, 255, 0.58) 66%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.76) 100%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.18em;
  max-width: 780px;
  margin-top: 26px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.42;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-lead span {
  display: inline-block;
  white-space: nowrap;
}

.hero-text {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(241, 90, 36, 0.24);
}

.button.primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--brand-dark);
  border-color: rgba(241, 90, 36, 0.35);
}

.button.secondary.light {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary.light:hover {
  background: #ffffff;
  color: var(--brand-dark);
}

.facts-section {
  padding: 26px 0 0;
  background: #ffffff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hero-facts div {
  padding: 24px;
  background: #ffffff;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.hero-facts span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 96px;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: start;
  gap: 46px;
}

.two-column.reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.two-column > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 46px;
  align-items: start;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.about-video {
  grid-column: 1 / -1;
  max-width: 1120px;
  width: 100%;
  margin: 12px auto 0;
}

.goal-box,
.program-card,
.info-card,
.entry-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(21, 23, 29, 0.06);
}

.goal-box {
  align-self: center;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(21, 23, 29, 0.045);
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #2f3540;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 3px #d7f2ee;
}

.history-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 30%);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}

.history-strip article {
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px rgba(21, 23, 29, 0.08);
}

.history-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.history-strip span,
.history-strip small {
  display: block;
  padding: 0 16px;
}

.history-strip span {
  margin-top: 14px;
  font-weight: 900;
}

.history-strip small {
  padding-bottom: 16px;
  color: var(--muted);
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.program-card {
  padding: 32px;
}

.program-card.featured {
  border-color: rgba(241, 90, 36, 0.32);
}

.note {
  margin-top: 18px;
  color: var(--muted);
}

.video-card {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
}

.video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.timeline {
  display: grid;
  gap: 16px;
  counter-reset: schedule;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 20px 22px 20px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.timeline li::before {
  counter-increment: schedule;
  content: counter(schedule, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff1ec;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.timeline time {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.timeline strong {
  font-size: 18px;
}

.timeline span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e6f6f4;
  color: #086457;
  font-size: 12px;
  font-weight: 900;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.person-card div {
  padding: 18px;
}

.person-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.person-card h3 {
  font-size: 20px;
}

.person-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mentors-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mentors-grid .person-card img {
  aspect-ratio: 4 / 3;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-card {
  padding: 30px;
}

.info-card.wide {
  grid-column: 1 / -1;
}

.check-list.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price {
  margin: 14px 0 6px;
  color: var(--blue);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding-left: 34px;
  color: #2f3540;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.14em;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.steps a {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.deadline {
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 900;
}

.entry-section {
  background: #ffffff;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: 56px;
  align-items: start;
}

.entry-grid > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.entry-section h2 {
  max-width: 100%;
  white-space: normal;
}

.entry-form {
  min-width: 0;
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label:last-child {
  grid-column: 1 / -1;
}

.entry-form label {
  display: grid;
  gap: 8px;
  color: #2f3540;
  font-size: 14px;
  font-weight: 800;
}

.entry-form input,
.entry-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.entry-form input:user-invalid,
.entry-form select:user-invalid {
  border-color: var(--brand);
}

.form-button {
  width: 100%;
  margin-top: 22px;
  border: 0;
  cursor: pointer;
}

.form-button[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #e7f6ef;
  color: #146c43;
}

.form-status.error {
  background: #fff1ec;
  color: var(--brand-dark);
}

.people-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(185px, 21%);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}

.people-row article {
  min-height: 282px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  scroll-snap-align: start;
}

.people-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.people-row h3 {
  margin-top: 13px;
  font-size: 17px;
}

.people-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  padding: 56px 0 26px;
  background: var(--ink);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  gap: 40px;
}

.site-footer img {
  width: 160px;
  height: auto;
}

.site-footer p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.footer-tagline {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.2em;
}

.footer-tagline span {
  display: inline-block;
  white-space: nowrap;
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.site-footer a {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.copyright {
  grid-column: 1 / -1;
  max-width: none;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.mobile-entry {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1024px) {
  .two-column,
  .two-column.reverse,
  .about-layout,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mentors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 23, 29, 0.12);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline li {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .timeline time {
    white-space: normal;
  }

  .check-list.columns {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-entry {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: grid;
    min-height: 50px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(21, 23, 29, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.mobile-entry-visible .mobile-entry {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-entry:hover {
    color: #ffffff;
    background: var(--brand-dark);
  }

  .site-footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  html {
    scroll-padding-top: 112px;
  }

  .section {
    padding: 68px 0;
    scroll-margin-top: 112px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 50px;
  }

  .hero-bg {
    filter: brightness(1.02) saturate(1.06);
    object-position: 58% center;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 18% 43%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.32) 76%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.4) 58%, rgba(255, 255, 255, 0.16) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.5) 100%);
  }

  .hero h1,
  .hero-lead,
  .hero .eyebrow {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 18px rgba(255, 255, 255, 0.86);
  }

  .hero-text {
    display: none;
  }

  .hero-lead {
    max-width: 100%;
    font-size: clamp(21px, 5vw, 30px);
  }

  .hero-lead span {
    white-space: nowrap;
  }

  .hero-lead span:first-child {
    white-space: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    max-width: min(100%, 360px);
  }

  .hero-actions .button {
    width: 100%;
    padding-inline: 16px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 20px;
  }

  .history-strip,
  .people-row {
    grid-auto-columns: minmax(230px, 82%);
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .goal-box,
  .program-card,
  .info-card,
  .entry-form {
    padding: 22px;
  }

  .footer-tagline span {
    white-space: normal;
  }

  .timeline li {
    padding: 70px 18px 18px;
  }

  .timeline li::before {
    top: 18px;
    transform: none;
  }
}
