/* =========================================================
   ENISH GLOBAL — MAIN STYLESHEET
   ========================================================= */

/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
    --ink: #101820;
    --ink-2: #18232c;
    --red: #b52235;
    --sakura: #e5a1b2;
    --cream: #fbf8f3;
    --paper: #f2eee7;
    --line: #d9d4cc;
    --muted: #687078;
    --white: #ffffff;

    --sans: "DM Sans", Arial, sans-serif;
    --serif: "Playfair Display", Georgia, serif;

    --container: 1180px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   02. RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    line-height: 1.7;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

h1,
h2 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.08;
}

h1 {
    font-size: clamp(54px, 7vw, 94px);
    margin: 15px 0 25px;
}

h2 {
    font-size: clamp(40px, 5vw, 66px);
    margin: 10px 0 25px;
}

h1 em,
h2 em {
    font-style: italic;
    color: var(--red);
}

h3 {
    line-height: 1.2;
}

p {
    color: var(--muted);
}


/* =========================================================
   03. LAYOUT
   ========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
}

.section {
    padding: 110px 0;
}

.section-soft {
    padding: 100px 0;
    background: var(--paper);
}

.section-dark {
    color: var(--white);
    background: var(--ink);
    position: relative;
    overflow: hidden;
    padding: 50px;
}


/* =========================================================
   04. TYPOGRAPHY / LABELS
   ========================================================= */

.kicker,
.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
}

.kicker {
    color: var(--red);
}

.kicker.light {
    color: #f2c2cc;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--sakura);
    border-radius: 50%;
}

.jp-line {
    font-size: 13px;
    letter-spacing: .28em;
    color: #d8a1ae;
}

.jp-large {
    font-size: 72px;
    line-height: 1;
    font-family: var(--serif);
    margin: 0 0 15px;
    color: var(--sakura);
}


/* =========================================================
   05. BUTTONS / LINKS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    padding: 15px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    transition:
        transform .3s var(--ease),
        background .3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn span {
    margin-left: 10px;
}

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

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--ink);
}

.btn-ghost {
    border-color: #59636b;
    color: var(--white);
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   06. HEADER / NAVIGATION
   ========================================================= */

.site-header {
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 243, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 24, 32, .07);
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.brand-mark {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--serif);
    font-size: 20px;
}

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

.brand strong {
    font-size: 16px;
    letter-spacing: .12em;
}

.brand small {
    font-size: 8px;
    letter-spacing: .38em;
    margin-top: 5px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    position: relative;
    padding: 29px 0;
    color: #475058;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: .3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 13px 17px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.nav-cta span {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
}


/* =========================================================
   07. HERO
   ========================================================= */

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .82fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 100px;
}

.hero-copy {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
    color: #bac3c8;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 35px 0 25px;
}

.hero-note {
    color: #8f999f;
    font-size: 11px;
    letter-spacing: .02em;
}

.hero-note span {
    margin-right: 8px;
    color: var(--sakura);
}

.hero-visual {
    height: 580px;
    position: relative;
}

.hero-photo {
    width: 84%;
    height: 100%;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            150deg,
            rgba(16, 24, 32, .02),
            rgba(16, 24, 32, .48)
        ),
        url("../assets/img/about.webp") center / cover no-repeat;
}

.photo-content {
    position: absolute;
    inset: auto 30px 35px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    z-index: 2;
}

.photo-content strong {
    font-family: var(--serif);
    font-size: 68px;
    line-height: 1;
}

.photo-content small {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: .2em;
}

.vertical-label {
    position: absolute;
    left: 22px;
    top: 25px;
    writing-mode: vertical-rl;
    letter-spacing: .3em;
    font-size: 9px;
    z-index: 2;
}

.hero-stamp {
    position: absolute;
    left: 0;
    top: 80px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.hero-stamp span {
    font-family: var(--serif);
    font-size: 27px;
}

.hero-stamp small {
    font-size: 8px;
    text-align: center;
    line-height: 1.3;
}

.hero-card {
    position: absolute;
    left: 0;
    bottom: 35px;
    padding: 19px 22px;
    background: var(--white);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
    z-index: 3;
}

.hero-card small {
    color: var(--red);
    font-size: 8px;
    letter-spacing: .18em;
}

.hero-card strong {
    font-family: var(--serif);
    font-size: 26px;
}

.hero-card span {
    color: var(--muted);
    font-size: 9px;
}

.hero-sun {
    position: absolute;
    right: 10%;
    top: 10%;
    color: rgba(229, 161, 178, .09);
    font-family: var(--serif);
    font-size: 100px;
}

.hero-orbit {
    position: absolute;
    right: -180px;
    top: -170px;
    width: 550px;
    height: 550px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.orbit-two {
    width: 850px;
    height: 850px;
    right: -330px;
    top: -320px;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7d878d;
    font-size: 8px;
    letter-spacing: .3em;
}

.hero-scroll span {
    width: 50px;
    height: 1px;
    background: #566067;
}


/* =========================================================
   08. INTRO / NUMBERS
   ========================================================= */

.intro-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px;
}

.section-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.intro-content {
    max-width: 800px;
}

.intro-content > p:not(.kicker) {
    max-width: 700px;
    font-size: 18px;
}

.numbers {
    padding: 0;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.number-item {
    padding: 38px 30px;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 20px;
}

.number-item:last-child {
    border-right: 1px solid var(--line);
}

.number-item strong {
    color: var(--red);
    font-family: var(--serif);
    font-size: 32px;
}

.number-item span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   09. SECTION HEADINGS
   ========================================================= */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 55px;
}

.head-copy {
    max-width: 430px;
}


/* =========================================================
   10. SERVICES
   ========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    min-height: 330px;
    padding: 30px 24px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.service-card:last-child {
    border-right: 0;
}

.service-card > span,
.service-row > span {
    color: var(--red);
    font-family: var(--serif);
    font-size: 16px;
}

.service-icon {
    margin: 30px 0 10px;
    font-family: var(--serif);
    font-size: 38px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.service-card p {
    font-size: 13px;
}

.service-card a {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   11. JAPAN BANNER
   ========================================================= */

.japan-banner {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #18252e, #3c2830);
    color: var(--white);
}

.japan-banner-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(16, 24, 32, .84),
            rgba(16, 24, 32, .28)
        ),
        url("../assets/img/japan.webp") center / cover no-repeat;
}

.japan-banner-bg::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: 13%;
    top: 18%;
    border-radius: 50%;
    background: rgba(255, 221, 204, .82);
    box-shadow: 0 0 100px rgba(255, 205, 185, .22);
}

.japan-banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 105px;
}

.japan-banner h2 {
    font-size: 72px;
}

.japan-banner p:not(.kicker):not(.jp-large) {
    max-width: 520px;
    color: #b8c1c5;
}


/* =========================================================
   12. PATHWAY / TIMELINE
   ========================================================= */

.pathway .section-head {
    margin-bottom: 60px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
}

.timeline-item {
    position: relative;
    margin-right: 20px;
    padding: 25px 20px 20px 0;
    border-right: 1px solid var(--line);
}

.timeline-item:last-child {
    border-right: 0;
}

.timeline-item > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.timeline-item h3 {
    margin: 20px 0 8px;
    font-size: 22px;
}

.timeline-item p {
    font-size: 12px;
}


/* =========================================================
   13. TESTIMONIAL STRIP
   ========================================================= */

.quote-card {
    position: relative;
    padding: 55px 60px;
    background: var(--paper);
}

.quote-mark {
    color: var(--sakura);
    font-family: var(--serif);
    font-size: 90px;
    line-height: .6;
}

.quote-card blockquote {
    max-width: 950px;
    margin: 25px 0 40px;
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.25;
}

.quote-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: grid;
    place-items: center;
    font-family: var(--serif);
}

.quote-meta strong,
.quote-meta small {
    display: block;
}

.quote-meta strong {
    font-size: 11px;
}

.quote-meta small {
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   14. CTA
   ========================================================= */

.cta-inner {
    padding: 110px 0;
    text-align: center;
}

.cta-inner h2 {
    font-size: 70px;
}

.cta-inner > p:not(.jp-line) {
    max-width: 550px;
    margin: 0 auto 30px;
    color: #aeb8bd;
}


/* =========================================================
   15. PAGE HERO
   ========================================================= */

.page-hero {
    padding: 110px 0 100px;
}

.page-hero-inner {
    max-width: 850px;
}

.page-hero h1 {
    font-size: clamp(52px, 7vw, 86px);
}

.page-hero-inner > p:last-child {
    max-width: 650px;
    color: #adb7bc;
    font-size: 17px;
}


/* =========================================================
   16. ABOUT PAGE
   ========================================================= */

.two-col {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
}

.prose {
    max-width: 680px;
}

.prose p {
    font-size: 17px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    padding: 35px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.value-card > span {
    color: var(--red);
    font-family: var(--serif);
}

.value-card h3 {
    font-family: var(--serif);
    font-size: 29px;
}

.value-card p {
    font-size: 13px;
}

.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.feature-visual {
    height: 500px;
}

.feature-copy p:not(.kicker) {
    font-size: 16px;
}


/* =========================================================
   17. BOARD OF DIRECTORS
   ========================================================= */

.director-grid {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.director-card {
    text-align: center;
}

.director-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: var(--paper);
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.director-card > span {
    display: block;
    margin-top: 22px;
    color: var(--red);
    font-family: var(--serif);
}

.director-card h3 {
    margin-top: 12px;
    margin-bottom: 5px;
    font-family: var(--serif);
    font-size: 25px;
}

.director-card p {
    margin-bottom: 0;
    font-size: 12px;
}


/* =========================================================
   18. SERVICES PAGE
   ========================================================= */

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding: 45px 0;
    border-bottom: 1px solid var(--line);
}

.service-row h2 {
    font-size: 42px;
}

.service-row p:not(.kicker) {
    max-width: 720px;
}


/* =========================================================
   19. STUDY IN JAPAN
   ========================================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benefit-card {
    min-height: 250px;
    padding: 35px 24px;
    border-right: 1px solid var(--line);
}

.benefit-card:last-child {
    border-right: 0;
}

.benefit-card span {
    color: var(--red);
    font-family: var(--serif);
}

.benefit-card h3 {
    font-family: var(--serif);
    font-size: 27px;
}

.benefit-card p {
    font-size: 13px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 50px;
}

.process-grid > div {
    padding: 25px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.process-grid b {
    color: var(--red);
    font-family: var(--serif);
}

.process-grid strong {
    font-size: 15px;
}

.process-grid span {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   20. CALLOUT
   ========================================================= */

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px 55px;
    background: var(--paper);
}

.callout h2 {
    margin-bottom: 10px;
    font-size: 42px;
}

.callout p:not(.jp-large) {
    max-width: 600px;
}


/* =========================================================
   21. COURSES PAGE
   ========================================================= */

.courses-intro {
    padding-bottom: 70px;
}

.courses-section {
    overflow: hidden;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 55px;
}


/* =========================================================
   22. COURSE CARD
   ========================================================= */

.course-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(16, 24, 32, .08);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 24, 32, .12);
}


/* =========================================================
   COURSE IMAGE — SAMPLE JAPAN VISUALS
========================================================= */

.course-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Hide the actual image temporarily */
.course-image img {
    display: none;
}


/* ---------------------------------------------------------
   COURSE 01 — FULL TIME
   Japanese classroom / student atmosphere
--------------------------------------------------------- */

.course-card:nth-child(1) .course-image {
    background:
        linear-gradient(
            135deg,
            rgba(12, 24, 38, 0.15),
            rgba(12, 24, 38, 0.55)
        ),
        url("https://images.unsplash.com/photo-1528360983277-13d401cdc186?auto=format&fit=crop&w=1200&q=85")
        center / cover no-repeat;
}


/* ---------------------------------------------------------
   COURSE 02 — PART TIME
   Japanese city / lifestyle
--------------------------------------------------------- */

.course-card:nth-child(2) .course-image {
    background:
        linear-gradient(
            135deg,
            rgba(12, 24, 38, 0.08),
            rgba(12, 24, 38, 0.55)
        ),
        url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1200&q=85")
        center / cover no-repeat;
}


/* ---------------------------------------------------------
   COURSE 03 — ADVANCED
   Tokyo / Japanese urban atmosphere
--------------------------------------------------------- */

.course-card:nth-child(3) .course-image {
    background:
        linear-gradient(
            135deg,
            rgba(12, 24, 38, 0.05),
            rgba(12, 24, 38, 0.60)
        ),
        url("https://images.unsplash.com/photo-1513407030348-c983a97b98d8?auto=format&fit=crop&w=1200&q=85")
        center / cover no-repeat;
}


/* ---------------------------------------------------------
   COURSE 04 — MASTER'S
   University / higher education atmosphere
--------------------------------------------------------- */

.course-card:nth-child(4) .course-image {
    background:
        linear-gradient(
            135deg,
            rgba(12, 24, 38, 0.05),
            rgba(12, 24, 38, 0.58)
        ),
        url("https://images.unsplash.com/photo-1528360983277-13d401cdc186?auto=format&fit=crop&w=1200&q=85")
        center / cover no-repeat;
}


/* =========================================================
   COURSE IMAGE OVERLAY
========================================================= */

.course-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(8, 18, 28, 0.72),
            transparent 55%
        );
}


/* =========================================================
   COURSE NUMBER
========================================================= */

.course-number {
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 20px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: #fff;
}


/* =========================================================
   COURSE BADGE
========================================================= */

.course-badge {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 20px;

    padding: 8px 13px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: #fff;

    border: 1px solid rgba(255,255,255,.5);
    background: rgba(10, 20, 30, .28);

    backdrop-filter: blur(8px);
}


/* =========================================================
   HOVER EFFECT
========================================================= */

.course-card .course-image {
    transition: transform .5s ease;
}

.course-card:hover .course-image {
    background-size: 108%;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .course-image {
        height: 240px;
    }

}

/* =========================================================
   24. COURSE NUMBER / BADGE
   ========================================================= */

.course-number {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .6);
    color: var(--white);

    font-size: 12px;
    letter-spacing: .12em;
}

.course-badge {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;

    padding: 8px 13px;

    background: rgba(255, 255, 255, .95);
    color: var(--ink);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}


/* =========================================================
   25. COURSE CONTENT
   ========================================================= */

.course-content {
    padding: 34px 34px 32px;
}

.course-content .kicker {
    margin-bottom: 10px;
}

.course-content h3 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.15;
}

.course-content > p:not(.kicker) {
    margin-bottom: 26px;
    color: #59636c;
    line-height: 1.75;
}


/* =========================================================
   26. COURSE META
   ========================================================= */

.course-meta {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(16, 24, 32, .1);
    border-bottom: 1px solid rgba(16, 24, 32, .1);
}

.course-meta span {
    flex: 1;
    padding: 16px 12px;
    color: #59636c;
    font-size: 13px;
}

.course-meta span + span {
    border-left: 1px solid rgba(16, 24, 32, .1);
}

.course-meta strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* =========================================================
   27. COURSE LINK
   ========================================================= */

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;

    transition: gap .25s ease;
}

.course-link span {
    font-size: 17px;
}

.course-link:hover {
    gap: 18px;
}


/* =========================================================
   28. COURSE SUPPORT
   ========================================================= */

.course-support {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 80px;
}

.support-copy {
    max-width: 620px;
}

.support-copy h2 {
    margin-bottom: 24px;
}

.support-copy > p:not(.kicker):not(.jp-large) {
    max-width: 560px;
    margin-bottom: 30px;
    color: #59636c;
    line-height: 1.8;
}

.support-decoration {
    min-height: 400px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.japan-character {
    opacity: .08;
    font-family: var(--serif);
    font-size: 230px;
    line-height: 1;
}

.support-circle {
    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(16, 24, 32, .2);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .15em;
}


/* =========================================================
   29. PROGRAMMES
   ========================================================= */

.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.programme-card {
    min-height: 360px;
    position: relative;
    padding: 40px;
    background: var(--paper);
}

.programme-card > span {
    position: absolute;
    right: 30px;
    top: 25px;
    color: var(--red);
    font-family: var(--serif);
}

.programme-symbol {
    font-family: var(--serif);
    font-size: 42px;
}

.programme-card h2 {
    font-size: 40px;
}

.programme-card p {
    max-width: 560px;
}

.programme-card a {
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   30. STUDENT JOURNEY
   ========================================================= */

.journey-list {
    max-width: 950px;
    margin: auto;
}

.journey-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 35px;
    padding: 45px 0;
    border-bottom: 1px solid var(--line);
}

.journey-step > span {
    color: var(--red);
    font-family: var(--serif);
    font-size: 38px;
}

.journey-step h2 {
    font-size: 44px;
}


/* =========================================================
   31. TESTIMONIALS
   ========================================================= */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    min-height: 300px;
    padding: 32px;
    background: var(--paper);
}

.testimonial-card > span {
    color: var(--sakura);
    font-family: var(--serif);
    font-size: 70px;
    line-height: .5;
}

.testimonial-card blockquote {
    margin: 25px 0;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.4;
}

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

.testimonial-card strong {
    font-size: 11px;
}

.testimonial-card small {
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   32. GALLERY
   ========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #40505a,
        #1b252c 55%,
        #a97b86
    );
}

.gallery-item > img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: saturate(.88);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(0, 0, 0, .58)
    );
}

.gallery-item .photo-content {
    z-index: 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item .photo-content strong {
    font-size: 50px;
}


/* =========================================================
   33. FAQ
   ========================================================= */

.faq-list {
    max-width: 900px;
    margin: auto;
    border-top: 1px solid var(--line);
}

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

.faq-item button {
    width: 100%;
    padding: 27px 0;
    border: 0;
    background: none;

    display: grid;
    grid-template-columns: 45px 1fr 25px;
    align-items: center;
    gap: 15px;

    color: var(--ink);
    text-align: left;
}

.faq-item button span {
    color: var(--red);
    font-family: var(--serif);
}

.faq-item button strong {
    font-size: 15px;
}

.faq-item button b {
    font-size: 22px;
    font-weight: 400;
    text-align: right;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease);
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    padding-left: 60px;
    font-size: 13px;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding-bottom: 25px;
}


/* =========================================================
   34. CONTACT
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
}

.contact-info h2 {
    font-size: 48px;
}

.contact-detail {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.contact-detail > span {
    color: var(--red);
    font-family: var(--serif);
}

.contact-detail small,
.contact-detail strong {
    display: block;
}

.contact-detail small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.contact-detail strong {
    font-size: 14px;
}

.contact-detail strong a {
    color: inherit;
    text-decoration: none;
}

.contact-detail strong a:hover {
    text-decoration: underline;
}


/* =========================================================
   35. CONTACT OFFICES
   ========================================================= */

.office-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.office-card {
    position: relative;
    padding: 40px 35px;
    background: var(--white);
    border: 1px solid rgba(16, 24, 32, .08);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(16, 24, 32, .1);
}

.office-number {
    position: absolute;
    right: 25px;
    top: 25px;
    opacity: .5;
    font-size: 12px;
    letter-spacing: .12em;
}

.office-card h3 {
    margin: 10px 0 18px;
    font-family: var(--serif);
    font-size: 27px;
}

.office-card > p:not(.kicker) {
    margin-bottom: 25px;
    color: #59636c;
    line-height: 1.8;
}


/* =========================================================
   36. CONTACT FORM
   ========================================================= */

.contact-form {
    padding: 35px;
    background: var(--paper);
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;

    border: 1px solid var(--line);
    outline: 0;

    background: var(--cream);

    font-size: 13px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.form-note {
    margin: 18px 0 0;
    font-size: 10px;
}


/* =========================================================
   37. MAP
   ========================================================= */

.map-section {
    padding-top: 100px;
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 45px;
    background: #eee;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    border: 0;
}


/* =========================================================
   38. IMAGE PLACEHOLDERS
   ========================================================= */

.photo-placeholder {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            150deg,
            rgba(16, 24, 32, .02),
            rgba(16, 24, 32, .48)
        ),
        url("../assets/img/jap.webp") center / cover no-repeat;
}

.photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            150deg,
            rgba(16, 24, 32, .02),
            rgba(16, 24, 32, .48)
        ),
        url("../assets/img/jap.webp") center / cover no-repeat;
}


/* =========================================================
   39. FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 80px 0 25px;
    background: #0c141a;
    color: var(--white);
}

.footer-sakura {
    position: absolute;
    right: 6%;
    top: -45px;
    color: rgba(229, 161, 178, .06);
    font-family: var(--serif);
    font-size: 220px;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.brand-light {
    color: var(--white);
}

.brand-light small {
    color: #99a2a7;
}

.footer-brand p {
    max-width: 380px;
    margin-top: 25px;
    color: #8e999f;
    font-size: 13px;
}

.footer-grid h4 {
    color: #e8b1bc;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) > a {
    display: block;
    margin: 10px 0;
    color: #aab3b7;
    font-size: 12px;
}

.footer-grid > div > p {
    margin: 6px 0;
    color: #8e999f;
    font-size: 12px;
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.socials a {
    width: 34px;
    height: 34px;
    border: 1px solid #344049;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #29343b;
    color: #68747b;
    font-size: 10px;
}


/* =========================================================
   40. REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .8s var(--ease),
        transform .8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: .15s;
}


/* =========================================================
   41. TABLET — 1050px
   ========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .nav-cta {
        display: none;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-visual {
        height: 500px;
    }

    .service-grid,
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(2) {
        border-right: 0;
    }

    .timeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }

    .timeline-item:nth-child(3) {
        border-right: 0;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   42. TABLET — 900px
   ========================================================= */

@media (max-width: 900px) {

    /* Board */
    .director-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 750px;
    }

    /* Courses */
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .course-support {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .support-decoration {
        min-height: 300px;
    }

    /* Contact */
    .office-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }
}


/* =========================================================
   43. MOBILE — 780px
   ========================================================= */

@media (max-width: 780px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    /* Header */
    .site-header {
        height: 70px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
    }

    .nav-toggle span {
        width: 23px;
        height: 2px;
        background: var(--ink);
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 10px 16px 20px;

        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }

    .main-nav.open {
        display: flex;
    }

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

    .main-nav a::after {
        bottom: 6px;
    }

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 75px 0 90px;
    }

    .hero-visual {
        height: 420px;
    }

    .hero-photo {
        width: 88%;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    /* Sections */
    .section {
        padding: 75px 0;
    }

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

    .intro-grid,
    .two-col,
    .split-feature,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Numbers */
    .number-grid {
        grid-template-columns: 1fr 1fr;
    }

    .number-item {
        padding: 25px 15px;
    }

    .number-item:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    /* Section headings */
    .section-head {
        display: block;
        margin-bottom: 35px;
    }

    .section-head .text-link {
        margin-top: 0;
    }

    /* Services */
    .service-grid,
    .benefit-grid,
    .testimonial-grid,
    .programme-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    /* Timeline */
    .timeline {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-item:nth-child(2) {
        border-right: 0;
    }

    .timeline-item:nth-child(3) {
        border-right: 1px solid var(--line);
    }

    .timeline-item:nth-child(4) {
        border-right: 0;
    }

    /* Japan */
    .japan-banner {
        min-height: 560px;
    }

    .japan-banner h2,
    .cta-inner h2 {
        font-size: 48px;
    }

    /* Page hero */
    .page-hero {
        padding: 80px 0;
    }

    .page-hero h1 {
        font-size: 50px;
    }

    /* About */
    .values-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid > div {
        border-bottom: 1px solid var(--line);
    }

    /* Service rows */
    .service-row {
        grid-template-columns: 50px 1fr;
    }

    .service-row h2,
    .journey-step h2 {
        font-size: 34px;
    }

    /* Journey */
    .journey-step {
        grid-template-columns: 55px 1fr;
        gap: 15px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    /* Callout */
    .callout {
        display: block;
        padding: 35px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 5px 0;
    }
}


/* =========================================================
   44. MOBILE — 600px
   ========================================================= */

@media (max-width: 600px) {

    /* Directors */
    .director-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 35px;
    }

    .director-image {
        height: 400px;
    }

    /* Courses */
    .courses-grid {
        gap: 24px;
    }

    .course-image {
        height: 270px;
    }

    .course-content {
        padding: 26px 22px;
    }

    .course-content h3 {
        font-size: 26px;
    }

    .course-meta span {
        padding: 14px 8px;
    }

    .support-decoration {
        min-height: 240px;
    }

    .japan-character {
        font-size: 170px;
    }

    .support-circle {
        width: 140px;
        height: 140px;
    }

    /* Offices */
    .office-card {
        padding: 32px 25px;
    }

    .map-wrapper iframe {
        height: 380px;
    }
}


/* =========================================================
   45. SMALL MOBILE — 480px
   ========================================================= */

@media (max-width: 480px) {

    h1 {
        font-size: 48px;
    }

    .hero-visual {
        height: 360px;
    }

    .hero-card {
        bottom: 10px;
    }

    .hero-stamp {
        top: 35px;
        width: 80px;
        height: 80px;
    }

    .hero-stamp span {
        font-size: 20px;
    }

    .number-grid {
        grid-template-columns: 1fr;
    }

    .number-item {
        border-right: 1px solid var(--line) !important;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        border-right: 0 !important;
    }

    .quote-card {
        padding: 35px 25px;
    }

    .quote-card blockquote {
        font-size: 26px;
    }

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

    .gallery-item.wide {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}
.a-logo {
    height: 50px;
}