* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.scroll-container {
    width: 100%;
}

/* Sections */
.intro-section, .footer-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Sticky Container Area */
.sticky-container {
    position: relative;
    height: auto; /* コンテンツ量に応じて伸びるように変更 */
    max-width: 1920px;
    margin: 0 auto;
}

.stack-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100vh; */
    /* min-height: 100vh; */
    /* overflow: visible; */
    overflow: hidden;
    /* コンテンツのはみ出しを許可 */
    /* z-index: 50; */
}

.stack-wrapper.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background-color: var(--main-c004);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 親の高さに追従 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(3); /* Initially much larger */
}


#layer-1 { background-image: url('../img/ami/ani-001.webp'); }
#layer-2 { background-image: url('../img/ami/ani-002.webp'); }
#layer-3 { background-image: url('../img/ami/ani-003.webp'); }
#layer-4 { background-image: url('../img/ami/ani-004.webp'); }
#layer-5 { background-image: url('../img/ami/ani-005.webp'); }

@media screen and (max-width: 821px) {
    #layer-1 { background-image: url('../img/ami/ani-001_sp.webp'); }
    #layer-2 { background-image: url('../img/ami/ani-002_sp.webp'); }
    #layer-3 { background-image: url('../img/ami/ani-003_sp.webp'); }
    #layer-4 { background-image: url('../img/ami/ani-004_sp.webp'); }
    #layer-5 { background-image: url('../img/ami/ani-005_sp.webp'); }
}

/* Content Overlay */
.content-overlay {
    position: relative; /* absoluteから変更 */
    top: 0;
    left: 0;
    width: 100%;
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
}

.content-wrapper {
    text-align: center;
    /* background-color: rgba(0, 0, 0, 0.6); */
    padding: 4rem;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll trigger area within sticky-container */
.scroll-trigger-area {
    position: absolute;
    /* top: 20vh; */
    top: -10vh;
    height: 100vh;
    width: 100%;
}



/*     */
/* スタッキング内のボタン専用ホバー */
.stacking-layer .btn.white {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #fff;
    color: #000;
}

.stacking-layer .btn.white:hover {
    background-color: var(--main-c003) !important; /* アクセントカラーに変化 */
    color: #fff !important;
    transform: scale(1.1) translateY(-10px) rotate(2deg); 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4); 
}

/* ボタン内に矢印などがあれば一緒に動かす */
.stacking-layer .btn.white:hover::after {
    transform: translateX(5px);
}

/* Informationのパネル（外枠を動かさず、中身だけを少し浮かせる） */
.parent .box {
    transition: background-color 0.3s, border-color 0.3s;
}

/* .parent .box:hover {
    background-color: #fff9e6 !important; 
    border-color: var(--main-c003) !important;
    z-index: 10; 
} */

.parent .box .box-in {
    transition: transform 0.3s ease;
}

/* .parent .box:hover .box-in {
    transform: translateY(-2px);
} */

/* セクション登場時の「予兆」スタイル */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

/* 初期隠し設定削除 */


/*    */

@media screen and (max-width: 821px) {
.content-overlay {
    /* height: 100vh; */
}

/* .sticky-container {
    height: 100vh;
} */
}

/* 画像のスタッキング設定 */
.sc01-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* 画像の高さに合わせて調整 */
}

.sc01-img .p-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-width: 48rem;
}

/* 最初の画像以外は重なるための基準とする */
.sc01-img .p-img:not(:first-child) {
    /* 必要に応じて調整 */
}

/* スタッキング内の要素を初期状態で隠す設定は JS で管理するため削除 */

