.top-kv {
    background: url(../../img/top-kv.png) #fff no-repeat center;
    height: 44vw;
    position: relative;
    background-size: cover;
}

@media screen and (max-width: 1440px) {
    .top-kv {
        height: 650px;
    }
}

.top-kv p {
    color: #fff;
}

.top-kv-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    height: 80%;
}

/* Hide p1 and p3 initially */
.top-kv-content-p1,
.top-kv-content-p3 {
    visibility: hidden;
}

/* p2 is visible but starts clipped (hidden) */
.top-kv-content-p2 {
    visibility: visible;
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
}

.top-kv-content-p1 {
    font-size: 0.8rem;
    padding: 0 30px;
}

.top-kv-content-p2 {
    font-size: 2.5rem;
    background: #FFF;
    background: linear-gradient(to right, #ffffff4f 0%, #ffffff01 100%);
    padding: 0 30px;
    margin: 30px 0 10px;
}

.top-kv-content-p2 span {
    font-size: 1.5rem;
}

.top-kv-content-p3 {
    font-size: 1.5rem;
    padding: 0 30px;
}

.top-kv-content-p4 {
    font-size: .6rem;
    position: absolute;
    left: 5%;
    bottom: 5%;
}

.top-kv-scroll {
    font-size: 0.6rem;
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align: center;
    left: 0;
    display: block;
    color: #fff;
}

.scroll-arrow-div {
    transform: rotate(90deg);
    position: relative;
}

.scroll-arrow {
    position: absolute;
    top: 100%;
    left: 51%;
    transform: translateX(-50%);
    animation: pulse 1.5s infinite ease-in-out;

}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(0) translateY(-50%);
    }

    50% {
        opacity: 1;
        transform: translateX(10px) translateY(-50%);
    }

    100% {
        opacity: 0.5;
        transform: translateX(0) translateY(-50%);
    }
}



.top-sec1 {
    background: #faf7f7;
    padding: 60px;
}

.top-sec1>div {
    background: #fff;
    height: 950px;
    position: relative;
}

.top-sec1 .Wrapper {
    background: url(../../img/sec1-bg.png) #fff no-repeat 35% center;
    height: 100%;
}

.top-sec1-flex {
    display: flex;
    padding: 150px 0;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
}

.top-sec1-right {
    width: 420px;
}

.top-sec1-img {
    position: absolute;
    z-index: 1;
    left: -100px;
    width: 350px;
    top: 250px;
}

.typing {
    min-height: 200px;
    white-space: pre-wrap;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    font-weight: 500;
    padding-top: 70px;
}

.top-sec2 {
    background: url(../../img/sec2-bg.png) #fff no-repeat center;
    /*   height: 900px; */
    display: flex;
    background-size: cover;
    align-items: center;
    padding: 100px 0;
}

.top-sec2 p {
    color: #fff;
}

.top-sec2 .Wrapper {
    position: relative;
}

#sec2-typing {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    /*   font-weight: 500; */
    padding-top: 40px;
    color: #fff;
}

.top-sec2-btn {
    position: absolute;
    right: 0;
    width: 300px;
    height: 300px;
    bottom: 0;
    background: linear-gradient(to bottom, #ffffff50 0%, #ffffff05 100%);
    border-radius: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-sec2-btn p {
    text-align: center;
    margin-right: 10px;
}

.top-sec2-btn span {
    font-size: 0.7rem;
    display: block;
}

.top-sec2-btn-arrow {
    position: relative;
    color: #fff;
}

.top-sec3 {
    background: url(../../img/sec3-bg.png) #fff no-repeat center;
    /*   height: 900px; */
    display: flex;
    background-size: cover;
    align-items: center;
    padding: 100px 0;
}

.top-sec3 .Wrapper {
    position: relative;
}

.top-sec3 p {
    color: #fff;
}

#sec3-typing {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    /*     font-weight: 500; */
    padding-top: 40px;
    color: #fff;
}

.top-sec4 {
    background: #faf7f7;
    padding: 60px;
}

.top-sec4>div {
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), calc(100% - 100px) 100%, 0 100%);
    padding: 60px;
}

.top-sec4-flex {
    display: flex;
    justify-content: space-between;
    gap: 10%;
    align-items: center;
}

.top-sec4-flex-left {
    width: 40%;
}

.top-sec4-flex-right-text {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    padding-top: 30px;
}

.hp-sec5 {
    padding: 0 0 60px;
}

.hp-sec5-content {
    display: flex;
    background: #fff;
    align-items: center;
}

.hp-sec5-content-left {
    width: 50%;
    padding: 30px;
    font-family: 'Noto Sans JP', sans-serif;
}

.hp-sec5-content-right {
    width: 50%;
    display: flex;
    padding: 70px 90px;
    background: #efefef;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hp-sec5-content-right img {
    max-width: 167px;
}

.hp-sec5-content-right p {
    display: flex;
    font-size: 1.4rem;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.hp-sec5-content-right p span {
    font-size: 0.9rem;
}

.hp-sec5-btn {
    display: block;
    background: #fff;
    position: relative;
    margin-top: 60px;
    width: 100%;
    max-width: 550px;
    margin: 60px auto 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 0 100%);
}

.hp-sec5-btn::before {
    position: absolute;
    content: '';
    height: 100%;
    width: 30px;
    background: linear-gradient(-38deg, rgb(12 124 77 / 0%) 0%, rgba(37, 143, 98, 1) 100%);
}

.hp-sec5-btn-flex {
    display: flex;
    padding: 80px 0;
    justify-content: center;
    gap: 15%;
    align-items: center;
}

.hp-sec5-btn-flex-left {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    line-height: 1.6;
}

.hp-sec5-btn-flex-left span {
    font-size: 0.7rem;
    display: block;
}

.hp-sec5-btn-flex-right {
    font-size: 2rem;
}

@media screen and (max-width: 768px) {
    .top-sec1-flex {
        padding: 50px 0;
        justify-content: flex-start;
        gap: 30px;
        height: 100%;
        flex-direction: column;
    }

    .top-sec1-right {
        width: 100%;
    }

    .typing {
        padding-top: 0;
        padding-left: 150px;
    }

    .top-sec1 .Wrapper {
        background: none;
        z-index: 2;
        position: relative;
    }

    .top-sec4-flex {
        justify-content: flex-start;
        gap: 50px;
        align-items: center;
        flex-direction: column;
    }

    .top-sec4-flex-left {
        width: 100%;
    }

    .hp-sec5-content {
        flex-direction: column;
    }

    .hp-sec5-content-right {
        order: 1;
        width: 100%;
    }

    .hp-sec5-content-left {
        order: 2;
        width: 100%;
    }
}

@media screen and (max-width: 660px) {
    .top-kv {
        height: 100vh;
    }

    .top-kv-content-p2 {
        font-size: 2rem;
        padding: 0 0 0 20px;
        margin: 10px 0;
    }

    .top-kv-content-p1 {
        padding: 0;
    }

    .top-kv-content-p2 span {
        font-size: 0.9rem;
    }

    .top-kv-content-p3 {
        font-size: 1.1rem;
        padding: 0;
    }

    .top-kv-content {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        height: 90%;
    }

    .top-kv-scroll {
        display: none;
    }

    .top-sec1,
    .top-sec4 {
        padding: 30px 15px;
    }

    .typing {
        padding-left: 40px;
        font-size: 0.9rem;
    }

    .top-sec1-img {
        left: -150px;
        top: 200px;
    }

    .top-sec1>div {
        height: 900px;
    }

    .top-sec2,
    .top-sec3 {
        padding: 50px 0;
    }

    .top-sec2 .hp-title1,
    .top-sec3 .hp-title1 {
        font-size: 2rem;
    }

    #sec2-typing,
    #sec3-typing,
    .top-sec4-flex-right-text {
        padding-top: 20px;
    }

    .top-sec2-btn {
        position: relative;
        width: 200px;
        height: 200px;
        margin: 20px 0 0 auto;
    }

    .top-sec4>div {
        padding: 30px 15px 60px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%);
    }

    .hp-sec5 {
        padding: 30px 0 60px;
    }

    .hp-sec5-content-right {
        padding: 30px 0 10px;
    }

    .hp-sec5-btn-flex {
        padding: 30px 0 30px 20px;
        gap: 5%;
    }

    .hp-sec5-btn::before {
        width: 20px;
    }

    .hp-sec5-btn-flex-left,
    .hp-sec5-btn-flex-right {
        font-size: 1.6rem;
    }

    .hp-sec5-btn {
        margin: 40px auto 0;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    }
}

@media screen and (max-width: 330px) {
    .top-kv-content-p2 {
        font-size: 1.8rem;
        padding: 0 0 0 10px;
    }

    .typing {
        padding-left: 20px;
    }

    .top-sec1>div {
        height: 950px;
    }

    .top-sec2 .hp-title1,
    .top-sec3 .hp-title1 {
        font-size: 1.8rem;
    }
}
