:root {
  --navy: #05295f;
  --gold: #c3963c;
  --line: rgba(5, 41, 95, 0.14);
  --white: #ffffff;
  font-family:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman",
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--navy);
  background: #f8f8f7;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  width: 100vw;
  padding: 16px clamp(22px, 4.6vw, 86px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(76px, 7vw, 108px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 52px);
  align-items: center;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0 12px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
}

.menu-button::before {
  display: none;
  width: 22px;
  height: 14px;
  content: "";
  background: linear-gradient(
    to bottom,
    var(--navy) 0 2px,
    transparent 2px 6px,
    var(--navy) 6px 8px,
    transparent 8px 12px,
    var(--navy) 12px 14px
  );
}

main {
  min-height: 100svh;
  padding-top: 74px;
}

.visual-page {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: visible;
  background: #fbfbfa;
}

.visual-page img {
  width: 100%;
  max-width: 100vw;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: top center;
}

.home-visual img {
  object-position: center;
}

.content-page {
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(5, 41, 95, 0.05), transparent 34rem),
    #f7f6f2;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page p {
  margin: 0;
}

.page-hero {
  display: grid;
  min-height: calc(72svh - 74px);
  padding: clamp(64px, 8vw, 118px) clamp(22px, 7vw, 108px) clamp(52px, 7vw, 84px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 41, 95, 0.94), rgba(5, 41, 95, 0.72)),
    url("./assets/tpx-logo-reverse-crop.png") right clamp(20px, 8vw, 120px) center / min(40vw, 440px) auto no-repeat,
    var(--navy);
}

.page-hero--home {
  min-height: calc(82svh - 74px);
}

.page-hero__content {
  align-self: center;
  max-width: 980px;
}

.page-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 980px;
  margin-top: 18px;
  font-family:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman",
    serif;
  font-size: clamp(38px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-hero p:not(.page-kicker) {
  max-width: 780px;
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.85;
}

.content-section {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2,
.content-band h2 {
  font-family:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman",
    serif;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead-copy {
  display: grid;
  gap: 12px;
  max-width: 880px;
  color: rgba(5, 41, 95, 0.82);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  line-height: 2;
}

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

.content-grid article,
.service-list article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(5, 41, 95, 0.06);
}

.content-grid article {
  padding: clamp(20px, 2.2vw, 30px);
}

.content-grid span,
.service-list span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-grid h3,
.service-list h3 {
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  letter-spacing: 0;
}

.content-grid p,
.service-list p,
.content-band p {
  margin-top: 12px;
  color: rgba(5, 41, 95, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.service-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.service-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 3vw, 38px);
}

.service-list h3 {
  margin-top: 0;
}

.content-band {
  padding: clamp(56px, 7vw, 92px) clamp(22px, 7vw, 108px);
  color: #fff;
  background: var(--navy);
}

.content-band h2 {
  max-width: 900px;
  margin-top: 12px;
  color: #fff;
}

.content-band p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.8vw, 20px);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 26px;
  padding: 12px 18px;
  color: #fff;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  background: var(--gold);
  border-radius: 8px;
}

.company-list {
  display: grid;
  margin: 30px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  padding: 22px clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.company-list div:first-child {
  border-top: 0;
}

.company-list dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.5;
}

.academy-deck {
  background: #fff;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.academy-visual + .academy-visual {
  border-top: 1px solid var(--line);
}

.academy-page {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 41, 95, 0.05), transparent 34rem),
    #f7f6f2;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

.academy-page h1,
.academy-page h2,
.academy-page h3,
.academy-page p {
  margin: 0;
}

.academy-hero {
  display: grid;
  min-height: calc(76svh - 74px);
  padding: clamp(64px, 8vw, 120px) clamp(22px, 7vw, 108px) clamp(52px, 7vw, 88px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 41, 95, 0.94), rgba(5, 41, 95, 0.72)),
    url("./assets/tpx-logo-reverse-crop.png") right clamp(20px, 8vw, 120px) center / min(42vw, 460px) auto no-repeat,
    var(--navy);
}

.academy-hero__content {
  align-self: center;
  max-width: 920px;
}

.academy-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.academy-hero h1 {
  margin-top: 18px;
  font-family:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman",
    serif;
  font-size: clamp(42px, 8vw, 112px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

.academy-lead {
  max-width: 760px;
  margin-top: 28px;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.75;
}

.academy-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.academy-hero__meta span,
.academy-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.academy-section,
.academy-program,
.academy-outcomes,
.academy-band {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.academy-section__head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.academy-section__head h2,
.academy-band h2 {
  font-family:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, "Times New Roman",
    serif;
  font-size: clamp(30px, 4.8vw, 62px);
  line-height: 1.18;
  letter-spacing: 0;
}

.academy-copy,
.academy-band p,
.academy-goal p,
.academy-contact p {
  max-width: 850px;
  color: rgba(5, 41, 95, 0.82);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  line-height: 2;
}

.academy-copy p + p {
  margin-top: 12px;
}

.academy-feature-grid,
.academy-summary-grid,
.academy-outcome-grid,
.curriculum-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.academy-feature-grid article,
.academy-summary-grid article,
.academy-outcome-grid article,
.curriculum-steps article,
.chapter-list article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(5, 41, 95, 0.06);
}

.academy-feature-grid article,
.academy-summary-grid article,
.academy-outcome-grid article,
.curriculum-steps article {
  padding: clamp(20px, 2.2vw, 30px);
}

.academy-feature-grid span,
.academy-summary-grid span,
.academy-outcome-grid span,
.curriculum-steps span,
.chapter-list span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academy-feature-grid h3,
.academy-summary-grid h3,
.academy-outcome-grid h3,
.curriculum-steps h3,
.academy-goal h3,
.academy-contact h3 {
  margin-top: 12px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
  letter-spacing: 0;
}

.academy-feature-grid p,
.academy-summary-grid p,
.academy-outcome-grid p,
.curriculum-steps p,
.chapter-list p,
.chapter-list li {
  margin-top: 12px;
  color: rgba(5, 41, 95, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
}

.academy-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: clamp(22px, 7vw, 108px);
  padding-left: clamp(22px, 7vw, 108px);
  background: #fff;
  border-block: 1px solid var(--line);
}

.academy-band h2 {
  margin-top: 12px;
}

.academy-band p {
  margin-top: 20px;
}

.academy-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.academy-checks li {
  position: relative;
  padding: 16px 18px 16px 44px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  background: #f7f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.academy-checks li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--gold);
  content: "✓";
}

.academy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.academy-pills span {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.academy-program {
  width: 100%;
  max-width: none;
  padding-right: clamp(22px, 7vw, 108px);
  padding-left: clamp(22px, 7vw, 108px);
  background: var(--navy);
}

.academy-program .academy-section__head h2,
.academy-program .academy-program__lead,
.academy-program .academy-goal h3,
.academy-program .academy-goal p {
  color: #fff;
}

.academy-program .academy-summary-grid article,
.academy-goal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.academy-program .academy-summary-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.academy-goal {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 8px;
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.chapter-list article {
  padding: clamp(20px, 2.2vw, 30px);
}

.chapter-list h3 {
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.42;
}

.chapter-list ul {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chapter-list li {
  position: relative;
  margin-top: 0;
  padding-left: 18px;
}

.chapter-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "▸";
}

.academy-outcomes {
  padding-bottom: calc(clamp(58px, 8vw, 104px) + env(safe-area-inset-bottom));
}

.academy-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 64px);
  margin-top: 18px;
  padding: clamp(24px, 3vw, 40px);
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.academy-contact p {
  color: rgba(255, 255, 255, 0.82);
}

.academy-contact dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.academy-contact div {
  min-width: 0;
}

.academy-contact dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.academy-contact dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .menu-button {
    display: grid;
    place-content: center;
    position: fixed;
    top: 11px;
    right: 18px;
    z-index: 25;
    background: var(--navy);
    border-color: var(--navy);
  }

  .menu-button::before {
    display: block;
    background: linear-gradient(
      to bottom,
      #fff 0 2px,
      transparent 2px 6px,
      #fff 6px 8px,
      transparent 8px 12px,
      #fff 12px 14px
    );
  }

  .menu-button span {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(5, 41, 95, 0.12);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav a::after {
    right: auto;
    width: 58px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  main {
    padding-top: 66px;
  }

  .visual-page {
    width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .visual-page img {
    width: 100vw;
    max-width: 100vw;
  }

  .home-visual img {
    object-position: top center;
  }

  .academy-visual + .academy-visual {
    margin-top: 0;
  }

  .academy-page {
    overflow-x: hidden;
  }

  .page-hero {
    min-height: calc(76svh - 66px);
    padding: 54px 22px 42px;
    background:
      linear-gradient(145deg, rgba(5, 41, 95, 0.96), rgba(5, 41, 95, 0.82)),
      url("./assets/tpx-logo-reverse-crop.png") right -58px bottom 34px / 260px auto no-repeat,
      var(--navy);
  }

  .page-hero--home {
    min-height: calc(82svh - 66px);
  }

  .page-hero p:not(.page-kicker) {
    margin-top: 22px;
  }

  .content-section {
    width: min(100% - 32px, 680px);
    padding: 52px 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-band {
    padding: 52px 16px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .academy-hero {
    min-height: calc(82svh - 66px);
    padding: 54px 22px 42px;
    background:
      linear-gradient(145deg, rgba(5, 41, 95, 0.96), rgba(5, 41, 95, 0.82)),
      url("./assets/tpx-logo-reverse-crop.png") right -58px bottom 34px / 260px auto no-repeat,
      var(--navy);
  }

  .academy-lead {
    margin-top: 22px;
  }

  .academy-hero__meta span {
    min-height: 36px;
    font-size: 12px;
  }

  .academy-section,
  .academy-outcomes {
    width: min(100% - 32px, 680px);
    padding: 52px 0;
  }

  .academy-band,
  .academy-program {
    grid-template-columns: 1fr;
    padding: 52px 16px;
  }

  .academy-feature-grid,
  .academy-summary-grid,
  .academy-outcome-grid,
  .curriculum-steps,
  .chapter-list,
  .academy-contact {
    grid-template-columns: 1fr;
  }

  .academy-feature-grid,
  .academy-summary-grid,
  .academy-outcome-grid,
  .curriculum-steps {
    gap: 12px;
    margin-top: 24px;
  }

  .chapter-list {
    gap: 12px;
  }

  .academy-contact {
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .visual-page img {
    height: auto;
  }
}
