/* ==================================================
   Front-page hero slider
   Scope is intentionally limited to .hero-slider and .hero-feature.
================================================== */

.hero.hero-slider {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    isolation: isolate;
    background: #091926;
    color: #fff;
}

.hero-slider__swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider__swiper {
    z-index: 0;
}

.hero-slider__swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    background: #091926;
}

.hero-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
    will-change: transform;
}

.hero-slider__slide--01 .hero-slider__image {
    object-position: 58% center;
}

.hero-slider__slide--02 .hero-slider__image {
    object-position: 62% center;
}

.hero-slider__slide--03 .hero-slider__image {
    object-position: 55% center;
}

.hero-slider__slide.swiper-slide-active .hero-slider__image {
    animation: hero-slider-zoom 7.2s linear both;
}

@keyframes hero-slider-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.055);
    }
}

.hero.hero-slider > .hero-bg {
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

.hero.hero-slider .hero-particles {
    display: none;
}

.hero.hero-slider .hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(9, 25, 38, 0.82) 0%,
            rgba(9, 25, 38, 0.60) 46%,
            rgba(9, 25, 38, 0.22) 100%
        ),
        linear-gradient(
            0deg,
            rgba(9, 25, 38, 0.40) 0%,
            transparent 35%,
            rgba(9, 25, 38, 0.18) 100%
        );
}

.hero.hero-slider .hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: calc(var(--nav-height, 80px) + 72px) 24px 132px;
    text-align: left;
}

.admin-bar .hero.hero-slider {
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
}

.hero.hero-slider .hero-badge {
    margin: 0 0 22px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(9, 25, 38, 0.22);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    backdrop-filter: blur(8px);
}

.hero.hero-slider .hero-title {
    max-width: 850px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.23;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.hero.hero-slider .hero-title-line {
    display: block;
}

.hero.hero-slider .hero-title-accent em {
    color: var(--color-accent-bright, #5dc7e8);
    font-style: normal;
}

.hero.hero-slider .hero-subtitle {
    max-width: 680px;
    margin: 0 0 36px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.hero.hero-slider .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
}

.hero.hero-slider .hero-slider__cta {
    min-width: 210px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gradient-primary, linear-gradient(135deg, #2469a0, #0b456f));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero.hero-slider .hero-slider__cta:hover,
.hero.hero-slider .hero-slider__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.hero-slider__about {
    display: inline-flex;
    min-height: 48px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-slider__about:hover,
.hero-slider__about:focus-visible {
    border-color: #fff;
    color: #fff;
}

.hero-slider__pagination {
    position: absolute;
    right: max(32px, calc((100vw - 1200px) / 2 + 24px));
    bottom: 50px;
    left: auto;
    z-index: 3;
    display: flex;
    width: auto;
    align-items: center;
    gap: 12px;
}

.hero-slider__pagination .hero-slider__bullet {
    display: inline-flex;
    width: auto;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    align-items: center;
    gap: 0;
    opacity: 1;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    font: 600 0.72rem/1 var(--font-en, Arial, sans-serif);
    letter-spacing: 0.08em;
    cursor: pointer;
}

.hero-slider__bullet::after {
    width: 0;
    height: 1px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.82);
    content: "";
    transition: width 0.35s ease, margin-left 0.35s ease;
}

.hero-slider__bullet.is-active {
    color: #fff;
}

.hero-slider__bullet.is-active::after {
    width: 56px;
    margin-left: 10px;
}

.hero-slider__bullet:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.hero.hero-slider .hero-scroll {
    right: auto;
    bottom: 32px;
    left: max(24px, calc((100vw - 1200px) / 2 + 24px));
    z-index: 3;
}

.hero-slider__reveal {
    opacity: 0;
    transform: translateY(16px);
}

.hero-slider.is-ready .hero-slider__reveal {
    animation: hero-slider-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-slider.is-ready .hero-slider__reveal--01 { animation-delay: 0.10s; }
.hero-slider.is-ready .hero-slider__reveal--02 { animation-delay: 0.22s; }
.hero-slider.is-ready .hero-slider__reveal--03 { animation-delay: 0.34s; }
.hero-slider.is-ready .hero-slider__reveal--04 { animation-delay: 0.46s; }
.hero-slider.is-ready .hero-slider__reveal--05 { animation-delay: 0.58s; }
.hero-slider.is-ready .hero-slider__reveal--06 { animation-delay: 0.70s; }
.hero-slider.is-ready .hero-slider__reveal--07 { animation-delay: 0.82s; }

@keyframes hero-slider-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JavaScript無効時も1枚目と前面コンテンツを表示 */
.hero-slider:not(.is-ready) .hero-slider__slide:first-child {
    opacity: 1;
    visibility: visible;
}

.hero-slider:not(.is-ready) .hero-slider__reveal {
    opacity: 1;
    transform: none;
}

.hero-feature {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(23, 42, 54, 0.10);
    background: #f7f8f9;
}

.hero-feature__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
    padding-bottom: 0;
}

.hero-feature__item {
    display: flex;
    min-height: 132px;
    padding: 28px 34px;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-feature__item + .hero-feature__item {
    border-left: 1px solid rgba(23, 42, 54, 0.14);
}

.hero-feature__icon {
    flex: 0 0 auto;
    color: var(--color-accent, #557282);
    font-size: 1.05rem;
}

.hero-feature__text {
    margin: 0;
    color: #172a36;
    line-height: 1.45;
}

.hero-feature__text strong,
.hero-feature__text span {
    display: block;
}

.hero-feature__text strong {
    margin-bottom: 5px;
    color: #6c7d87;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-feature__text span {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .hero.hero-slider .hero-content {
        padding-right: 40px;
        padding-left: 40px;
    }

    .hero.hero-slider .hero-gradient {
        background:
            linear-gradient(
                90deg,
                rgba(9, 25, 38, 0.82) 0%,
                rgba(9, 25, 38, 0.59) 58%,
                rgba(9, 25, 38, 0.30) 100%
            ),
            linear-gradient(0deg, rgba(9, 25, 38, 0.42), transparent 45%);
    }

    .hero-feature__item {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 782px) {
    .admin-bar .hero.hero-slider {
        min-height: calc(100vh - 46px);
        min-height: calc(100svh - 46px);
    }
}

@media (max-width: 767px) {
    .hero.hero-slider {
        min-height: 720px;
    }

    .hero.hero-slider .hero-content {
        padding: calc(var(--nav-height, 64px) + 60px) 24px 112px;
    }

    .hero.hero-slider .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero.hero-slider .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero.hero-slider .hero-slider__cta {
        width: min(100%, 280px);
        justify-content: center;
    }

    .hero-slider__slide--01 .hero-slider__image {
        object-position: 72% 30%;
    }

    .hero-slider__slide--02 .hero-slider__image {
        object-position: 70% center;
    }

    .hero-slider__slide--03 .hero-slider__image {
        object-position: 75% 70%;
    }

    .hero-slider__pagination {
        right: 24px;
        bottom: 30px;
    }

    .hero-slider__bullet.is-active::after {
        width: 32px;
    }

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

    .hero-feature__inner {
        grid-template-columns: 1fr;
    }

    .hero-feature__item {
        min-height: 0;
        padding: 22px 24px;
        justify-content: flex-start;
    }

    .hero-feature__item + .hero-feature__item {
        border-top: 1px solid rgba(23, 42, 54, 0.12);
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .hero.hero-slider {
        min-height: 680px;
    }

    .hero.hero-slider .hero-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hero.hero-slider .hero-badge {
        margin-top: 0;
    }

    .hero.hero-slider .hero-subtitle br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide.swiper-slide-active .hero-slider__image,
    .hero-slider.is-ready .hero-slider__reveal {
        animation: none;
    }

    .hero-slider__image,
    .hero-slider__reveal,
    .hero-slider__bullet::after,
    .hero-slider__about,
    .hero.hero-slider .btn {
        transition: none;
    }

    .hero-slider__reveal {
        opacity: 1;
        transform: none;
    }
}
