/* ベースリセットと共通設定 */
* {
    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%;
    animation: pulse 2s infinite;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    padding: 0 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1501;
}
.logo {
    width: auto;
    height: 100%;
}
.hamburger {
    display: none;
    width: 3%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 100%;
    min-width: 64px;
    height: 10%;
    background: #ffffff;
    transition: .3s;
    box-shadow: 2px 4px 4px #00000008;
    border-radius: 10px;
    margin-right: 50%;
}

/* クリック後のバッテン処理 */
.hamburger.active span:nth-child(1) {
    transform: translateY(420%) rotate(45deg);
    background: #1A1A1A;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-420%) rotate(-45deg);
    background: #1A1A1A;
}

/* メニュー */
.menu-panel {
    z-index: 1500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;
}
.menu-panel.active {
    opacity: 1;
    visibility: visible;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin-top: 20%;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    font-size: 1.5vw;
    font-weight: 500;
}
#menuPanel .cta-area {
    top: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
}
#menuPanel .cta-img {
    top: 70%;
}


/* カーソル設定 */
.custom-carousel-container {
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 20;
    display: block;
    overflow-x: scroll; 
    scroll-snap-type: x proximity; 
    -webkit-overflow-scrolling: touch; 
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.custom-carousel-wrapper {
    position: absolute;
    justify-content: space-between;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    display: flex;         /* スライドを横並び */
    scroll-behavior: smooth; /* スムーズスクロール */
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* スマホでスワイプ可能に */
}
.custom-carousel-slide {
    width: 15%;
    flex-shrink: 0; 
    margin-bottom: 2%;
}
.custom-carousel-pagination {
    display: none;
}


/* 矢印の基本スタイル */
.carousel-arrow-container {
    top: 0px;
    width: 100%;
    height: auto;
    z-index: 20;
    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-img {
    top: 78%;
}


/* 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-img {
    top: 78%;
    left: 2.8%;
    width: 95%;
}


/* 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%;
    width: 100%;
    z-index: 101;
}
.creator-item {
    width: 100%;
}
.creator-item picture img {
    width: 86%;
}
.creator-slider .custom-carousel-wrapper {
    top: 0%;
    left: 12%;
}
.creator-arrow {
    top: 75%;
    z-index: 102;
}


/* activitiesセクション */
.activities-item {
    width: 100%;
}
.activities-item picture img {
    width: 80%;
}
.activities-slider {
    width: 100%;
}
.activities-slider .custom-carousel-wrapper {
    top: 38%;
    left: 16%;
}
.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-img {
    top: 93%;
}


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

    /* ctaに関して */
    #fv .cta-img {
        top: 84%;
    }
    #ability .cta-img {
        top: 68.5%;
        left: 8.8%;
        width: 82.5%;
    }
    #flow .cta-img {
        top: 87%;
    }

    /* activitiesセクション */
    .activities-slider .custom-carousel-wrapper {
        width: 20%;
        top: 43%;
        left: 12%;
    }

    /* 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%;
    }
}
