/* ==========================================================================
   Main LP Styles - スグオファーAI
   ========================================================================== */

body.lp-page {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #151c23;
    color: #1e293b;
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Light Mode Card */
.card-white {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FAQ Accordion */
.faq-answer { display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active i { transform: rotate(180deg); }

/* ==========================================================================
   Demo Animation Styles
   ========================================================================== */

.demo-stage {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.demo-panel-wrapper {
    width: 320px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(124, 58, 237, 0.2);
}

.demo-panel {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.demo-panel.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.demo-panel.exit {
    transform: translateX(-100%) scale(0.95);
    opacity: 0;
}

/* Demo Mail Panel */
.demo-mail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.demo-mail-item {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    padding: 12px;
    transition: 0.3s;
}

.demo-mail-item.read {
    opacity: 0.6;
}

.demo-mail-item.new {
    background: rgba(239, 246, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.4);
    border-left: 3px solid #7c3aed;
    animation: demoSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes demoSlideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.demo-mail-item.selected {
    background: rgba(245, 243, 255, 1);
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    animation: demoSelectedPulse 1s ease-out;
}

@keyframes demoSelectedPulse {
    0% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.5); }
    100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
}

.demo-ai-status {
    display: inline-block;
    font-size: 10px;
    color: #7c3aed;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.demo-ai-status.show {
    opacity: 1;
}

.demo-mail-details {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

.demo-mail-item.new .demo-mail-details {
    display: block;
    animation: demoFadeIn 0.4s ease 0.2s backwards;
}

@keyframes demoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to bottom, #a78bfa, #7c3aed);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), 0 0 15px rgba(167, 139, 250, 0.3);
    opacity: 0;
    z-index: 20;
    border-radius: 0 0 3px 3px;
}

.demo-scan-bar.active {
    animation: demoScanAnim 1.2s ease-in-out;
}

@keyframes demoScanAnim {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Demo Chat Panel */
.demo-ai-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    position: relative;
    color: white;
}

.demo-ai-header-icon.absorb {
    animation: demoPulseAbsorb 0.5s ease-out;
}

@keyframes demoPulseAbsorb {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(124, 58, 237, 0.6); }
    100% { transform: scale(1); }
}

.demo-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.demo-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.demo-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.demo-bubble.ai {
    background: #f1f5f9;
    color: #1e293b;
    border-top-left-radius: 2px;
    align-self: flex-start;
}

.demo-bubble.user {
    background: #7c3aed;
    color: white;
    border-top-right-radius: 2px;
    align-self: flex-end;
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.demo-options.show {
    opacity: 1;
    transform: translateY(0);
}

.demo-opt-btn {
    background: rgba(255,255,255,0.9);
    color: #1e293b;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.demo-opt-btn.active {
    background: #7c3aed;
    color: white;
    transform: scale(0.95);
}

.demo-finger {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.demo-finger.tap {
    animation: demoTapAnim 0.4s ease-out;
}

@keyframes demoTapAnim {
    0% { opacity: 0; transform: translate(10px, 10px) scale(1); }
    50% { opacity: 1; transform: translate(0, 0) scale(0.9); }
    100% { opacity: 0; transform: translate(0, 0) scale(1); }
}

/* Demo Calendar Panel */
.demo-cal-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-cal-row {
    display: flex;
    height: 60px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.demo-cal-time {
    width: 50px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 8px;
    transform: translateY(-8px);
}

.demo-cal-slot {
    flex: 1;
    position: relative;
}

.demo-cal-event {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.demo-cal-event.gray {
    background: #cbd5e1;
    color: #475569;
    top: 0;
    bottom: 0;
    opacity: 0.6;
}

.demo-cal-event.blue {
    background: #7c3aed;
    color: white;
    border-left: 3px solid #93c5fd;
    top: 0;
    bottom: 0;
    opacity: 0;
    transform: scale(0.9);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-cal-event.blue.show {
    opacity: 1;
    transform: scale(1);
}

/* Demo Success Overlay */
.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    z-index: 100;
    padding: 40px 20px;
}

.demo-overlay.show {
    opacity: 1;
}

.demo-msg-sub {
    font-size: 18px;
    color: #7c3aed;
    margin-bottom: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.5s 0.2s;
    font-weight: 700;
    text-align: center;
}

.demo-msg-main {
    font-size: 36px;
    font-weight: 900;
    color: #7c3aed;
    transform: scale(0.8);
    opacity: 0;
    transition: 0.5s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    line-height: 1.3;
}

.demo-overlay.show .demo-msg-sub {
    opacity: 1;
    transform: translateY(0);
}

.demo-overlay.show .demo-msg-main {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .demo-panel-wrapper {
        transform: scale(0.85);
    }
}

@media (max-width: 768px) {
    .demo-panel-wrapper {
        transform: scale(0.8);
        width: 280px;
        height: 525px;
    }

    .demo-stage {
        height: 525px !important;
    }

    body.lp-page {
        overflow-x: hidden;
    }

    .container, section, header, footer {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (min-width: 1024px) {
    .demo-panel-wrapper {
        transform: scale(1.0);
    }
}
