/* =========================================
   Reset & Variables
   ========================================= */
:root {
    /* Colors inspired by the logo & sunset beach */
    --color-primary: #1d4ed8;       /* Deep Blue */
    --color-secondary: #06b6d4;     /* Teal/Cyan (Wave gradient) */
    --color-accent: #f59e0b;        /* Sunset Orange */
    --color-dark: #1e293b;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-text: #334155;
    --color-text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(30,41,59,0.3) 0%, rgba(30,41,59,0.7) 100%);
    
    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    
    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    line-height: 1.3;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.bg-light { background-color: var(--color-light); }
.mt-8 { margin-top: 2rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-link,
.header.scrolled .logo-text {
    color: var(--color-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-white);
    transition: color var(--transition-normal);
}

.nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.5);
}
.header.scrolled .btn-contact {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-normal);
}

.header.scrolled .menu-toggle span {
    background-color: var(--color-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.05); /* Slight zoom for animation */
    animation: zoomOut 20s ease-out infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-catchphrase {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background-color: var(--color-white);
    position: relative;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Sections General
   ========================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 16px;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

/* =========================================
   Message & Profile Section
   ========================================= */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.message-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.message-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6rem;
    color: var(--color-secondary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.message-catch {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.message-text {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.message-author-block {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.message-author {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    color: var(--color-dark);
    margin: 0;
}

.info-box {
    padding: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 16px 0;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
}

.info-table th {
    width: 100px;
    color: var(--color-primary);
    font-weight: 700;
}

.info-table td {
    color: var(--color-text);
}

/* =========================================
   Research Section
   ========================================= */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.research-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-secondary);
    transition: var(--transition-normal);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.research-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-light);
    line-height: 1;
    margin-bottom: 16px;
    -webkit-text-stroke: 1px var(--color-secondary);
}

.research-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.research-theme {
    font-size: 0.95rem;
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--color-accent);
}

.research-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.research-events {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.event-item {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-secondary);
}

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

.event-item.event-highlight {
    background: #fffbeb; /* pale yellow/amber for emphasis */
    border-left: 4px solid var(--color-accent);
}

.event-item.event-highlight .event-title {
    color: #b45309; /* darker amber */
}

.event-title {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.event-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    font-weight: 700;
}

.event-details {
    font-size: 0.9rem;
    color: var(--color-text);
}

.event-details li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.event-details li:last-child {
    margin-bottom: 0;
}

.event-details strong {
    color: var(--color-dark);
}

.event-link {
    color: var(--color-primary);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.event-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* =========================================
   News Section
   ========================================= */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition-fast);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    transform: translateX(8px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.news-meta time {
    color: var(--color-text-muted);
}

.news-category {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
}

.category-info { background: #e0f2fe; color: #0284c7; }
.category-event { background: #fef3c7; color: #d97706; }
.category-report { background: #dcfce7; color: #166534; }

.news-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.news-title a:hover {
    color: var(--color-primary);
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    background: url('images/hero.jpg') center/cover no-repeat fixed;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30,41,59,0.85); /* Dark overlay */
}

.contact-box {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 50px;
}

.contact-desc {
    color: #cbd5e1;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--color-white);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

.form-submit {
    margin-top: 32px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-dark);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img-small {
    height: 36px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    .hero-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .header-container { height: 64px; }
    
    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        opacity: 0;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-link { color: var(--color-dark); }
    .header.scrolled .btn-contact, .btn-contact {
        background: var(--color-primary);
        color: var(--color-white);
        border: none;
    }
    
    .menu-toggle { display: flex; }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-dark);
    }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-dark);
    }
    
    .hero-title { font-size: 2.25rem; }
    .hero-catchphrase { font-size: 1.25rem; }
    
    .section { padding: 60px 0; }
    .contact-box { padding: 30px 20px; }
    
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
