:root {
    --bg-color: #ffffff;
    /* Changed to White */
    --text-color: #1a1a1e;
    /* Changed to Dark */
    --primary-color: #2980b9;
    /* Slightly darker Blue for contrast */
    --secondary-color: #c0392b;
    /* Slightly darker Red for contrast */
    --accent-color: #f39c12;
    /* Darker Yellow */
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* More opaque white for glass on white */
    --glass-border: rgba(0, 0, 0, 0.1);
    --font-heading: 'Zen Kaku Gothic New', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: url('assets/classroom_full_bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
}




/* Cursor effects handled via JS */


/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin: 0 auto 5rem;
    /* Center block element */
    letter-spacing: 0.1em;
    position: relative;
    display: table;
    /* Fit content but allow margin auto */
    background: linear-gradient(45deg, #1a1a1e, #555);
    /* Dark gradient text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    /* Light header */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    /* Slightly smaller for long text */
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-list a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 0.7;
    color: var(--text-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    opacity: 1;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-contact-btn {
    background: var(--contact-primary, #2980b9);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    opacity: 1 !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--contact-accent, #f39c12);
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-title {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-color);
}

.x-mark {
    color: var(--accent-color);
    font-size: 6rem;
    animation: pulse 2s infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 4rem;
    color: #444;
    /* Dark gray for subtext */
}



/* Profile Cards */
.duo-intro {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.duo-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.duo-name {
    font-size: 2.8rem;
    /* Increased size */
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: #1a1a1e;
    /* Black Gothic style */
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.duo-image-wrapper {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.duo-action-img {
    width: 100%;
    height: auto;
    display: block;
}

.duo-description {
    font-size: 1.4rem;
    /* Increased size */
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.profile-card {
    position: relative;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white card */
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.profile-card.teacher {
    border-top: 4px solid var(--primary-color);
}

.profile-card.student {
    border-top: 4px solid var(--secondary-color);
}

.role-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.05;
    /* Fainter on white */
    font-family: var(--font-heading);
    color: var(--text-color);
}

.name {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.name-en {
    display: block;
    font-size: 1rem;
    opacity: 0.5;
    margin-top: 0.5rem;
    font-weight: 400;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.stats {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

.stats strong {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Awards List Styles */
.awards-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.awards-list>li {
    margin-bottom: 0.8rem;
}

.award-category {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.awards-list ul {
    list-style: none;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.awards-list ul li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

/* History Section */
.history {
    background-color: rgba(248, 249, 250, 0.5);
    /* Semi-transparent */
}

/* History List Styles */
.history-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    list-style: none;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.history-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.history-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.history-list li:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.history-list li:last-child {
    border-bottom: none;
}

/* Media Section Reorg */
.media-sections {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.media-category {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* SNS Grid */
.sns-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
    width: 80px;
}

.sns-item svg {
    width: 50px;
    height: 50px;
    transition: fill 0.3s ease;
}

.sns-item span {
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.7;
}

.sns-item:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* Brand Colors on Hover */
.sns-item.youtube:hover {
    color: #FF0000;
}

.sns-item.x-twitter:hover {
    color: #000000;
}

.sns-item.note:hover {
    color: #41C9B4;
}

.sns-item.instagram:hover {
    color: #E1306C;
}

/* Small Media Grid for Links/Articles */
.media-grid-sm {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.media-card-sm {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 350px;
    max-width: 100%;
}

.media-card-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.icon-sm,
.thumb-sm {
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    width: 80px;
    /* Wider for thumbnails */
    height: 45px;
    /* 16:9 ratio */
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-sm {
    padding: 0.5rem 0.8rem;
    min-width: 70px;
    height: auto;
}

.thumb-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-sm.yt {
    border-color: #FF0000;
    position: relative;
}

.thumb-sm.yt::after {
    content: '▶';
    position: absolute;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.media-text {
    flex: 1;
    min-width: 0;
    /* Critical for flexbox clamping */
}

.media-text h3 {
    font-size: 1.05rem;
    /* Slightly smaller for density */
    margin-bottom: 0.2rem;
    color: var(--text-color);
    word-break: break-all;
    /* More aggressive for long strings */
    overflow-wrap: break-word;
    /* Line clamping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* 2 lines is safer for small cards */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.media-text p {
    font-size: 0.8rem;
    color: #666;
}



/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    background-color: #1a1a1e;
    /* Keep footer dark for contrast */
    color: #fff;
    border-top: none;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.4;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}



/* AOS-like Logic classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-in"] {
    transform: translateY(0);
    opacity: 0;
}

[data-aos="fade-in"].aos-animate {
    opacity: 1;
}

[data-aos="scale-in"] {
    transform: scale(0.8);
    opacity: 0;
}

[data-aos="scale-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .section-title {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 0.8rem;
    }

    .header {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
        flex-direction: column;
        gap: 0;
    }

    .x-mark {
        font-size: 3rem;
        margin: 1rem 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(13, 13, 18, 0.98);
        /* Very dark background for the menu items */
        padding: 2rem;
        text-align: center;
        gap: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        font-size: 1.2rem;
        color: #ffffff;
        /* White text for visibility */
        opacity: 0.9;
    }

    .nav-list a:hover {
        opacity: 1;
        color: var(--accent-color);
    }

    .nav-contact-btn {
        width: fit-content;
        margin: 0 auto;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .menu-toggle span {
        transition: all 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}