/* --- site-design.css --- */
/* ═══════════════════════════════════════════════════════════
   LMS Frontend — Prime Japanese Language Institute
   Blue gradient · Japan red · White · JLPT-focused
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --primary-soft: rgba(239, 246, 255, 0.95);
    --primary-muted: #93c5fd;
    --violet: #1e3a8a;
    --blue: #0f172a;
    --cyan: #06b6d4;
    --dark: #0f172a;
    --dark-2: #020617;
    --text: #0f172a;
    --text-2: #1e3a8a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --border: rgba(15, 23, 42, 0.12);
    --border-2: rgba(29, 78, 216, 0.12);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-2: rgba(239, 246, 255, 0.65);
    --surface-3: rgba(219, 234, 254, 0.55);
    --glass: rgba(255, 255, 255, 0.82);
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;
    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 40px rgba(29, 78, 216, 0.18);
    --font: 'Plus Jakarta Sans', 'Noto Sans JP', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
    --max: 1160px;
    --header-h: 72px;
    --ease: .22s cubic-bezier(.4,0,.2,1);
    --grad: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    --grad-accent: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e40af 45%, #06b6d4 100%);
    --grad-soft: linear-gradient(160deg, #eff6ff 0%, #ffffff 45%, #f8fafc 100%);
    /* student panel compat */
    --site-navy: var(--text);
    --site-navy-light: var(--text-2);
    --site-muted: var(--muted);
    --site-border: rgba(124, 58, 237, 0.15);
    --site-white: var(--surface-solid);
    --site-bg: #ede9fe;
    --site-teal: var(--primary);
    --site-text: var(--text-2);
    --site-radius: var(--radius);
    --site-shadow: var(--shadow);
    --brand: var(--primary);
    --brand-dark: var(--primary-hover);
    --brand-light: var(--primary-soft);
    --brand-soft: #f5f3ff;
    --ink: var(--text);
    --line: var(--border);
    --bg: transparent;
    --bg-alt: var(--surface-2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.site-body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
    background:
        radial-gradient(ellipse 70% 45% at 95% 0%, rgba(29, 78, 216, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 5% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #eff6ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.pro-icon { flex-shrink: 0; display: block; }
.inline-form { display: inline; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--ease);
    white-space: nowrap;
    line-height: 1.2;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
}
.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--primary-muted);
}

.btn-outline {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-3); }

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-white:hover { background: #fff; transform: translateY(-1px); }

.btn-dark {
    background: var(--dark);
    color: #fff;
}
.btn-dark:hover { background: var(--dark-2); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* legacy alias */
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35); }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ─── Header ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: rgba(237, 233, 254, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
    background: rgba(237, 233, 254, 0.92);
    box-shadow: var(--shadow-xs);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -.02em;
}

.site-logo-image { height: 32px; width: auto; border-radius: 8px; }
.site-logo-image--wide { height: 48px; max-width: min(280px, 52vw); object-fit: contain; }
.site-logo--brand:has(.site-logo-image--wide) { gap: 0; }

.site-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
    padding: 7px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: all var(--ease);
}

.site-nav a:hover { color: var(--primary); background: var(--surface-3); }
.site-nav a.active { color: #fff; background: var(--grad); font-weight: 600; box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3); }

.site-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.site-nav-mobile-actions {
    display: none;
    width: 100%;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 8px;
}

.site-nav-mobile-actions .btn-block { width: 100%; justify-content: center; }

.site-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.site-menu-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 1px;
}

/* ─── Hero (dark modern) ─── */
.mod-hero {
    background: var(--grad-hero);
    color: #fff;
    padding: 88px 0 108px;
    position: relative;
    overflow: hidden;
}

.mod-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 60% 90%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
}

.mod-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mod-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 24px;
}

.mod-hero-badge-dot {
    width: 7px; height: 7px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 10px #22d3ee;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #22d3ee; }
    50% { opacity: 0.6; box-shadow: 0 0 4px #22d3ee; }
}

.mod-hero h1 {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 20%, #c4b5fd 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mod-hero h1 span { color: #c4b5fd; }

.mod-hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #c4b5fd;
    max-width: 460px;
    margin-bottom: 32px;
}

.mod-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.mod-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.mod-hero-meta div strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.mod-hero-meta div span { font-size: 12px; color: #a5b4fc; }

.mod-hero-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

/* ─── Hero image collage ─── */
.mod-hero-visual {
    position: relative;
    min-height: 420px;
}

.mod-hero-visual-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
    transform: rotate(1deg);
}

.mod-hero-visual-main .site-img,
.hero-img-main {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.mod-hero-visual-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 160px;
}

.mod-hero-visual-float .site-img,
.hero-img-float {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.mod-hero-visual-float span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    padding: 6px 4px 2px;
    text-align: center;
}

.mod-hero-visual-float-1 { top: 24px; right: -12px; transform: rotate(4deg); }
.mod-hero-visual-float-2 { bottom: 48px; left: -20px; transform: rotate(-3deg); }

.mod-hero-visual-badge-card {
    position: absolute;
    bottom: 20px;
    right: 24px;
    background: var(--grad);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
    text-align: center;
}

.mod-hero-visual-badge-card strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.mod-hero-visual-badge-card span {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
}

.mod-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mod-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.mod-preview-dot:nth-child(1) { background: #ef4444; }
.mod-preview-dot:nth-child(2) { background: #eab308; }
.mod-preview-dot:nth-child(3) { background: #22c55e; }

.mod-preview-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
}

.mod-preview-item:last-child { margin-bottom: 0; }

.mod-preview-icon {
    width: 40px; height: 40px;
    background: var(--grad);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.mod-preview-item strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.mod-preview-item span { font-size: 12px; color: #71717a; }

/* ─── Sections ─── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-muted {
    background: linear-gradient(180deg, rgba(196, 181, 253, 0.35) 0%, rgba(165, 180, 252, 0.2) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--surface-3);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.section-head h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 10px;
}

.section-head p { font-size: 16px; color: var(--muted); line-height: 1.65; }

.section-head {
    margin-bottom: 48px;
}
.section-head.center { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }

/* ─── Steps ─── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.step-item {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: all var(--ease);
}
.step-item:hover {
    border-color: var(--primary-muted);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.step-item-num {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--grad);
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.step-thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 10;
}

.step-thumb .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ease);
}

.step-item:hover .step-thumb .site-img { transform: scale(1.04); }

/* ─── Categories ─── */
.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cat-item {
    padding: 8px 16px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: all var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cat-item:hover {
    border-color: transparent;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.cat-item-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--surface-3);
    color: var(--muted);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

/* ─── Course cards ─── */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--ease);
    color: inherit;
}

.course-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.course-thumb {
    height: 160px;
    background: var(--grad-soft);
    position: relative;
    overflow: hidden;
}

.course-thumb img,
.course-thumb .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ease);
}

.course-card:hover .course-thumb img,
.course-card:hover .course-thumb .site-img { transform: scale(1.05); }

.course-thumb-ph {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
}

.course-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--grad);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.course-level {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(9,9,11,.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 3px 8px;
    border-radius: 6px;
}
.tag-muted { color: var(--muted); background: var(--surface-3); }

.course-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.course-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-2);
}

.course-price { font-size: 17px; font-weight: 800; color: var(--text); }
.course-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-right: 4px; font-weight: 500; }

.course-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--ease);
}
.course-card:hover .course-arrow { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.35); }

/* ─── Features ─── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feat-item {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(10px);
    transition: all var(--ease);
}
.feat-item:hover {
    border-color: var(--primary-muted);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.feat-num {
    width: 36px; height: 36px;
    background: var(--grad);
    color: #fff;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(124,58,237,.3);
}

.feat-item h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feat-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── CTA ─── */
.mod-cta {
    background: var(--grad);
    border: none;
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.mod-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34,211,238,.12) 0%, transparent 40%);
    pointer-events: none;
}

.mod-cta-visual .mod-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mod-cta-visual .mod-cta-bg .site-img,
.mod-cta-visual .mod-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.mod-cta-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.85) 0%, rgba(99, 102, 241, 0.8) 100%);
    pointer-events: none;
}

.mod-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.mod-cta p { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.mod-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 1; }

/* ─── Page header ─── */
.pg-head {
    padding: 56px 0 48px;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); font-weight: 500; }

.pg-head h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 8px;
}

.pg-head p { font-size: 16px; color: var(--muted); max-width: 520px; }

/* Page header with background image */
.pg-head-visual {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
}

.pg-head-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pg-head-bg .site-img,
.pg-head-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-head-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.88) 0%, rgba(91, 33, 182, 0.78) 50%, rgba(67, 56, 202, 0.82) 100%);
}

.pg-head-content {
    position: relative;
    z-index: 2;
}

.pg-head-visual .breadcrumb,
.pg-head-visual .breadcrumb a { color: #c4b5fd; }
.pg-head-visual .breadcrumb a:hover { color: #fff; }
.pg-head-visual h1 { color: #fff; }
.pg-head-visual p { color: #e9d5ff; }

/* ─── Filters ─── */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}

.filter-search {
    flex: 1; min-width: 180px;
    display: flex; align-items: center; gap: 8px;
    padding: 0 8px;
    color: var(--muted);
}

.filter-search input {
    flex: 1; border: none; background: transparent;
    font-family: var(--font); font-size: 14px;
    padding: 8px 0; outline: none; color: var(--text);
}

.filter-form select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-2);
    background: var(--surface-2);
    outline: none;
    cursor: pointer;
}
.filter-form select:focus { border-color: var(--primary); }

.result-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; font-weight: 500; }

/* ─── About ─── */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-panel {
    background: var(--grad-hero);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.about-panel h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.about-panel li {
    padding: 10px 0;
    font-size: 14px;
    color: #d4d4d8;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; gap: 10px;
}
.about-panel li::before { content: '→'; color: #818cf8; font-weight: 700; }

.about-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.about-visual .site-img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.about-visual-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--grad);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.about-visual-badge strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.about-visual-badge span { font-size: 12px; font-weight: 600; opacity: 0.92; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.stat-item strong { display: block; font-size: 30px; font-weight: 800; color: var(--primary); margin-bottom: 4px; letter-spacing: -.03em; }
.stat-item span { font-size: 13px; color: var(--muted); }

.content-h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -.02em; }

/* ─── Contact ─── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.contact-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-visual .site-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.contact-info {
    background: var(--grad-hero);
    border-radius: var(--radius-xl);
    padding: 32px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.contact-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 24px; }

.contact-line {
    display: flex; gap: 14px;
    margin-bottom: 20px;
}

.contact-line-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #a5b4fc; flex-shrink: 0;
}

.contact-line strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #c4b5fd; margin-bottom: 4px; }
.contact-line p, .contact-line a { font-size: 14px; color: #e4e4e7; }
.contact-line a:hover { color: #fff; }

.contact-form {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-form h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-intro { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ─── Forms ─── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-group .required { color: #ef4444; }

.form-group input,
.form-group textarea,
.form-group select,
.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--surface-2);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: var(--surface);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group .error, .field-error { display: block; font-size: 12px; color: #ef4444; margin-top: 4px; }

.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Course detail ─── */
.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.course-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.course-detail-img img,
.course-detail-img .site-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.course-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

.enroll-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    box-shadow: var(--shadow-lg);
}

.enroll-card .course-price { font-size: 32px; margin-bottom: 4px; }

.enroll-list { margin-top: 20px; }
.enroll-list li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--border-2);
    display: flex; align-items: center; gap: 8px;
}
.enroll-list li::before { content: '✓'; color: var(--primary); font-weight: 700; }

.curriculum-list { display: grid; gap: 6px; }

.curriculum-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--ease);
}
.curriculum-item:hover { border-color: #d4d4d8; }

.curriculum-icon {
    width: 32px; height: 32px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}

.curriculum-info { flex: 1; }
.curriculum-info strong { display: block; font-size: 14px; color: var(--text); }
.curriculum-info span { font-size: 12px; color: var(--muted); }

.curriculum-tag {
    font-size: 10px; font-weight: 700;
    padding: 4px 8px; border-radius: var(--radius-full);
}
.curriculum-tag.preview { background: var(--primary-soft); color: var(--primary); }
.curriculum-tag.locked { background: var(--surface-3); color: var(--muted); }

/* ─── Empty ─── */
.empty-box {
    text-align: center;
    padding: 60px 24px;
    border: 1px dashed var(--primary-muted);
    border-radius: var(--radius-xl);
    background: var(--glass);
    backdrop-filter: blur(8px);
}

.empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}

.empty-box h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-box p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ─── Auth split layout ─── */
.auth-page.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0;
    min-height: calc(100vh - var(--header-h));
    max-width: none;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    display: none;
}

.auth-visual .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 100%;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(49, 46, 129, 0.75) 0%, rgba(124, 58, 237, 0.55) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: #fff;
}

.auth-visual-overlay h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -.03em;
}

.auth-visual-overlay p {
    font-size: 15px;
    color: #e9d5ff;
    max-width: 320px;
    line-height: 1.65;
}

.auth-split .auth-card {
    max-width: 440px;
    margin: auto;
    align-self: center;
}

@media (min-width: 900px) {
    .auth-visual { display: block; }
}

/* ─── Gallery strip ─── */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-strip-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-xs);
    transition: transform var(--ease), box-shadow var(--ease);
}

.gallery-strip-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-strip-item .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Testimonials ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonial-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow var(--ease), transform var(--ease);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-muted);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.testimonial-avatar .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--muted);
}

.site-img { max-width: 100%; height: auto; }

/* ─── Auth ─── */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: transparent;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-card h1 { font-size: 22px; font-weight: 800; text-align: center; color: var(--text); margin-bottom: 6px; letter-spacing: -.02em; }
.auth-card > p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.login-step { display: none; }
.login-step.active { display: block; }
.otp-input { font-size: 20px !important; letter-spacing: .25em; text-align: center; font-weight: 700; }

.auth-link { text-align: center; margin-top: 20px; font-size: 13px; }
.auth-link a { color: var(--primary); font-weight: 600; }
.auth-link.muted a { color: var(--muted); font-weight: 500; }

/* ─── Footer ─── */
.site-footer {
    background: var(--grad-hero);
    color: #c4b5fd;
    padding: 56px 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-grid .site-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 260px; }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a {
    padding: 5px 10px;
    background: rgba(255,255,255,.06);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: capitalize;
    transition: background var(--ease);
}
.footer-social a:hover { background: rgba(99,102,241,.25); color: #fff; }

.footer-col h4 {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: #fff; margin-bottom: 14px;
}

.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: #71717a; transition: color var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col li:not(:has(a)) { font-size: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
}

/* ─── Payment ─── */
.payment-result-card {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    box-shadow: var(--shadow-lg);
}

.payment-result-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    margin: 0 auto 20px;
}
.payment-result-icon.success { background: #f0fdf4; color: #16a34a; }
.payment-result-icon.error { background: #fef2f2; color: #dc2626; }

.payment-result-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.payment-result-card h1.success-title { color: #16a34a; }
.payment-result-card h1.error-title { color: #dc2626; }
.payment-result-card p { color: var(--muted); font-size: 15px; }

/* ─── Utils ─── */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

.pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pagination-wrap nav { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: var(--radius); font-size: 14px;
    border: 1px solid var(--border); color: var(--text-2);
}
.pagination-wrap a:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.pagination-wrap .active span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .mod-hero-grid, .about-layout, .contact-layout, .course-detail-grid { grid-template-columns: 1fr; }
    .mod-hero-visual { min-height: 320px; margin-top: 32px; }
    .mod-hero-visual-float-1 { right: 8px; }
    .mod-hero-visual-float-2 { left: 8px; }
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .auth-page.auth-split { grid-template-columns: 1fr; }
    .enroll-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-menu-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 20px 16px;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav-actions { display: none; }
    .site-nav-mobile-actions { display: flex; }
    .site-header-inner:has(.site-nav.open) .site-nav-actions {
        display: none;
    }
    .section { padding: 56px 0; }
    .mod-hero { padding: 56px 0 64px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mod-cta { padding: 48px 24px; }
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}
.lang-switcher-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.2;
}
.lang-switcher-item:hover { color: var(--primary); }
.lang-switcher-item.active {
    background: var(--primary);
    color: #fff;
}
.site-nav-mobile-actions .lang-switcher { margin-bottom: 8px; }

/* --- site-public.css --- */
/* ═══════════════════════════════════════════════════════════
   LMS Public Frontend — Prime Japanese Language Institute
   Blue gradient · Japan red · White · JLPT aesthetic
   ═══════════════════════════════════════════════════════════ */

.site-body:not(.student-panel-body) {
    --prime-blue: #1d4ed8;
    --prime-blue-dark: #1e40af;
    --prime-blue-soft: #eff6ff;
    --prime-red: #dc2626;
    --prime-navy: #0f172a;
    --prime-navy-dark: #020617;
    --prime-indigo: #1e3a8a;
    --prime-cyan: #06b6d4;
    --prime-muted: #64748b;
    --prime-border: #dbeafe;
    --prime-radius: 14px;

    --primary: var(--prime-blue);
    --primary-hover: var(--prime-blue-dark);
    --primary-soft: var(--prime-blue-soft);
    --primary-muted: #93c5fd;
    --text: var(--prime-navy);
    --text-2: var(--prime-indigo);
    --muted: var(--prime-muted);
    --border: var(--prime-border);
    --surface-solid: #fff;
    --surface-2: #f8fafc;
    --surface-3: var(--prime-blue-soft);
    --glass: #fff;
    --grad: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    --grad-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 64, 175, 0.88) 100%);
    --grad-soft: linear-gradient(160deg, #eff6ff 0%, #ffffff 50%, #f8fafc 100%);
    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 32px rgba(29, 78, 216, 0.18);
    --radius: var(--prime-radius);
    --radius-lg: 16px;
    --radius-xl: 20px;
    --header-h: 72px;
    --max: 1200px;

    background: #ffffff;
    color: var(--prime-navy);
}

/* ─── Header ─── */
.site-body:not(.student-panel-body) .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--prime-border);
    height: var(--header-h);
    box-shadow: 0 1px 0 rgba(29, 78, 216, 0.06);
}

.site-body:not(.student-panel-body) .site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--prime-blue) 0%, var(--prime-navy) 100%);
}

.site-body:not(.student-panel-body) .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(26, 31, 54, 0.08);
}

.site-body:not(.student-panel-body) .site-logo {
    color: var(--prime-navy);
    font-size: 16px;
    gap: 12px;
}

.site-body:not(.student-panel-body) .site-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.site-body:not(.student-panel-body) .site-logo-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.site-body:not(.student-panel-body) .site-logo-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--prime-blue);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
}

.site-body:not(.student-panel-body) .site-logo-icon {
    background: var(--grad);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.site-body:not(.student-panel-body) .site-nav a {
    color: var(--prime-muted);
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.site-body:not(.student-panel-body) .site-nav a:hover {
    color: var(--prime-blue);
    background: var(--prime-blue-soft);
}

.site-body:not(.student-panel-body) .site-nav a.active {
    color: var(--prime-blue);
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}

.site-body:not(.student-panel-body) .lang-switcher {
    border-color: var(--prime-border);
    background: #fff;
}

.site-body:not(.student-panel-body) .lang-switcher-item.active {
    background: var(--prime-blue);
}

/* ─── Buttons ─── */
.site-body:not(.student-panel-body) .btn-primary {
    background: var(--prime-blue);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.site-body:not(.student-panel-body) .btn-primary:hover {
    background: var(--prime-blue-dark);
    filter: none;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.site-body:not(.student-panel-body) .btn-outline {
    border-color: var(--prime-border);
    color: var(--prime-navy);
    background: #fff;
}

.site-body:not(.student-panel-body) .btn-outline:hover {
    border-color: var(--prime-blue);
    color: var(--prime-blue);
    background: var(--prime-blue-soft);
    box-shadow: none;
}

.site-body:not(.student-panel-body) .btn-ghost:hover {
    color: var(--prime-blue);
    background: var(--prime-blue-soft);
}

.site-body:not(.student-panel-body) .btn-pj,
.site-body:not(.student-panel-body) .btn-pj.btn-pj {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--prime-blue);
    color: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

.site-body:not(.student-panel-body) .btn-pj:hover {
    background: var(--prime-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.site-body:not(.student-panel-body) .btn-pj-lg { padding: 14px 28px; font-size: 15px; }

.site-body:not(.student-panel-body) .btn-pj-outline {
    background: transparent;
    color: var(--prime-blue);
    border: 1.5px solid var(--prime-blue);
}

.site-body:not(.student-panel-body) .btn-pj-outline:hover {
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
}

.site-body:not(.student-panel-body) .btn-pj-white {
    background: #fff;
    color: var(--prime-blue);
    border: 1.5px solid #fff;
}

.site-body:not(.student-panel-body) .btn-pj-white:hover {
    background: var(--prime-blue-soft);
}

/* ─── Footer ─── */
.site-body:not(.student-panel-body) .site-footer {
    background: var(--prime-navy-dark);
    color: #94a3b8;
    padding: 64px 0 0;
    margin-top: 0;
    border-top: 3px solid var(--prime-blue);
}

.site-body:not(.student-panel-body) .site-footer .site-logo { color: #fff; }
.site-body:not(.student-panel-body) .site-footer .site-logo-icon { background: var(--prime-blue); }
.site-body:not(.student-panel-body) .footer-brand p { color: #94a3b8; margin-top: 12px; font-size: 14px; line-height: 1.6; }
.site-body:not(.student-panel-body) .footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: none; letter-spacing: 0; }
.site-body:not(.student-panel-body) .footer-col a { color: #94a3b8; font-size: 14px; }
.site-body:not(.student-panel-body) .footer-col a:hover { color: var(--prime-blue); }
.site-body:not(.student-panel-body) .footer-col li { margin-bottom: 10px; }
.site-body:not(.student-panel-body) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.site-body:not(.student-panel-body) .footer-social a {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    margin-right: 0;
}

.site-body:not(.student-panel-body) .footer-social a:hover {
    background: rgba(29, 78, 216, 0.2);
    color: var(--prime-blue);
}

.site-body:not(.student-panel-body) .footer-contact-list {
    list-style: none;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
}

.site-body:not(.student-panel-body) .footer-contact-list a { color: #94a3b8; }
.site-body:not(.student-panel-body) .footer-contact-list a:hover { color: var(--prime-blue); }

.site-body:not(.student-panel-body) .footer-newsletter-text {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.site-body:not(.student-panel-body) .footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-body:not(.student-panel-body) .footer-subscribe input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
}

.site-body:not(.student-panel-body) .footer-subscribe input::placeholder { color: #64748b; }
.site-body:not(.student-panel-body) .footer-subscribe .btn-primary { width: 100%; justify-content: center; }

/* ─── Sections ─── */
.site-body:not(.student-panel-body) .section { padding: 64px 0; }
.site-body:not(.student-panel-body) .section-muted { background: #f8fafc; }
.site-body:not(.student-panel-body) .section-sm { padding: 48px 0; }

.site-body:not(.student-panel-body) .section-head h2,
.site-body:not(.student-panel-body) .content-h2 {
    color: var(--prime-navy);
}

.site-body:not(.student-panel-body) .section-label {
    color: var(--prime-blue);
    background: var(--prime-blue-soft);
}

/* ─── Page header ─── */
.site-body:not(.student-panel-body) .pg-head {
    background: var(--grad-soft);
    border-bottom: 1px solid var(--prime-border);
}

.site-body:not(.student-panel-body) .pg-head-visual::after {
    background: linear-gradient(135deg, rgba(26, 31, 54, 0.88) 0%, rgba(159, 18, 57, 0.82) 100%);
}

.site-body:not(.student-panel-body) .pg-head-visual .breadcrumb,
.site-body:not(.student-panel-body) .pg-head-visual .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.site-body:not(.student-panel-body) .pg-head-visual .breadcrumb a:hover { color: #fff; }

.site-body:not(.student-panel-body) .breadcrumb a { color: var(--prime-blue); }

/* ─── Filters ─── */
.site-body:not(.student-panel-body) .filter-form {
    background: #fff;
    border: 1px solid var(--prime-border);
    box-shadow: var(--shadow-xs);
}

.site-body:not(.student-panel-body) .filter-form select {
    background: #fff;
    border-color: var(--prime-border);
}

.site-body:not(.student-panel-body) .filter-form select:focus {
    border-color: var(--prime-blue);
}

/* ─── Course grid & cards ─── */
.site-body:not(.student-panel-body) .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.site-body:not(.student-panel-body) .pj-course-card,
.site-body:not(.student-panel-body) .course-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.site-body:not(.student-panel-body) .pj-course-card:hover,
.site-body:not(.student-panel-body) .course-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.site-body:not(.student-panel-body) .pj-course-card-thumb,
.site-body:not(.student-panel-body) .course-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.site-body:not(.student-panel-body) .pj-course-card-thumb img,
.site-body:not(.student-panel-body) .course-thumb img,
.site-body:not(.student-panel-body) .course-thumb .site-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-body:not(.student-panel-body) .pj-course-badge,
.site-body:not(.student-panel-body) .course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.site-body:not(.student-panel-body) .course-level {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.site-body:not(.student-panel-body) .pj-course-card-body,
.site-body:not(.student-panel-body) .course-body {
    padding: 16px;
}

.site-body:not(.student-panel-body) .pj-course-cat,
.site-body:not(.student-panel-body) .course-tags .tag:first-child {
    font-size: 12px;
    color: var(--prime-blue);
    font-weight: 600;
}

.site-body:not(.student-panel-body) .pj-course-card-body h3,
.site-body:not(.student-panel-body) .course-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--prime-navy);
    margin: 6px 0 8px;
    line-height: 1.35;
}

.site-body:not(.student-panel-body) .pj-course-rating,
.site-body:not(.student-panel-body) .course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.site-body:not(.student-panel-body) .pj-stars,
.site-body:not(.student-panel-body) .course-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: -1px;
}

.site-body:not(.student-panel-body) .pj-rating-count { font-size: 12px; color: var(--prime-muted); }

.site-body:not(.student-panel-body) .pj-course-meta,
.site-body:not(.student-panel-body) .course-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.site-body:not(.student-panel-body) .pj-course-price,
.site-body:not(.student-panel-body) .course-price {
    font-weight: 700;
    color: var(--prime-navy);
    font-size: 15px;
}

.site-body:not(.student-panel-body) .course-price-old {
    color: var(--prime-muted);
    font-size: 13px;
    text-decoration: line-through;
    margin-right: 4px;
}

.site-body:not(.student-panel-body) .pj-course-instructor { color: var(--prime-muted); font-size: 12px; }

.site-body:not(.student-panel-body) .pj-course-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--prime-blue);
}

.site-body:not(.student-panel-body) .course-desc {
    font-size: 13px;
    color: var(--prime-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-body:not(.student-panel-body) .course-arrow { color: var(--prime-blue); }

/* ─── About page ─── */
.site-body:not(.student-panel-body) .about-panel {
    background: var(--grad);
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.25);
}

.site-body:not(.student-panel-body) .about-panel li::before { color: #fef3c7; }

.site-body:not(.student-panel-body) .about-visual-badge {
    background: var(--prime-blue);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.35);
}

.site-body:not(.student-panel-body) .stat-item {
    background: #fff;
    border: 1px solid var(--prime-border);
}

.site-body:not(.student-panel-body) .stat-item strong { color: var(--prime-blue); }

.site-body:not(.student-panel-body) .feat-item {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 28px;
}

.site-body:not(.student-panel-body) .feat-num { color: var(--prime-blue); }

/* ─── CTA ─── */
.site-body:not(.student-panel-body) .mod-cta {
    background: var(--grad);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(29, 78, 216, 0.25);
}

.site-body:not(.student-panel-body) .mod-cta-visual .mod-cta-bg { opacity: 0.15; }

/* ─── Contact ─── */
.site-body:not(.student-panel-body) .contact-form,
.site-body:not(.student-panel-body) .contact-info {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    box-shadow: var(--shadow-xs);
}

.site-body:not(.student-panel-body) .contact-line-icon {
    background: var(--prime-blue-soft);
    color: var(--prime-blue);
}

.site-body:not(.student-panel-body) .contact-form input,
.site-body:not(.student-panel-body) .contact-form textarea {
    border-color: var(--prime-border);
    border-radius: 8px;
}

.site-body:not(.student-panel-body) .contact-form input:focus,
.site-body:not(.student-panel-body) .contact-form textarea:focus {
    border-color: var(--prime-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.site-body:not(.student-panel-body) .contact-visual {
    border-radius: var(--prime-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ─── Course detail ─── */
.site-body:not(.student-panel-body) .enroll-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    box-shadow: var(--shadow);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.site-body:not(.student-panel-body) .enroll-page-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.site-body:not(.student-panel-body) .enroll-course-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.site-body:not(.student-panel-body) .enroll-course-thumb {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    object-fit: cover;
}

.site-body:not(.student-panel-body) .enroll-course-desc {
    color: var(--prime-muted);
    margin: 8px 0 16px;
    line-height: 1.6;
}

.site-body:not(.student-panel-body) .enroll-student-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 20px 24px;
}

.site-body:not(.student-panel-body) .enroll-student-meta {
    color: var(--prime-muted);
    font-size: 14px;
    margin-top: 4px;
}

.site-body:not(.student-panel-body) .enroll-card-title {
    margin: 0 0 16px;
    font-size: 18px;
}

.site-body:not(.student-panel-body) .enroll-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.site-body:not(.student-panel-body) .enroll-summary-note {
    font-size: 13px;
    color: var(--prime-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.site-body:not(.student-panel-body) .enroll-note {
    font-size: 12px;
    color: var(--prime-muted);
    margin-top: 10px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .site-body:not(.student-panel-body) .enroll-page-grid {
        grid-template-columns: 1fr;
    }

    .site-body:not(.student-panel-body) .enroll-course-card {
        grid-template-columns: 1fr;
    }

    .site-body:not(.student-panel-body) .enroll-card {
        position: static;
    }
}

.site-body:not(.student-panel-body) .curriculum-item {
    border-color: var(--prime-border);
    border-radius: 8px;
}

.site-body:not(.student-panel-body) .curriculum-tag.preview {
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
}

.site-body:not(.student-panel-body) .tag {
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
}

.site-body:not(.student-panel-body) .tag-muted {
    background: #f1f5f9;
    color: var(--prime-muted);
}

/* ─── Auth pages ─── */
.site-body:not(.student-panel-body) .auth-page {
    background: #f8fafc;
}

.site-body:not(.student-panel-body) .auth-visual::after {
    background: linear-gradient(135deg, rgba(26, 31, 54, 0.82) 0%, rgba(159, 18, 57, 0.78) 100%);
}

.site-body:not(.student-panel-body) .auth-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
}

.site-body:not(.student-panel-body) .auth-card h1 { color: var(--prime-navy); }
.site-body:not(.student-panel-body) .auth-link a { color: var(--prime-blue); }

.site-body:not(.student-panel-body) .form-input,
.site-body:not(.student-panel-body) .auth-card input {
    border: 1px solid var(--prime-border);
    border-radius: 8px;
}

.site-body:not(.student-panel-body) .form-input:focus,
.site-body:not(.student-panel-body) .auth-card input:focus {
    border-color: var(--prime-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* ─── Payment result ─── */
.site-body:not(.student-panel-body) .payment-result-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--prime-radius);
}

.site-body:not(.student-panel-body) .payment-result-icon.success {
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
}

/* ─── Empty & alerts ─── */
.site-body:not(.student-panel-body) .empty-box {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
}

.site-body:not(.student-panel-body) .alert-success {
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
    border-color: #fecdd3;
}

/* ─── Pagination ─── */
.site-body:not(.student-panel-body) .pagination-wrap a,
.site-body:not(.student-panel-body) .pagination-wrap span {
    border-color: var(--prime-border);
    border-radius: 8px;
}

.site-body:not(.student-panel-body) .pagination-wrap .active span,
.site-body:not(.student-panel-body) .pagination-wrap a:hover {
    background: var(--prime-blue);
    border-color: var(--prime-blue);
    color: #fff;
}

/* ─── Mobile nav ─── */
@media (max-width: 900px) {
    .site-body:not(.student-panel-body) .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--prime-border);
        display: none;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    }

    .site-body:not(.student-panel-body) .site-nav.open { display: flex; }
    .site-body:not(.student-panel-body) .site-nav-mobile-actions { display: flex; }
    .site-body:not(.student-panel-body) .site-menu-toggle { display: flex; }
    .site-body:not(.student-panel-body) .site-nav-actions { display: none; }
}

@media (max-width: 768px) {
    .site-body:not(.student-panel-body) .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .site-body:not(.student-panel-body) .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Branches ─── */
.site-body:not(.student-panel-body) .branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.site-body:not(.student-panel-body) .branch-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-xs);
}

.site-body:not(.student-panel-body) .branch-card-main {
    border-color: var(--prime-blue);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.12);
}

.site-body:not(.student-panel-body) .branch-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--prime-blue-soft);
    color: var(--prime-blue-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.site-body:not(.student-panel-body) .branch-city {
    font-size: 12px;
    font-weight: 600;
    color: var(--prime-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-body:not(.student-panel-body) .branch-card-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--prime-navy);
    margin-top: 4px;
}

.site-body:not(.student-panel-body) .branch-meta {
    list-style: none;
    font-size: 14px;
    color: var(--prime-muted);
    line-height: 1.7;
}

.site-body:not(.student-panel-body) .branch-meta li {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.site-body:not(.student-panel-body) .branch-meta a { color: var(--prime-blue); }

.site-body:not(.student-panel-body) .branch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ─── Blog ─── */
.site-body:not(.student-panel-body) .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.site-body:not(.student-panel-body) .blog-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    overflow: hidden;
    display: block;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.site-body:not(.student-panel-body) .blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.site-body:not(.student-panel-body) .blog-card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.site-body:not(.student-panel-body) .blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-body:not(.student-panel-body) .blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--prime-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.site-body:not(.student-panel-body) .blog-card-body { padding: 20px; }

.site-body:not(.student-panel-body) .blog-card-date {
    font-size: 12px;
    color: var(--prime-muted);
}

.site-body:not(.student-panel-body) .blog-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--prime-navy);
    margin: 8px 0 10px;
    line-height: 1.35;
}

.site-body:not(.student-panel-body) .blog-card-body p {
    font-size: 14px;
    color: var(--prime-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.site-body:not(.student-panel-body) .blog-hero-cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.site-body:not(.student-panel-body) .blog-hero-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.site-body:not(.student-panel-body) .blog-article { max-width: 760px; }

.site-body:not(.student-panel-body) .blog-article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 20px;
}

.site-body:not(.student-panel-body) .blog-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--prime-border);
}

/* ─── FAQ ─── */
.site-body:not(.student-panel-body) .faq-layout {
    max-width: 800px;
    margin: 0 auto;
}

.site-body:not(.student-panel-body) .faq-group { margin-bottom: 40px; }

.site-body:not(.student-panel-body) .faq-group-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--prime-navy);
    margin-bottom: 16px;
}

.site-body:not(.student-panel-body) .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-body:not(.student-panel-body) .faq-item {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    overflow: hidden;
}

.site-body:not(.student-panel-body) .faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--prime-navy);
    cursor: pointer;
    list-style: none;
}

.site-body:not(.student-panel-body) .faq-item summary::-webkit-details-marker { display: none; }

.site-body:not(.student-panel-body) .faq-item summary::after {
    content: '+';
    float: right;
    color: var(--prime-blue);
    font-weight: 700;
}

.site-body:not(.student-panel-body) .faq-item[open] summary::after { content: '−'; }

.site-body:not(.student-panel-body) .faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--prime-muted);
}

@media (max-width: 1100px) {
    .site-body:not(.student-panel-body) .site-nav a {
        padding: 8px 7px;
        font-size: 12px;
    }
}

/* --- home.css --- */
/* Home page — Prime Japanese Language Institute */

.page-home .pj-hero {
    position: relative;
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgba(29, 78, 216, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #f8fafc 100%);
    padding: 48px 0 64px;
    overflow: hidden;
}

.page-home .pj-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 45vw);
    height: min(420px, 45vw);
    background: radial-gradient(circle, rgba(29, 78, 216, 0.09) 0%, transparent 68%);
    pointer-events: none;
}

.page-home .pj-hero::after {
    content: 'プライム';
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 900;
    color: rgba(29, 78, 216, 0.06);
    letter-spacing: 0.08em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.pj-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pj-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: #fff;
    color: var(--prime-blue-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 999px;
    margin-bottom: 20px;
    border: 1px solid rgba(29, 78, 216, 0.15);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.08);
}

.pj-hero-badge::before {
    content: '日';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.pj-hero-content h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--prime-navy);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.pj-hero-content h1 span { color: var(--prime-blue); }

.pj-hero-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--prime-muted);
    max-width: 460px;
    margin-bottom: 28px;
}

.pj-hero-visual { position: relative; min-height: 420px; }

.pj-hero-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--prime-blue) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.28;
}
.pj-hero-dots-1 { top: 0; right: 20px; }
.pj-hero-dots-2 { bottom: 40px; left: -20px; }

.pj-hero-img {
    border-radius: var(--prime-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 31, 54, 0.14);
}
.pj-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.pj-hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 72%;
    height: 340px;
    z-index: 2;
    border: 3px solid #fff;
}

.pj-hero-img-side {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48%;
    height: 200px;
    z-index: 3;
    border: 4px solid #fff;
}

.pj-hero-float-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 32px rgba(26, 31, 54, 0.12);
    z-index: 4;
    border: 1px solid var(--prime-border);
}

.pj-hero-rate { top: 24px; left: 0; text-align: center; min-width: 96px; }
.pj-hero-rate strong { display: block; font-size: 22px; color: var(--prime-blue); line-height: 1.2; }
.pj-hero-rate span { font-size: 10px; color: var(--prime-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.pj-hero-contact {
    bottom: 60px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pj-hero-contact-icon { font-size: 20px; }
.pj-hero-contact small { display: block; font-size: 11px; color: var(--prime-muted); }
.pj-hero-contact strong { font-size: 13px; color: var(--prime-navy); }

/* JLPT trust bar */
.jp-trust-bar {
    background: var(--prime-navy);
    color: #fff;
    padding: 0;
    border-bottom: 3px solid var(--prime-blue);
}

.jp-trust-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.jp-trust-item {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 120px;
}

.jp-trust-item:last-child { border-right: none; }

.jp-trust-item strong {
    font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.jp-trust-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jp-trust-item.is-highlight {
    background: rgba(29, 78, 216, 0.25);
}

.jp-trust-item.is-highlight strong { color: #fecdd3; }

.pj-section { padding: 72px 0; }
.pj-section-soft {
    background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
}

.pj-section-title {
    text-align: center;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--prime-navy);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}
.pj-section-title span { color: var(--prime-blue); }

.pj-section-sub {
    text-align: center;
    color: var(--prime-muted);
    margin: -24px auto 32px;
    max-width: 520px;
}

.pj-section-cta { text-align: center; margin-top: 40px; }

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

.pj-level-card {
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 32px 28px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.pj-level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.2s;
}

.pj-level-card:hover {
    box-shadow: 0 16px 40px rgba(26, 31, 54, 0.1);
    transform: translateY(-4px);
    border-color: rgba(29, 78, 216, 0.2);
}

.pj-level-card:hover::before { opacity: 1; }

.pj-level-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--level-color) 12%, white);
    color: var(--level-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pj-level-icon svg { width: 28px; height: 28px; }

.pj-level-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prime-navy);
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
}

.pj-level-card p { font-size: 14px; color: var(--prime-muted); line-height: 1.6; margin-bottom: 20px; min-height: 66px; }

.pj-course-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.pj-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--prime-border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--prime-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.pj-tab.active,
.pj-tab:hover {
    background: var(--prime-blue);
    border-color: var(--prime-blue);
    color: #fff;
}

.pj-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pj-empty { text-align: center; padding: 48px; color: var(--prime-muted); }
.pj-empty .btn { margin-top: 16px; }

.pj-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pj-stat-card {
    border-radius: var(--prime-radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid transparent;
}
.pj-stat-card strong { display: block; font-size: 28px; font-weight: 800; color: var(--prime-navy); margin-bottom: 6px; }
.pj-stat-card span { font-size: 12px; font-weight: 600; color: var(--prime-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.pj-stat-mint { background: #eff6ff; border-color: #bfdbfe; }
.pj-stat-pink { background: #fef2f2; border-color: #fecaca; }
.pj-stat-purple { background: #eef2ff; border-color: #c7d2fe; }
.pj-stat-yellow { background: #fffbeb; border-color: #fde68a; }

.pj-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.pj-about-visual { position: relative; }
.pj-about-visual img { width: 100%; border-radius: var(--prime-radius); aspect-ratio: 4/5; object-fit: cover; }

.pj-about-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--prime-blue-soft);
    border-radius: 12px;
    z-index: -1;
    border: 2px solid rgba(29, 78, 216, 0.12);
}

.pj-about-badge {
    position: absolute;
    bottom: 24px;
    right: -16px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(26, 31, 54, 0.12);
    text-align: center;
    border: 1px solid var(--prime-border);
}
.pj-about-badge strong { display: block; font-size: 22px; color: var(--prime-blue); }
.pj-about-badge span { font-size: 12px; color: var(--prime-muted); font-weight: 600; }

.pj-about-content h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--prime-navy);
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.pj-about-content h2 span { color: var(--prime-blue); }
.pj-about-content > p { color: var(--prime-muted); line-height: 1.7; margin-bottom: 24px; }

.pj-checklist { list-style: none; margin-bottom: 28px; }
.pj-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--prime-navy);
    font-weight: 500;
}
.pj-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: #fff1f2;
    color: var(--prime-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #fecdd3;
}

.pj-video-wrap { text-align: center; }

.pj-video-player {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--prime-radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 31, 54, 0.16);
    border: 3px solid #fff;
}
.pj-video-player img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.pj-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--prime-blue);
    border: 4px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.45);
    transition: transform 0.2s;
}
.pj-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.pj-play-btn:hover { transform: scale(1.08); }

.pj-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.pj-testimonials-intro h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--prime-navy);
    margin-bottom: 14px;
    line-height: 1.2;
}
.pj-testimonials-intro p { color: var(--prime-muted); margin-bottom: 24px; line-height: 1.6; }

.pj-testimonials-slider-wrap { overflow: hidden; }
.pj-testimonials-track { display: flex; gap: 20px; transition: transform 0.4s ease; }

.pj-testimonial-card {
    flex: 0 0 calc(50% - 10px);
    background: #fff;
    border: 1px solid var(--prime-border);
    border-radius: var(--prime-radius);
    padding: 24px;
    min-width: 0;
}

.pj-testimonial-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pj-testimonial-head .pj-stars { margin-left: auto; color: #f59e0b; }

.pj-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--prime-blue-soft); }
.pj-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pj-testimonial-head strong { display: block; font-size: 14px; color: var(--prime-navy); }
.pj-testimonial-head span { font-size: 12px; color: var(--prime-blue-dark); font-weight: 600; }
.pj-testimonial-card > p { font-size: 14px; color: var(--prime-muted); line-height: 1.65; font-style: italic; }

.pj-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pj-slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--prime-border);
    cursor: pointer;
    padding: 0;
}
.pj-slider-dots button.active { background: var(--prime-blue); width: 24px; border-radius: 4px; }

.pj-cta-banner {
    background: linear-gradient(135deg, var(--prime-navy) 0%, #1e40af 50%, #06b6d4 100%);
    border-radius: 20px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-cta-banner::before {
    content: 'JLPT';
    position: absolute;
    right: 24px;
    bottom: -20px;
    font-size: 96px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.pj-cta-banner h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; position: relative; }
.pj-cta-banner p { opacity: 0.9; font-size: 15px; position: relative; }
.pj-cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; }

@media (max-width: 1024px) {
    .pj-hero-grid,
    .pj-about-grid,
    .pj-testimonials-grid { grid-template-columns: 1fr; }
    .pj-hero-visual { min-height: 360px; margin-top: 32px; }
    .page-home .pj-hero::after { display: none; }
    .pj-course-grid { grid-template-columns: repeat(2, 1fr); }
    .pj-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pj-level-grid { grid-template-columns: 1fr; }
    .pj-testimonial-card { flex: 0 0 100%; }
    .pj-cta-banner { flex-direction: column; text-align: center; padding: 36px 28px; }
    .pj-cta-actions { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .pj-section { padding: 48px 0; }
    .pj-course-grid { grid-template-columns: 1fr; }
    .pj-hero-img-main { width: 85%; height: 280px; }
    .pj-hero-img-side { width: 55%; height: 160px; }
    .pj-hero-contact { right: 0; bottom: 20px; }
    .jp-trust-item { flex: 1 1 50%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .jp-trust-item:nth-child(2n) { border-right: none; }
}

