.mirai-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: var(--hero-height, 420px);
    padding: 2.5rem 1.5rem 4rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    color: #fff;
    isolation: isolate;
}

.mirai-hero-slides,
.mirai-hero-slide {
    position: absolute;
    inset: 0;
}

.mirai-hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.mirai-hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.mirai-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.mirai-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.mirai-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-bottom: 0.5rem;
}

.mirai-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mirai-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 0 1.25rem;
    opacity: 0.95;
    line-height: 1.5;
}

.mirai-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mirai-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mirai-hero-search {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    margin-top: 1rem;
}

.mirai-hero-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    overflow: hidden;
    padding: 0.25rem;
}

.mirai-hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.mirai-hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.mirai-hero-search-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mirai-hero-search-btn:hover {
    opacity: 0.9;
}

.mirai-hero-cards {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mirai-hero-card {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.2s;
}

.mirai-hero-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mirai-hero-card i {
    font-size: 1rem;
}

.mirai-hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.mirai-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.mirai-hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.mirai-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.mirai-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.mirai-hero-arrow-prev {
    left: 1rem;
}

.mirai-hero-arrow-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .mirai-hero {
        min-height: 200px;
        padding: 1.25rem 1rem 1.75rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .mirai-hero-title {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
        margin-bottom: 0.375rem;
    }

    .mirai-hero-subtitle {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .mirai-hero-content {
        margin-bottom: 0.5rem;
    }

    .mirai-hero-search {
        margin-top: 0.5rem;
    }

    .mirai-hero-search-form {
        padding: 0.1875rem;
    }

    .mirai-hero-search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .mirai-hero-search-btn {
        width: 36px;
        height: 36px;
    }

    .mirai-hero-arrow {
        display: none;
    }

    .mirai-hero-dots {
        bottom: 0.5rem;
        gap: 0.375rem;
    }

    .mirai-hero-dot {
        width: 8px;
        height: 8px;
    }

    .mirai-hero-cards {
        margin-top: 0.75rem;
        gap: 0.4375rem;
    }

    .mirai-hero-card {
        padding: 0.3125rem 0.625rem;
        font-size: 0.75rem;
    }

    .mirai-hero-card i {
        font-size: 0.875rem;
    }
}
