/* ===========================
   DESIGN TOKENS
=========================== */
:root {
    --blue:         #0099FF;
    --blue-light:   #66CCFF;
    --orange:       #FF5A00;
    --orange-light: #FF9B45;
    --orange-dark:  #CC3A00;
    --green:        #00C17A;
    --purple:       #7C3AED;

    --bg:           #F0F6FF;
    --surface:      rgba(255, 255, 255, 0.82);
    --surf-border:  rgba(148, 163, 184, 0.22);

    --text:         #0F172A;
    --text-sub:     #475569;
    --text-muted:   #94A3B8;

    --font: 'Inter', 'Noto Sans JP', sans-serif;

    --r-sm:  12px;
    --r-md:  20px;
    --r-lg:  28px;

    --blur:  blur(20px);

    --sh-sm: 0 2px 8px  rgba(0,0,0,0.06);
    --sh-md: 0 8px 24px rgba(0,0,0,0.08);
    --sh-lg: 0 20px 52px rgba(0,0,0,0.11);

    --ease:     cubic-bezier(0.25, 0.8,  0.25, 1);
    --ease-out: cubic-bezier(0.0,  0.0,  0.2,  1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ===========================
   PARTICLE CANVAS
=========================== */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===========================
   LAYOUT
=========================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section { padding: 9rem 0; }

.section-alt {
    background: linear-gradient(
        180deg,
        transparent,
        rgba(14, 165, 233, 0.045) 30%,
        rgba(249, 115, 22, 0.035) 70%,
        transparent
    );
}

.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-top: 0.6rem;
}

/* ===========================
   EYEBROW BADGE
=========================== */
.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    background: linear-gradient(120deg, var(--blue), #33AAFF);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.32);
}

/* ===========================
   HEADER
=========================== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
    padding: 0 2rem;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surf-border);
    box-shadow: var(--sh-sm);
}

.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { display: flex; flex-direction: column; line-height: 1.25; }
.logo-brand { font-size: 0.78rem; font-weight: 700; color: var(--orange); letter-spacing: 0.03em; }
.logo-dept  { font-size: 1.05rem; font-weight: 900; color: var(--text); letter-spacing: 0.02em; }

#nav ul { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
#nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.2s;
}
#nav a:hover { color: var(--text); }

.nav-cta {
    background: linear-gradient(120deg, #FF5A00, #FF8C00) !important;
    color: #fff !important;
    padding: 0.5rem 1.375rem;
    border-radius: 100px;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(255, 90, 0, 0.42);
    transition: box-shadow 0.25s, transform 0.2s !important;
}
.nav-cta:hover {
    box-shadow: 0 6px 22px rgba(255, 90, 0, 0.58) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ===========================
   HAMBURGER
=========================== */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}
#menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
#menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   MOBILE NAV
=========================== */
#mobile-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surf-border);
    z-index: 99;
    padding: 1.5rem 2rem 2rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    display: none;
}
#mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
#mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
#mobile-nav a { font-size: 1.1rem; font-weight: 600; color: var(--text); }

/* ===========================
   HERO
=========================== */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

/* Vivid gradient mesh in background */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 85% 15%, rgba(0, 153, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 5%  85%, rgba(255, 90,   0, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 55% 55%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding-top: 72px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}
.text-orange {
    background: linear-gradient(120deg, #FF5A00, #FF9B45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-blue {
    background: linear-gradient(120deg, #0099FF, #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-catch {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-sub);
    max-width: 520px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}
.scroll-indicator {
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
    0%, 100% { opacity: 0.25; transform: scaleY(0.35); transform-origin: top; }
    50%       { opacity: 1;    transform: scaleY(1);    transform-origin: top; }
}

/* Hero reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(22px);
}
.reveal.visible {
    animation: revealUp 0.85s var(--ease-out) forwards;
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-sub);
    line-height: 1.88;
    margin-bottom: 1.25rem;
}

.about-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.stat-glass {
    background: linear-gradient(135deg, rgba(255,90,0,0.08) 0%, rgba(255,255,255,0.9) 60%);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid rgba(255, 90, 0, 0.18);
    border-radius: var(--r-md);
    padding: 2rem 2.5rem;
    box-shadow: var(--sh-md);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-glass::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,90,0,0.12), transparent 70%);
    pointer-events: none;
}
.stat-glass:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.stat-num {
    font-size: 3.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF5A00, #FF9B45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-unit  { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.95rem; font-weight: 600; color: var(--text-sub); }

/* ===========================
   MESSAGE SECTION
=========================== */
.message-glass {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--surf-border);
    border-left: 5px solid var(--orange);
    border-radius: var(--r-lg);
    padding: 4rem;
    box-shadow: var(--sh-md);
    position: relative;
    overflow: hidden;
}
.message-glass::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(14,165,233,0.07), transparent 70%);
    pointer-events: none;
}

.message-head { margin-bottom: 2.5rem; }
.message-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    margin-top: 0.75rem;
}

.president-quote {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 700;
    color: var(--orange-dark);
    font-style: normal;
    line-height: 1.88;
    padding: 1.5rem 2rem 1.5rem 2.75rem;
    background: rgba(249, 115, 22, 0.06);
    border-radius: var(--r-sm);
    margin-bottom: 2rem;
    position: relative;
}
.president-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.4rem; left: 1.1rem;
    font-size: 4.5rem;
    color: var(--orange);
    opacity: 0.25;
    line-height: 1;
    font-family: Georgia, serif;
}

.message-body {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.92;
    margin-bottom: 2.5rem;
}

.president-sig { text-align: right; padding-top: 1.5rem; }
.sig-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--surf-border));
    margin-bottom: 1rem;
}
.sig-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.sig-name { font-size: 1.5rem; font-weight: 900; color: var(--text); }

/* ===========================
   INITIATIVES SECTION
=========================== */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.init-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--surf-border);
    border-radius: var(--r-md);
    padding: 2.25rem;
    box-shadow: var(--sh-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.init-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent, var(--blue));
    border-radius: 0 0 4px 4px;
}
.init-card::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, var(--accent-glow, rgba(0,153,255,0.08)), transparent 70%);
    pointer-events: none;
    transition: opacity 0.35s;
    opacity: 0.6;
}
.init-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.13);
    border-color: var(--accent, var(--blue));
}
.init-card:hover::after { opacity: 1; }

.init-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }

.init-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--accent, var(--blue));
    border-radius: 100px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.init-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    color: var(--text);
}
.init-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.82;
}

/* ===========================
   CONTACT SECTION
=========================== */
.section-contact {
    background: linear-gradient(135deg,
        rgba(0, 153, 255, 0.07),
        rgba(255, 90,  0,  0.07)
    );
}

.contact-glass {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--surf-border);
    border-radius: var(--r-lg);
    padding: 5.5rem 3rem;
    text-align: center;
    box-shadow: var(--sh-md);
    position: relative;
    overflow: hidden;
}
.contact-glass::before {
    content: '';
    position: absolute;
    bottom: -80px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.07), transparent 70%);
    pointer-events: none;
}

.contact-glass h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    margin: 1rem 0;
}
.contact-glass p {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 2.75rem;
    line-height: 1.82;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #FF5A00, #FF8C00);
    color: #fff;
    padding: 0.95rem 2.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 22px rgba(255, 90, 0, 0.48);
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 90, 0, 0.58);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 0.9rem 2.25rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid var(--surf-border);
    transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-outline:hover {
    border-color: var(--blue);
    background: rgba(14, 165, 233, 0.06);
    color: var(--blue);
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: #fff;
    border-top: 1px solid var(--surf-border);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-logo-brand { font-size: 0.78rem; font-weight: 700; color: var(--orange); }
.footer-logo-dept  { font-size: 1rem; font-weight: 800; color: var(--text); }

.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.copyright {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===========================
   SCROLL FADE-IN ANIMATION
=========================== */
.animate-fade {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
.animate-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .section { padding: 5rem 0; }

    #nav         { display: none; }
    #menu-toggle { display: flex; }
    #mobile-nav  { display: block; }

    .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }

    .message-glass { padding: 2.5rem 1.75rem; }
    .contact-glass { padding: 3.5rem 1.75rem; }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-nav { flex-direction: column; gap: 0.75rem; }
}
