@charset "UTF-8";

/**
 * Hero Section Styles
 */

.p-lp-header {
    position: relative;
    min-height: 750px;
    background-image: url('../images/herosliderwavebackground.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
}

.p-lp-header-type5 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Content */
.p-header-content,
.p-header-content__overlay {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.p-header-content__overlay {
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
}

.p-header-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    text-align: center;
    user-select: none;
    z-index: 3;
}

.p-header-content__inner {
    max-height: 750px;
    width: 100%;
}

.p-header-content__catch {
    color: #ffffff;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 0.75s ease 0.3s forwards;
}

.p-header-content__align--type2 {
    text-align: center;
}

/* Hero Slider */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 750px;
    margin-top: -50px;
    overflow: hidden;
}

/* Full Screen Reveal Clip Mask (7 Blocks) - 縦並び */
.hero-reveal-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
    visibility: hidden;
}

.hero-reveal-clip.active {
    visibility: visible;
}

/* 7ブロックを縦並びにする */
.hero-reveal-clip__block {
    position: absolute;
    left: 0;
    width: 100%;
    height: 14.2857%;
    background: #1976D2;
    transform: translateX(100%);
}

/* 各ブロックの垂直位置を指定（縦並び） */
.hero-reveal-clip__block[data-block="1"] { top: 0%; }
.hero-reveal-clip__block[data-block="2"] { top: 14.2857%; }
.hero-reveal-clip__block[data-block="3"] { top: 28.5714%; }
.hero-reveal-clip__block[data-block="4"] { top: 42.8571%; }
.hero-reveal-clip__block[data-block="5"] { top: 57.1428%; }
.hero-reveal-clip__block[data-block="6"] { top: 71.4285%; }
.hero-reveal-clip__block[data-block="7"] { top: 85.7142%; }

/* アニメーション実行時 - 真ん中から外側へ右から左に流れる（0.4秒停止あり） */
/* アニメーション時間: 0.6s(入り) + 0.4s(停止) + 0.6s(出る) = 1.6s */

/* ブロック4（真ん中）が最初 */
.hero-reveal-clip.active .hero-reveal-clip__block[data-block="4"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards;
}

/* ブロック3と5が次 */
.hero-reveal-clip.active .hero-reveal-clip__block[data-block="3"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero-reveal-clip.active .hero-reveal-clip__block[data-block="5"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* ブロック2と6がその次 */
.hero-reveal-clip.active .hero-reveal-clip__block[data-block="2"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-reveal-clip.active .hero-reveal-clip__block[data-block="6"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* ブロック1と7が最後 */
.hero-reveal-clip.active .hero-reveal-clip__block[data-block="1"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-reveal-clip.active .hero-reveal-clip__block[data-block="7"] {
    animation: blockRevealWithPause 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-background picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    will-change: transform;
    transform: scale(1) translate3d(0, 0, 0);
}

.slide-background img[data-kb="a"] {
    object-position: 58% 42%;
}

/* Ken Burns Effect - 3 variants for visual variety */
.swiper-slide-active .slide-background img[data-kb="a"] {
    animation: kenBurnsA 12s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.swiper-slide-active .slide-background img[data-kb="b"] {
    animation: kenBurnsB 12s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.swiper-slide-active .slide-background img[data-kb="c"] {
    animation: kenBurnsC 12s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.swiper-slide:not(.swiper-slide-active) .slide-background img {
    animation: none !important;
    transform: scale(1) translate3d(0, 0, 0);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

/* Slide Text Box */
.slide-text-box {
    max-width: none;
    padding: 35px 44px;
    position: relative;
    overflow: hidden;
}

.blur-bg {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* テキスト要素 */
.slide-text-small {
    font-size: 24px;
    font-weight: 600;
    color: #5a5a5a;
    line-height: 1.6;
    text-align: center;
    position: relative;
    z-index: 1;
}

.slide-text-large {
    font-size: 44px;
    font-weight: 700;
    color: #1976D2;
    line-height: 1.4;
    margin: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* サブテキスト（スライド1用） */
.slide-text-sub {
    font-size: 20px;
    font-weight: 500;
    color: #5a5a5a;
    line-height: 1.7;
    margin-top: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Reveal Clip Animation Masks */
.slide-text-box::before,
.slide-text-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1976D2;
    z-index: 999;
    border-radius: 8px;
}

/* 初期状態：左の外側に配置 */
.slide-text-box::before {
    transform: translateX(-100.1%);
}

/* 初期状態：ボックス全体を覆う */
.slide-text-box::after {
    transform: translateX(0);
}

/* 非アクティブなスライドは初期状態に戻す */
.swiper-slide:not(.swiper-slide-active) .slide-text-box::before {
    transform: translateX(-100.1%);
    animation: none;
}

.swiper-slide:not(.swiper-slide-active) .slide-text-box::after {
    transform: translateX(0);
    animation: none;
}

/* Active slide animations */
.swiper-slide-active .slide-text-box::before {
    animation: revealClipFromLeft 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.swiper-slide-active .slide-text-box::after {
    animation: revealClipToRight 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

/* Slide Triangle and Arrow */
.slide-triangle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 300px;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
}

/* 非アクティブなスライドは初期状態 */
.swiper-slide:not(.swiper-slide-active) .slide-triangle {
    opacity: 0;
    transform: translateY(100px);
    animation: none;
}

/* アクティブなスライドでアニメーション */
.swiper-slide-active .slide-triangle {
    animation: triangleIn 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.9s forwards;
}

.triangle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arrow-img {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 96px;
    height: 96px;
    object-fit: contain;
    cursor: pointer;
    animation: arrowPulse 2s ease-in-out infinite;
    transform-origin: center;
}

.arrow-img:hover {
    animation: arrowHover 0.3s ease forwards;
}

/* Reveal Clip Animations - Text Box */
@keyframes revealClipFromLeft {
    0% {
        transform: translateX(-100.1%);
    }
    100% {
        transform: translateX(100.1%);
    }
}

@keyframes revealClipToRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100.1%);
    }
}

/* 7 Blocks Reveal Animation (Right to Left) */
@keyframes blockRevealRightToLeft {
    0% {
        transform: translateX(100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 右から来る → 0.4秒停止（画面を覆う） → 左へ去る */
/* 0.6s(入り) + 0.4s(停止) + 0.6s(出る) = 1.6s */
@keyframes blockRevealWithPause {
    0% {
        transform: translateX(100%);
    }
    /* 0.6s / 1.6s = 37.5% で画面中央に到達 */
    37.5% {
        transform: translateX(0);
    }
    /* 0.4s停止: 37.5% + (0.4s / 1.6s * 100) = 37.5% + 25% = 62.5% */
    62.5% {
        transform: translateX(0);
    }
    /* 残り0.6sで左へ去る */
    100% {
        transform: translateX(-100%);
    }
}

@keyframes triangleIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes arrowHover {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Ken Burns - A: ゆっくりズームイン＋右上へ微パン */
@keyframes kenBurnsA {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.08) translate3d(-0.5%, -0.3%, 0);
    }
}

/* Ken Burns - B: ゆっくりズームイン＋左下へ微パン */
@keyframes kenBurnsB {
    0% {
        transform: scale(1.03) translate3d(0.3%, 0.2%, 0);
    }
    100% {
        transform: scale(1.08) translate3d(-0.4%, -0.2%, 0);
    }
}

/* Ken Burns - C: ゆっくりズームアウト＋右へ微パン */
@keyframes kenBurnsC {
    0% {
        transform: scale(1.08) translate3d(-0.3%, -0.3%, 0);
    }
    100% {
        transform: scale(1) translate3d(0.2%, 0.1%, 0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .p-lp-header {
        min-height: 600px;
    }
    
    .hero-slider-wrapper {
        height: 600px;
    }
    
    .p-header-content__catch {
        font-size: 32px;
        padding: 0 20px;
    }
    
    .slide-content {
        padding-left: 5%;
    }
    
    .slide-text-box {
        max-width: none;
        padding: 20px 30px;
    }
    
    .slide-text-small {
        font-size: 20px;
    }
    
    .slide-text-large {
        font-size: 36px;
    }

    .slide-text-sub {
        font-size: 18px;
    }
    
    .slide-triangle {
        width: 200px;
        height: 200px;
    }
    
    .arrow-img {
        width: 72px;
        height: 72px;
        right: 30px;
        bottom: 30px;
    }
}

@media (max-width: 767px) {
    .p-lp-header {
        min-height: 500px;
    }
    
    .hero-slider-wrapper {
        height: 500px;
    }
    
    .p-header-content__catch {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .slide-content {
        padding-left: 3%;
        justify-content: center;
        text-align: center;
    }
    
    .slide-text-box {
        max-width: none;
        padding: 15px 20px;
    }
    
    .slide-text-small {
        font-size: 16px;
    }
    
    .slide-text-large {
        font-size: 26px;
    }

    .slide-text-sub {
        font-size: 14px;
        margin-top: 8px;
    }
    
    .slide-triangle {
        width: 150px;
        height: 150px;
    }
    
    .arrow-img {
        width: 56px;
        height: 56px;
        right: 20px;
        bottom: 20px;
    }
}

/* Animation States */
.p-lp-header.is-active .p-header-content__inner > * {
    opacity: 1;
}

/* Background Animation (optional particle effect area) */
.n2-ss-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    perspective: 1000px;
}

