/* ===================================
   RAGシステム専用スタイルシート
   ================================== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ナビゲーション
   ================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #334155;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===================================
   ヒーローセクション
   ================================== */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
    padding: 100px 0 50px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: pulseNetwork 6s ease-in-out infinite;
}

@keyframes pulseNetwork {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
    text-align: center;
}

.hero-logo {
    margin-bottom: 1.5rem;
    text-align: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.studio-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(37, 99, 235, 0.6));
    transition: all 0.3s ease;
}

.studio-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 20px 50px rgba(37, 99, 235, 0.8));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--secondary-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===================================
   システム概要セクション
   ================================== */

.overview {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card.problem {
    border-left: 5px solid var(--danger-color);
}

.overview-card.solution {
    border-left: 5px solid var(--success-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.problem .card-icon {
    background: var(--danger-color);
}

.solution .card-icon {
    background: var(--success-color);
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overview-card ul {
    list-style: none;
}

.overview-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.overview-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 人間記憶モデル統合 */
.memory-integration {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--secondary-color);
}

.memory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.brain-model {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    animation: networkPulse 3s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.memory-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    animation: nodeFloat 4s ease-in-out infinite;
}

.node:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node:nth-child(2) {
    bottom: 20%;
    left: 10%;
    animation-delay: 1.3s;
}

.node:nth-child(3) {
    bottom: 20%;
    right: 10%;
    animation-delay: 2.6s;
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.memory-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.memory-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.memory-link:hover {
    border-bottom-color: var(--secondary-color);
}

.integration-features {
    margin-top: 2rem;
}

.integration-features .feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 10px;
}

.integration-features .feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===================================
   主要機能セクション
   ================================== */

.features {
    padding: 100px 0;
    background: var(--dark-bg);
    color: white;
}

.features .section-title {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(37, 99, 235, 0.08));
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(-2px);
}

.feature-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card.featured:hover::before {
    left: 100%;
}

.feature-card.special {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 165, 233, 0.08));
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(-2px);
}

.feature-card.special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card.special:hover::before {
    left: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.feature-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

.benefit i {
    color: var(--success-color);
}

/* デモ例 */
.feature-demo {
    margin-top: 1.5rem;
}

.demo-example {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.chat-example {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chat-example:last-child {
    margin-bottom: 0;
}

.user {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    align-self: flex-end;
    max-width: 80%;
}

.system {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    align-self: flex-start;
    max-width: 80%;
    font-size: 0.9rem;
}

/* セキュリティアドバンテージ */
.security-advantages {
    margin-top: 1.5rem;
}

.advantage-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.advantage-item.secure {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.advantage-item.cost {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.advantage-item.compliance {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.advantage-item.performance {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.advantage-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.advantage-item.secure i {
    color: var(--success-color);
}

.advantage-item.cost i {
    color: #f59e0b;
}

.advantage-item.compliance i {
    color: #6366f1;
}

.advantage-item.performance i {
    color: #ef4444;
}

.advantage-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.advantage-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.badge.security {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    animation: securityPulse 2s ease-in-out infinite;
}

@keyframes securityPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* コスト比較 */
.cost-comparison {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-comparison h4 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.cost-chart {
    margin-bottom: 1rem;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cost-item .label {
    min-width: 120px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cost-bar {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: width 1s ease;
}

.bar-fill.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cost-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
    font-style: italic;
}

/* 統合タイムライン */
.integration-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: translateY(-50%);
}

.week {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.task {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* パフォーマンス指標 */
.performance-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.metric {
    text-align: center;
    flex: 1;
}

.value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.metric .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 応答比較 */
.response-comparison {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-example {
    padding: 1rem;
    border-radius: 10px;
    position: relative;
}

.response-example.traditional {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.response-example.human {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.response-example .label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mechanical {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.natural {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

/* ===================================
   デモセクション
   ================================== */

.demo {
    padding: 100px 0;
    background: var(--light-bg);
}

.demo .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-interface {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.chat-window {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header i {
    margin-right: 0.5rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chat-messages {
    flex: 1;
    max-height:500;
    padding: 1.0rem;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 1rem;
}

.message.user .avatar {
    background: var(--text-secondary);
}

.content {
    max-width: 70%;
    padding: 0.1rem 1.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    white-space: normal;
}

.message.user .content {
    background: var(--primary-color);
    color: white;
}

.chat-input {
    display: flex;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    margin-left: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-input button:hover {
    transform: scale(1.05);
}

.demo-controls {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.demo-controls h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.sample-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.question-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.question-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.question-btn i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.question-btn:hover i {
    color: white;
}

.demo-explanation h4 {
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

.demo-explanation ul {
    list-style: none;
}

.demo-explanation li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.demo-explanation li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ===================================
   ROIセクション
   ================================== */

.roi {
    padding: 100px 0;
    background: white;
}

.roi .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.roi-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.roi-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.roi-card:hover {
    transform: translateY(-5px);
}

.roi-card.medium {
    border-top: 5px solid var(--primary-color);
}

.roi-card.large {
    border-top: 5px solid var(--secondary-color);
}

.company-size {
    text-align: center;
    margin-bottom: 2rem;
}

.company-size i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company-size h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roi-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cost-section, .benefit-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.cost-section h4, .benefit-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cost-breakdown, .benefit-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-item, .benefit-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-total, .benefit-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
}

.roi-result {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
}

.roi-percentage {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roi-profit {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===================================
   業界対応セクション
   ================================== */

.industries {
    padding: 100px 0;
    background: var(--light-bg);
}

.industries .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.industry-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.industry-card ul {
    list-style: none;
    text-align: left;
}

.industry-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.industry-card li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===================================
   お問い合わせセクション
   ================================== */

.contact {
    padding: 100px 0;
    background: var(--dark-bg);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.consultation-features {
    margin-bottom: 3rem;
}

.consultation-features .feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.consultation-features .feature i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.consultation-features .feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.consultation-features .feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.related-links {
    margin-top: 2rem;
}

.related-links h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.related-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.2);
    border-color: var(--secondary-color);
}

.related-link.featured {
    border-left: 4px solid var(--secondary-color);
    background: rgba(66, 153, 225, 0.1);
}

.related-link i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    min-width: 30px;
}

.link-content {
    flex: 1;
}

.link-content strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.link-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.rag-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: var(--dark-bg);
    color: white;
}

.rag-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* ===================================
   フッター
   ================================== */

.footer {
    background: var(--darker-bg);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-links-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-nav a:hover {
    color: var(--secondary-color);
}

.footer-tech h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-tech ul {
    list-style: none;
}

.footer-tech li {
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   レスポンシブデザイン
   ================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memory-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .roi-comparison {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-nav {
        justify-content: center;
    }

    .advantage-row {
        grid-template-columns: 1fr;
    }

    .studio-logo {
        max-width: 200px;
    }
}

/* ===================================
   セキュリティセクション
   ================================== */

.security {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.security .container {
    position: relative;
    z-index: 2;
}

.security-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 80px;
}

.security-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.security-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: white;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    order: -1;
}

.security-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.security-key-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.key-point i {
    color: #22c55e;
    font-size: 1.2rem;
    width: 24px;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-shield {
    position: relative;
    width: 200px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-icon {
    font-size: 6rem;
    color: #22c55e;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    animation: shieldPulse 3s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.security-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ray {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.6), transparent);
    animation: rayRotate 4s linear infinite;
}

.ray-1 {
    width: 2px;
    height: 100px;
    top: -20px;
    left: 50%;
    transform-origin: center bottom;
    animation-delay: 0s;
}

.ray-2 {
    width: 2px;
    height: 80px;
    top: 10px;
    right: -20px;
    transform-origin: center left;
    animation-delay: 1s;
}

.ray-3 {
    width: 2px;
    height: 100px;
    bottom: -20px;
    left: 50%;
    transform-origin: center top;
    animation-delay: 2s;
}

.ray-4 {
    width: 2px;
    height: 80px;
    top: 10px;
    left: -20px;
    transform-origin: center right;
    animation-delay: 3s;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 50px rgba(34, 197, 94, 0.8);
    }
}

@keyframes rayRotate {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.5);
    }
    25% {
        opacity: 1;
        transform: rotate(90deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1);
    }
    75% {
        opacity: 1;
        transform: rotate(270deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(360deg) scale(0.5);
    }
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 60px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advantage-card.secure {
    border-left: 4px solid #22c55e;
}

.advantage-card.cost {
    border-left: 4px solid #f59e0b;
}

.advantage-card.compliance {
    border-left: 4px solid #3b82f6;
}

.advantage-card.performance {
    border-left: 4px solid #ef4444;
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.advantage-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.advantage-card.secure .advantage-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.advantage-card.cost .advantage-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
}

.advantage-card.compliance .advantage-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.advantage-card.performance .advantage-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.advantage-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.advantage-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advantage-features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1rem;
}

.cost-comparison-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}

.cost-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: white;
}

.cost-comparison-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.comparison-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-item.traditional {
    border-left: 4px solid #ef4444;
}

.comparison-item.local {
    border-left: 4px solid #22c55e;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-header h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.cost-value {
    font-size: 2rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.cost-value.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.cost-value.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.cost-breakdown {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-name {
    color: #94a3b8;
}

.item-cost {
    font-weight: 600;
    color: white;
}

.item-cost.success {
    color: #22c55e;
    font-weight: 700;
}

.annual-cost {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.annual-cost.success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.savings-highlight {
    display: flex;
    justify-content: center;
}

.savings-card {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.3);
    max-width: 500px;
}

.savings-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.savings-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.savings-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* セキュリティセクション レスポンシブ */
@media (max-width: 768px) {
    .security-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .security-title h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .studio-logo {
        max-width: 240px;
    }

    .nav-logo-img {
        width: 60px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cost-comparison-chart {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .security-shield {
        width: 150px;
        height: 180px;
    }

    .shield-icon {
        font-size: 4rem;
    }

    .cost-comparison-section {
        padding: 2rem;
    }

    .savings-card {
        padding: 1.5rem 2rem;
    }

    .savings-amount {
        font-size: 2rem;
    }
}

/* ===================================
   管理者パネルスタイル
   ================================== */

.admin-panel {
    background: #f8f9fa;
    padding: 60px 0;
    border-top: 2px solid #e9ecef;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h2 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.documents-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c5aa0;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    color: #333 !important;
    background-color: #fff !important;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.admin-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.docs-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.docs-list {
    max-height: 400px;
    overflow-y: auto;
}

.doc-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.doc-item h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.doc-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 12px;
}

.doc-category {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.doc-chunks {
    background: #6c757d;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.doc-date {
    color: #6c757d;
    font-style: italic;
}

.doc-keywords {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.demo-examples {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.example-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.example-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.example-card h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.example-card p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.load-example {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.load-example:hover {
    background: #138496;
}

.admin-access {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.admin-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    margin-bottom: 10px;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.admin-note {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* プライバシー設定スタイル */
.privacy-settings {
    margin-top: 20px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #b3d9ff;
}

.privacy-settings h4 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #2c5aa0;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 1px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2c5aa0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.setting-note {
    font-size: 12px;
    color: #6c757d;
    margin: 5px 0 0 30px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    /* 管理者パネルのスマホ対応 */
    .admin-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        overflow-y: auto;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .admin-panel .container {
        max-width: 100%;
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        margin: 0;
    }
    
    .admin-header h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-form .form-group input,
    .admin-form .form-group textarea,
    .admin-form .form-group select {
        font-size: 16px; /* iOS拡大防止 */
    }
    
    .admin-form .form-group textarea {
        min-height: 120px;
    }
    
    .example-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .example-card {
        padding: 15px;
    }
    
    .load-example {
        width: 100%;
        padding: 10px;
    }
    
    .privacy-settings {
        padding: 15px;
    }
    
    .privacy-warning {
        padding: 15px;
        margin: 15px 0;
    }
    
    .warning-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .setting-note {
        font-size: 12px;
        margin-left: 25px;
    }
    
    /* ボタンのタッチ対応 */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .load-example {
        min-height: 44px;
        font-size: 14px;
    }
    
    /* フォームの使いやすさ向上 */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* プライバシーポリシーのスタイル */
.privacy-policy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.privacy-policy .container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.policy-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.policy-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.policy-header p {
    color: #666;
    font-size: 1.1rem;
}

.policy-content {
    line-height: 1.8;
    color: #333;
}

.policy-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.policy-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.policy-section ul {
    margin: 0;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
}

.protection-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.measure-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.measure-item i {
    color: #3498db;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.measure-item h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.measure-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.disclaimer {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.disclaimer ul {
    margin: 0;
}

.contact-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #3498db;
    width: 20px;
}

/* プライバシー警告のスタイル */
.privacy-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    margin-bottom: 15px;
}

.warning-header i {
    font-size: 1.2rem;
}

.warning-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.warning-content li {
    margin-bottom: 8px;
    color: #856404;
}

.agreement-text {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ffc107;
}

.privacy-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    cursor: pointer;
}

.privacy-agreement input[type="checkbox"] {
    margin: 0;
}

/* フッターのプライバシーリンク */
#footer-privacy-link {
    color: #3498db !important;
    font-weight: 500;
}

#footer-privacy-link:hover {
    color: #2980b9 !important;
}

/* プライバシーポリシーのレスポンシブ対応 */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 10px;
    }
    
    .privacy-policy .container {
        padding: 20px;
    }
    
    .policy-header h2 {
        font-size: 1.5rem;
    }
    
    .protection-measures {
        grid-template-columns: 1fr;
    }
    
    .measure-item {
        flex-direction: column;
        text-align: center;
    }
} 