/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00E5FF;
    /* Cyan highlight */
    --secondary-color: #2979FF;
    /* Deep Blue highlight */
    --color-academic: #003366;
    /* Academic Navy */
    --color-gold: #C49F47;
    /* Gold Accent */
    --bg-dark: #173252;
    /* Deep Blue from Logo */
    --bg-light: #ffffff;
    --text-main: #FFFFFF;
    --text-dark: #222222;
    --text-muted: #B0BEC5;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-logo: 'Cormorant Garamond', serif;
    --gradient-main: linear-gradient(135deg, #00E5FF 0%, #2979FF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-primary.sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.section-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-video-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 11, 22, 0.85);
    /* Dark overlay for readability */
}

.section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header.center {
    text-align: center;
}

/* Content Mode (Deep Ocean / Dark Version) */
.white-mode {
    background-color: var(--bg-dark);
    /* Match body bg */
    color: var(--text-main);
    font-family: var(--font-body);
}

.white-mode h2,
.white-mode h3 {
    color: var(--text-main);
    font-family: var(--font-serif);
}

.white-mode .section-header .subtitle {
    color: var(--primary-color);
    /* Cyan for pop on dark */
    font-weight: 700;
    opacity: 1;
}

.white-mode .section-header h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-main);
    border: none;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding: 0 0 10px 0;
    border-radius: 0;
}

.white-mode p {
    color: var(--text-main);
}

.white-mode .glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Dark Glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.white-mode .glass-card h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.white-mode .glass-card.highlight-card {
    background: rgba(0, 229, 255, 0.1);
    /* Cyan Tint */
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

/* Key Message Section */
.message-content {
    max-width: 900px;
    margin: 0 auto;
}

.message-intro {
    text-align: center;
    margin-bottom: 60px;
}

.message-intro h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.message-intro p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: left;
}

.highlight-text {
    color: white;
    font-weight: 700;
    box-shadow: inset 0 -8px 0 rgba(0, 229, 255, 0.3);
}

.message-block {
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
}

.message-block h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    color: white;
}

.message-block h4 span {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-weight: 500;
}

.message-block p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sub-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.sub-block h5 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
}

.message-list {
    list-style: none;
    margin: 20px 0;
}

.message-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.message-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.message-list strong {
    color: white;
}

.message-conclusion {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(41, 121, 255, 0.1) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.message-conclusion h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.message-conclusion p {
    font-size: 1.1rem;
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.3s ease;
}

.navbar.scrolled {
    background: rgba(23, 50, 82, 0.9);
    /* Match new bg */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a:not(.btn-primary):hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img,
.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg video.active {
    opacity: 1;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 11, 22, 0.3) 0%, rgba(2, 11, 22, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-content h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News & Reports */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.news-card.featured {
    border-left: 4px solid var(--primary-color);
}

.news-date {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.event-details {
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.report-gallery {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-summary {
    font-style: italic;
    color: var(--text-muted);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Membership & Documents */
.membership-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.membership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.doc-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.doc-icon {
    font-size: 2rem;
    margin-right: 20px;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.doc-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-text strong {
    color: white;
    box-shadow: inset 0 -4px 0 rgba(0, 229, 255, 0.3);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding: 40px;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 180px;
    backdrop-filter: blur(5px);
}

.glass-card.highlight-card {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.plus-icon {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Carbonate Paradox */
.paradox-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.paradox-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.paradox-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.chemical-formula {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px dashed rgba(0, 229, 255, 0.3);
}

/* Service Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info {
    margin: 40px 0;
}

.contact-info .role {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-info .name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.email-link {
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.email-link:hover {
    color: var(--primary-color);
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 30px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: var(--color-academic);
    border-top: 5px solid var(--color-gold);
    margin-top: 0;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 1;
    color: white;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Real Member Image */
.member-img-real {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .membership-content {
        grid-template-columns: 1fr;
    }
}