/* ヒーローセクション - パララックス多層スライダー */
.hero-minimal {
    margin-top: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0a2f3d;
}

.hero-wa-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スライダー */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 各スライド */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* 多層パララックス構造 */
.slide-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 背景レイヤー（最も遅い） */
.layer-bg {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 120%;
    height: 120%;
    z-index: 1;
}

.layer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.slide.active .layer-bg img {
    transform: scale(1);
    animation: slowZoom 12s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* ミドルレイヤー（グラデーションオーバーレイ） */
.layer-mid {
    display: none;
}

/* 装飾レイヤー（浮遊する図形） */
.layer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 30%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(0, -50px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg);
        opacity: 0.5;
    }
}

/* パーティクルエフェクト */
.layer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; animation-duration: 24s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: -14s; animation-duration: 17s; }
.particle:nth-child(9) { left: 90%; animation-delay: -16s; animation-duration: 23s; }
.particle:nth-child(10) { left: 5%; animation-delay: -3s; animation-duration: 25s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-10vh) scale(1);
    }
    100% {
        transform: translateY(-20vh) scale(0);
        opacity: 0;
    }
}

/* テキストレイヤー（最前面・独立して動く） */
.layer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
}

.slide-content {
    position: relative;
    left: 10%;
    max-width: 700px;
    color: white;
}

/* テキストアニメーション */
.slide-title {
    font-size: 56px;
    font-weight: 300;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 25px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3);
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* タイトル文字ごとのアニメーション */
.slide-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-title .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.slide-desc {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    padding-left: 60px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.slide.active .slide-desc {
    opacity: 0.9;
    transform: translateX(0);
    transition-delay: 0.6s;
}

.slide-desc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.8s;
}

.slide.active .slide-desc::before {
    transform: scaleX(1);
}

/* ナビゲーションボタン */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-btn:hover::before {
    width: 100%;
    height: 100%;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-btn span {
    position: relative;
    z-index: 1;
}

/* メインコンテンツ（ボタン） */
.hero-main-content {
    position: absolute;
    bottom: 120px;
    left: 10%;
    z-index: 10;
}

.hero-actions {
    display: flex;
    gap: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-wa-primary,
.btn-wa-secondary {
    padding: 18px 45px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.12em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn-wa-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8bba 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.4);
}

.btn-wa-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-wa-primary:hover::before {
    left: 100%;
}

.btn-wa-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(26, 95, 122, 0.5);
}

.btn-wa-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    color: var(--primary);
    border: none;
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.2), inset 0 0 0 1px rgba(26, 95, 122, 0.1);
}

.btn-wa-secondary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 95, 122, 0.4);
}

/* インジケーター - 縦型 */
.slide-indicators {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.indicator {
    width: 3px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    transition: height 0.4s ease;
}

.indicator.active::before {
    height: 100%;
    animation: indicatorFill 6s linear;
}

@keyframes indicatorFill {
    from { height: 0; }
    to { height: 100%; }
}

.indicator:hover {
    background: rgba(255,255,255,0.5);
}

/* スクロールヒント */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    letter-spacing: 0.2em;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; height: 50px; }
    50% { opacity: 1; height: 70px; }
}

/* スライド番号表示 */
.slide-counter {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 10;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.slide-counter .current {
    font-size: 36px;
    font-weight: 300;
}

.slide-counter .divider {
    margin: 0 8px;
    opacity: 0.5;
}

.slide-counter .total {
    opacity: 0.5;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 42px;
    }

    .slide-indicators {
        right: 30px;
    }

    .slide-counter {
        display: none;
    }
}

@media (max-width: 768px) {
    .slide-nav {
        display: none;
    }

    .slide-content {
        left: 5%;
        right: 5%;
        max-width: none;
    }

    .slide-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .slide-desc {
        font-size: 14px;
        padding-left: 40px;
    }

    .slide-desc::before {
        width: 25px;
    }

    .hero-main-content {
        bottom: 100px;
        left: 5%;
        right: 5%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-wa-primary,
    .btn-wa-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 30px;
    }

    .slide-indicators {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 30px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 15px;
    }

    .indicator {
        width: 30px;
        height: 3px;
    }

    .indicator::before {
        bottom: auto;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
    }

    .indicator.active::before {
        width: 100%;
        height: 100%;
    }

    .scroll-hint {
        display: none;
    }

    .floating-shape {
        display: none;
    }

    .particle {
        width: 2px;
        height: 2px;
    }
}
