/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-foreground);
}

.logo-icon .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--foreground);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon,
.close-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-mobile {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    animation: fade-in 0.3s ease-out;
}

.nav-mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
}

.nav-mobile-link:hover {
    color: var(--foreground);
    background-color: var(--accent);
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
}

.footer .container {
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    color: var(--foreground);
}

.footer-logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    padding: 0.5rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--foreground);
}

.footer-links {
    display: block;
}

.footer-links-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-list a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright,
.footer-message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
