/* ==========================================================================
   CA4LA Style LP Template - Embeddable Version (No Border / Edge-to-Edge)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Browser / CMS / EC Site Global Reset (枠線・余白の完全除去)
   -------------------------------------------------------------------------- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    overflow-x: hidden;
}

body, .main-content, .free-area, .wrapper, iframe, #main {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* --------------------------------------------------------------------------
   2. LP Scoped Root & Reset
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background-color: #0f0f10;
    color: #ffffff;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

#lp-stacked-wrapper *, 
#lp-stacked-wrapper *::before, 
#lp-stacked-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#lp-stacked-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
}

#lp-stacked-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

#lp-stacked-wrapper .container-narrow {
    max-width: 760px;
}

#lp-stacked-wrapper .text-center { 
    text-align: center; 
}

/* --------------------------------------------------------------------------
   3. STACKING OVERLAP CORE ENGINE (position: sticky)
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .card-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    /*box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.5);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スタック順序 */
#lp-stacked-wrapper #hero { z-index: 1; }
#lp-stacked-wrapper #about { z-index: 2; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(1) { z-index: 3; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(2) { z-index: 4; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(3) { z-index: 5; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(4) { z-index: 6; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(5) { z-index: 7; }
#lp-stacked-wrapper .stacked-container .look-card:nth-child(6) { z-index: 8; }

#lp-stacked-wrapper .normal-section {
    position: relative;
    z-index: 20;
    background-color: #0f0f10;
    border: none !important;
}

/* --------------------------------------------------------------------------
   4. Hero Section & Section Background
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
    padding: 0;
    border: none !important;
}

#lp-stacked-wrapper .section-bg picture {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

#lp-stacked-wrapper .section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none !important;
}

#lp-stacked-wrapper .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

#lp-stacked-wrapper .hero-content {
    text-align: center;
    z-index: 2;
}

#lp-stacked-wrapper .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: #f3e5ab;
    margin-bottom: 16px;
}

#lp-stacked-wrapper .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.08em;
}

#lp-stacked-wrapper .hero-title em { 
    font-style: italic; 
}

#lp-stacked-wrapper .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#lp-stacked-wrapper .scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #a0a0a5;
}

#lp-stacked-wrapper .scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

#lp-stacked-wrapper .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: lpScrollLineAnim 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes lpScrollLineAnim {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* --------------------------------------------------------------------------
   5. Concept Section
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .bg-color-dark {
    /*background-color: #121214;*/
    background-image: url(https://mgos.jp/img/usr/event/versailles/img/top.jpg);
    background-size: cover;
}

#lp-stacked-wrapper .concept-inner {
    text-align: center;
    padding: 0 20px;
    display: block;
}

#lp-stacked-wrapper .section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #f3e5ab;
    margin-bottom: 24px;
}

#lp-stacked-wrapper .concept-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 32px;
    background: none;
}

#lp-stacked-wrapper .concept-desc {
font-size: 0.8rem;
    line-height: 2;
    font-family: serif;
    width: 370px;
    margin: 0 auto;
    color: #fff;
}

/* --------------------------------------------------------------------------
   6. Look Cards Layout (Desktop Max Width: 800px)
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .look-card {
    padding: 0 5vw;
}

#lp-stacked-wrapper .look-card .bg-texture {
    filter: brightness(0.65) contrast(1.1);
}

#lp-stacked-wrapper .look-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

#lp-stacked-wrapper .look-grid .look-photo-block {
    order: 1;
}

#lp-stacked-wrapper .look-grid .look-info-block {
    order: 2;
}

#lp-stacked-wrapper .look-grid.reverse .look-photo-block {
    order: 2;
}

#lp-stacked-wrapper .look-grid.reverse .look-info-block {
    order: 1;
}

#lp-stacked-wrapper .look-info-block {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#lp-stacked-wrapper .look-num {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

#lp-stacked-wrapper .item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

#lp-stacked-wrapper .item-price {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 24px;
}

#lp-stacked-wrapper .item-price .tax {
    font-size: 0.8rem;
    opacity: 0.8;
}

#lp-stacked-wrapper .item-meta {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 24px;
    opacity: 0.9;
}

#lp-stacked-wrapper .item-desc {
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
    opacity: 0.9;
}

#lp-stacked-wrapper .btn-detail {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
#lp-stacked-wrapper .btn-detail a{
    padding: 12px 28px;
    color: #fff;
    display: block;
    }

#lp-stacked-wrapper .btn-detail a:hover {
    background: #fff;
    color: #000;
}

#lp-stacked-wrapper .look-photo-block {
    display: flex;
    justify-content: center;
}

#lp-stacked-wrapper .photo-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 8px solid rgba(255,255,255,0.15);
}

#lp-stacked-wrapper .photo-frame.fluffy-border {
    border: 10px solid rgba(255, 230, 240, 0.4);
}

#lp-stacked-wrapper .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#lp-stacked-wrapper .photo-frame:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Marquee & Credits
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .marquee-section {
    padding: 80px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#lp-stacked-wrapper .marquee-track {
    display: flex;
    width: max-content;
    animation: lpMarquee 25s linear infinite;
}

#lp-stacked-wrapper .marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: 0.2em;
}
#lp-stacked-wrapper .marquee-content div{
    width: 220px;
    margin: 0
    }

#lp-stacked-wrapper .marquee-content .star { 
    color: #f3e5ab; 
}

@keyframes lpMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#lp-stacked-wrapper .credits-section {
    padding: 120px 0;
}

#lp-stacked-wrapper .credits-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
}

#lp-stacked-wrapper .credits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#lp-stacked-wrapper .credits-list li {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

#lp-stacked-wrapper .credits-list .role {
    color: #a0a0a5;
    margin-right: 16px;
    display: inline-block;
    min-width: 140px;
    text-align: right;
}

/* --------------------------------------------------------------------------
   8. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper [data-reveal="up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#lp-stacked-wrapper [data-reveal="up"].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   9. Modal Window (サイト共通ヘッダーより上に表示)
   -------------------------------------------------------------------------- */
#lp-stacked-wrapper .modal {
    position: fixed;
    inset: 0;
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#lp-stacked-wrapper .modal.active {
    opacity: 1;
    pointer-events: auto;
}

#lp-stacked-wrapper .modal-overlay {
position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1; /* 追記：背景を一番下に固定 */
}

#lp-stacked-wrapper .modal-content {
position: relative;
    z-index: 2; /* 背景(1)より確実に上にする */
    background: #18181a;
    max-width: 760px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lp-stacked-wrapper .modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

#lp-stacked-wrapper .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

#lp-stacked-wrapper .modal-body img {
    width: 60%;
/*    aspect-ratio: 3/4;*/
    object-fit: cover;
}

#lp-stacked-wrapper .modal-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    margin-bottom: 8px;
}

#lp-stacked-wrapper .modal-price {
    font-size: 1.1rem;
    color: #f3e5ab;
    margin-bottom: 20px !important;
}

#lp-stacked-wrapper .modal-info p {
    font-size: 0.75rem;
    line-height: 1.8;
    color: #a0a0a5;
    margin-bottom: 30px;
}

#lp-stacked-wrapper .btn-buy {
display: block;
    text-align: center;
    padding: 14px;
    background: #f3e5ab;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    position: relative; /* 追記 */
    z-index: 5;        /* 追記：ボタンを親要素内で確実に前面に出す */
}

/* --------------------------------------------------------------------------
   10. Mobile Responsive Layout Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    #lp-stacked-wrapper .card-section {
        padding-top: 10px;
        padding-bottom: 70px !important;
    }

    #lp-stacked-wrapper .look-card {
        padding: 30px 16px 16px;
    }
#lp-stacked-wrapper .concept-desc
 {
    font-size: 0.75rem !important;
    line-height: 2;
    font-family: serif;
    width: 300px;
    color: #fff;
}
    #lp-stacked-wrapper .look-grid, 
    #lp-stacked-wrapper .look-grid.reverse {
        grid-template-columns: 1fr;
        gap: 12px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #lp-stacked-wrapper .look-grid .look-photo-block,
    #lp-stacked-wrapper .look-grid.reverse .look-photo-block {
        order: 1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        flex: 1 1 auto;
        max-height: 52vh;
    }

    #lp-stacked-wrapper .photo-frame {
        width: 85%;
        max-width: 320px;
        height: 100%;
        aspect-ratio: 3 / 4;
        border-width: 5px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }
#lp-stacked-wrapper .concept-desc {
    font-size: 0.9rem;
}
    #lp-stacked-wrapper .look-grid .look-info-block,
    #lp-stacked-wrapper .look-grid.reverse .look-info-block {
        order: 2 !important;
        width: 100%;
        max-width: 340px;
        text-align: left;
        flex: 0 0 auto;
        padding-bottom: 10px;
    }

    #lp-stacked-wrapper .look-num {
        font-size: 0.8rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }

    #lp-stacked-wrapper .item-title {
        font-size: 1.35rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    #lp-stacked-wrapper .item-price {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    #lp-stacked-wrapper .item-meta {
        font-size: 0.72rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    #lp-stacked-wrapper .item-desc {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #lp-stacked-wrapper .btn-detail {
        padding: 8px 18px;
        font-size: 0.68rem;
        letter-spacing: 0.15em;
        width: 100%;
        text-align: center;
    }

    #lp-stacked-wrapper .modal-body {
        grid-template-columns: 1fr;
    }

    #lp-stacked-wrapper .credits-list .role {
        display: block;
        text-align: center;
        margin-right: 0;
    }
}

@media (max-height: 680px) and (max-width: 900px) {
    #lp-stacked-wrapper .look-photo-block {
        max-height: 45vh !important;
    }
    #lp-stacked-wrapper .photo-frame {
        max-width: 240px;
    }
    #lp-stacked-wrapper .item-desc {
        display: none;
    }
}
