/* ベースリセットと共通設定 */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    font-family: sans-serif; 
    line-height: 1.6;
}
section {
    text-align: center;
    padding: 0;
    position: relative;
}

/* 画像の共通設定 */
.section-img {
    display: block;
    width: 100%; 
    height: auto;
}
.cta-area {
    margin: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
}
.cta-img {
    display: block;
    height: auto;
    position: absolute;
    width: 100%;
}
.cta-background, .cta-text, .cta-btn {
    display: block;
    height: auto;
    position: absolute;
    width: 100%;
}
.cta-btn {
    transition: .2s
}
.cta-btn:hover {
    scale: calc(0.98);
    transform: translateY(1px);
}



/* カーソル設定 */
.custom-carousel-container {
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 20;
    display: block;
    margin: 0;
    padding: 0;
    overflow-x: scroll; 
    -webkit-overflow-scrolling: touch; 
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-align: center;
    scroll-snap-type: x mandatory;
}
.custom-carousel-wrapper {
    position: absolute;
    justify-content: space-between;
    display: flex; /* スライドを横並び */
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* スマホでスワイプ可能に */
}
.custom-carousel-slide {
    width: 15%;
    flex-shrink: 0; 
    margin-bottom: 2%;
    scroll-snap-align: center;
}
.custom-carousel-pagination {
    display: none;
}
.creator-item {
    scroll-snap-align: center;
}


/* 矢印の基本スタイル */
.carousel-arrow-container {
    top: 0px;
    width: 100%;
    height: auto;
    z-index: 100;
    display: block;
    position: absolute;
}
.carousel-arrow {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 15%; 
    height: auto;
    display: block;
    top: auto;
}
.carousel-arrow .arrow-img {
    width: 100%;
    height: 100%;
}
.carousel-arrow-left {
    left: 0;
}
.carousel-arrow-right {
    right: 0;
}


/* fvセクション */
#fv .cta-background {
    top: 78%;
}
#fv .cta-text {
    left: 15%;
    width: 70%;
    top: 88.5%;
}
#fv .cta-btn {
    left: 5.8%;
    width: 88%;
    top: 92.5%;
}


/* guidanceセクション */
.guidance-slider .custom-carousel-wrapper {
    top: 44%;
}
.guidance-item {
    width: 100%;
}
.guidance-item picture img {
    width: 100%;
}
.guidance-arrow {
    top: 62%;
}


/* abilityセクション */
#ability .cta-background {
    top: 78%;
    left: 2.8%;
    width: 95%;
}
#ability .cta-text {
    left: 17%;
    width: 65%;
    top: 84%;
}
#ability .cta-btn {
    left: 9%;
    width: 82%;
    top: 86.2%;
}


/* creatorセクション */
.creator-main-img {
    width: 100%;
    top: 0;
}
.creator-back-img {
    position: absolute;
    width: 100%;
    top: 58%;
    z-index: 100;
}
.top-creator-slider {
    top: 20%;
    width: 100%;
}
.top-creator-item {
    width: 100%;
}
.top-creator-arrow {
    top: 30%;
    z-index: 100;
    height: auto;
}
.creator-slider {
    top: 62%;
    left: 6%;
    width: 88%;
    z-index: 101;
}
.creator-item {
    width: 100%;
}
.creator-item img {
    padding-left: 5%;
    padding-right: 5%;
}
.creator-arrow {
    top: 75%;
    z-index: 102;
}


/* activitiesセクション */
.activities-slider {
    top: 40%;
    left: 6%;
    width: 88%;
}
.activities-item {
    width: 100%;
}
.activities-item img {
    padding-left: 5%;
    padding-right: 5%;
}
.activities-arrow {
    width: 100%;
    top: 60%;
}
.activities-item picture, .activities-item img {
    width: 100%;
}


/* reasonセクション */
.reason-slider .custom-carousel-wrapper{
    margin-left: 0.5%;
    top: 38%;
}
.reason-item {
    width: 100%;
}
.reason-arrow {
    top: 60%;
}


/* flowセクション */
#flow .cta-background {
    top: 93%;
}
#flow .cta-text {
    left: 15%;
    width: 70%;
    top: 98%;
}
#company .cta-btn {
    left: 5.8%;
    width: 88%;
    top: 0%;
    z-index: 100;
}


/* companyセクション */
.note-area {
    margin: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
}
#company .note-img {
    display: block;
    height: auto;
    position: absolute;
    width: 100%;
    animation: pulse 2s infinite;
    position: absolute;
    width: 92%;
    top: 36%;
    left: 5%;
}
.note-img:hover {
    scale: calc(0.98);
    transform: translateY(1px);
}

.flow-area .cta-img {
    display: none;
}


/* 431px以上：SP画像を非表示 */
@media screen and (min-width: 431px) {

    /* ctaに関して */
    #fv .cta-background {
        top: 88%;
    }
    #fv .cta-text {
        left: 62%;
        width: 25%;
        top: 87.5%;
    }
    #fv .cta-btn {
        left: 58%;
        width: 34%;
        top: 92%;
    }

    /* abilityセクション*/
    #ability .cta-background {
        left: 9%;
        top: 70%;
        width: 82.5%;
    }
    #ability .cta-text {
        left: 61%;
        width: 20%;
        top: 69.5%;
    }
    #ability .cta-btn {
        left: 57%;
        width: 28%;
        top: 72.5%;
    }

    /* activitiesセクション */
    .activities-slider {
        top: 48%;
    }
    .activities-slider .custom-carousel-wrapper {
        top: 0;
        justify-content: center;
        gap: 0;
        padding-left: 32%;
        padding-right: 32%;
    }
    .activities-item picture img {
        width: 100%;
    }
    

    /* creatorセクション */
    .top-creator-arrow {
        display: none;
    }
    .top-creator-slider img {
        width: 100%;
    }
    .top-creator-slider {
        width: 100%;
    }
    .top-creator-slider .custom-carousel-wrapper {
        width: 50%;
        gap: 0;
    }
    .creator-item {
        width: 28%;
    }
    .top-creator-item {
        width: 100%;
    }
    .creator-item picture img {
        width: 100%;
    }
    .creator-slider {
        top: 62%;
        width: 80%;
        left: 10%;
    }
    .creator-slider .custom-carousel-wrapper {
        top: 0;
    }
    .creator-arrow {
        top: 73%;
        z-index: 100;
    }

    /* guidance セクション内の SP画像（carousel 内含む）を全て非表示 */
    #guidance picture source[media="(max-width: 430px)"] {
        display: none;
    }
    /* SP画像として読み込まれている img も念のため非表示 */
    #guidance picture img[src*="css/img/sp/"] {
        display: none;
    }

    /* activities セクション内の SP画像（carousel 内含む）を全て非表示 */
    #activities .arrow-img[src*="css/img/sp/"] {
        display: none;
    }

    /* reason セクション内の SP画像（carousel 内含む）を全て非表示 */
    #reason picture source[media="(max-width: 430px)"] {
        display: none;
    }
    /* SP画像として読み込まれている img も念のため非表示 */
    #reason picture img[src*="css/img/sp/"] {
        display: none;
    }

    /* 矢印の基本スタイル */
    .carousel-arrow {
        width: 10%;
    }

    /* flowセクション */
    #flow .cta-background {
        top: 88%;
    }
    #flow .cta-text {
        left: 62%;
        width: 25%;
        top: 87.5%;
    }
    #cta .cta-btn {
        left: 58%;
        margin-top: -5%;
        width: 34%;
        z-index: 100;
    }
    

    /* companyセクション */
    .note-area {
        margin: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 10;
    }
    #company .note-img {
        display: block;
        height: auto;
        position: absolute;
        width: 100%;
        animation: pulse 2s infinite;
        position: absolute;
        width: 16%;
        top: 25%;
        left: 11%;
    }
}