    /* =============================================================================
       ポップアップモーダル用CSS
       ============================================================================= */
    
    /* CTAボタン共通スタイル */
    .gip-cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
        font-weight: 700;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .gip-cta-btn-icon {
        flex-shrink: 0;
    }
    
    /* サイズ */
    .gip-cta-btn--small {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .gip-cta-btn--medium {
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .gip-cta-btn--large {
        padding: 18px 36px;
        font-size: 17px;
        border-radius: 10px;
    }
    
    /* スタイル - Primary */
    .gip-cta-btn--primary {
        background: linear-gradient(135deg, #111111 0%, #333333 100%);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .gip-cta-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .gip-cta-btn--primary:active {
        transform: translateY(0);
    }
    
    /* スタイル - Secondary */
    .gip-cta-btn--secondary {
        background: #ffffff;
        color: #111111;
        border: 2px solid #111111;
    }
    
    .gip-cta-btn--secondary:hover {
        background: #111111;
        color: #ffffff;
    }
    
    /* スタイル - Outline */
    .gip-cta-btn--outline {
        background: transparent;
        color: #111111;
        border: 2px solid #cccccc;
    }
    
    .gip-cta-btn--outline:hover {
        border-color: #111111;
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* モーダル */
    .gip-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .gip-modal[aria-hidden="false"] {
        opacity: 1;
        visibility: visible;
    }
    
    .gip-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .gip-modal-container,
    #gip-chat-modal .gip-modal-container,
    #gip-chat-modal > .gip-modal-container {
        position: relative;
        width: 80% !important;
        max-width: 1200px !important;
        height: 80vh !important;
        max-height: 80vh !important;
        min-width: 800px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        transform: translateY(20px) scale(0.95);
        transition: transform 0.3s ease;
        overflow: hidden;
    }
    
    .gip-modal[aria-hidden="false"] .gip-modal-container {
        transform: translateY(0) scale(1);
    }
    
    /* モーダルヘッダー */
    .gip-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e5e5;
        background: #fafafa;
    }
    
    .gip-modal-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .gip-modal-avatar {
        width: 40px;
        height: 40px;
        background: #111111;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gip-modal-header-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .gip-modal-title {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: #111111;
    }
    
    .gip-modal-subtitle {
        font-size: 12px;
        color: #666666;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .gip-modal-status-dot {
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        animation: gip-pulse 2s infinite;
    }
    
    @keyframes gip-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    /* === IRサイト風モーダル v11.0 === */
    
    /* ロゴ */
    .gip-modal-logo {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: #00875a;
    }
    
    .gip-modal-logo svg {
        color: #00875a;
    }
    
    /* IRサイト風ヘッダー */
    .gip-modal-header--ir {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 24px;
    }
    
    .gip-modal-header--ir .gip-modal-title {
        font-size: 20px;
        font-weight: 700;
        color: #0a2540;
        font-family: "Shippori Mincho", "Yu Mincho", serif;
    }
    
    .gip-modal-header--ir .gip-modal-subtitle {
        font-size: 13px;
        color: #64748b;
    }
    
    /* ステップバー */
    .gip-modal-steps-bar {
        padding: 16px 24px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .gip-steps {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gip-steps::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 32px;
        right: 32px;
        height: 2px;
        background: #e2e8f0;
        z-index: 0;
    }
    
    .gip-steps::after {
        content: '';
        position: absolute;
        top: 18px;
        left: 32px;
        height: 2px;
        background: #00875a;
        z-index: 1;
        width: var(--progress-width, 0%);
        max-width: calc(100% - 64px);
        transition: width 0.5s ease;
    }
    
    .gip-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
        flex: 1;
        max-width: 80px;
    }
    
    .gip-step-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        color: #94a3b8;
        transition: all 0.3s ease;
    }
    
    .gip-step.active .gip-step-circle {
        background: #00875a;
        border-color: #00875a;
        color: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.15);
    }
    
    .gip-step.completed .gip-step-circle {
        background: #00875a;
        border-color: #00875a;
        color: #ffffff;
    }
    
    .gip-step.completed .gip-step-num {
        display: none;
    }
    
    .gip-step.completed .gip-step-circle::after {
        content: '✓';
        font-size: 14px;
    }
    
    .gip-step-label {
        margin-top: 6px;
        font-size: 11px;
        font-weight: 500;
        color: #94a3b8;
        text-align: center;
    }
    
    .gip-step.active .gip-step-label,
    .gip-step.completed .gip-step-label {
        color: #0a2540;
        font-weight: 600;
    }
    
    /* 信頼性バナー */
    .gip-modal-trust-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 10px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        flex-wrap: wrap;
    }
    
    .gip-trust-item {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        color: #475569;
    }
    
    .gip-trust-item svg {
        color: #00875a;
        flex-shrink: 0;
    }
    
    .gip-trust-item strong {
        color: #0a2540;
    }
    
    /* 入力エリア（白基調） */
    .gip-input-inline {
        display: flex;
        gap: 10px;
    }
    
    .gip-inline-input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 15px;
        font-family: inherit;
        transition: all 0.2s ease;
    }
    
    .gip-inline-input:focus {
        outline: none;
        border-color: #00875a;
        box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.1);
    }
    
    .gip-inline-submit {
        padding: 12px 24px;
        background: #00875a;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .gip-inline-submit:hover {
        background: #00a86b;
    }
    
    /* モバイル対応 */
    @media (max-width: 768px) {
        .gip-modal-steps-bar {
            padding: 12px 16px;
        }
        
        .gip-step-circle {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }
        
        .gip-step-label {
            font-size: 9px;
        }
        
        .gip-modal-trust-bar {
            flex-direction: column;
            gap: 8px;
            padding: 8px 12px;
        }
        
        .gip-input-inline {
            flex-direction: column;
        }
    }

    .gip-modal-close {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666666;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .gip-modal-close:hover {
        background: #e5e5e5;
        color: #111111;
    }
    
    /* モーダルボディ */
    .gip-modal-body {
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .gip-modal-body .gip-chat {
        border: none !important;
        box-shadow: none !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .gip-modal-body .gip-chat-messages {
        flex: 1;
        max-height: none;
        min-height: 300px;
        overflow-y: auto;
        padding: 20px;
        background: #ffffff;
    }
    
    .gip-modal-body .gip-chat-input-area {
        padding: 16px 20px;
        border-top: 1px solid #e5e5e5;
        background: #fafafa;
        display: block;
    }
    
    /* === メッセージスタイル（モーダル用） === */
    
    .gip-modal-body .gip-message {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
        animation: gipSlideIn 0.3s ease;
    }
    
    @keyframes gipSlideIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .gip-modal-body .gip-message-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        background: #0a2540;
        color: #ffffff;
    }
    
    .gip-modal-body .gip-message-user .gip-message-avatar {
        background: #00875a;
        order: 2;
    }
    
    .gip-modal-body .gip-message-user {
        flex-direction: row-reverse;
    }
    
    .gip-modal-body .gip-message-content {
        flex: 1;
        max-width: 80%;
    }
    
    .gip-modal-body .gip-message-bubble {
        padding: 14px 18px;
        background: #f8fafc;
        border-radius: 12px;
        font-size: 15px;
        line-height: 1.7;
        color: #1e293b;
        white-space: pre-wrap;
    }
    
    .gip-modal-body .gip-message-user .gip-message-bubble {
        background: #0a2540;
        color: #ffffff;
    }
    
    /* === タイピングインジケーター（横並び+モーション） === */
    
    .gip-modal-body .gip-message-typing {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        padding: 12px 0;
        align-items: center;
    }
    
    .gip-modal-body .gip-typing-dot {
        width: 10px;
        height: 10px;
        background: #00875a;
        border-radius: 50%;
        animation: gipBounceDot 1.4s infinite ease-in-out both;
    }
    
    .gip-modal-body .gip-typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .gip-modal-body .gip-typing-dot:nth-child(2) { animation-delay: -0.16s; }
    .gip-modal-body .gip-typing-dot:nth-child(3) { animation-delay: 0s; }
    
    @keyframes gipBounceDot {
        0%, 80%, 100% { 
            transform: scale(0.6);
            opacity: 0.5;
        }
        40% { 
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .gip-modal-body .gip-loading-text {
        font-size: 13px;
        color: #64748b;
        margin-top: 8px;
    }
    
    /* === 診断レポートボタン === */
    .gip-report-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: #00875a !important;
        color: #ffffff !important;
        padding: 14px 24px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
    }
    
    .gip-report-btn:hover {
        background: #00a86b !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 135, 90, 0.35);
    }
    
    .gip-report-btn svg {
        flex-shrink: 0;
    }
    
    /* 継続オプション調整 */
    .gip-continue-chat {
        margin-top: 20px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }
    
    .gip-continue-title {
        font-size: 15px;
        font-weight: 600;
        color: #0a2540;
        margin: 0 0 16px 0;
    }
    
    .gip-continue-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gip-continue-options .gip-option-btn {
        flex: 0 0 auto;
    }
    
    /* レポートセクション（チャット内） */
    .gip-report-section {
        margin-top: 20px;
        padding: 20px;
        background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
        border: 2px solid #10b981;
        border-radius: 12px;
    }
    
    .gip-report-section .gip-report-btn {
        margin-bottom: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .gip-continue-options-inline {
        margin-top: 12px;
    }
    
    .gip-continue-options-inline .gip-continue-title {
        font-size: 14px;
        font-weight: 600;
        color: #0a2540;
        margin: 0 0 10px 0;
    }
    
    .gip-continue-btns {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .gip-continue-btns .gip-option-btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* タブレット最適化 */
    @media (min-width: 769px) and (max-width: 1024px) {
        .gip-modal-container,
        #gip-chat-modal .gip-modal-container {
            width: 90% !important;
            max-width: 900px !important;
            min-width: 0 !important;
            height: 85vh !important;
        }
    }
    
    /* モバイル最適化 */
    @media (max-width: 768px) {
        .gip-modal-container,
        #gip-chat-modal .gip-modal-container {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100% !important;
            min-width: 0 !important;
            border-radius: 0;
        }
        
        .gip-modal-body .gip-chat-messages {
            max-height: none;
            min-height: auto;
            flex: 1;
        }
        
        .gip-cta-btn--large {
            width: 100%;
            padding: 16px 24px;
            font-size: 16px;
        }
    }
    /* === 完了ヒーローセクション（テック・アルゴリズム感） === */
    .gip-completion-hero {
        position: relative;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-radius: 12px;
        padding: 30px 20px;
        color: #ffffff;
        overflow: hidden;
        text-align: center;
        margin-bottom: 24px;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    }
    
    .gip-completion-anim-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
        z-index: 1;
    }
    
    .gip-completion-anim-bg::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
        animation: gipScanline 3s linear infinite;
    }
    
    @keyframes gipScanline {
        0% { transform: translateY(0); opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { transform: translateY(200px); opacity: 0; }
    }
    
    .gip-completion-content {
        position: relative;
        z-index: 2;
    }
    
    .gip-completion-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    
    .gip-completion-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .gip-completion-title {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 12px 0;
        letter-spacing: 0.05em;
        background: linear-gradient(to right, #ffffff, #e2e8f0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .gip-completion-message {
        font-size: 15px;
        line-height: 1.6;
        color: #94a3b8;
        margin: 0 0 24px 0;
    }
    
    .gip-completion-count {
        font-size: 28px;
        font-weight: 800;
        color: #10b981;
        margin-right: 4px;
    }
    
    .gip-completion-stats {
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 20px;
        display: inline-flex;
    }
    
    .gip-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .gip-stat-value {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
    }
    
    .gip-stat-label {
        font-size: 11px;
        color: #64748b;
        margin-top: 2px;
    }
    
    .gip-stat-divider {
        width: 1px;
        height: 24px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 16px;
    }
    
    /* === リッチ結果カード（Single Page風） === */
    .gip-result-points-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        background: #f8fafc;
        border-radius: 8px;
        padding: 12px;
        margin: 16px 0;
    }
    
    .gip-point-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 4px;
    }
    
    .gip-point-icon {
        color: #00875a;
        margin-bottom: 6px;
    }
    
    .gip-point-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .gip-point-label {
        font-size: 10px;
        color: #64748b;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .gip-point-value {
        font-size: 12px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
    }
    
    /* アコーディオン風・マッチング理由 */
    .gip-result-reason {
        background: #fff;
        border: 1px dashed #cbd5e1;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: 13px;
        color: #334155;
        line-height: 1.6;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    .gip-reason-icon {
        flex-shrink: 0;
    }
    
    /* フィードバックミニ */
    .gip-result-feedback-mini {
        display: flex;
        align-items: center;
        justify-content: flex-end; /* 右寄せ */
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        font-size: 12px;
    }
    
    .gip-feedback-label-mini {
        color: #94a3b8;
    }
    
    .gip-feedback-btn-mini {
        background: none;
        border: 1px solid #e2e8f0;
        border-radius: 100px;
        padding: 4px 10px;
        font-size: 11px;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .gip-feedback-btn-mini:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #334155;
    }
    
    /* モバイル対応 */
    @media (max-width: 480px) {
        .gip-result-points-grid {
            grid-template-columns: 1fr;
            gap: 16px;
            text-align: left;
        }
        .gip-point-item {
            flex-direction: row;
            align-items: center;
            text-align: left;
            padding: 0;
        }
        .gip-point-icon {
            margin-bottom: 0;
            margin-right: 12px;
        }
        .gip-point-value {
             margin-left: auto;
             font-size: 13px;
        }
        .gip-point-label {
            font-size: 12px;
            margin-bottom: 0;
        }
    }
