/* =============================================
   Hero Slider
   Slider Revolution replacement - lightweight custom
   ============================================= */

/* ---- Container ---- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #000;
}

/* ---- Slide ---- */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ---- Background Image ---- */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Pan / Zoom (100% -> 110% over 7s) ---- */
.hero-slide.active .hero-slide-bg.has-panzoom {
    animation: heroPanZoom 8s ease forwards;
}

@keyframes heroPanZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* ---- Video Background ---- */
.hero-slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ---- Dotted Overlay (video slide) ---- */
.hero-slide-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(circle,
            rgba(0, 0, 0, 0.35) 1px,
            rgba(12, 12, 12, 0.12) 1px);
    background-size: 3px 3px;
    pointer-events: none;
}

/* ---- Dark Overlay (all slides) ---- */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

/* ---- Text Content ---- */
.hero-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* ---- Title: always at exact vertical center ---- */
.hero-slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: 'Kaushan Script', cursive;
    font-size: 60px;
    line-height: 60px;
    color: #ffcc00;
    text-shadow: 0 0 30px #ffffff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-slide.active .hero-slide-title {
    opacity: 1;
}

/* ---- Subtitle: 70px below center ---- */
.hero-slide-subtitle {
    position: absolute;
    top: calc(50% + 70px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 60px;
    color: #fff;
    text-shadow: 0 0 10px rgba(122, 122, 122, 0.6);
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---- Character Animation ---- */
.hero-slide-subtitle .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-slide.active .hero-slide-subtitle .char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navigation Arrows ---- */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-slider:hover .hero-nav-arrow {
    opacity: 1;
}

.hero-nav-arrow.prev {
    left: 30px;
}

.hero-nav-arrow.next {
    right: 30px;
}

.hero-nav-arrow svg {
    width: 20px;
    height: 40px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* ---- Bullets ---- */
.hero-nav-bullets {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.hero-nav-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.hero-nav-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-nav-bullet.active {
    background: #fff;
}

/* ---- Scroll-Down Button (mouse icon) ---- */
.hero-scroll-btn {
    position: absolute;
    left: 50%;
    top: calc(50% + 200px);
    transform: translateX(-50%);
    z-index: 10;
    width: 35px;
    height: 55px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 23px;
    cursor: pointer;
}

.hero-scroll-btn::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 2px;
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollBounce {

    0%,
    100% {
        top: 10px;
        opacity: 1;
    }

    50% {
        top: 28px;
        opacity: 0.3;
    }
}

/* ===========================================
   Responsive
   =========================================== */

/* Notebook / Tablet landscape (<=1024px) */
@media (max-width: 1024px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }

    .hero-nav-arrow {
        display: none;
    }

    .hero-slide-title {
        font-size: 49px;
        line-height: 49px;
        text-shadow: 0 0 24px #ffffff;
    }

    .hero-slide-subtitle {
        top: calc(50% + 57px);
        font-size: 33px;
        line-height: 49px;
    }

    .hero-scroll-btn {
        display: none;
    }
}

/* Tablet portrait (<=778px) */
@media (max-width: 778px) {
    .hero-slide-title {
        font-size: 37px;
        line-height: 37px;
        text-shadow: 0 0 18px #ffffff;
    }

    .hero-slide-subtitle {
        top: calc(50% + 43px);
        font-size: 25px;
        line-height: 37px;
    }
}

/* Mobile (<=480px) */
@media (max-width: 480px) {
    .hero-slider {
        height: 500px;
        min-height: unset;
    }

    .hero-slide-title {
        font-size: 28px;
        line-height: 28px;
        text-shadow: 0 0 11px #ffffff;
    }

    .hero-slide-subtitle {
        top: calc(50% + 30px);
        font-size: 18px;
        line-height: 22px;
    }
}
