@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --paper: #fff;
  --paper-band: #f3f3f3;
  --paper-soft: #f7f7f7;
  --button: #293cff;
  --black: #000;
  --white: #fff;
  --text: #141414;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 48px 0; }

.chapter {
  padding: 72px 0 40px;
}
.chapter + .chapter { padding-top: 80px; }
.chapter-program,
.chapter-join { background: var(--paper-band); }
.chapter .section { padding: 28px 0; }
.chapter .section:first-of-type { padding-top: 0; }
.chapter-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
}
.lead { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.school-logo { height: 40px; }
.header-login {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #cfcfcf;
  padding: 5px 14px;
  border-radius: 999px;
}
.header-login:hover { background: var(--paper-soft); }
html.is-member .header-login { background: var(--paper-soft); }

.hero {
  min-height: 0;
  padding: 64px 0 72px;
  color: var(--text);
  background: var(--paper);
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.hero-symbol {
  width: 96px;
  height: auto;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.35;
  font-weight: 700;
}
.hero-program {
  margin: 12px 0 0;
  color: var(--button);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--button);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.hero-cta { margin-top: 4px; }

.quote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--button);
  background: var(--paper-soft);
  font-size: 17px;
  font-weight: 500;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.phase { position: relative; }
.phase:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 4em;
  right: -14px;
  height: 1px;
  background: var(--line);
}
.phase-num {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--muted);
}
.phase h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.phase p { margin: 0; color: var(--muted); font-size: 14px; }

.talent {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.talent h3 { margin: 0 0 8px; font-size: 17px; }
.talent p { margin: 0; color: var(--muted); }

.schedule-course h3 { margin: 0 0 16px; font-size: 18px; }
.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule-list li {
  display: grid;
  grid-template-columns: 6.5em 8.5em 1fr;
  gap: 6px 18px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-list strong { font-size: 15px; }
.schedule-list span { color: var(--muted); font-size: 12px; }
.schedule-list .schedule-title { color: var(--text); font-size: 14px; }

.news { display: grid; gap: 0; }
.news a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.news a:first-child { border-top: 1px solid var(--line); }
.news time { color: var(--muted); font-weight: 700; font-size: 13px; }

.persons {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(2, minmax(0, 280px));
}
.person { background: transparent; }
.person img,
.person-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  background: #ececec;
  filter: grayscale(1);
}
.person-fallback {
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 700;
  color: var(--muted);
  filter: none;
}
.person div { padding: 14px 0 0; }
.person .role {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.person h3 { margin: 0 0 6px; font-size: 20px; }
.person p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.lecturers {
  display: grid;
  gap: 16px 28px;
  grid-template-columns: 1fr 1fr;
}
.lecturer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.lecturer img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  background: #ececec;
  filter: grayscale(1);
}
.lecturer h3 { margin: 0 0 4px; font-size: 15px; }
.lecturer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.names { margin: 14px 0 0; color: var(--muted); text-align: right; }

.video {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sponsor-label { margin: 24px 0 10px; font-size: 14px; font-weight: 700; }
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.logos a {
  display: grid;
  place-items: center;
  min-width: 128px;
  height: 64px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.logos img { max-height: 40px; max-width: 128px; object-fit: contain; }

.cta-band {
  text-align: center;
  padding: 64px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.cta-band p { color: var(--muted); }

.partnerships { display: grid; gap: 0; }
.partnerships article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.partnerships article:first-child { border-top: 1px solid var(--line); }
.partnerships h3 { margin: 0 0 6px; font-size: 16px; }
.partnerships p { margin: 0; color: var(--muted); }

.contact address { font-style: normal; }
.contact a { color: var(--text); text-decoration: underline; }

.site-footer {
  padding: 24px 0 36px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; }
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 24px;
  font-size: 13px;
}
.sub-nav a { color: var(--muted); }
.sub-page h1 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); }
.course-card,
.price-box {
  margin: 0 0 24px;
  padding: 20px;
  background: var(--paper-soft);
}
.course-summary { font-size: 14px; }
.legacy-body { overflow-x: auto; }
.legacy-body table { width: 100%; }
.legal-page .inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.legal-page h1 { margin: 0 0 20px; }
.legal-page img { max-width: 100%; height: auto; }
.legal-page pre { white-space: pre-wrap; font-family: inherit; }
.ft-icon { width: 22px; height: 22px; vertical-align: middle; }

@media (min-width: 1600px) {
  :root { --max: 1200px; }
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 24px; }
  .section { padding: 40px 0; }
  .chapter { padding: 64px 0 32px; }
  .chapter + .chapter { padding-top: 72px; }
}
@media (max-width: 900px) {
  .phases { grid-template-columns: 1fr; gap: 24px; }
  .phase:not(:last-child)::after { display: none; }
  .persons { grid-template-columns: 1fr 1fr; }
  .news a { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chapter { padding: 56px 0 28px; }
  .chapter + .chapter { padding-top: 64px; }
  .persons,
  .lecturers { grid-template-columns: 1fr; }
  .schedule-list li { grid-template-columns: 1fr; gap: 4px; }
}

.hero.hero-flyer {
  position: relative;
  min-height: 520px;
  padding: 0;
  color: #fff;
  background: #020814;
  overflow: hidden;
}
.hero-flyer .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% center;
}
.hero-flyer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0.2), rgba(2, 8, 20, 0.08) 40%, rgba(2, 8, 20, 0.62));
}
.hero-flyer .badge,
.hero-flyer .hero-copy { position: relative; z-index: 1; }
.hero-flyer .badge {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: 112px;
  height: 112px;
  margin: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #3ec0ff 0%, #5b6bff 42%, #c84bff 100%);
  line-height: 1.15;
  text-align: center;
}
.hero-flyer .badge span { font-size: 16px; font-weight: 700; }
.hero-flyer .badge strong { font-size: 30px; font-weight: 900; }
.hero-flyer .hero-copy {
  padding: 72px 24px 56px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-flyer .catch {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.hero-flyer h1 {
  margin: 8px 0 0;
  font-family: Montserrat, "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.hero-flyer .wordmark-en {
  margin: 4px 0 0;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 500;
}
.hero-flyer .program {
  margin: 16px 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}
.hero-flyer .hero-cta { margin-top: 22px; }
.hero-flyer .btn { background: #fff; color: #141414; }

.flyer-open { padding: 36px 0 8px; }
.flyer-open > .wrap > p { margin: 0; }
.kickoff {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
}
.kickoff-date,
.kickoff-time { margin: 0; font-weight: 700; }
.kickoff-date { display: flex; align-items: center; gap: 8px; line-height: 1; }
.year { font-size: 26px; }
.monthday { font-size: 52px; letter-spacing: -0.03em; }
.dow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f9d55;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.kickoff-time { text-align: left; font-size: 28px; line-height: 1.2; }
.kickoff-time span { display: block; font-size: 18px; }
.session {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.session-mode,
.capacity { margin: 0; font-weight: 700; }
.session h2 { margin: 8px 0 0; font-size: 20px; }
.teacher {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 0;
}
.affil { font-size: 12px; line-height: 1.4; }

.flyer-schedule {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: start;
}
.flyer-schedule table { width: 100%; border-collapse: collapse; font-size: 14px; }
.flyer-schedule th,
.flyer-schedule td { padding: 7px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 500; }
.flyer-schedule th { white-space: nowrap; }
.flyer-schedule .who { text-align: right; white-space: nowrap; }
.faces { position: relative; height: 300px; }
.face {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}
.face-hirahara { top: 0; left: 24px; }
.face-hiruta { top: 92px; right: 0; }
.face-takaya { top: 176px; left: 4px; }

#contact .contact {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: center;
}
#contact .contact h2 { grid-column: 1 / -1; }
.qr { width: 92px; height: 92px; }

@media (min-width: 1600px) {
  .hero.hero-flyer { padding: 0; }
}
@media (max-width: 720px) {
  .hero.hero-flyer { min-height: 0; }
  .hero-flyer .hero-copy { padding: 140px 18px 40px; }
  .hero-flyer .badge { width: 92px; height: 92px; }
  .hero-flyer .badge strong { font-size: 24px; }
  .kickoff,
  .session,
  .flyer-schedule,
  #contact .contact { display: block; }
  .monthday { font-size: 40px; }
  .kickoff-time { margin-top: 8px; text-align: left; }
  .faces {
    height: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }
  .face { position: static; width: 92px; height: 92px; }
  .qr-link { display: inline-block; margin-top: 12px; }
}
