body {
    font-family: 'Noto Serif JP', serif;
    -webkit-font-smoothing: antialiased;
}

.glass-nav {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .glass-nav {
    background-color: rgba(29, 29, 31, 0.7);
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Typing Animation */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: currentColor;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-highlight {
    background-color: #B3D7FF;
    color: #000;
}

.dark .typing-highlight {
    background-color: #264f78;
    color: #fff;
}

#hero-message-area {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center align */
    text-align: center; /* Center align */
    padding-top: 120px;
    padding-bottom: 120px;
}

#main-message {
    min-height: 1.5em; /* Fix height for large text */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem; /* Consistent spacing */
}

.sub-message-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all 1s ease-out;
    text-align: left;
    min-height: 120px; /* Secure space for about 4-5 lines of text */
    display: flex;
    align-items: flex-start;
}

.sub-message-fade p {
    width: 100%;
}

/* Hero Action Area */
.hero-input-area {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 1s ease-out;
    transition-delay: 0.5s;
}

.hero-input-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-action-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .hero-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.hero-action-btn:hover {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.hero-action-btn:active {
    transform: translateY(0);
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(134, 134, 139, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(134, 134, 139, 0.4);
}

/* Custom Scrollbar for Update Log Section */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(134, 134, 139, 0.15);
    border-radius: 3px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(134, 134, 139, 0.3);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Gallery Slider */
.gallery-slider-wrapper {
    position: relative;
}

.gallery-slider {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* PhotoSwipe Custom Styles */
.pswp {
    --pswp-bg: rgba(0, 0, 0, 0.9);
    --pswp-icon-color: #fff;
    --pswp-icon-color-secondary: rgba(255, 255, 255, 0.5);
    --pswp-icon-stroke-color: rgba(255, 255, 255, 0.7);
    --pswp-error-text-color: var(--pswp-icon-color);
}

.pswp__bg {
    background: var(--pswp-bg);
}

/* Hide default PhotoSwipe counter */
.pswp__counter {
    display: none !important;
}