:root {
    --dark-blue: #020c1b;
    --light-blue: #00f5ff;
    --light-grey: #ccd6f6;
    --white: #e6f1ff;
    --font-sans: 'Exo 2', 'Noto Sans JP', sans-serif;
    --header-height: 80px;
}

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

html {
    /* Removed single-page scroll properties */
}

body {
    background-color: var(--dark-blue);
    color: var(--light-grey);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

#mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Opacity is now controlled in JS for the new effect */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    background-color: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: top 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.7));
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--light-blue);
    text-shadow: 0 0 5px var(--light-blue);
}

.lang-switcher-item {
    margin-left: auto;
}

#language-toggle {
    background-color: transparent;
    color: var(--light-grey);
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#language-toggle:hover {
    background-color: rgba(0, 245, 255, 0.1);
}

#language-toggle:focus {
    outline: none;
    box-shadow: 0 0 8px var(--light-blue);
}

.mobile-nav-toggle {
    display: none;
}

main {
    padding-top: var(--header-height);
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    min-height: calc(100vh - var(--header-height) - 280px); /* Header and new footer height */
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--light-blue);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 2.5rem;
    font-size: 1.1rem;
}

/* Carousel */
#top {
    padding: 0;
    max-width: none;
    height: 60vh; /* Reduced height */
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.7);
}

.carousel-caption {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 1rem;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators button.active {
    background-color: var(--light-blue);
}

/* News Section */
.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.news-item time {
    color: var(--light-grey);
}

.news-item p {
    flex-grow: 1;
}

.news-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.news-item a:hover {
    color: var(--light-blue);
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.view-all-btn:hover {
    background-color: rgba(0, 245, 255, 0.1);
    color: var(--white);
}

/* Business Section */
.business-section {
    background-color: #010814;
}

/* Vision Section */
.vision-section {
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

.vision-content h2 {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vision-content p {
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1.3;
}


/* Corporate Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    color: var(--light-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-item span {
    font-size: 1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(100, 255, 218, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.card-link:hover {
    text-decoration: underline;
}

/* Members */
.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--light-blue);
    box-shadow: 0 0 15px var(--light-blue);
}
.member-card {
    text-align: center;
}
.member-title {
    color: var(--light-blue);
}

/* About */
.about-text {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
    font-size: 1.1rem;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(100, 255, 218, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 4px;
    padding: 1rem;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--light-grey);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 8px var(--light-blue);
}

.contact-form button {
    padding: 1rem;
    background-color: transparent;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: rgba(0, 245, 255, 0.1);
    color: var(--white);
    outline: none;
}

/* --- Footer --- */
footer {
    background-color: #010814;
    color: var(--light-grey);
    padding: 4rem 2rem 2rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--light-blue);
}

.footer-column.footer-about .logo {
    margin-bottom: 1rem;
}

.footer-column.footer-about .logo-text p {
    font-size: 0.8rem;
}

.footer-about-text {
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--light-grey);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--light-blue);
    padding-left: 5px;
}

.footer-column address {
    font-style: normal;
}

.footer-column address p {
    margin-bottom: 0.5rem;
}

.footer-column address a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column address a:hover {
    color: var(--light-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-grey);
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    header {
        padding: 0 1rem;
        backdrop-filter: none;
        background-color: var(--dark-blue);
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--dark-blue);
        z-index: 1000;
        
        max-height: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.35s ease-out, visibility 0.35s ease-out;
        border-bottom: 2px solid var(--light-blue);
    }

    .nav-links[data-visible="true"] {
        max-height: 40rem; /* A large enough value to show all content */
        visibility: visible;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        display: block;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        background: transparent;
        border: 0;
        width: 2rem;
        height: 2rem;
        top: 1.5rem;
        right: 1rem;
        cursor: pointer;
    }

    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after,
    .mobile-nav-toggle span {
        content: '';
        position: absolute;
        height: 3px;
        width: 100%;
        left: 0;
        background: var(--light-blue);
        transition: transform 300ms, opacity 300ms;
    }
    
    .mobile-nav-toggle span {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-nav-toggle::before {
        top: 5px;
    }

    .mobile-nav-toggle::after {
        bottom: 5px;
    }

    .mobile-nav-toggle[aria-expanded="true"] span {
        opacity: 0;
    }
    .mobile-nav-toggle[aria-expanded="true"]::before {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle[aria-expanded="true"]::after {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .lang-switcher-item {
        margin-left: 0;
    }

    #language-toggle {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border: none;
        width: 100%;
        text-align: left;
    }
    
    .content-section {
        min-height: auto;
    }

    section {
        padding: 3rem 1rem;
    }

    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .vision-content p {
        font-size: 1.8rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }
}
