.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.header-nav {
    font-family: 'Noto Sans JP', sans-serif;
}

.nav-link {
    margin-left: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.ad-banner {
    background: linear-gradient(135deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(225deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(315deg, #f0f0f0 25%, #e8e8e8 25%);
    background-size: 20px 20px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.ad-banner--header {
    height: 50px;
    margin: 0;
}

.ad-banner--content {
    height: 250px;
    border-radius: 0.75rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.search-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid #ddd;
    border-radius: 0.75rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Uma Grid */
.uma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.uma-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.uma-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-light);
}

.uma-card.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.uma-thumbnail {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.uma-info {
    padding: 0.5rem;
    background: white;
}

.uma-name {
    font-weight: 700;
    font-size: 0.875rem;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uma-real-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rarity {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #FFD700;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* CTA Button */
.cta-button {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all 0.2s;
    z-index: 50;
    display: none;
}

.cta-button.visible {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.cta-button:hover {
    background: var(--secondary-light);
    transform: translateX(-50%) scale(1.05);
}

.cta-button:active {
    transform: translateX(-50%) scale(0.95);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .uma-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .uma-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
