:root {
  --ink: #0e2142;
  --ink-soft: #40516a;
  --blue: #2468e8;
  --blue-deep: #123c7c;
  --sky: #eaf3ff;
  --gold: #c99834;
  --gold-soft: #fff3d8;
  --paper: #ffffff;
  --mist: #f5f8fc;
  --line: #dbe5f2;
  --green: #2f7f68;
  --coral: #c76752;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(14, 33, 66, 0.12);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

main {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

img {
  max-width: 100%;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(36, 104, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 104, 232, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0, transparent 720px);
}

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

p {
  margin: 0;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(3.15rem, 6.4vw, 5.2rem);
  font-weight: 950;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.45rem);
  font-weight: 900;
}

h3 {
  font-size: 1.06rem;
  font-weight: 850;
}

.nowrap {
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(201, 152, 52, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 60, 124, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 850;
}

.nav-links a {
  padding: 8px 0;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.header-cta {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(14, 33, 66, 0.2);
}

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

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 8px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 43%, rgba(255, 255, 255, 0.16) 78%),
    url("assets/visuals/terakoya-stage-hero.png") center right / cover no-repeat,
    var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 74% 58%, rgba(36, 104, 232, 0.16), transparent 27%),
    radial-gradient(circle at 58% 42%, rgba(201, 152, 52, 0.13), transparent 28%);
  opacity: 0.92;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: clamp(24px, 8vw, 132px);
  bottom: 70px;
  z-index: 1;
  width: min(560px, 44vw);
  height: min(560px, 44vw);
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 38%, rgba(255, 243, 216, 0.34) 46%, rgba(36, 104, 232, 0.08) 64%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.hero-teacher-gallery {
  position: absolute;
  right: clamp(22px, 5vw, 92px);
  bottom: 104px;
  z-index: 2;
  width: min(610px, 46vw);
  height: min(610px, 48vw);
  pointer-events: none;
}

.hero-card {
  position: absolute;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow:
    0 28px 64px rgba(14, 33, 66, 0.24),
    0 0 0 1px rgba(201, 152, 52, 0.16);
}

.hero-card-main {
  right: 8%;
  bottom: 0;
  z-index: 4;
  width: 47%;
}

.hero-card-a {
  right: 49%;
  bottom: 8%;
  z-index: 3;
  width: 32%;
  transform: rotate(-7deg);
}

.hero-card-b {
  top: 0;
  right: 31%;
  z-index: 2;
  width: 29%;
  transform: rotate(3deg);
}

.hero-card-c {
  top: 10%;
  right: 0;
  z-index: 1;
  width: 31%;
  transform: rotate(8deg);
}

.hero-veils {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 38%, rgba(255, 255, 255, 0.42) 61%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 76%, #fff 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: clamp(72px, 9vw, 120px) 0 150px;
}

.eyebrow,
.section-label {
  width: fit-content;
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 243, 216, 0.94);
  border: 1px solid rgba(201, 152, 52, 0.5);
  border-radius: 999px;
}

.section-label.light {
  color: var(--gold-soft);
}

.hero-kicker {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 950;
  word-break: keep-all;
}

.hero-copy {
  max-width: 620px;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  font-weight: 850;
}

.hero-note {
  max-width: 640px;
  margin-top: 14px;
  font-size: 1rem;
}

.hero-concept {
  max-width: 660px;
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 152, 52, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(14, 33, 66, 0.08);
  backdrop-filter: blur(10px);
}

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

.hero-concept strong {
  color: var(--blue-deep);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 950;
  line-height: 1.35;
}

.hero-concept span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.75;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 18px 34px rgba(36, 104, 232, 0.25);
}

.button-secondary {
  color: var(--ink);
  background: var(--gold-soft);
  border: 1px solid rgba(201, 152, 52, 0.45);
}

.button-ghost {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 60, 124, 0.18);
}

.hero-metrics {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics div {
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 229, 242, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(14, 33, 66, 0.09);
}

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

.hero-metrics strong {
  color: var(--blue-deep);
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero-metrics span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 1500px) {
  .hero > .section-inner {
    width: min(1780px, calc(100% - 120px));
  }

  .hero-content {
    max-width: none;
  }

  .hero-teacher-gallery {
    right: clamp(48px, 5vw, 120px);
    width: min(660px, 42vw);
    height: min(660px, 43vw);
  }
}

@media (max-width: 1360px) and (min-width: 981px) {
  .hero-content {
    max-width: 600px;
    padding-top: 84px;
    padding-bottom: 132px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.35rem);
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero-concept {
    max-width: 480px;
  }

  .hero-teacher-gallery {
    right: 18px;
    width: min(540px, 42vw);
    height: min(540px, 43vw);
  }
}

.academy-band {
  padding: 28px 0 58px;
  background: #fff;
}

.academy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.academy-flow article {
  position: relative;
  min-height: 168px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(14, 33, 66, 0.06);
}

.academy-flow article::after {
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 2;
  width: 19px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.academy-flow article:last-child::after {
  display: none;
}

.academy-flow span,
.daily-steps span,
.roadmap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  background: var(--gold-soft);
  border-radius: 999px;
}

.academy-flow strong {
  display: block;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.academy-flow p {
  margin-top: 10px;
  font-size: 0.93rem;
}

.akari-section {
  position: relative;
  padding: clamp(82px, 10vw, 136px) 0;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 78% 20%, rgba(232, 183, 82, 0.25), transparent 28%),
    radial-gradient(circle at 28% 78%, rgba(36, 104, 232, 0.18), transparent 30%),
    linear-gradient(135deg, #050b18 0%, #0b1b35 52%, #16253a 100%);
}

.akari-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 243, 216, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 243, 216, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 76%, transparent);
  pointer-events: none;
}

.akari-section::after {
  position: absolute;
  top: 13%;
  left: 5%;
  width: 240px;
  height: 240px;
  content: "";
  background: radial-gradient(circle, rgba(255, 217, 138, 0.28), transparent 68%);
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.akari-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.akari-copy h2 {
  color: #fff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.akari-copy p {
  color: rgba(248, 251, 255, 0.84);
  font-weight: 750;
}

.akari-copy p + p {
  margin-top: 14px;
}

.akari-copy blockquote {
  margin-top: 26px;
  padding: 22px 24px;
  color: #fff;
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  font-weight: 950;
  line-height: 1.65;
  background: rgba(255, 243, 216, 0.12);
  border: 1px solid rgba(255, 217, 138, 0.32);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.akari-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.akari-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.akari-points span::before {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(232, 183, 82, 0.74);
}

.akari-visual {
  position: relative;
  margin: 0;
}

.akari-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #0b1d36;
  border: 1px solid rgba(255, 217, 138, 0.42);
  border-radius: var(--radius);
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.42),
    0 0 0 8px rgba(255, 217, 138, 0.06),
    0 0 60px rgba(232, 183, 82, 0.16);
}

.akari-frame::before,
.akari-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.akari-frame::before {
  background:
    radial-gradient(circle at 64% 56%, rgba(255, 201, 103, 0.28), transparent 34%),
    radial-gradient(circle at 12% 16%, rgba(60, 124, 232, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.02), rgba(5, 11, 24, 0.14));
  mix-blend-mode: screen;
}

.akari-frame::after {
  background:
    linear-gradient(90deg, rgba(5, 11, 24, 0.28), transparent 22%, transparent 78%, rgba(5, 11, 24, 0.18)),
    linear-gradient(180deg, transparent 72%, rgba(5, 11, 24, 0.28));
  background-size: auto;
}

.akari-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03) brightness(0.98);
  transform: scale(1.01);
}

.akari-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 243, 216, 0.52);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.future-section {
  padding: clamp(80px, 10vw, 132px) 0;
  background:
    linear-gradient(135deg, rgba(255, 243, 216, 0.68), rgba(255, 255, 255, 0.98) 38%, rgba(234, 243, 255, 0.9)),
    #fff;
}

.future-intro {
  max-width: 880px;
}

.future-intro h2 {
  max-width: 760px;
}

.future-intro p + p {
  margin-top: 12px;
}

.future-equation {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  margin: 18px 0 8px;
  color: var(--blue-deep);
  font-weight: 950;
  background: #fff;
  border: 1px solid rgba(201, 152, 52, 0.38);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(14, 33, 66, 0.06);
}

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

.future-card {
  position: relative;
  min-height: 420px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(219, 229, 242, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(14, 33, 66, 0.09);
}

.future-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.future-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-soft);
  border-radius: 999px;
}

.future-card h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 950;
}

.future-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-deep);
  font-size: 1rem;
  line-height: 1.45;
}

.future-card p {
  margin-top: 16px;
  font-size: 0.94rem;
}

.future-card p + p {
  margin-top: 12px;
}

.future-closing {
  margin-top: 26px;
  padding: 24px 28px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  font-weight: 950;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 152, 52, 0.34);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(14, 33, 66, 0.08);
}

.gods-teachers-section {
  padding: clamp(78px, 9vw, 122px) 0;
  background:
    linear-gradient(180deg, #fff 0%, rgba(245, 248, 252, 0.98) 100%),
    var(--mist);
}

.board-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(18px, 5vw, 58px);
  align-items: end;
  margin-bottom: 28px;
}

.board-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.board-heading h2 {
  max-width: 660px;
}

.board-heading p {
  align-self: center;
}

.gods-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  min-height: 610px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.36)),
    url("assets/visuals/seven-teachers-board.png") center / cover no-repeat;
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gods-board::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 90%, rgba(14, 33, 66, 0.12), transparent 28%),
    radial-gradient(circle at 86% 46%, rgba(36, 104, 232, 0.13), transparent 32%);
  pointer-events: none;
}

.gods-board article {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 292px;
  align-content: end;
  overflow: hidden;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 152, 52, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(14, 33, 66, 0.12);
  backdrop-filter: blur(8px);
}

.gods-board article:nth-child(n + 5) {
  transform: translateX(50%);
}

.gods-board img {
  position: absolute;
  inset: 10px 10px 54px;
  width: calc(100% - 20px);
  height: calc(100% - 64px);
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  filter: saturate(1.02) contrast(1.01);
}

.gods-board span,
.gods-board strong {
  position: relative;
  z-index: 2;
  display: block;
  text-align: center;
}

.gods-board span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gods-board strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
}

.guide-section {
  padding: clamp(78px, 10vw, 132px) 0;
  overflow: hidden;
}

.guide-credo,
.guide-daily,
.guide-family {
  background: var(--mist);
}

.guide-family {
  background:
    linear-gradient(90deg, rgba(245, 248, 252, 0.98) 0%, rgba(245, 248, 252, 0.92) 48%, rgba(245, 248, 252, 0.72) 100%),
    var(--mist);
}

.guide-learn,
.guide-teacher,
.guide-academy {
  background: #fff;
}

.guide-limit {
  background:
    linear-gradient(135deg, rgba(255, 243, 216, 0.72), rgba(234, 243, 255, 0.86)),
    #fff;
}

.guide-human {
  background:
    linear-gradient(135deg, rgba(255, 243, 216, 0.92), rgba(255, 255, 255, 0.96) 42%, rgba(234, 243, 255, 0.9)),
    #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.guide-layout.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.guide-copy p + p {
  margin-top: 14px;
}

.guide-copy h2 + p {
  margin-top: 18px;
}

.human-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.human-copy {
  max-width: 720px;
}

.human-copy p + p {
  margin-top: 14px;
}

.human-copy .human-contrast {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.human-copy .human-contrast article {
  min-height: 168px;
  padding: 22px;
}

.human-copy blockquote {
  color: var(--blue-deep);
  font-size: clamp(1.28rem, 2.6vw, 2rem);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 42px rgba(14, 33, 66, 0.08);
}

.human-visual img {
  width: min(360px, 84%);
}

.human-contrast {
  display: grid;
  gap: 16px;
}

.human-contrast article {
  position: relative;
  min-height: 196px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(14, 33, 66, 0.08);
}

.human-contrast article::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(36, 104, 232, 0.12);
  font-size: 4.8rem;
  font-weight: 950;
  line-height: 1;
  content: "01";
}

.human-contrast article:nth-child(2)::after {
  color: rgba(201, 152, 52, 0.2);
  content: "02";
}

.human-contrast span {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sky);
  border-radius: 999px;
}

.human-contrast strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1.2;
}

.human-contrast p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.guide-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  place-items: end center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(234, 243, 255, 0.82)),
    url("assets/visuals/terakoya-stage-hero.png") center / cover no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guide-visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  background-image:
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 48%),
    linear-gradient(120deg, rgba(201, 152, 52, 0.18) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 104, 232, 0.08) 0 1px, transparent 1px);
  background-size: auto, 54px 54px, 18px 18px;
  border-radius: 6px;
}

.guide-visual img {
  position: relative;
  z-index: 2;
  width: min(390px, 88%);
  max-height: 410px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 22px 36px rgba(14, 33, 66, 0.18);
  filter: saturate(1.03) contrast(1.01);
}

.guide-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 242, 0.92);
  border-radius: 999px;
}

.family-visual-stack {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(234, 243, 255, 0.74) 58%, rgba(255, 243, 216, 0.78) 100%),
    url("assets/visuals/terakoya-stage-hero.png") center / cover no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.family-photo {
  display: none;
}

.family-visual-stack::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.92), transparent 33%),
    radial-gradient(circle at 24% 20%, rgba(201, 152, 52, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38));
  pointer-events: none;
}

.family-guide {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  width: min(270px, 50%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 22px 38px rgba(14, 33, 66, 0.18);
  transform: translateX(-50%);
}

.family-card {
  position: absolute;
  z-index: 3;
  width: min(178px, 36%);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 229, 242, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(14, 33, 66, 0.1);
  backdrop-filter: blur(8px);
}

.family-card::before {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-bottom: 7px;
  color: var(--gold);
  content: "●";
  place-items: center;
  background: var(--gold-soft);
  border-radius: 999px;
}

.family-card strong,
.family-card span {
  display: block;
  line-height: 1.35;
}

.family-card strong {
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 950;
}

.family-card span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.family-card-parent {
  top: 30px;
  left: 26px;
}

.family-card-senior {
  top: 110px;
  right: 24px;
}

.family-card-business {
  bottom: 70px;
  left: 34px;
}

.family-visual-stack > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 242, 0.92);
  border-radius: 999px;
}

.credo-grid,
.subject-cloud,
.business-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.credo-grid span,
.subject-cloud span,
.business-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--blue-deep);
  font-weight: 880;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.credo-grid span::before,
.subject-cloud span::before,
.business-grid span::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  content: "";
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(201, 152, 52, 0.15);
}

blockquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.65;
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.daily-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.daily-steps article,
.roadmap article {
  position: relative;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(14, 33, 66, 0.07);
}

.daily-steps p,
.roadmap p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.phone-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.78fr);
  gap: 12px;
  min-height: 540px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(234, 243, 255, 0.86)),
    url("assets/visuals/terakoya-stage-hero.png") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.phone-scene::before {
  position: absolute;
  inset: 18px;
  content: "";
  background:
    radial-gradient(circle at 30% 46%, rgba(255, 255, 255, 0.84), transparent 34%),
    radial-gradient(circle at 76% 70%, rgba(36, 104, 232, 0.16), transparent 32%);
  pointer-events: none;
}

.phone-scene > img {
  position: relative;
  z-index: 2;
  grid-column: 2;
  justify-self: end;
  align-self: end;
  width: min(250px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 18px 28px rgba(14, 33, 66, 0.14);
}

.phone-mock {
  position: relative;
  z-index: 3;
  grid-column: 1;
  width: min(350px, 100%);
  padding: 18px;
  color: var(--ink);
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(14, 33, 66, 0.2);
  backdrop-filter: blur(12px);
}

.phone-top {
  width: 92px;
  height: 6px;
  margin: 0 auto 18px;
  background: #ccd8e7;
  border-radius: 999px;
}

.phone-card,
.st-row span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.phone-card {
  padding: 16px;
  margin-bottom: 12px;
}

.phone-card.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: 0;
}

.phone-card small,
.phone-card strong,
.phone-card span {
  display: block;
}

.phone-card small {
  color: inherit;
  opacity: 0.78;
  font-weight: 950;
}

.phone-card strong,
.phone-card span {
  margin-top: 8px;
  line-height: 1.55;
}

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

.st-row span {
  display: grid;
  min-height: 56px;
  place-items: center;
  color: var(--blue-deep);
  font-weight: 950;
}

.challenge-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.challenge-line div {
  position: relative;
  min-height: 142px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(14, 33, 66, 0.07);
}

.challenge-line div::after {
  position: absolute;
  top: 34px;
  right: -13px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.challenge-line div:last-child::after {
  display: none;
}

.challenge-line strong,
.challenge-line span {
  display: block;
}

.challenge-line strong {
  color: var(--blue-deep);
  font-size: 1.15rem;
  font-weight: 950;
}

.challenge-line span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.capacity-panel {
  position: relative;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(219, 229, 242, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.capacity-panel img {
  display: block;
  width: min(320px, 80%);
  height: 300px;
  margin: -12px auto 12px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(219, 229, 242, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 18px 28px rgba(14, 33, 66, 0.12);
}

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

.capacity-numbers article {
  min-height: 112px;
  padding: 18px;
  text-align: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.capacity-numbers strong,
.capacity-numbers span {
  display: block;
}

.capacity-numbers strong {
  color: var(--blue-deep);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.capacity-numbers span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

.capacity-panel p {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.final-cta {
  display: grid;
  min-height: calc(100svh - 72px);
  padding: 86px 0;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 60, 124, 0.98), rgba(14, 33, 66, 0.98)),
    var(--ink);
}

.final-inner {
  max-width: 900px;
}

.final-cta .section-label {
  margin-right: auto;
  margin-left: auto;
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  word-break: keep-all;
}

.final-cta p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .hero-actions {
  justify-content: center;
}

.button-light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.button-outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-link-light {
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

@media (prefers-reduced-motion: no-preference) {
  .guide-visual img,
  .phone-scene > img,
  .capacity-panel img {
    animation: teacher-float 6.2s ease-in-out infinite;
  }

  .guide-layout.reverse .guide-visual img {
    animation-delay: 0.8s;
  }
}

@keyframes teacher-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(0.5deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    right: 4vw;
    bottom: 110px;
    width: min(520px, 60vw);
    height: min(520px, 60vw);
  }

  .hero-teacher-gallery {
    right: -48px;
    bottom: 104px;
    width: min(660px, 74vw);
    height: min(610px, 66vw);
    opacity: 0.6;
  }

  .hero-veils {
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 58%, rgba(255, 255, 255, 0.35) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #fff 100%);
  }

  .hero-content {
    padding: 68px 0 182px;
  }

  .academy-flow,
  .akari-layout,
  .board-heading,
  .future-grid,
  .guide-layout,
  .guide-layout.reverse,
  .human-layout {
    grid-template-columns: 1fr;
  }

  .academy-flow article::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 30px;
    width: 2px;
    height: 16px;
  }

  .akari-visual {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .guide-visual {
    width: min(560px, 100%);
    min-height: 360px;
    margin: 0 auto;
  }

  .guide-layout.reverse .guide-visual {
    order: 2;
  }

  .guide-layout.reverse .family-visual-stack {
    order: 2;
  }

  .guide-layout.reverse .guide-copy {
    order: 1;
  }

  .gods-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: auto;
  }

  .gods-board article:nth-child(n + 5) {
    transform: none;
  }

  .daily-steps,
  .challenge-line,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-line div::after {
    display: none;
  }
}

@media (max-width: 680px) {
  html,
  body,
  main {
    width: 100svw;
    max-width: 100svw;
  }

  body {
    position: relative;
  }

  .site-header {
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: 10px 16px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 112px);
  }

  .brand strong {
    overflow: hidden;
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    display: none;
  }

  .section-inner {
    width: min(calc(100vw - 28px), 360px);
    max-width: min(calc(100vw - 28px), 360px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    white-space: normal;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .nowrap {
    white-space: normal;
  }

  .mobile-only {
    display: block;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    padding-bottom: 18px;
    overflow: hidden;
  }

  .hero-teacher-gallery {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    width: min(calc(100vw - 28px), 360px);
    max-width: min(calc(100vw - 28px), 360px);
    padding: 48px 0 24px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: normal;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: clamp(1.12rem, 6.2vw, 1.48rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero-copy,
  .hero-note,
  .hero-concept {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero-copy {
    font-size: clamp(1.02rem, 5.2vw, 1.22rem);
  }

  .hero-note {
    font-size: 0.95rem;
  }

  .hero-concept {
    margin-top: 14px;
    padding: 14px 16px;
  }

  .hero-concept strong {
    font-size: 1rem;
  }

  .hero-concept span {
    font-size: 0.86rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
  }

  .hero-metrics {
    position: relative;
    z-index: 5;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(calc(100vw - 28px), 360px);
    max-width: min(calc(100vw - 28px), 360px);
    margin: 0 auto;
  }

  .hero-metrics div {
    min-height: auto;
    padding: 12px 14px;
  }

  .hero-metrics strong {
    font-size: 1.06rem;
  }

  .hero-metrics span {
    margin-top: 3px;
    font-size: 0.82rem;
  }

  .academy-band {
    padding-top: 20px;
  }

  .academy-flow article {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .akari-section {
    padding: 64px 0;
  }

  .akari-layout {
    width: min(calc(100vw - 28px), 360px);
    max-width: min(calc(100vw - 28px), 360px);
    gap: 28px;
  }

  .akari-copy h2,
  .akari-copy p,
  .akari-copy blockquote {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .akari-copy h2 {
    font-size: clamp(1.86rem, 10.5vw, 2.35rem);
  }

  .akari-copy blockquote {
    padding: 18px;
    font-size: 1.02rem;
  }

  .akari-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .akari-frame {
    aspect-ratio: 4 / 3;
  }

  .akari-frame img {
    min-height: 0;
  }

  .akari-visual figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-height: 40px;
    font-size: 0.74rem;
    line-height: 40px;
    text-align: center;
  }

  .future-section {
    padding: 66px 0;
  }

  .future-grid {
    gap: 12px;
    margin-top: 24px;
  }

  .future-card {
    min-height: auto;
    padding: 22px;
  }

  .future-card h3 {
    font-size: 1.9rem;
  }

  .future-closing {
    padding: 20px;
    font-size: 1.04rem;
  }

  .board-heading {
    gap: 14px;
  }

  .gods-teachers-section {
    padding: 64px 0;
  }

  .gods-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    background-position: center;
  }

  .gods-board article {
    min-height: 204px;
    padding: 12px;
  }

  .gods-board img {
    inset: 8px 8px 52px;
    width: calc(100% - 16px);
    height: calc(100% - 60px);
  }

  .guide-section {
    padding: 70px 0;
  }

  .guide-visual {
    min-height: 310px;
  }

  .family-visual-stack {
    min-height: 330px;
  }

  .family-guide {
    width: min(230px, 58%);
    max-height: 270px;
  }

  .family-card {
    width: min(142px, 42%);
    padding: 9px 10px;
  }

  .family-card strong {
    font-size: 0.88rem;
  }

  .family-card span {
    font-size: 0.68rem;
  }

  .family-card-parent {
    top: 18px;
    left: 14px;
  }

  .family-card-senior {
    top: 76px;
    right: 12px;
  }

  .family-card-business {
    bottom: 58px;
    left: 14px;
  }

  .guide-visual img {
    max-height: 300px;
  }

  .guide-visual figcaption {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: 0.76rem;
  }

  .daily-steps,
  .challenge-line,
  .roadmap,
  .academy-flow,
  .human-contrast,
  .capacity-numbers,
  .st-row {
    grid-template-columns: 1fr;
  }

  .human-copy .human-contrast {
    grid-template-columns: 1fr;
  }

  .phone-scene {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
    gap: 10px;
  }

  .phone-scene > img {
    grid-column: 1;
    justify-self: center;
    width: min(220px, 64%);
    max-height: 260px;
    order: 2;
  }

  .phone-mock {
    grid-column: 1;
    width: min(340px, 100%);
    order: 1;
  }

  .capacity-panel {
    padding: 20px;
  }

  .capacity-panel img {
    max-height: 250px;
  }

  .final-cta {
    min-height: auto;
  }
}
