:root {
  --ink: #14213d;
  --muted: #64708a;
  --paper: #fbfaf7;
  --white: #ffffff;
  --red: #c41f32;
  --red-dark: #941728;
  --blue: #1f4f7a;
  --green: #2f7d5b;
  --gold: #d8a848;
  --line: rgba(20, 33, 61, 0.14);
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14px 14px, rgba(196, 31, 50, 0.06) 1.5px, transparent 2px) 0 0 / 28px 28px,
    linear-gradient(135deg, rgba(31, 79, 122, 0.04), transparent 34%),
    var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand-logo {
  width: clamp(174px, 19vw, 270px);
  height: auto;
}

.contact-card span,
.hero-stats dd {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #33405a;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--red);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 26px rgba(196, 31, 50, 0.28);
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(20, 33, 61, 0.08);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #18243a;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 24, 43, 0.94) 0%, rgba(12, 24, 43, 0.78) 38%, rgba(12, 24, 43, 0.2) 74%),
    linear-gradient(0deg, rgba(12, 24, 43, 0.82) 0%, rgba(12, 24, 43, 0.02) 35%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 160px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 56px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-pad {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
  align-items: start;
  position: relative;
}

.intro::before,
.timeline-section::before,
.gallery-section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 100%, transparent 11px, rgba(31, 79, 122, 0.12) 12px, rgba(31, 79, 122, 0.12) 13px, transparent 14px) 0 0 / 34px 17px,
    radial-gradient(circle at 50% 0%, transparent 11px, rgba(196, 31, 50, 0.08) 12px, rgba(196, 31, 50, 0.08) 13px, transparent 14px) 17px 17px / 34px 17px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.intro::before {
  inset: 36px -80px auto auto;
  width: min(420px, 42vw);
  height: 160px;
}

.intro-text {
  color: #42506b;
  font-size: 18px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.programs {
  border-top: 1px solid var(--line);
  position: relative;
}

.programs::before {
  content: "";
  position: absolute;
  inset: 46px auto auto -60px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(30deg, transparent 43%, var(--red) 44%, var(--red) 46%, transparent 47%),
    linear-gradient(150deg, transparent 43%, var(--blue) 44%, var(--blue) 46%, transparent 47%);
  background-size: 42px 42px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.program-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.08);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--red);
  background: #fff1f2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.program-card p,
.feature-copy p,
.timeline p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 92px max(32px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(31, 79, 122, 0.92)),
    linear-gradient(45deg, var(--red), var(--green));
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.feature-list span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.timeline-section {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  inset: 18px auto auto 58%;
  width: 420px;
  height: 160px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.timeline article {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--red);
  font-weight: 900;
}

.gallery-section {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  inset: 38px 0 auto auto;
  width: 360px;
  height: 140px;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 26px rgba(31, 79, 122, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.gallery-toggle:hover {
  transform: translateY(-2px);
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.gallery-grid[hidden] {
  display: none !important;
}

.gallery-item,
.gallery-empty {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f4;
}

.gallery-item a {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
}

body.is-lightbox-open {
  overflow: hidden;
}

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.gallery-caption span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 18, 32, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox figure {
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0;
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-content: center;
  padding: 28px;
  text-align: center;
}

.gallery-empty span {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.contact-card div {
  padding: 22px;
  background: var(--white);
}

.contact-card strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(16px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #101827;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-self: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .site-nav a {
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 24, 43, 0.92), rgba(12, 24, 43, 0.58)),
      linear-gradient(0deg, rgba(12, 24, 43, 0.92), rgba(12, 24, 43, 0.08));
  }

  .intro,
  .feature-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .gallery-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand-logo {
    width: 176px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 36px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy,
  .intro-text {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .gallery-toggle {
    width: 100%;
  }

  .hero-stats,
  .program-grid,
  .timeline,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .section-pad,
  .contact-section {
    width: calc(100% - 28px);
    padding: 68px 0;
  }

  .feature-band {
    padding: 68px 14px;
  }

  .program-card,
  .timeline article {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
