
/* General Styles - Optimized for both Japanese and English versions */
/* 主催者セクションのスタイル / Organizer Section Styles */

/* Meta viewport tag to control zooming - Enhanced for better performance */
@viewport {
    width: device-width;
    zoom: 1.0;
    user-zoom: fixed;
}

/* Performance optimizations */
* {
    box-sizing: border-box; /* Consistent box model */
    margin: 0;
    padding: 0;
}

/* Ensure consistent styling for both language versions */
html {
    scroll-behavior: smooth; /* Enable smooth scrolling for both versions */
    text-size-adjust: 100%; /* Prevent text size adjustment */
    -webkit-text-size-adjust: 100%; /* For Safari */
}

/* Language-specific typography adjustments */
html[lang="en"] {
    font-feature-settings: "kern", "liga", "calt"; /* Better English typography */
}

html[lang="ja"] {
    font-feature-settings: "palt"; /* Better Japanese typography with proportional spacing */
}

/* 事務局セクションのスタイル */
.student-researchers-section {
    margin-top: 3rem;
    background-color: rgba(13, 35, 71, 0.5);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.2);
    transform: translateX(-150%);
    animation: slideInRight 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.student-researchers-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #4a8cff;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.student-researcher {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 140, 255, 0.2);
}

.student-researcher:last-of-type {
    border-bottom: none;
}

.student-researcher h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
    letter-spacing: 0.03em;
}

.student-researcher ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.student-researcher li {
    margin-bottom: 0.5rem;
    color: #cce5ff;
}

.student-note {
    font-size: 0.9rem;
    color: #a0c0ff;
    text-align: right;
    margin-top: 1rem;
    font-style: italic;
}
.organizer-section {
    margin-bottom: 3rem;
}

.organizer-single {
    background-color: #0d2347;
    background-image: linear-gradient(135deg, rgba(13, 35, 71, 0.9), rgba(5, 20, 40, 0.95));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 140, 255, 0.15) inset;
    border: 1px solid rgba(74, 140, 255, 0.25);
    margin-bottom: 2rem;
    padding: 2rem;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateX(150%);
    animation: slideInLeft 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.3s;
    position: relative;
    z-index: 1;
}

.organizer-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 140, 255, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.organizer-single:hover::before {
    opacity: 1;
}

.organizer-single:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 140, 255, 0.3) inset;
}

.organizer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.organizer-image-large {
    width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.2);
    object-fit: cover; /* Ensure consistent image display */
    aspect-ratio: 1 / 1; /* Maintain aspect ratio */
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.organizer-image-large:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 140, 255, 0.4);
}

.organizer-title {
    margin-bottom: 1rem;
}

.organizer-title h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.organizer-details {
    color: #e0e0e0;
    line-height: 1.8;
    max-width: 90%;
    margin: 0 auto;
}

.organizer-details strong {
    color: #4a8cff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(74, 140, 255, 0.3);
}

.organizer-details a {
    text-decoration: underline;
    font-weight: 500;
}

.organizer-details a:hover {
    color: #6aa0ff;
    text-decoration: none;
}

.organizer-details p {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.organizer-details p:hover {
    background-color: rgba(13, 59, 124, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(74, 140, 255, 0.1) inset;
    transform: translateY(-3px);
}

.publication-text p {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 140, 255, 0.2);
}

.publication-text p:last-child {
    border-bottom: none;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .organizer-header {
        flex-direction: row;
        text-align: left;
    }
    
    .organizer-image-large {
        margin-right: 2rem;
        margin-bottom: 0;
    }
    
    .organizer-title {
        flex: 1;
    }
}

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

body {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    line-height: 1.6;
    color: #e6e6e6;
    background-color: #0c1c2e;
    letter-spacing: 0.05em;
    -webkit-text-size-adjust: 100%; /* Prevent text size adjustment on orientation change */
    text-size-adjust: 100%; /* Standard property for other browsers */
    touch-action: pan-y; /* Prevent pinch zoom but allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-feature-settings: "kern", "liga", "calt", "pnum";
    text-rendering: optimizeLegibility;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
}

a {
    text-decoration: none;
    color: #3a7cdf;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a90e6;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0d3b7c, #1a4b8c);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #1a4b8c, #2a5b9c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-radius: 3px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(74, 140, 255, 0.3);
    animation: none; /* Remove animation for more professional look */
}

/* Remove glow animation for more professional look */

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3a7cdf, transparent);
    box-shadow: 0 1px 4px rgba(74, 140, 255, 0.3);
    animation: none; /* Remove animation for more professional look */
}

/* Remove shimmer animation for more professional look */

/* Background Slider - Optimized for performance */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    will-change: transform; /* Optimize for animations */
    perspective: 1000px; /* Add perspective for 3D effect */
}

.bg-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keep background fixed during scroll */
    background-size: cover !important; /* Ensure background covers entire area on all devices */
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    z-index: -1;
    transform: scale(1.05) translateZ(0); /* Use 3D transforms for hardware acceleration */
    will-change: transform, opacity; /* Optimize for animations */
    transform-style: preserve-3d; /* Maintain 3D effect */
    backface-visibility: hidden; /* Prevent flickering */
    
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast; /* Improve image rendering in Chrome */
    image-rendering: crisp-edges; /* Improve image rendering in Firefox */
}

/* Add a semi-transparent overlay to make content more readable */
.bg-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.6), rgba(13, 50, 100, 0.4));
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, rgba(10, 26, 47, 0.6), rgba(13, 50, 100, 0.4));
    }
    50% {
        background: linear-gradient(135deg, rgba(13, 50, 100, 0.4), rgba(10, 26, 47, 0.6));
    }
    100% {
        background: linear-gradient(135deg, rgba(10, 26, 47, 0.6), rgba(13, 50, 100, 0.4));
    }
}

.bg-slider-item.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
}

/* Remove animation from active slide */
.bg-slider-item.active {
    animation: none;
}

/* Make sure the overlay is visible */
.bg-slider::after {
    display: none; /* Remove this overlay since we're using ::before instead */
}

/* Background image captions */
.bg-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(5, 20, 40, 0.9);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    max-width: 400px;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    border-left: 4px solid #4a8cff;
    z-index: 100;
    opacity: 1 !important;
    transition: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}


/* Explicitly set background images with optimized loading */
.bg-slider-item:nth-child(1) {
    background-image: url('images/bg-1.jpg');
    /* Add loading priority */
    content-visibility: auto; /* Improve rendering performance */
}

.bg-slider-item:nth-child(2) {
    background-image: url('images/bg-2.jpg');
    content-visibility: auto; /* Improve rendering performance */
}

/* Header */
header {
    background: linear-gradient(to bottom, rgba(10, 26, 47, 0.98), rgba(13, 35, 65, 0.95));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(74, 140, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.5s ease;
}

header:hover {
    background: linear-gradient(to bottom, rgba(13, 35, 65, 0.98), rgba(10, 26, 47, 0.95));
}

/* Hide header on scroll down for mobile */
header.hide {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.logo:hover h1 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 5px rgba(74, 140, 255, 0.3);
}

.logo p {
    font-size: 0.9rem;
    color: #a0b8e0;
    transition: color 0.3s ease;
}

.logo:hover p {
    color: #c0d0e8;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center; /* Center items when wrapped */
}

nav ul li {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem; /* Add space when wrapped */
}

nav ul li a {
    color: #e6e6e6;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent text from wrapping within the link */
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3a7cdf;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-text {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.8), rgba(13, 35, 65, 0.85));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    transform: none;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: var(--delay, 0s);
}

.hero-text h1 {
    --delay: 0.3s;
}

.hero-text h2 {
    --delay: 0.6s;
}

.hero-text p {
    --delay: 0.9s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px);
    }
    85% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    position: relative;
    background-color: rgba(10, 26, 47, 0.65);
    padding: 6rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(74, 140, 255, 0.15);
    border-bottom: 1px solid rgba(74, 140, 255, 0.15);
    backdrop-filter: blur(8px); /* Add blur effect for better readability */
    -webkit-backdrop-filter: blur(8px);
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(5, 20, 40, 0.5), rgba(13, 50, 100, 0.5));
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.about-content-vertical {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-content-vertical .about-text,
.about-content-vertical .about-policy {
    background-color: rgba(13, 35, 65, 0.5);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.about-content-vertical .about-text:hover,
.about-content-vertical .about-policy:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    border-color: rgba(74, 140, 255, 0.25);
}

.about-content-vertical .about-text {
    transform: translateX(-150%);
    animation: slideInRight 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.about-content-vertical .about-policy {
    transform: translateX(-150%);
    animation: slideInRight 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

.about-text h3, .about-policy h3 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: #3a7cdf;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    letter-spacing: 0.05em;
}

.about-text p {
    position: relative;
    padding: 1.2rem 1.8rem;
    background-color: rgba(13, 50, 100, 0.1);
    border-radius: 4px;
    border-left: 2px solid #3a7cdf;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

.about-text p:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: rgba(13, 50, 100, 0.15);
    border-left-color: #5a90e6;
}

/* Policy points styling */
.policy-points {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.policy-point {
    position: relative;
    padding: 1.2rem 1.8rem;
    background-color: rgba(13, 50, 100, 0.1);
    border-radius: 4px;
    border-left: 2px solid #3a7cdf;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

.policy-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: rgba(13, 50, 100, 0.15);
    border-left-color: #5a90e6;
}

/* Events Section */
.events {
    position: relative;
    padding: 5rem 0;
    background-color: rgba(13, 35, 65, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(74, 140, 255, 0.1);
    border-bottom: 1px solid rgba(74, 140, 255, 0.1);
    backdrop-filter: blur(5px); /* Add blur effect for better readability */
}

.events-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(13, 50, 100, 0.6), rgba(5, 20, 40, 0.6));
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.event-card {
    display: flex;
    background: linear-gradient(135deg, #0a1a2f, #0d2340);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.15);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-150%);
    animation: slideInRight 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: calc(0.2s * var(--card-index, 1));
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 140, 255, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.event-card:hover::before {
    opacity: 1;
}

/* Featured Event Styling - Similar to Instagram Announcement */
.event-card.featured-event {
    background: linear-gradient(135deg, rgba(13, 50, 100, 0.8), rgba(5, 20, 40, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 140, 255, 0.4);
    transform: scale(1.05);
    position: relative;
    overflow: visible;
    margin-top: 25px;
    margin-bottom: 3.5rem;
    z-index: 5;
}

/* Special highlight for the 4th International Symposium */
.event-card.special-highlight {
    background: linear-gradient(135deg, rgba(20, 70, 150, 0.9), rgba(5, 20, 40, 0.9));
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(80, 130, 200, 0.5);
    transform: scale(1.08);
    margin-top: 35px;
    margin-bottom: 4rem;
    z-index: 6;
}

.event-badge.special-badge {
    background: linear-gradient(to right, #2a4a7c, #0d2a58);
    font-size: 1rem;
    padding: 6px 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
}

.event-highlight.special-content {
    background-color: rgba(20, 70, 150, 0.3);
    border-left: 5px solid #3a7cdf;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

/* アニメーション要素を削除 */

.event-spotlight {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #3a7cdf, #0d3b7c);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(74, 140, 255, 0.6), 0 0 8px rgba(0, 0, 0, 0.4);
    animation: none;
    z-index: 10;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.featured-date {
    background: linear-gradient(135deg, #0d3b7c, #3a7cdf);
    min-width: 140px;
    box-shadow: 0 0 20px rgba(74, 140, 255, 0.4) inset;
    position: relative;
    overflow: hidden;
}

.featured-date::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%,
                transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%,
                transparent 75%, transparent);
    background-size: 15px 15px;
    opacity: 0.3;
    animation: none;
}

.featured-date .month,
.featured-date .day,
.featured-date .year {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-date .day {
    font-size: 3rem;
    font-weight: 800;
}

.featured-details {
    background-color: rgba(13, 35, 71, 0.7);
    position: relative;
    z-index: 2;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-badge {
    background: linear-gradient(to right, #3a5a8c, #1a3a6c);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    margin-left: 10px;
    animation: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

.event-highlight {
    background-color: rgba(13, 50, 100, 0.3);
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #3a7cdf;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.featured-pdf {
    margin-top: 20px;
    background: rgba(5, 20, 40, 0.5);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.3);
}

.featured-download {
    background: linear-gradient(135deg, #0d3b7c, #3a7cdf);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(58, 124, 223, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
}

.featured-download:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(58, 124, 223, 0.4);
    background: linear-gradient(135deg, #1a4b8c, #5a90e6);
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.event-card:nth-child(even) {
    transform: translateX(150%);
    animation: slideInLeft 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: calc(0.2s * var(--card-index, 1));
}

.event-card:nth-child(1) {
    --card-index: 1;
}

.event-card:nth-child(2) {
    --card-index: 2;
}

.event-card:nth-child(3) {
    --card-index: 3;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Make past events smaller */
.event-card.past {
    transform: scale(0.95);
    opacity: 0.9;
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2a3a4f;
    color: white;
    padding: 1.5rem;
    min-width: 120px;
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: 500;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
}

.event-date .year {
    font-size: 1.2rem;
}

.event-details {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #a0c0ff;
}

.event-location i, .event-time i {
    margin-right: 0.5rem;
    color: #4a8cff;
}

.event-description {
    margin-top: 1rem;
    line-height: 1.7;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-description:hover {
    background-color: rgba(13, 50, 100, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 3rd meeting (upcoming) should have blue color */
.event-card:first-child .event-date {
    background-color: #0d3b7c;
}

/* Protected Content Section */
.protected-content {
    margin-top: 2.5rem;
    background-color: rgba(13, 35, 65, 0.5);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.15);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.protected-content:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    border-color: rgba(74, 140, 255, 0.25);
}

.protected-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
    color: #3a7cdf;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery-instruction {
    color: #a0b8e0;
    font-style: italic;
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.protected-description {
    margin-bottom: 1.8rem;
    color: #c0d0e8;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
}

.password-btn {
    background: linear-gradient(135deg, #0d3b7c, #3a7cdf);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a4b8c, #5a90e6);
}

.password-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.password-btn i {
    font-size: 1.2rem;
}

/* Gallery Section (Hidden until password entered) */
.gallery-section {
    display: none; /* Hidden by default */
    margin-top: 2.5rem;
    background-color: rgba(13, 35, 65, 0.5);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 140, 255, 0.15);
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.gallery-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    text-align: center;
    color: #3a7cdf;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background-color: #0a1a2f;
    border: 1px solid rgba(74, 140, 255, 0.15);
    opacity: 0;
    animation: fadeInStaggered 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: calc(0.1s * var(--item-index, 1));
}

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

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 140, 255, 0.25);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast; /* Improve image rendering in Chrome */
    image-rendering: crisp-edges; /* Improve image rendering in Firefox */
    loading: lazy; /* Lazy load images for better performance */
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering in some browsers */
}

.gallery-item:hover img {
    opacity: 0.95;
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(10, 26, 47, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Modal for enlarged images - improved for both language versions */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Ensure consistent modal styling across languages */
html[lang="en"] .modal-content,
html[lang="ja"] .modal-content {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(74, 140, 255, 0.25);
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(74, 140, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-radius: 4px;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
        filter: blur(8px);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    z-index: 2001;
    opacity: 0.8;
}

.close:hover,
.close:focus {
    color: #4a8cff;
    text-decoration: none;
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 0 20px rgba(74, 140, 255, 0.8);
    opacity: 1;
}

.prev,
.next {
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    background-color: rgba(0, 0, 0, 0.2); /* Slight background for better visibility */
    border-radius: 50%; /* Circular shape */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure consistent navigation styling across languages */
html[lang="en"] .prev,
html[lang="en"] .next {
    font-family: 'Arial', sans-serif; /* Better arrow display in English version */
}

html[lang="ja"] .prev,
html[lang="ja"] .next {
    font-family: 'Noto Sans JP', sans-serif; /* Better arrow display in Japanese version */
}

.prev:hover,
.next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    color: #4a8cff;
    text-shadow: 0 0 20px rgba(74, 140, 255, 0.8);
}

/* PDF Container */
.pdf-container {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(74, 140, 255, 0.2);
    background-color: #0a1a2f;
    position: relative;
}

.pdf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #0d3b7c, #4a8cff);
    z-index: 10;
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    text-align: center;
}

.pdf-thumbnail {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border: 1px solid rgba(74, 140, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast; /* Improve image rendering in Chrome */
    image-rendering: crisp-edges; /* Improve image rendering in Firefox */
    loading: lazy; /* Lazy load images for better performance */
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering in some browsers */
}

.pdf-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pdf-container iframe {
    border: none;
    display: block;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: #051428;
    border-top: 1px solid rgba(74, 140, 255, 0.2);
}

.pdf-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #0d3b7c;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    width: 80%;
    margin: 0 auto;
    font-family: 'Times New Roman', serif;
}

.pdf-download:hover {
    background-color: #1a4b8c;
    transform: translateY(-2px);
}

.pdf-download i {
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    position: relative;
    padding: 5rem 0;
    background-color: rgba(10, 26, 47, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(74, 140, 255, 0.1);
    backdrop-filter: blur(5px); /* Add blur effect for better readability */
}

.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(5, 20, 40, 0.6), rgba(13, 50, 100, 0.6));
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-align: center;
    background-color: #0d2340;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(74, 140, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    position: relative;
    overflow: hidden;
    transform: translateY(80px);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-item i {
    font-size: 1.8rem;
    color: #3a7cdf;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #a0b8e0;
}

/* Footer */
footer {
    background-color: #051428;
    background-image: linear-gradient(to bottom, #0d3b7c, #051425);
    color: white;
    padding: 3rem 0 1rem;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Instagram announcement styling - more elegant */
.instagram-announcement {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 35, 65, 0.8), rgba(5, 20, 40, 0.9));
    padding: 20px;
    border-radius: 6px;
    position: relative;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(1.05);
}

.instagram-announcement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.5%) 0 0,
                radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.5%) 25px 25px;
    background-size: 50px 50px;
    opacity: 0.3;
    animation: none;
    pointer-events: none;
}

/* アニメーションを削除 */

.instagram-announcement p {
    margin: 0 0 0 20px;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #0d3878;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-icon.instagram {
    background: #0d2a58;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon.instagram::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1a3a6c, #0d2a58);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: none;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.6);
    color: white;
}

.new-badge {
    position: absolute;
    top: -15px;
    left: 35px;
    background: linear-gradient(to right, #2a4a7c, #0d2a58);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: none;
    z-index: 10;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes sparkle {
    0%, 100% { box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff4081, 0 0 20px #ff4081; }
    50% { box-shadow: 0 0 10px #fff, 0 0 15px #ff9100, 0 0 25px #ff9100, 0 0 30px #ff9100; }
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d3878, #1a4b8c);
    color: white;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: none; /* Remove animation for more professional look */
}

/* Remove pulse animation for more professional look */

.back-to-top:hover {
    background: linear-gradient(135deg, #1a4b8c, #2a5b96);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top i {
    text-shadow: none;
}

/* Animation keyframes for section entrances */
@keyframes slideInRight {
    0% {
        transform: translateX(-150%);
        opacity: 0;
        filter: blur(5px);
    }
    70% {
        transform: translateX(10px);
        opacity: 1;
        filter: blur(0);
    }
    85% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(150%);
        opacity: 0;
        filter: blur(5px);
    }
    70% {
        transform: translateX(-10px);
        opacity: 1;
        filter: blur(0);
    }
    85% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply consistent font style to all elements with improved typography */
h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea, select, li, td, th {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    text-rendering: optimizeLegibility; /* Improve text rendering */
    -webkit-font-smoothing: antialiased; /* Smooth fonts on WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* Smooth fonts on macOS Firefox */
}

/* Apply consistent font style to all buttons */
.btn {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    letter-spacing: 0.08em;
    font-kerning: normal; /* Improve kerning */
    font-feature-settings: "kern", "liga", "clig", "calt"; /* Enable OpenType features */
    font-weight: 500;
}

/* Apply consistent font style to navigation */
nav ul li a {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    letter-spacing: 0.08em;
    font-kerning: normal; /* Improve kerning */
    font-weight: 500;
}

/* Ensure consistent styling for both Japanese and English pages */
html[lang="en"] body,
html[lang="ja"] body {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    line-height: 1.6;
    color: #e6e6e6;
    background-color: #0c1c2e;
    letter-spacing: 0.05em;
}

/* Language-specific adjustments for better typography */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
    letter-spacing: 0.04em; /* Slightly tighter letter spacing for English */
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
    letter-spacing: 0.08em; /* Wider letter spacing for Japanese */
}

/* Ensure consistent button styling across languages */
html[lang="en"] .btn {
    letter-spacing: 0.05em;
}

html[lang="ja"] .btn {
    letter-spacing: 0.1em;
}

/* Improve balance by adjusting section padding */
section {
    padding: 5rem 0;
}

/* Add hover effect to all interactive elements */
.about-text, .about-policy, .organizer-single, .student-researcher, .contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text:hover, .about-policy:hover, .organizer-single:hover, .student-researcher:hover, .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 140, 255, 0.2) inset;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Prevent text size adjustment and zooming */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        touch-action: pan-y;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Improve header layout - make it more elegant and compact */
    header {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: all 0.3s ease;
    }
    
    header .container {
        flex-direction: row;
        padding: 0.8rem;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        margin-bottom: 0;
        text-align: left;
        max-width: 65%;
        transition: transform 0.3s ease;
    }
    
    .logo:active {
        transform: scale(0.98);
    }
    
    .logo h1 {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
        letter-spacing: 0.05em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .logo p {
        font-size: 0.8rem;
        opacity: 0.9;
    }
    
    /* Improved mobile navigation with better touch targets */
    nav {
        max-width: 100%;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.3rem 0;
    }
    
    nav ul li {
        margin: 0.2rem 0.4rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        display: inline-block;
        padding: 0.5rem 0.7rem;
        background-color: rgba(13, 50, 100, 0.15);
        border-radius: 4px;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        letter-spacing: 0.05em;
    }
    
    nav ul li a:active {
        transform: translateY(1px);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    nav ul li a:hover {
        background-color: rgba(13, 50, 100, 0.25);
    }
    
    /* Adjust hero text for better readability */
    .hero-text {
        padding: 1.8rem;
        width: 92%;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-text .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
    
    /* Improved event cards for mobile */
    .event-card {
        flex-direction: column;
        transform: none !important;
        animation: fadeInUp 0.8s ease forwards !important;
        opacity: 0;
    }
    
    .event-card:nth-child(1) {
        animation-delay: 0.1s !important;
    }
    
    .event-card:nth-child(2) {
        animation-delay: 0.2s !important;
    }
    
    .event-card:nth-child(3) {
        animation-delay: 0.3s !important;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background: linear-gradient(135deg, #0d3878, #1a4b8c);
        border-radius: 4px 4px 0 0;
    }
    
    .event-date .month,
    .event-date .year {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .event-date .day {
        font-size: 2rem;
        margin: 0 0.6rem;
        font-weight: 700;
    }
    
    .event-details {
        padding: 1.2rem;
    }
    
    .event-details h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .event-badge {
        margin-top: 0.5rem;
        align-self: flex-start;
    }
    
    /* Improved footer for mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        margin: 1rem 0;
    }
    
    .footer-nav ul {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .footer-nav ul li {
        margin: 0.3rem;
    }
    
    .footer-nav ul li a {
        padding: 0.5rem;
        display: inline-block;
    }
    
    .instagram-announcement {
        flex-direction: column;
        padding: 1.2rem;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .instagram-announcement p {
        margin: 0.8rem 0 0;
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* Enhanced back to top button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(74, 140, 255, 0.3);
    }
    
    /* Improved organizer layout for mobile */
    .organizer-single {
        padding: 1.5rem;
    }
    
    .organizer-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .organizer-image-large {
        width: 180px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(74, 140, 255, 0.2);
    }
    
    .organizer-title h4 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .organizer-details {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Enhanced about section for mobile */
    .about-text h3,
    .about-policy h3 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .policy-point {
        padding: 1.2rem;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
        background-color: rgba(13, 50, 100, 0.1);
    }
    
    /* Improved contact section for mobile */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-item {
        width: 90%;
        padding: 2rem;
    }
    
    /* Enhanced PDF containers for mobile */
    .pdf-container {
        margin: 1.5rem 0;
    }
    
    .pdf-download {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Enhanced gallery for mobile */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 120px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        width: 94%;
        padding: 0.5rem 0;
    }
    
    /* Fix background attachment for mobile */
    .bg-slider-item {
        background-attachment: scroll; /* Use scroll instead of fixed for better mobile performance */
    }
    
    /* Optimized header for small screens */
    header .container {
        padding: 0.7rem 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    /* Improved typography for small screens */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        letter-spacing: 0.05em;
    }
    
    .hero-text {
        padding: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }
    
    .hero-text h2 {
        font-size: 1rem;
        letter-spacing: 0.03em;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .about-text h3,
    .about-policy h3 {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
    }
    
    /* Enhanced event cards for small screens */
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-badge {
        margin: 0.5rem 0 0.8rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .event-details h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .event-location, .event-time {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .event-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Optimized PDF downloads */
    .pdf-download {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .pdf-download i {
        font-size: 1.1rem;
    }
    
    /* Enhanced contact section */
    .contact-item {
        width: 100%;
        padding: 1.8rem 1.2rem;
    }
    
    .contact-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* Improved navigation for small screens */
    nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
        display: block;
        text-align: center;
        width: 100%;
        border-radius: 6px;
    }
    
    /* Optimized event card layout */
    .event-card.featured-event {
        transform: none !important;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .event-card.special-highlight {
        transform: none !important;
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .featured-date {
        min-width: auto;
        width: 100%;
        padding: 0.8rem;
    }
    
    .featured-date .day {
        font-size: 1.8rem;
    }
    
    .event-spotlight {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        top: -12px;
    }
    
    /* Enhanced organizer details */
    .organizer-details {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .organizer-details p {
        margin-bottom: 1.2rem;
    }
    
    .student-researcher h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .student-researcher ul {
        margin-left: 1.2rem;
    }
    
    .student-researcher li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    /* Improved footer navigation */
    .footer-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
    }
    
    .footer-nav ul li {
        margin: 0;
    }
    
    .footer-nav ul li a {
        display: block;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
    
    /* Enhanced gallery for small screens */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .gallery-item img {
        height: 100px;
    }
    
    .protected-content h4 {
        font-size: 1.2rem;
    }
    
    .password-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        width: 92%;
    }
    
    /* Optimized typography for very small screens */
    .hero-text h1 {
        font-size: 1.5rem;
        letter-spacing: 0.03em;
    }
    
    .hero-text h2 {
        font-size: 0.95rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Enhanced event cards for very small screens */
    .event-date {
        padding: 0.7rem;
    }
    
    .event-date .day {
        font-size: 1.5rem;
    }
    
    .event-date .month,
    .event-date .year {
        font-size: 0.85rem;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    .event-details h3 {
        font-size: 1.2rem;
    }
    
    .event-location,
    .event-time {
        font-size: 0.85rem;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
    
    /* Optimized organizer section */
    .organizer-image-large {
        width: 140px;
    }
    
    .organizer-title h4 {
        font-size: 1.2rem;
    }
    
    .organizer-details {
        font-size: 0.85rem;
    }
    
    /* Enhanced buttons for very small screens */
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
        letter-spacing: 0.03em;
    }
    
    /* Optimized navigation */
    nav ul {
        gap: 0.4rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    /* Enhanced footer */
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
    }
    
    .instagram-announcement p {
        font-size: 0.85rem;
    }
    
    /* Optimized contact section */
    .contact-intro {
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-item h3 {
        font-size: 1.2rem;
    }
    
    /* Enhanced gallery for very small screens */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .gallery-item img {
        height: 90px;
    }
}