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;
}