* {
    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;
}

.info-section {
    position: relative;
    width: 100%;
    padding:  0;
    overflow: hidden;
}

/* Content Overlay */
.content-overlay {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

/* Layer 3 Content Initial State */
#stack-layer-3 .card-content-text {
    opacity: 0;
    transform: translateY(30px);
}

#stack-layer-3 .card-sub-txt.is-split .char {
    opacity: 0;
}

/* Information Box Initial State */
.info-section .box {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}


.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;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3); 
}

/* ボタン内に矢印などがあれば一緒に動かす */
/* .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-c006) ;
    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) {
    /* 必要に応じて調整 */
}

/* Generic 3D Mouse Tracker Styles (Performance Optimized) */
.box3d {
    transition: background-color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1200px;
    backface-visibility: hidden;
}

/* 影専用の擬似要素（レイアウト再計算を防ぐ） */
.box3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

.box3d:hover {
    /* background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(8px); */
}

.box3d:hover::before {
    opacity: 1;
}

/* フロートボタン専用のホバー色（CSSに移行して高速化） */
.sc01-img02 {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.float-3d-button-look {
    width: 100%;
    height: 100%;
    background-color: var(--main-c002);
    border: 1px solid #fff;
    border-radius: 49% 43% 49% 47% / 52% 50% 51% 44%;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: background-color 0.2s ease !important;
    opacity: 0.9;
    backdrop-filter: blur(8px);
}

.float-3d-button-look:hover {
    opacity: 1;
}

.float-3d-button-look a {
    display: block;
    width: 100%;
    height: 100%;
}

.float-3d-button-look img {
    width: 100%;
    height: auto;
    transform: translateZ(50px);
}

.sc01-img02:hover .float-3d-button-look {
    background-color: var(--main-c003) !important;
    cursor: pointer;
}

@media (max-width: 821px){
.float-3d-button-look.cal {
    width: 100%;
    height: 100%;
    /* background-color: var(--main-c002); */
    background-color: #fff;
    border: 0px solid #fff;
    border-radius: 0%;
    /* filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0)); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* transform-style: preserve-3d;
    transition: background-color 0.2s ease !important; */
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.95));
}

.float-3d-button-look.cal img {
    width: 70%;
    margin: 0.5rem auto 0.5rem 0;
}

}

.cnt-if.box3d {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}


.cnt-if.wide {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cnt-if .img-part {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 20px 20px 0 0; 
    transform: translateZ(20px);
    pointer-events: none;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cnt-if .img-part img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.1); /* Give room for parallax movement */
}

/* Remove original margin/padding from the first wide card if it exists */
.cnt-if.wide {
    margin-top: 0 !important;
}

.cnt-if.wide .img-part {
    margin-top: 0 !important;
}

.cnt-if__text-part {
    padding: 2rem 1.5rem 3rem !important; /* Restore padding inside text part since card padding was removed */
    transform: translateZ(30px);
}

/* Glossy Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.1) 0%, 
                transparent 60%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.box3d:hover .card-shine {
    opacity: 1;
}

.cnt-if__title {
    transition: color 0.3s ease;
}

.box3d:hover .cnt-if__title {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Floating animation */
@keyframes floating-img {
    0%, 100% { transform: translateY(0) rotate(0); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Decorative elements */
.cnt-if::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.cnt-if:hover::after {
    opacity: 1;
}

/* Scroll initial state for GSAP */
.cnt-if {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}
