/* Hero Section Styles */
.hero {
    position: relative !important;
    height: 100vh !important;
    min-height: 600px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

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

.hero-slide.fade-out {
    opacity: 0;
    z-index: 1;
}

.hero-slide .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
    z-index: 1;
}

.hero-slide[data-slide="0"] .hero-image {
    object-position: center top;
}

/* Beauty Slideshow Styles */
.beauty-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* PC版: 無限ループ横スクロール */
@media (min-width: 769px) {
    .beauty-slide-track {
        display: flex;
        gap: 0;
        width: fit-content;
        height: 100%;
        animation: beautySlideScroll 60s linear infinite;
    }

    .beauty-slide-item {
        flex-shrink: 0;
        width: 50vw;
        height: 100vh;
        min-height: 600px;
        position: relative;
    }

    .beauty-slide-item .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.95);
        display: block;
    }

    @keyframes beautySlideScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    /* ホバー時にアニメーション一時停止 */
    .beauty-slideshow:hover .beauty-slide-track {
        animation-play-state: paused;
    }
}

/* タブレット・中サイズPC */
@media (min-width: 769px) and (max-width: 1200px) {
    .beauty-slide-item {
        width: 60vw;
    }
}

/* モバイル版: フェードイン */
@media (max-width: 768px) {
    .beauty-slide-track {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .beauty-slide-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    }

    .beauty-slide-item.active {
        opacity: 1;
        visibility: visible;
    }

    .beauty-slide-item .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(1);
    }
}

.hero-slide-content {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10 !important;
    width: 95%;
    max-width: 1200px;
    pointer-events: none;
}

.hero-slide-content.text-right {
    text-align: right;
    left: auto;
    right: 5%;
    transform: translateY(-50%);
    width: auto;
    max-width: 600px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: white;
}

.hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.6;
    font-weight: 400;
    color: white;
    max-width: 450px;
    margin-left: auto;
    text-align: left;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-text {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text::after {
    content: '';
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 20vh !important;
        min-height: 180px !important;
        max-height: 20vh !important;
    }

    .hero-title {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .scroll-indicator {
        display: none !important;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        line-height: 1.5;
        max-width: 100%;
        margin-left: 0;
        text-align: left;
        padding-right: 10px;
    }

    .hero-slide-content.text-right {
        right: 20px;
        left: 35px;
        max-width: calc(100% - 55px);
        width: auto;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        line-height: 1.4;
        max-width: 100%;
        text-align: left;
    }

    .hero-slide-content.text-right {
        right: 15px;
        left: 30px;
        max-width: calc(100% - 45px);
    }
}

@media (min-width: 1200px) {
    .hero {
        height: 100vh;
        max-height: 900px;
    }
}