:root {
  --ink: #071326;
  --ink-2: #0c1c36;
  --panel: rgba(14, 32, 59, .78);
  --line: rgba(231, 202, 135, .22);
  --gold: #e7ca87;
  --gold-light: #fff0bf;
  --text: #f7f8fb;
  --muted: #b8c3d4;
  --white: #fff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.85;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.text-link { display: inline-block; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-weight: 700; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(4, 13, 28, .72);
  backdrop-filter: blur(16px);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: .13em; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .86rem; }
.nav-links a { color: #dce3ee; transition: color .2s ease; }
.nav-links a:hover { color: var(--gold-light); }
.mobile-nav { display: none; position: relative; font-family: "Helvetica Neue", Arial, sans-serif; }
.mobile-nav summary { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); cursor: pointer; list-style: none; font-size: 0; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before { content: "☰"; font-size: 1.15rem; }
.mobile-nav[open] summary::before { content: "×"; font-size: 1.5rem; }
.mobile-nav-panel { position: absolute; top: 52px; right: 0; width: min(78vw, 280px); padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4,13,28,.98); box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.mobile-nav-panel a { display: block; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.07); color: #e7edf6; font-size: .92rem; }
.mobile-nav-panel a:last-child { border-bottom: 0; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  background: linear-gradient(90deg, rgba(3,12,27,.98) 0%, rgba(3,12,27,.88) 34%, rgba(3,12,27,.18) 72%), url("assets/mia-hero.png") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(transparent, var(--ink));
}
.hero-content { padding: 150px 0 90px; max-width: 650px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(3.4rem, 9vw, 7.2rem); font-weight: 500; line-height: 1; letter-spacing: .13em; }
.hero-lead { margin: 0 0 18px; color: var(--gold-light); font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.55; }
.hero-copy { max-width: 590px; margin: 0 0 34px; color: #d5ddea; font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #142039;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-light); }
.button.secondary { background: transparent; color: var(--gold-light); }
.button.secondary:hover { background: rgba(231,202,135,.12); }

section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.35; letter-spacing: .04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.03rem; }
.intro { position: relative; }
.intro::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,104,180,.18), transparent 68%);
  pointer-events: none;
}
.manifesto {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.manifesto-quote { margin: 0; color: var(--gold-light); font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.65; }
.manifesto-copy p { margin: 0 0 20px; color: #ced7e5; }

.structure { background: linear-gradient(180deg, #08162c 0%, #0b1c35 100%); border-block: 1px solid var(--line); }
.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.structure-card {
  min-height: 315px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.structure-card .num { color: var(--gold); font-family: Georgia, serif; font-size: 1.05rem; }
.structure-card h3 { margin: 22px 0 10px; color: var(--gold-light); font-size: 1.65rem; font-weight: 500; }
.structure-card .role { margin: 0 0 18px; color: var(--white); font-size: 1.05rem; }
.structure-card p:last-child { margin: 0; color: var(--muted); font-size: .94rem; }

.discover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.discover-card { padding: 28px 30px; border-left: 1px solid var(--gold); background: rgba(255,255,255,.025); }
.discover-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 500; }
.discover-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.comparison { background: #f3f0e8; color: #10213b; }
.comparison .eyebrow { color: #8a6c2f; }
.comparison .section-head p { color: #4c5a6d; }
.compare-table { overflow: hidden; border: 1px solid rgba(16,33,59,.14); border-radius: 22px; background: #fff; box-shadow: 0 22px 60px rgba(14,30,52,.08); }
.compare-row { display: grid; grid-template-columns: 180px 1fr 1fr; }
.compare-row > div { padding: 22px 24px; border-bottom: 1px solid rgba(16,33,59,.1); }
.compare-row:last-child > div { border-bottom: 0; }
.compare-row > div + div { border-left: 1px solid rgba(16,33,59,.1); }
.compare-row.head { background: #10213b; color: #fff; font-weight: 700; }
.compare-row.head .mia { color: var(--gold-light); }
.compare-label { font-weight: 700; }
.compare-row:not(.head) > div:not(.compare-label) { color: #536176; }
.compare-row:not(.head) .mia { color: #172b49 !important; font-weight: 600; }

.session { position: relative; background: linear-gradient(135deg, #0b1c35, #071326 70%); }
.session-box { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; padding: 54px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.03); }
.session-box h2 { margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.35; }
.session-box p { color: var(--muted); }
.session-flow { display: grid; gap: 14px; align-content: center; }
.flow-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.flow-item span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: Arial, sans-serif; }
.flow-item h3 { margin: 2px 0 3px; font-size: 1rem; }
.flow-item p { margin: 0; font-size: .88rem; line-height: 1.6; }

.profile { background: #09172c; }
.profile-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: center; }
.profile-emblem { aspect-ratio: 1; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(231,202,135,.14), transparent 65%); }
.profile-emblem::before, .profile-emblem::after { content: ""; position: absolute; border: 1px solid rgba(231,202,135,.3); border-radius: 50%; transform: rotate(-25deg); }
.profile-emblem::before { width: 82%; height: 34%; }
.profile-emblem::after { width: 60%; height: 24%; transform: rotate(28deg); }
.profile-emblem strong { z-index: 1; color: var(--gold-light); font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: .14em; }
.profile-copy h2 { margin: 0 0 4px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.profile-title { margin: 0 0 26px; color: var(--gold); }
.profile-copy p { color: var(--muted); }

.faq-list { display: grid; gap: 12px; max-width: 850px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 1rem; }
.faq-question span:last-child { color: var(--gold); font-family: Arial, sans-serif; transition: transform .2s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-answer p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

.closing { padding-top: 40px; text-align: center; }
.closing-inner { padding: 70px 22px; border-top: 1px solid var(--line); }
.closing h2 { margin: 0 auto 18px; max-width: 850px; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.45; }
.closing p { max-width: 680px; margin: 0 auto; color: var(--muted); }
footer { padding: 30px 0 42px; color: #8190a7; font-family: Arial, sans-serif; font-size: .78rem; text-align: center; }

.subhero { padding: 170px 0 90px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(58,117,190,.18), transparent 40%), linear-gradient(145deg, #071326, #0b1d38); }
.subhero h1 { max-width: 880px; margin: 0 0 22px; font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 500; line-height: 1.25; letter-spacing: .03em; }
.subhero p:last-child { max-width: 740px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.prose-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 72px; }
.prose-grid h2 { margin: 0; color: var(--gold-light); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.5; }
.prose-body p { margin: 0 0 22px; color: #ced7e5; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.school-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.school-pillars .principle { min-height: 155px; }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fee-card { padding: 32px; border: 1px solid var(--line); background: var(--panel); }
.fee-card h3 { margin: 0 0 20px; font-size: 1.25rem; font-weight: 500; }
.fee-card .fee-price { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.4; font-variant-numeric: tabular-nums; }
.fee-price span { margin-left: .4em; font-family: inherit; font-size: 1rem; }
.fee-format { margin: 0 0 20px; font-size: 1rem; }
.fee-note { margin: 22px 0 0; color: var(--muted); font-size: 1rem; }
.school-fee { max-width: 720px; }
.principle { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.principle strong { display: block; margin-bottom: 8px; color: var(--gold-light); font-size: 1.15rem; font-weight: 500; }
.principle p { margin: 0; color: var(--muted); font-size: .92rem; }
.theory-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.theory-item { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.theory-item b { display: block; margin-bottom: 6px; color: var(--gold-light); font-size: 1.05rem; }
.theory-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.house-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.house-card { padding: 20px; border-top: 1px solid var(--gold); background: rgba(255,255,255,.025); }
.house-card span { color: var(--gold); font-family: Arial, sans-serif; font-size: .78rem; }
.house-card h3 { margin: 8px 0 4px; font-size: 1rem; font-weight: 500; }
.house-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.session-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.session-menu article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.session-menu h3 { margin: 0 0 8px; color: var(--gold-light); font-weight: 500; }
.session-menu p { margin: 0; color: var(--muted); }
.pathways { background: linear-gradient(145deg, #0b1c35, #071326); }
.pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pathway-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pathway-card { display: flex; flex-direction: column; min-height: 280px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035); transition: transform .2s ease, border-color .2s ease; }
.pathway-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.pathway-card span { color: var(--gold); font: 700 .72rem/1.4 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.pathway-card h3 { margin: 24px 0 10px; color: var(--gold-light); font-size: 1.35rem; font-weight: 500; line-height: 1.45; }
.pathway-card p { margin: 0 0 24px; color: var(--muted); font-size: .93rem; }
.pathway-card b { margin-top: auto; color: var(--gold-light); font: 700 .85rem/1.5 Arial, sans-serif; }
.contact-panel { padding: 46px; border: 1px solid var(--line); border-radius: 24px; text-align: center; background: linear-gradient(145deg, rgba(231,202,135,.09), rgba(255,255,255,.02)); }
.contact-panel h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }
.contact-panel > p { max-width: 680px; margin: 0 auto 26px; color: var(--muted); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button.pending { opacity: .62; cursor: default; }
.note { margin-top: 16px !important; color: #8f9db0 !important; font-size: .82rem; }
.profile-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.profile-fact { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-fact b { color: var(--gold); font-weight: 500; }
.profile-fact span { color: var(--muted); }
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.site-footer-links a:hover { color: var(--gold); }
.student-profile { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.student-portrait { margin: 0; }
.student-portrait img { display: block; width: 100%; height: auto; border-radius: 180px 180px 4px 4px; border: 1px solid var(--line); }
.student-profile h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: .12em; margin: 0 0 22px; }
.student-coming { color: var(--muted); text-align: center; margin: 36px 0 0; }
.policy-wrap { max-width: 840px; }
.policy-date { margin: 0 0 22px; color: var(--muted); font-size: .88rem; text-align: right; }
.policy-intro { margin-bottom: 48px; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.policy-intro p { margin: 0; }
.policy-section { padding: 34px 0; border-top: 1px solid var(--line); }
.policy-section h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 500; }
.policy-section p { margin: 0; color: var(--muted); }
.policy-section ul { margin: 16px 0 0; padding-left: 1.35em; color: var(--muted); }
.policy-section li + li { margin-top: 8px; }
.policy-operator { margin: 0; }
.policy-operator > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.policy-operator dt { color: var(--gold); }
.policy-operator dd { margin: 0; color: var(--muted); }
.policy-contact { margin-top: 34px; padding: 40px; border: 1px solid var(--line); text-align: center; }
.policy-contact .eyebrow { margin-bottom: 10px; }
.policy-contact p { margin-bottom: 24px; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .brand { font-size: 1.05rem; }
  .hero { min-height: 850px; background-position: 61% center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,12,27,.55), rgba(3,12,27,.92) 63%, #071326); }
  .hero-content { align-self: end; padding: 110px 0 100px; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5.5rem); }
  section { padding: 82px 0; }
  .manifesto, .session-box, .profile-grid { grid-template-columns: 1fr; gap: 38px; }
  .prose-grid { grid-template-columns: 1fr; gap: 28px; }
  .principles, .house-grid, .school-pillars, .fee-grid { grid-template-columns: 1fr; }
  .fee-card { padding: 28px 22px; }
  .theory-list, .session-menu, .pathway-grid, .pathway-grid.two { grid-template-columns: 1fr; }
  .pathway-card { min-height: 230px; }
  .subhero { padding: 130px 0 72px; }
  .contact-panel { padding: 34px 20px; }
  .profile-fact { grid-template-columns: 1fr; gap: 4px; }
  .student-profile { grid-template-columns: 1fr; gap: 36px; }
  .student-portrait { width: min(340px, 100%); margin: 0 auto; }
  .policy-intro, .policy-contact { padding: 26px 20px; }
  .policy-operator > div { grid-template-columns: 1fr; gap: 5px; }
  .structure-grid { grid-template-columns: 1fr; }
  .structure-card { min-height: auto; }
  .discover-grid { grid-template-columns: 1fr; }
  .compare-table { border-radius: 14px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > div { padding: 16px 14px; }
  .compare-row .compare-label { grid-column: 1 / -1; border-bottom: 1px solid rgba(16,33,59,.1); background: #ebe7dd; }
  .compare-row.head > div:first-child { display: none; }
  .compare-row.head > div { border-bottom: 0; }
  .session-box { padding: 30px 24px; }
  .profile-emblem { width: min(310px, 86vw); margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Session details and MIHO portrait */
.fee-description { margin: 0 0 24px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.profile-portrait { margin: 0; min-width: 0; }
.profile-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1145 / 1374; border: 1px solid var(--line); border-radius: 160px 160px 8px 8px; }
.profile-portrait figcaption { margin-top: 12px; color: var(--muted); font-size: .875rem; text-align: center; }
@media (max-width: 800px) { .profile-portrait { width: min(380px, 100%); margin: 0 auto; } }
