/* ---------------------------------------------
   共通スタイル（PC・SP共有）
---------------------------------------------- */

html {
    font-size: 16px;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    position: relative;
}

.inner {
    margin: 0 auto;
    position: relative;
}

    /* 全体レイアウト */
    .carousel {
        padding: 40px 0;
        background-color: #fff;
    }

    .carousel-inner {
        max-width: 1640px;
        margin: 0 auto;
        padding: 0 0 0 80px;
    }

    /* ヘッダー部分（タイトル＋矢印＋ページ数） */
    .carousel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .carousel-title {
        display: inline-block;
        padding: 8px 24px;
        background-color: #000;
        color: #fff;
        border-radius: 8px;
        font-size: 20px;
    }

    /* コントロール */
    .carousel-controls {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #000;
        background: #fff;
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .carousel-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .carousel-page {
        min-width: 60px;
        text-align: center;
    }

    /* 表示エリア */
    .carousel-viewport {
        overflow: hidden;
        scroll-padding-left: 0;
    }

    /* 横並びトラック */
    .carousel-track {
        display: flex;
        gap: 30px;
        /* スクロールスナップが効くように（オプション） */
        scroll-behavior: smooth;
    }

    /* 各アイテム */
    .carousel-item {
        flex: 0 0 350px;
        /* ここを変えると1画面に入る枚数が変わる */
    }

    .carousel-item figure {
        margin: 0;
    }

    .carousel-item img {
        width: 100%;
        height: 230px;
        display: block;
        object-fit: cover;
    }

    .carousel-item figcaption {
        margin-top: 8px;
        font-size: 14px;
    }

    /* レスポンシブ（スマホ） */
    @media (max-width: 767px) {

        .carousel-viewport {
          overflow: hidden;
        }

        .carousel-inner {
            padding: 0 5vw;
        }
      
        .carousel-track {
          display: flex;
          gap: 16px;         /* 余白はお好みで */
        }
      
        .carousel-item {
          flex: 0 0 100%;    /* ビューポート幅いっぱい＝1枚だけ表示 */
        }
      
        .carousel-item img {
          width: 100%;
          height: auto;
          display: block;
        }
        .carousel-controls {
            gap: 1vw;
        }
        .carousel-title {
            font-size: 4vw;
        }
      }


/* animate  */
.animation {
    opacity : 0.0;
    transform : translate(0, 50px);
    transition : all 1000ms;
    }

.animation.scrollin {
    opacity : 1;
    transform : translate(0, 0);
    }
.animation.scrollin:nth-of-type(2) {
	transition-delay: 0.3s;
}
.animation.scrollin:nth-of-type(3) {
	transition-delay: 0.5s;
}
.animation.scrollin:nth-of-type(4) {
	transition-delay: 0.8s;
}


.animate {
    opacity : 0.0;
    transform : translate(0, 0);
    transition : all 1200ms 1.2s;
}
.animate.scrollin {
    opacity : 1;
    transform : translate(0, 0);
	transition-delay: 0.2s;
}
.animate.scrollin:nth-of-type(2)  {
	transition-delay: 0.4s;
}
.animate.scrollin:nth-of-type(3)  {
	transition-delay: 0.8s;
}
.animate.scrollin:nth-of-type(4)  {
	transition-delay: 1.1s;
}
.animate.scrollin:nth-of-type(5)  {
	transition-delay: 1.5s;
}


.anim .fadein {
    opacity: 0;
    animation: fadeIn 1.0s cubic-bezier(0.33, 1, 0.68, 1) forwards;
} 
.anim .fadein:nth-of-type(1)  {
	animation:fadeIn 1.0s  forwards 0.1s;
}
.anim .fadein:nth-of-type(2)  {
	animation:fadeIn 1.0s  forwards 0.4s;
}
.anim .fadein:nth-of-type(3)  {
	animation:fadeIn 1.0s  forwards 0.8s;
}
.anim .fadein:nth-of-type(4)  {
	animation:fadeIn 1.0s  forwards 1.1s;
}
.anim .fadein:nth-of-type(5)  {
	animation:fadeIn 1.0s  forwards 1.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}