/* ==========================================================================
   Obsidian Dark & Cyber Medical Design System
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #f0f9ff;         /* 清潔感あふれる極めて淡いスカイブルー */
    --bg-card: rgba(255, 255, 255, 0.82); /* 明るいガラスボード背景（高透明白） */
    
    --primary: #0284c7;         /* メディカルスカイブルー（信頼・誠実） */
    --secondary: #0d9488;       /* クリーンティールミント（優しさ・調和） */
    --accent: #e11d48;          /* ソフトローズ（警告・ハイライト） */
    
    --primary-grad: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --accent-grad: linear-gradient(135deg, #e11d48 0%, #c084fc 100%);
    
    --text-primary: #0f172a;    /* 視認性の高いスレートブラック */
    --text-secondary: #334155;  /* 落ち着いたチャコールグレー */
    --text-muted: #64748b;      /* ミュートされたスチールグレー */
    
    /* Glassmorphism & Shadows */
    --glass-border: rgba(2, 132, 199, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.6);
    --neon-glow: 0 15px 35px rgba(2, 132, 199, 0.06), 0 0 15px rgba(2, 132, 199, 0.03);
    --rose-glow: 0 15px 30px rgba(225, 29, 72, 0.04);
    
    /* Layout */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Glow Orbs (Background Decoration)
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    -webkit-filter: blur(140px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
}

.orb-primary {
    width: 350px;
    height: 350px;
    background: var(--primary);
    top: -50px;
    right: -100px;
}

.orb-secondary {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 500px;
    left: -200px;
}

.orb-accent {
    width: 300px;
    height: 300px;
    background: #a855f7;
    bottom: 200px;
    right: -100px;
}

/* ==========================================================================
   Typography & Helpers
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* ==========================================================================
   Interactive Glass Panels & Buttons
   ========================================================================== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-grad);
    color: #030712; /* ダークカラーの文字で視認性最大化 */
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
    font-weight: 800;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shine 2.5s infinite ease-in-out;
}

/* ==========================================================================
   Header Style
   ========================================================================== */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo-text {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.7px;
}

.header-btn {
    padding: 10px 20px;
    background: var(--primary-grad);
    color: #030712;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    transition: all 0.2s;
}

.header-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Hero Section & Gorgeous Phone Mockup
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 60px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: var(--neon-glow);
}

.hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    padding: 0 8px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    padding: 0 16px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto 64px;
    position: relative;
    z-index: 10;
}

/* GORGEOUS MOBILE PHONE FRAME */
/* PC DESKTOP WINDOW MOCKUP */
.mockup-showcase {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 40px auto 0;
    z-index: 10;
}

.desktop-window {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08),
                0 0 20px rgba(2, 132, 199, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* PC UIスケール用設定 */
    width: 960px;
    max-width: none;
    margin: 0 auto;
    transform-origin: top left;
}

/* Chrome Browser Style UI */
.desktop-header, .browser-header-bar {
    background: #e2e8f0;
    padding: 10px 16px;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.chrome-tabs, .browser-tabs {
    display: flex;
    gap: 4px;
}

.chrome-tab, .browser-tab {
    background: #cbd5e1;
    border-radius: 6px 6px 0 0;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-bottom: none;
}

.chrome-tab.active, .browser-tab.active {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    border-bottom: 2px solid var(--primary);
}

.chrome-url-bar, .browser-url-bar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    font-size: 0.7rem;
    color: #475569;
}

.url-secure-icon {
    color: var(--secondary);
}

.url-text, .url-input {
    flex: 1;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 0.7rem;
    outline: none;
}

.chrome-ext-icons, .browser-ext-icons {
    display: flex;
    align-items: center;
}

.ext-icon {
    font-size: 0.85rem;
    cursor: pointer;
    filter: drop-shadow(0 0 4px var(--primary));
    animation: pulse 2s infinite ease-in-out;
}

/* Desktop Main Body */
.desktop-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    background: #f8fafc;
}

/* Left EHR Mini View */
.mini-ehr {
    background: #f8fafc;
    color: #1e293b;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 16px;
    font-family: system-ui, -apple-system, sans-serif;
    text-align: left;
}

.mini-ehr-header {
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-ehr-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
}

.mini-ehr-patient {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0369a1;
}

.mini-ehr-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-ehr-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
}

.mini-ehr-bubble {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #0f172a;
}

.mini-prescription-box {
    background: #fffbeb;
    border: 1px solid #fef08a;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #b45309;
}

.mini-prescription-box-old {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

/* Right Extension Mini View */
.mini-extension {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(2, 132, 199, 0.12);
    padding: 16px;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    text-align: left;
    box-shadow: -5px 0 25px rgba(2, 132, 199, 0.04);
}

.mini-ext-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.mini-ext-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-ext-logo {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px var(--primary));
}

.mini-ext-title {
    font-weight: 900;
    font-size: 0.85rem;
    color: #0f172a;
}

.mini-ext-secure-badge {
    background: #e6f4ea;
    border: 1px solid #a3e2c9;
    color: #137333;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mini-ext-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-ext-result-header .mini-badge {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #cbd5e1;
    border-color: rgba(16, 185, 129, 0.25);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
}

.mini-ext-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-ext-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.mini-script-bubble {
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #334155;
}

.mini-soap-bubble {
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.15);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #0f5132;
}

/* Chrome Browser PC Window Frame for Simulator */
.chrome-browser-frame {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08),
                0 0 20px rgba(2, 132, 199, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    /* PC UIスケール用設定 */
    width: 960px;
    max-width: none;
    margin: 0 auto;
    transform-origin: top left;
}

.chrome-browser-frame .app-simulation-container {
    margin-top: 0;
    background: #f8fafc;
    border-radius: 0;
    gap: 0;
}

.chrome-browser-frame .ehr-mock {
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.chrome-browser-frame .extension-mock {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.75);
}

.phone-screen {
    background: #030712;
    border-radius: 36px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-header {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    color: var(--text-primary);
    font-size: 0.75rem;
    z-index: 10;
}

.phone-notch {
    width: 110px;
    height: 28px;
    background: #000000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.phone-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.22) 0%, rgba(3, 7, 18, 0) 70%);
}

/* Elegant glass UI element inside mockup */
.demo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    width: 100%;
    padding: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    animation: floating 6s infinite ease-in-out;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

.demo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-badge {
    font-size: 0.75rem;
    font-weight: 900;
    background: var(--primary-grad);
    color: #030712;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: var(--neon-glow);
}

.status-indicator {
    font-size: 0.65rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--secondary);
}

.patient-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.patient-name {
    font-size: 0.9rem;
    font-weight: 800;
}

.patient-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.analysis-bubble {
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid var(--primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-left-width: 4px;
}

.bubble-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.bubble-text {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.grounding-citation {
    font-size: 0.65rem;
    color: var(--secondary);
    margin-top: 10px;
    font-weight: 700;
}

/* ==========================================================================
   Pain Points Section
   ========================================================================== */
.pain-points-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.pain-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.12);
    padding: 40px 28px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.pain-card:active {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.pain-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.pain-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Features Section (Glow Cards)
   ========================================================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.feature-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
    width: 100%;
}

.feature-num {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.feature-text h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list li {
    font-size: 0.95rem;
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-list li::before {
    content: '✦';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
    text-shadow: var(--neon-glow);
}

.feature-visual {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Premium Visual Elements */
.feature-visual .glass-panel {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--neon-glow);
}

/* Interactive Text Visual */
.text-preview {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    gap: 12px;
    color: #a7f3d0;
}

.text-preview .line {
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}

.text-preview .line.active {
    background: rgba(6, 182, 212, 0.12);
    border-left: 3px solid var(--primary);
    color: #e0f2fe;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.1); }
    50% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }
}

.toast-success {
    background: rgba(244, 63, 94, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font-main);
    font-weight: 600;
    box-shadow: var(--rose-glow);
}

/* Database Search Visual */
.search-preview {
    gap: 16px;
}

.search-bar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.db-item {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Weather & Climate Visual */
.weather-preview {
    gap: 16px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.weather-advice {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 4px solid #fbbf24;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #fde047;
}

/* ==========================================================================
   Cyber Demo Simulator
   ========================================================================== */
.demo-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.demo-interactive-card {
    background: #090d16;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), var(--neon-glow);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.demo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-step-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 20px 8px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-step-btn.active {
    color: var(--primary);
    background: rgba(6, 182, 212, 0.06);
    border-bottom: 3px solid var(--primary);
    text-shadow: var(--neon-glow);
}

.demo-step-btn:disabled {
    cursor: not-allowed;
    opacity: 0.25;
}

.demo-viewport {
    padding: 32px 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, rgba(0,0,0,0) 80%);
}

.demo-step-content {
    display: none;
}

.demo-step-content.active {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-simulation-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-simulation-box label {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.input-simulation-box textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px;
    border-radius: var(--radius-sm);
    resize: none;
    height: 110px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
}

.input-simulation-box textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Spinner Loader Box */
.processing-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(6, 182, 212, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: var(--neon-glow);
}

.processing-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.processing-status-list {
    list-style: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 380px;
}

.processing-status-list li {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s;
}

.processing-status-list li.done {
    color: var(--secondary);
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
    font-weight: 700;
}

/* Output Box Simulation */
.output-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.output-header {
    display: flex;
    justify-content: space-between;
}

.badge {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.output-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 260px;
    overflow-y: auto;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.suggestion-item h4 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.suggestion-item p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

/* ==========================================================================
   Cyber ROI Calculator
   ========================================================================== */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.calc-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05), var(--neon-glow);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.3rem;
    text-shadow: var(--neon-glow);
}

/* High-tech Sliders */
input[type="range"] {
    background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    background: var(--primary-grad);
    box-shadow: 0 0 15px var(--primary);
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.result-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.result-box.highlighted {
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.25);
    box-shadow: inset 0 0 15px rgba(2, 132, 199, 0.03);
}

.result-box.highlighted-green {
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.25);
    box-shadow: inset 0 0 15px rgba(13, 148, 136, 0.03);
}

.result-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.result-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.result-box.highlighted .result-value {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
}

.result-box.highlighted-green .result-value {
    color: #0d9488 !important;
    text-shadow: 0 0 10px rgba(13, 148, 136, 0.1);
}

.result-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.calc-notice {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Cyber CTA Booking Form
   ========================================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.cta-card {
    background: radial-gradient(circle at 0% 0%, rgba(2, 132, 199, 0.05) 0%, rgba(255, 255, 255, 0) 60%),
                #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05), var(--neon-glow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-form input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s;
}

.cta-form input::placeholder {
    color: #94a3b8;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    background: #ffffff;
}

.line-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #06c755;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    margin-top: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    background: #f1f5f9;
    padding: 60px 0 110px;
    border-top: 1px solid #cbd5e1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
}

.footer-brand {
    margin-bottom: 32px;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
    text-shadow: var(--neon-glow);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================================================
   Floating CTA (Mobile Specific Overlay)
   ========================================================================== */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 16px 24px;
    z-index: 99;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cta.show {
    transform: translateY(0);
}

.floating-cta .btn {
    box-shadow: var(--neon-glow);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* PC UIを完全固定（縦積みを廃止し、常に2カラムドッキングレイアウトを維持） */
.desktop-body {
    grid-template-columns: 1.1fr 1fr;
}

.mini-ehr {
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
}

.chrome-url-bar, .browser-url-bar {
    display: flex !important;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 3.3rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: row;
        max-width: 520px;
    }
    
    .btn {
        width: auto;
    }
    
    .mockup-showcase {
        max-width: 960px; /* PCサイズに拡張 */
    }
    
    .feature-block {
        flex-direction: row;
        gap: 80px;
    }
    
    .feature-block.reverse {
        flex-direction: row-reverse;
    }
    
    .feature-text h3 {
        font-size: 2rem;
    }
    
    .calc-results {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: row;
    }
    
    .cta-card {
        padding: 60px 48px;
    }
    
    .floating-cta {
        display: none;
    }
}

/* PCUIを固定化したため、992px以上でのデスクトップボディ用メディアクエリは不要 */

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   EHR & Chrome Extension App Simulator (Premium Custom Styles)
   ========================================================================== */
.app-simulation-container {
    display: grid;
    grid-template-columns: 1.12fr 1fr; /* 常にPCレイアウト */
    gap: 0; /* PC版シミュレーターと同じく隙間なしドッキング */
    align-items: stretch;
    margin-top: 0;
    z-index: 10;
    position: relative;
}

/* 1. Mock Electronic Health Record (EHR) Styles */
.ehr-mock {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ehr-header {
    background: #e2e8f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #cbd5e1;
}

.ehr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ehr-dot:nth-child(1) { background: #ef4444; }
.ehr-dot:nth-child(2) { background: #eab308; }
.ehr-dot:nth-child(3) { background: #22c55e; }

.ehr-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-left: 8px;
}

.ehr-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    background: #f8fafc;
}

.patient-summary {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0369a1;
}

.ehr-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ehr-section label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
}

.ehr-section textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 12px;
    border-radius: 6px;
    resize: none;
    height: 100px;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: inherit;
}

.ehr-section textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.1);
}

.ehr-prescription-box {
    background: #fffbeb;
    border: 1px solid #fef08a;
    padding: 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b45309;
    display: flex;
    align-items: center;
}

.ehr-footer {
    padding: 10px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
}

/* 2. Mock AI Chrome Extension Panel Styles */
.extension-mock {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04), var(--neon-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.extension-header {
    background: rgba(2, 132, 199, 0.02);
    border-bottom: 1px solid rgba(2, 132, 199, 0.08);
    padding: 16px;
}

.ext-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.ext-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ext-logo {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px var(--primary));
}

.ext-title {
    font-weight: 900;
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.ext-tag {
    font-size: 0.6rem;
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
}

/* Security Protection Badge */
.ext-secure-badge {
    display: inline-flex;
    align-items: center;
    background: #e6f4ea;
    border: 1px solid #a3e2c9;
    color: #137333;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.ext-tabs {
    display: flex;
    gap: 4px;
    background: rgba(2, 132, 199, 0.04);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(2, 132, 199, 0.08);
}

.ext-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #475569;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ext-tab-btn.active {
    background: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ext-tab-btn:active {
    transform: scale(0.98);
}

.extension-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ext-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
}

.ext-tab-content.active {
    display: flex;
}

/* Tab 1: Analysis Screen */
.initial-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 10px;
    gap: 20px;
    flex: 1;
}

.ext-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

/* Steps Checklist */
.extract-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.loading-state {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.loading-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

/* CSS-based Loading Checklist State Machine */
.loading-checklist li {
    font-size: 0.75rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.loading-checklist li::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Pending State */
.loading-checklist li.status-pending {
    color: var(--text-muted);
}
.loading-checklist li.status-pending::before {
    content: '⏳';
}

/* Active (Executing) State */
.loading-checklist li.status-active {
    color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
    font-weight: 700;
}
.loading-checklist li.status-active::before {
    content: '🔄';
    animation: checklist-spin 1.2s infinite linear;
}

/* Done State */
.loading-checklist li.status-done {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}
.loading-checklist li.status-done::before {
    content: '✅';
}

@keyframes checklist-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* EHR Patient Personal Info Secure Styling */
.ehr-secure-target {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.ehr-secure-target.scanning {
    background: rgba(244, 63, 94, 0.18); /* ローズレッド（警告） */
    color: #f43f5e !important;
    border: 1px solid rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
    animation: ehr-scan-pulse 0.8s infinite ease-in-out;
}

.ehr-secure-target.masked {
    background: #e6f4ea; /* 優しい薄緑 */
    color: #137333 !important; /* 深いグリーン（安全） */
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

@keyframes ehr-scan-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* EHR text area content transition logic styling */
#ehr-chart-text {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#ehr-chart-text.masked-content {
    background: #f4fbf7 !important; /* 爽やかなライトミント保護色 */
    color: #0f5132 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    font-family: 'Courier New', Courier, monospace;
}

/* Demasking (Restore Personal Info) Visual Effect */
.demask-target {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.demask-target.demasked {
    background: rgba(16, 185, 129, 0.15); /* 復元成功のネオングリーン背景 */
    color: #34d399 !important; /* 明るいエメラルド */
    border-bottom: 1px solid transparent;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: demask-flash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes demask-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        transform: scale(1.08);
    }
    30% {
        box-shadow: 0 0 15px 4px rgba(16, 185, 129, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

/* Extraction Results */
.extract-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ext-result-header {
    display: flex;
    justify-content: space-between;
}

.result-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.result-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-section h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.script-bubble {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-primary);
    position: relative;
}

.soap-bubble {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Tab 2: AI Chat View Styles */
.chat-area {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    word-break: break-all;
    animation: bubbleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.model-message {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--primary-grad);
    color: #030712;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}

/* Chat Google Search indicator */
.chat-search-indicator {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #d97706;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: searchPulse 1.5s infinite ease-in-out;
}

@keyframes searchPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.chat-preset-questions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.preset-btn {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-color: rgba(6, 182, 212, 0.3);
}

.preset-btn:active {
    transform: scale(0.96);
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.chat-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-row button {
    background: var(--primary-grad);
    border: none;
    color: #030712;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
}

.chat-input-row button:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Custom Scrollbar for results and chat */
.result-scroll-area::-webkit-scrollbar,
.chat-area::-webkit-scrollbar {
    width: 4px;
}
.result-scroll-area::-webkit-scrollbar-track,
.chat-area::-webkit-scrollbar-track {
    background: transparent;
}
.result-scroll-area::-webkit-scrollbar-thumb,
.chat-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.result-scroll-area::-webkit-scrollbar-thumb:hover,
.chat-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   5 Tabs Layout & Placeholder Styles
   ========================================================================== */

.ext-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ext-tabs::-webkit-scrollbar { display: none; }

.ext-tab-btn {
    flex: none;
    padding: 10px 12px;
    font-size: 0.65rem;
}

.ext-tab-content {
    display: none;
}
.ext-tab-content.active {
    display: block;
}

.placeholder-text-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ph-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 12px;
    filter: grayscale(100%);
}

.ph-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ph-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dummy-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    min-height: 100px;
    margin-bottom: 12px;
    resize: none;
}

.disabled-style {
    opacity: 0.5;
    cursor: not-allowed !important;
}
.w-full {
    width: 100%;
    justify-content: center;
}

.dummy-calc-ui {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(2, 132, 199, 0.08);
}

.dummy-calc-display {
    background: #ffffff;
    color: var(--primary);
    font-family: monospace;
    font-size: 1.5rem;
    text-align: right;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.dummy-calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dummy-calc-grid span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.dummy-calc-grid .span-2 {
    grid-column: span 2;
}

.dummy-calc-grid .span-4 {
    grid-column: span 4;
}

.dummy-calc-grid .bg-primary {
    background: var(--primary-grad);
    color: #ffffff !important;
}

/* Pricing Preview Section */
.pricing-preview-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(2, 132, 199, 0.05);
    border-bottom: 1px solid rgba(2, 132, 199, 0.05);
    position: relative;
    z-index: 10;
}
.pricing-preview-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}
.pricing-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    margin-top: 24px;
}
.pricing-preview-item {
    background: rgba(255, 255, 255, 0.55);
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.pricing-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.05);
}
.pricing-preview-item.recommended {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}
.pricing-preview-item.recommended::before {
    content: '★ おすすめ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.2);
}
.pricing-preview-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.pricing-preview-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin: 12px 0 0 0;
}
.pricing-preview-price span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .pricing-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 360px;
        margin: 16px auto 28px;
    }
}
