:root {
  --blue: #0057c8;
  --blue-dark: #00439d;
  --ink: #050505;
  --paper: #fffef9;
  --soft: #f2f4f7;
  --muted: #5f646d;
  --line: rgba(5, 5, 5, .16);
  --container: 1120px;
  --radius: 8px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.7;
}

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

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
}

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

.container {
  width: min(100% - 36px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: clamp(18px, 4vw, 38px);
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 254, 249, .94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand span:first-child {
  font-size: 1.6rem;
}

.brand span:last-child {
  font-size: .63rem;
  letter-spacing: .025em;
}

.language-switch {
  margin-left: auto;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: .86rem;
  font-weight: 900;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--blue);
}

.hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--paper);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.eyebrow,
.section-label,
.small-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
}

h1 {
  font-size: clamp(4rem, 12vw, 8.8rem);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.08;
}

.date {
  width: fit-content;
  margin: 14px 0 22px;
  border-bottom: clamp(5px, 1vw, 9px) solid var(--blue);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: .9;
}

.program-strip {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
}

.program-strip p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.1;
}

.program-strip time {
  font-weight: 900;
}

.session-note {
  display: inline-block;
  white-space: nowrap;
  font-family: inherit;
  font-size: .62em;
  font-weight: 700;
  line-height: inherit;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
  line-height: 1.2;
}

.button:hover {
  color: #fff;
  background: var(--ink);
}

.button-primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.button-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.poster-card {
  justify-self: center;
  width: min(100%, 410px);
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 14px 14px 0 var(--blue);
  transform: rotate(1.2deg);
}

.poster-card img {
  width: 100%;
  height: auto;
}

.blob,
.line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.blob {
  background: var(--blue);
}

.blob-a {
  top: -50px;
  right: -72px;
  width: min(34vw, 380px);
  height: min(34vw, 380px);
  border-radius: 38% 0 45% 52%;
}

.blob-b {
  left: -70px;
  bottom: 8%;
  width: min(26vw, 270px);
  height: min(42vw, 430px);
  border-radius: 48% 41% 52% 44%;
}

.blob-c {
  right: -54px;
  bottom: -62px;
  width: min(24vw, 260px);
  height: min(24vw, 260px);
  border-radius: 52% 0 0 40%;
}

.line {
  border: 7px solid var(--blue);
  background: transparent;
}

.line-a {
  top: -120px;
  left: 5vw;
  width: 260px;
  height: 560px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 55% 0 0;
  transform: rotate(12deg);
}

.line-b {
  right: -110px;
  bottom: 12%;
  width: 300px;
  height: 520px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 54%;
  transform: rotate(-8deg);
}

.notice {
  border-block: 4px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.notice-grid {
  display: grid;
  gap: 12px;
  padding-block: 18px;
}

.notice strong {
  width: fit-content;
  padding: 7px 12px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.notice span {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

.notice-support-link {
  width: fit-content;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.notice-support-link:hover,
.notice-support-link:focus-visible {
  color: #b9d7ff;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}

.about,
.support {
  background: var(--soft);
}

.program,
.access {
  background: var(--paper);
}

.two-column,
.access-grid,
.support-panel {
  display: grid;
  gap: 28px;
}

.text-stack {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.text-stack p,
.support-panel p,
.access p {
  margin-bottom: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.program-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.program-card,
.timeline,
.support-panel,
.address-card {
  border: 3px solid var(--ink);
  background: var(--paper);
}

.program-card {
  padding: clamp(22px, 4vw, 34px);
}

.program-card.blue {
  color: #fff;
  background: var(--blue);
}

.program-card .time {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .9;
}

.program-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.program-card.blue p:last-child {
  color: rgba(255, 255, 255, .86);
}

.timeline {
  display: grid;
  background: #fff;
}

.timeline section {
  padding: clamp(20px, 4vw, 30px);
}

.timeline section + section {
  border-top: 3px solid var(--ink);
}

.timeline h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.timeline ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--blue);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timeline span {
  color: var(--muted);
  font-weight: 700;
}

.timeline .jam {
  margin-block: 8px;
  padding: 12px;
  border: 3px solid var(--blue);
}

.timeline .jam span,
.timeline .jam time {
  color: var(--ink);
  font-weight: 900;
}

.program-admission {
  display: grid;
  gap: 10px;
  background: inherit;
}

.program-admission-headlines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.program-admission-headlines strong {
  padding: 0 0 4px;
  border-bottom: 4px solid var(--blue);
  color: var(--ink);
  background: transparent;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  line-height: 1;
}

.program-admission a {
  width: fit-content;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 900;
}

.program-admission p:last-child {
  margin: 0;
  font-weight: 800;
}

.support-panel {
  padding: clamp(24px, 5vw, 42px);
}

.price {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: .95;
}

.support-panel p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.access-grid h2 {
  margin-bottom: 18px;
}

.access p {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.address-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(22px, 4vw, 32px);
}

.address-card p:first-child {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
}

.access-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 38px);
  border-top: 4px solid var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
}

.site-footer .button-primary {
  color: #fff;
}

@media (min-width: 760px) {
  .language-switch {
    margin-left: 0;
    order: 3;
  }

  .site-nav {
    display: flex;
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  }

  .notice-grid {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
  }

  html[lang="en"] .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[lang="en"] .notice strong {
    max-width: 100%;
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  }

  .two-column,
  .access-grid,
  .support-panel {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: start;
  }

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

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

  .timeline section + section {
    border-top: 0;
    border-left: 3px solid var(--ink);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: center;
  }

  .brand span:first-child {
    font-size: 1.35rem;
  }

  .brand span:last-child {
    font-size: .55rem;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 4.6rem);
  }

  .date {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .program-strip p {
    display: grid;
    gap: 2px;
  }

  .poster-card {
    width: min(90vw, 350px);
    box-shadow: 10px 10px 0 var(--blue);
  }

  .blob-a {
    width: 180px;
    height: 180px;
  }

  .blob-b,
  .blob-c {
    width: 150px;
    height: 220px;
  }

  .line-a,
  .line-b {
    border-width: 5px;
  }

  .timeline li {
    grid-template-columns: 64px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
