:root {
    --black: #000000;
    --white: #FFFFFF;
    --blue: #2C40D3;
    --blue-light: #BFE2FE;
    --grey: #5A5A5A;
    --grey-light: #EBEBEB;
    --grey-border: #E0E0E0;
    --rose: #7E6D6D;
    --ocean: #253E4D;
    --ink: #262D3C;
    --midnight: #212337;
    --gold: #8B7535;
    --gold-circuit: #C08000;

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 48px;
    --text-5xl: 64px;

    --container: 1140px;
    --gap: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

body.bg-alt { background: var(--grey-light); }
body.bg-blue-light { background: var(--blue-light); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1 { font-size: var(--text-4xl); margin-bottom: 24px; }
h2 { font-size: var(--text-3xl); margin-bottom: 16px; }
h3 { font-size: var(--text-xl); margin-bottom: 8px; }
h4 { font-size: var(--text-lg); margin-bottom: 8px; }

p + p { margin-top: 1em; }

.container {
    max-width: none;
    margin: 0;
    padding: 0 120px;
}

/* ── Navigation ── */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--grey-border);
    transition: background 0.3s;
}

.site-nav.nav-transparent {
    background: transparent;
    border-bottom-color: transparent;
}

.site-nav.nav-transparent .nav-logo img { filter: brightness(0) invert(1); }
.site-nav.nav-transparent .nav-link { color: var(--white); }
.site-nav.nav-transparent .nav-link:hover { color: var(--blue-light); }
.site-nav.nav-transparent .hamburger span { background: var(--white); }

.nav-inner {
    max-width: none;
    margin: 0;
    padding: 0 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo img { height: 40px; width: auto; }
.nav-logo .logo-symbol { display: none; height: 32px; }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--black);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--blue); text-decoration: none; }

.nav-link.nav-cta {
    background: var(--blue);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-link.nav-cta:hover { background: #1a2eb8; color: var(--white); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 32px var(--gap);
}

.mobile-menu.active { display: flex; flex-direction: column; gap: 0; }

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: var(--text-lg);
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--grey-border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.7;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 var(--gap);
    max-width: 800px;
}

.hero-content h1 {
    font-size: var(--text-5xl);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: var(--text-xl);
    opacity: 0.9;
    margin-bottom: 8px;
    font-style: italic;
}

.hero-affiliation {
    font-size: var(--text-sm);
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover { background: #1a2eb8; color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.hero-solid {
    background: var(--white);
    height: calc(100dvh - 64px);
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 120px;
    display: flex;
    flex-direction: column;
}

.hero-solid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blue-light);
    transform: scale(0);
    transform-origin: center center;
    animation: heroExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes heroExpand {
    0%   { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-solid .hero-content {
    background: var(--white);
    color: var(--black);
    width: 100%;
    max-width: none;
    padding: 80px 72px;
    position: relative;
    z-index: 2;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: heroContentIn 0.8s ease 0.9s forwards;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes heroContentIn {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scrollIndicatorIn 0.6s ease 2s forwards;
}

.scroll-indicator span {
    font-size: var(--text-sm);
    color: var(--grey);
    letter-spacing: 0.05em;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--grey);
    border-bottom: 2px solid var(--grey);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollIndicatorIn {
    to { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

.hero-solid .hero-content h1 {
    font-size: var(--text-5xl);
    color: var(--black);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-solid .hero-tagline {
    color: var(--black);
    opacity: 1;
    font-style: normal;
    font-size: var(--text-base);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 0;
}

.hero-solid .hero-affiliation {
    color: var(--grey);
    opacity: 1;
    margin-bottom: 0;
}


.hero-solid .hero-ctas {
    justify-content: flex-start;
    margin-top: auto;
}

.hero-solid .btn-outline {
    color: var(--black);
    border-color: var(--grey-border);
}

.hero-solid .btn-outline:hover {
    background: var(--grey-light);
    border-color: var(--black);
    color: var(--black);
}

/* ── APS Showcase ── */

.aps-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.aps-embed {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--black);
}

.aps-embed-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--black);
    position: relative;
}

.aps-embed-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    text-align: center;
    pointer-events: none;
}

.aps-embed iframe,
.aps-embed-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.featured-courses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.featured-course h3 {
    font-size: var(--text-xl);
    margin: 16px 0 8px;
    line-height: 1.2;
}

.featured-course p {
    color: var(--grey);
    line-height: 1.6;
    font-size: var(--text-base);
}

.featured-course-body {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    height: 100%;
}

.featured-course-body h3 {
    margin-top: 0;
}

/* ── Sections ── */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--grey-light);
}

.section-dark {
    background: var(--midnight);
    color: var(--white);
}

.section-dark a { color: var(--blue-light); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header p {
    color: var(--grey);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.section-dark .section-header p { color: rgba(255, 255, 255, 0.7); }

.section-label {
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ── Program Cards ── */

.program-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    padding: 40px 32px;
    transition: box-shadow 0.2s;
}

.program-card:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }

.program-card h3,
.program-card h4 {
    font-size: var(--text-2xl);
    margin-bottom: 16px;
    line-height: 1.1;
}

.degree-group + .degree-group { margin-top: 48px; }

.degree-group-heading {
    font-size: var(--text-2xl);
    margin-bottom: 20px;
    line-height: 1.1;
}

.degree-group.v3 .program-card {
    border-top: 4px solid var(--blue);
}
.degree-group.v3 .program-fact strong {
    font-size: var(--text-4xl);
    line-height: 1.05;
    margin-bottom: 4px;
}
.degree-group.v3 .program-facts {
    flex-direction: column;
    gap: 16px;
}

.program-card .program-facts {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.program-fact {
    font-size: var(--text-sm);
    color: var(--grey);
}

.program-fact strong {
    display: block;
    font-size: var(--text-lg);
    color: var(--black);
}

.program-card p { color: var(--grey); line-height: 1.6; }

.program-card .btn {
    margin-top: 24px;
    padding: 10px 24px;
    font-size: var(--text-sm);
}

/* ── Faculty Grid ── */

.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.faculty-card { text-align: center; width: 220px; }

.faculty-card .portrait {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    background: var(--grey-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover .portrait {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.faculty-card h3 {
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.faculty-card h3 a { color: var(--black); }
.faculty-card h3 a:hover { color: var(--blue); text-decoration: none; }

.faculty-card .descriptor {
    font-size: var(--text-sm);
    color: var(--grey);
    line-height: 1.4;
}

.faculty-more {
    text-align: center;
    margin-top: 48px;
}

/* ── Orientation Rotator ── */

.orientation-display {
    text-align: center;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.orientation-compass {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.orientation-compass.attracted {
    transform: rotate(-22deg);
}

.orientation-compass.released {
    transform: rotate(0deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orientation-current {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.orientation-current span {
    display: inline-block;
    transform-origin: left center;
}

.orientation-current span.settling {
    animation: orientationIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.orientation-current span.leaving {
    animation: orientationOut 0.3s ease-in forwards;
}

.orientation-current .over-word {
    color: var(--black);
}

.orientation-current .under-word {
    font-weight: 400;
    opacity: 0.5;
}

@keyframes orientationIn {
    0%   { transform: rotate(-15deg) translateX(-8px); opacity: 0; }
    35%  { transform: rotate(3deg) translateX(2px);    opacity: 0.85; }
    55%  { transform: rotate(-1.5deg) translateX(-1px); opacity: 0.9; }
    75%  { transform: rotate(0.5deg) translateX(0);    opacity: 0.95; }
    100% { transform: rotate(0deg) translateX(0);      opacity: 1; }
}

@keyframes orientationOut {
    0%   { opacity: 1; transform: rotate(0deg); }
    100% { opacity: 0; transform: rotate(8deg) translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .orientation-current span.settling,
    .orientation-current span.leaving {
        animation: none;
    }
    .orientation-current span { opacity: 1; }
}

/* ── Principles Grid ── */

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.principle {
    padding: 20px;
    border: none;
    text-align: center;
}

.principle .over {
    font-size: var(--text-base);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.principle .under {
    font-size: var(--text-sm);
    opacity: 0.4;
}

/* ── Quotes ── */

.quote-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.quote-block blockquote {
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 16px;
}

.quote-block cite {
    font-size: var(--text-sm);
    color: var(--grey);
    font-style: normal;
}

/* ── Quote Carousel ── */

.quote-carousel {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-track {
    position: relative;
    min-height: 120px;
    overflow: hidden;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.quote-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-slide.exiting {
    opacity: 0;
    transform: translateX(-40px);
}

.quote-slide blockquote {
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
}

.quote-slide cite {
    display: block;
    margin-top: 16px;
    font-size: var(--text-sm);
    color: var(--grey);
    font-style: normal;
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.quote-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.quote-dot.active {
    background: var(--blue);
    transform: scale(1.3);
}

/* ── Student Life ── */

.student-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.student-highlight .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--grey-light);
    border-radius: 8px;
}

.stat .number {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.stat .label {
    font-size: var(--text-sm);
    color: var(--grey);
    margin-top: 4px;
}

/* ── CTA Band ── */

.cta-band {
    text-align: center;
    padding: 80px var(--gap);
    background: var(--blue);
    color: var(--white);
}

.cta-band h2 { margin-bottom: 16px; }

.cta-band p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: var(--text-lg);
}

.cta-band .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.cta-band .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* ── Faculty Detail ── */

.faculty-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.faculty-header .portrait-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--grey-light);
    flex-shrink: 0;
}

.faculty-header .info { flex: 1; min-width: 240px; }
.faculty-header .name-ja { color: var(--grey); margin-top: 4px; }
.faculty-header .email { margin-top: 8px; }

.bio {
    line-height: 1.8;
    max-width: 720px;
}
.bio p:first-child { margin-top: 0; }
.bio p:last-child { margin-bottom: 0; }
.bio a { color: var(--blue); text-decoration: underline; }
.bio a:hover { color: var(--black); }

.detail-section { margin-top: 48px; }

.detail-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--grey-border);
}

.course-list, .pub-list, .event-list { list-style: none; }

.course-list li, .pub-list li, .event-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-light);
}

.course-list li:last-child, .pub-list li:last-child, .event-list li:last-child { border-bottom: none; }

a.course-name, .event-name, .pub-name { font-weight: 600; color: var(--black); text-decoration: none; }
a.course-name, a.event-name, a.pub-name { cursor: pointer; }
a.course-name:hover, a.event-name:hover, a.pub-name:hover { color: var(--blue); }
.course-meta { font-size: var(--text-sm); color: var(--grey); }
.pub-venue { font-size: var(--text-sm); color: var(--grey); }
.event-meta { font-size: var(--text-sm); color: var(--grey); }

.back-link {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--grey);
    margin-top: 24px;
    margin-bottom: 32px;
}

.back-link:hover { color: var(--blue); }

/* ── Footer ── */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    padding: 4px 0;
    text-decoration: none;
}

.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.4); }
.footer-bottom a:hover { color: var(--white); }

/* ── Page top spacing (for fixed nav) ── */

.page-body { padding-top: 64px; padding-bottom: 80px; }

/* ── Responsive ── */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .nav-logo .logo-full { display: none; }
    .nav-logo .logo-symbol { display: block; }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 32px;
        --text-5xl: 40px;
        --text-3xl: 24px;
    }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .hero-solid { padding: 24px; }
    .hero-solid .hero-content { padding: 40px 32px; }
    .hero-solid .hero-content h1 { line-height: 1; }

    .section { padding: 56px 0; }

    .program-cards { grid-template-columns: 1fr; }

    .faculty-grid {
        gap: 24px;
    }

    .faculty-card { width: 140px; }

    .faculty-card .portrait { width: 120px; height: 120px; }


    .student-highlight { grid-template-columns: 1fr; }

    .featured-courses { grid-template-columns: 1fr; }

    .principles-grid { grid-template-columns: repeat(3, 1fr); }

    .faculty-header { gap: 24px; }
    .faculty-header .portrait-large { width: 140px; height: 140px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    :root {
        --text-5xl: 36px;
        --text-4xl: 28px;
        --text-3xl: 22px;
        --gap: 16px;
    }

    .container { padding: 0 16px; }
    .nav-inner { padding: 0 16px; }
    .hero-solid { padding: 16px; }
    .hero-solid .hero-content { padding: 32px 20px; }

    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { text-align: center; }


    .faculty-grid { gap: 16px; }
    .faculty-card { width: 130px; }
    .faculty-card .portrait { width: 100px; height: 100px; }

    .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .principle { padding: 14px; }
}

/* ── FAQ ── */

.faq-list {
    margin: 0 auto;
}

.faq-category {
    font-size: var(--text-2xl);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--grey-border);
}

.faq-category:first-child { margin-top: 0; }

.faq-item {
    border-bottom: 1px solid var(--grey-border);
}

.faq-question {
    display: block;
    padding: 20px 0;
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 20px;
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--grey);
    transition: transform 0.2s;
}

details[open] .faq-question::after {
    content: "\2212";
}

.faq-answer {
    padding: 0 0 20px;
    color: var(--grey);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 8px 0;
    padding-left: 24px;
}

.faq-answer li { margin-bottom: 4px; }

/* ── Courses Page ── */

.course-tier {
    margin-bottom: 56px;
}

.course-tier h2 {
    font-size: var(--text-2xl);
    margin-bottom: 8px;
}

.tier-description {
    color: var(--grey);
    margin-bottom: 24px;
    font-size: var(--text-base);
}

.course-subtier {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 32px 0 8px;
}

.course-subtier:first-of-type { margin-top: 0; }

.course-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    table-layout: fixed;
}

.course-table th:nth-child(1),
.course-table td:nth-child(1) { width: 38%; }

.course-table th:nth-child(2),
.course-table td:nth-child(2) { width: 24%; }

.course-table th:nth-child(3),
.course-table td:nth-child(3) { width: 10%; }

.course-table th:nth-child(4),
.course-table td:nth-child(4) { width: 18%; }

.course-table th:nth-child(5),
.course-table td:nth-child(5) { width: 10%; }

.course-table th,
.course-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--grey-border);
    vertical-align: top;
    font-size: 15px;
}

.course-table th {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey);
    background: var(--grey-light);
}

.course-table th:nth-child(3),
.course-table td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

.course-table th:nth-child(4),
.course-table td:nth-child(4) {
}

a.course-primary-name {
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
}

a.course-primary-name:hover { color: var(--blue); text-decoration: none; }

.course-table .course-code {
    font-size: var(--text-sm);
    color: var(--grey);
    font-weight: 400;
}

.schedule-detail {
    font-size: 13px;
    color: var(--grey);
}

.course-table a {
    font-weight: 500;
}

.instructor-name + .instructor-name::before {
    content: " · ";
}

.course-table .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.course-table .badge.core {
    background: var(--blue);
    color: var(--white);
}

.course-table .badge.elective {
    background: var(--blue-light);
    color: var(--black);
}

.course-table .badge.additional {
    background: var(--grey-light);
    color: var(--grey);
}

/* ── Course Modal ── */

.course-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.course-modal-overlay.visible { display: flex; }

.course-modal {
    background: var(--white);
    max-width: 640px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.course-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--grey);
    line-height: 1;
}

.course-modal-close:hover { color: var(--black); }

.course-modal h2 {
    font-size: var(--text-2xl);
    margin-bottom: 8px;
    padding-right: 32px;
    line-height: 1.2;
}

.course-modal .course-code {
    font-weight: 400;
    color: var(--grey);
    font-size: var(--text-lg);
}

.course-modal-url {
    font-size: var(--text-sm);
    display: inline-block;
    margin-bottom: 8px;
}

.course-modal-meta {
    font-size: var(--text-sm);
    color: var(--grey);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-border);
}

.course-modal-field { margin-bottom: 20px; }

.course-modal-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey);
    margin-bottom: 4px;
}

.course-modal-value { font-size: 15px; line-height: 1.6; }
.course-modal-value p { margin-bottom: 8px; }
.course-modal-value p:last-child { margin-bottom: 0; }
.course-modal-value a { font-weight: 500; }

@media (max-width: 700px) {
    .course-modal { padding: 24px; max-height: 90vh; }
    .course-modal h2 { font-size: var(--text-xl); }
}

.random-order-note {
    font-size: var(--text-sm);
    color: var(--grey);
    margin-top: 8px;
}

.random-order-note a { color: var(--grey); text-decoration: underline; }

.course-portal-note {
    text-align: center;
    padding: 32px 0;
    color: var(--grey);
    font-size: var(--text-sm);
    border-top: 1px solid var(--grey-border);
    margin-top: 32px;
}

@media (max-width: 700px) {
    .course-table thead {
        display: none;
    }

    .course-table,
    .course-table tbody,
    .course-table tr,
    .course-table td,
    .course-table th:nth-child(1),
    .course-table td:nth-child(1),
    .course-table th:nth-child(2),
    .course-table td:nth-child(2),
    .course-table th:nth-child(3),
    .course-table td:nth-child(3),
    .course-table th:nth-child(4),
    .course-table td:nth-child(4),
    .course-table th:nth-child(5),
    .course-table td:nth-child(5) {
        display: block;
        width: 100%;
    }

    .course-table tr {
        border: 1px solid var(--grey-border);
        padding: 14px;
        margin-bottom: 12px;
    }

    .course-table td,
    .course-table td:nth-child(3) {
        border: none;
        padding: 6px 0;
        font-size: var(--text-sm);
        text-align: left;
        white-space: normal;
    }

    .course-table td:first-child {
        font-size: 16px;
        padding-bottom: 10px;
    }

    .course-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--grey);
        margin-bottom: 2px;
    }

    .course-table td:first-child::before {
        display: none;
    }
}

/* ── Curriculum Page ── */

.curriculum-programs {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 800px;
    margin: 0 auto;
}

.curriculum-program {
    padding: 40px;
    background: var(--grey-light);
    border-radius: 8px;
}

.curriculum-program-header {
    margin-bottom: 24px;
}

.curriculum-program-header h2 {
    margin-bottom: 16px;
}

.curriculum-program h3 {
    margin-top: 32px;
    font-size: var(--text-lg);
}

.curriculum-program p {
    color: var(--grey);
    line-height: 1.7;
}

.milestone-timeline {
    margin-top: 16px;
    border-left: 3px solid var(--blue);
    padding-left: 24px;
}

.milestone {
    padding: 12px 0;
    position: relative;
}

.milestone::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--white);
}

.milestone-period {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--blue);
    margin-bottom: 4px;
}

.milestone-content p {
    font-size: var(--text-sm);
    margin: 0;
}

.philosophy-content {
    max-width: 760px;
    margin: 0 auto;
}

.philosophy-text {
    margin-bottom: 32px;
}

.philosophy-text p {
    color: var(--grey);
    line-height: 1.7;
}

.philosophy-text blockquote {
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
    border-left: 3px solid var(--blue);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--grey-light);
    border-radius: 0 8px 8px 0;
}

.orientations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.orientation-card {
    background: var(--grey-light);
    padding: 20px;
    border-radius: 8px;
    font-size: var(--text-sm);
    color: var(--grey-dark);
}

.orientation-card strong {
    display: block;
    font-size: var(--text-base);
    color: var(--black);
    margin-bottom: 2px;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tier-card {
    padding: 32px 24px;
    background: var(--grey-light);
    border-radius: 8px;
}

.tier-card h3 {
    margin-bottom: 12px;
}

.tier-card p {
    color: var(--grey);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ── Apply Page ── */

.apply-timeline {
    text-align: center;
    margin: 0 auto;
    max-width: 560px;
}

.apply-timeline .milestone-timeline {
    text-align: left;
    margin-top: 24px;
    display: inline-block;
}

.timeline-badge {
    display: inline-block;
    background: transparent;
    color: var(--black);
    padding: 8px 24px;
    border: 2px solid var(--black);
    border-radius: 4px;
    font-weight: 700;
    font-size: var(--text-lg);
    margin-bottom: 12px;
}

.apply-timeline p {
    color: var(--grey);
    font-size: var(--text-lg);
}

.process-steps {
    max-width: 640px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-border);
}

.process-step:last-child { border-bottom: none; }

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.step-content h3 {
    font-size: var(--text-base);
    margin-bottom: 4px;
    line-height: 1.3;
}

.step-content p {
    color: var(--grey);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}

.requirement-card {
    padding: 24px;
    background: var(--grey-light);
    border-radius: 8px;
}

.requirement-card h3 {
    margin-bottom: 8px;
    font-size: var(--text-base);
}

.requirement-card p {
    color: var(--grey);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 0;
}

.faculty-messages {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.faculty-message {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.message-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-body h3 {
    font-size: var(--text-base);
    margin-bottom: 2px;
    line-height: 1.2;
}

.message-body .descriptor {
    font-size: var(--text-sm);
    color: var(--grey);
    margin-bottom: 12px;
}

.message-body blockquote {
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ── Prose / Long-form content ── */

.prose {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

.prose p { color: var(--ink); }
.prose a { text-decoration: underline; }

.prose h3 {
    font-size: var(--text-lg);
    margin-top: 32px;
    margin-bottom: 8px;
    color: var(--black);
}

.prose .notice {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.prose .notice p {
    margin: 0;
    color: var(--ink);
}

.eligibility-list {
    padding-left: 28px;
    margin: 12px 0 20px;
}

.eligibility-list li {
    margin-bottom: 10px;
    color: var(--grey);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.prose .note {
    font-size: var(--text-sm);
    color: var(--grey);
    font-style: italic;
    margin-top: 12px;
}

/* ── Jotform Embed ── */

.jotform-embed {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Phase 2 Responsive ── */

@media (max-width: 768px) {
    .tier-cards { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .curriculum-program { padding: 24px; }
    .faculty-message { flex-direction: column; align-items: center; text-align: center; }
    .message-body blockquote { text-align: left; }
    .orientations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .process-step { gap: 12px; }
    .step-number { width: 28px; height: 28px; font-size: 12px; }
}

/* ── Bilingual Toggle ── */

.lang-toggle {
    font-size: var(--text-sm);
    font-weight: 600;
    background: none;
    border: 1px solid var(--grey-border);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--grey);
    margin-right: 8px;
    transition: color 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.site-nav.nav-transparent .lang-toggle {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.3);
}

.site-nav.nav-transparent .lang-toggle:hover {
    color: var(--white);
    border-color: var(--white);
}

html[lang="en"] .jp { display: none; }
html[lang="jp"] .en { display: none; }
html[lang="jp"] .jp { font-size: 0.86em; }
