/* =============================================================================
   🟦 APPSHEET SERVICE STYLES - AppSheetサービス専用スタイル
   ============================================================================= */

/* 🔧🔧🔧 【AppSheetトップセクション】workflow-layout・cockpit-layoutと同じ設定 🔧🔧🔧 */
.appsheet-top-section {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

/* AppSheetセクション専用の基本設定 */
/* AppSheetセクション専用の基本設定 - PC専用 */
@media (min-width: 481px) {
    .service-appsheet .service-detail-content.appsheet-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 60px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 60px !important;        /* 🔧 20px → 60px に変更（統一的な余白を確保） */
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }
}

/* タイトル（他のセクションと同じ） */
.appsheet-top-section .service-detail-title {
    flex: 0 0 100%;
    order: 1;
}

/* メッセージエリア（他のセクションと同じ42%幅） */
.appsheet-top-section .service-detail-message {
    flex: 0 0 42%;
    order: 2;
    align-self: flex-start;
    margin-top: 0;
}

/* デモエリア（他のセクションと同じ55%幅） */
.appsheet-top-section .service-detail-right {
    flex: 0 0 55%;
    order: 3;
    align-self: flex-start;
    margin-top: 0;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    opacity: 0;
    transform: translateY(20px);  /* 🚨 X軸→Y軸に統一（子要素と同方向） */
    transition: all 1.2s ease-out;
}

/* 🔧🔧🔧 【カクつき根絶】AppSheetセクションの右側エリア表示アニメーション */
.appsheet-top-section .service-detail-right.visible {
    opacity: 1;
    transform: translateY(0);  /* 🚨 X軸→Y軸に統一（子要素と同方向） */
    /* 🚨 アニメーション削除 - 子要素のfeature-cardのみアニメーション */
}

/* AppSheetセクションの特徴カード（横並び） - PC専用 */
@media (min-width: 481px) {
    .service-appsheet .appsheet-layout .service-features {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 30px !important;    /* 🔧 40px → 30px 横並び時の間隔も縮小 */
        margin: -30px 0 0 0 !important;  /* 🔧 統一された位置調整 */
        width: 100% !important;
    }
}

/* 🔧🔧🔧 【AppSheet専用タイトル】他のセクションと統一 🔧🔧🔧 */
.appsheet-layout .service-detail-title {
    display: block !important;
    width: 100% !important;
    min-width: 100%;
    box-sizing: border-box;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(78, 205, 196, 0.8);
    line-height: 1.3;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease-out;
}

.appsheet-layout .service-detail-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🔧🔧🔧 【AppSheetデモコンテナ】右側エリアの視覚要素 🔧🔧🔧 */
.appsheet-demo-container {
    position: relative;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 🔧🔧 【カクつき対策】transitionを細分化して競合回避 */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* 🔧🔧 【GPU最適化】レンダリング最適化でスムーズ化 */
    will-change: transform;  /* GPU アクセラレーション明示 */
    transform: translateZ(0);  /* GPU レイヤー作成 */
}

.appsheet-demo-container:hover {
    transform: scale(1.02) translateZ(0);  /* 🔧 GPUレイヤー維持しながらscale効果 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 🔧🔧🔧 【カクつき根絶】AppSheetデモコンテナにふわふわアニメーション追加 */
.appsheet-demo-container.visible {
    animation: float 6s ease-in-out infinite 3s;  /* 🔧🔧🔧 1.2s → 3s にさらに延長してカクつき完全解消 */
}

/* 🔧🔧🔧 【AppSheet画像表示】セクション1と同じ方式 🔧🔧🔧 */
.appsheet-demo-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: block;
    cursor: pointer;
}

.appsheet-demo-image:hover {
    transform: scale(1.02);
}

/* プレースホルダー（画像がない場合の表示） */
.demo-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1), 
        rgba(52, 168, 83, 0.1));
    border-radius: 15px;
    border: 2px dashed rgba(255, 193, 7, 0.3);
}

.demo-placeholder .placeholder-content {
    text-align: center;
    color: #666;
}

.demo-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.demo-placeholder h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.demo-placeholder p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #666;
}

.demo-placeholder small {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
}

/* サービス別の色分け（AppSheet） */
.service-appsheet .service-detail-title {
    color: rgba(144, 238, 144, 0.995);
}

/* 🚨🚨🚨 【重複削除】feature-card:hoverはcomponents.cssで一元管理 */
/* .service-appsheet .feature-card:hover は削除 - components.cssに統一 */ 