/* ==========================================================================
   Chatbot Page Styles
   AIチャットボット導入ページ
   ========================================================================== */

/* Hide WordPress default page title */
.page:has(.chatbot-page) .entry-header {
    display: none;
}

.chatbot-page {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.1);
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* ==================== Hero Section ==================== */
.chatbot-page .chatbot-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.chatbot-page .chatbot-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.chatbot-page .chatbot-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.chatbot-page .hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.chatbot-page .chatbot-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.chatbot-page .chatbot-hero-title .highlight {
    color: var(--primary);
}

/* Problem List */
.chatbot-page .problem-list {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.chatbot-page .problem-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.chatbot-page .problem-list li:last-child {
    border-bottom: none;
}

.chatbot-page .problem-list li svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Hero Buttons */
.chatbot-page .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.chatbot-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chatbot-page .btn svg {
    width: 18px;
    height: 18px;
}

.chatbot-page .btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.chatbot-page .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.chatbot-page .btn-secondary {
    background: var(--bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.chatbot-page .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Visual Card */
.chatbot-page .hero-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.chatbot-page .hero-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.chatbot-page .hero-card-icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.chatbot-page .hero-card-icon svg {
    width: 24px;
    height: 24px;
}

.chatbot-page .hero-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.chatbot-page .hero-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Daily Timeline */
.chatbot-page .daily-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-page .timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
}

.chatbot-page .timeline-time {
    flex-shrink: 0;
    width: 50px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.chatbot-page .timeline-text {
    color: var(--text-secondary);
}

.chatbot-page .timeline-item.highlight-item {
    background: var(--primary-light);
    border: 1px dashed var(--primary);
}

.chatbot-page .timeline-item.highlight-item .timeline-text {
    color: var(--primary);
    font-weight: 500;
}

/* ==================== Problem Deep Section ==================== */
.chatbot-page .problem-deep {
    padding: 100px 0;
    background: var(--bg);
}

.chatbot-page .problem-deep-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chatbot-page .section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.chatbot-page .problem-headline {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Cost List */
.chatbot-page .cost-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-page .cost-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.chatbot-page .cost-item:hover {
    transform: translateX(8px);
}

.chatbot-page .cost-item.negative {
    background: #fef2f2;
    border-color: #fecaca;
}

.chatbot-page .cost-item.negative .cost-icon {
    background: #fee2e2;
    color: #dc2626;
}

.chatbot-page .cost-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.chatbot-page .cost-icon svg {
    width: 24px;
    height: 24px;
}

.chatbot-page .cost-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatbot-page .cost-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chatbot-page .cost-text span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Conclusion Card */
.chatbot-page .problem-deep-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-page .conclusion-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 24px;
    padding: 60px 48px;
    text-align: center;
}

.chatbot-page .conclusion-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #dc2626;
}

.chatbot-page .conclusion-icon svg {
    width: 40px;
    height: 40px;
}

.chatbot-page .conclusion-text {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-primary);
}

.chatbot-page .conclusion-text strong {
    color: #dc2626;
    font-size: 32px;
    display: block;
    margin-top: 8px;
}

/* ==================== Solution Section ==================== */
.chatbot-page .solution {
    padding: 100px 0;
    background: #EBF4FF;
}

.chatbot-page .solution-header {
    text-align: center;
    margin-bottom: 64px;
}

.chatbot-page .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--text-primary);
}

.chatbot-page .solution-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Solution Benefits */
.chatbot-page .solution-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.chatbot-page .benefit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.chatbot-page .benefit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.chatbot-page .benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.chatbot-page .benefit-icon svg {
    width: 32px;
    height: 32px;
}

.chatbot-page .benefit-number {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.chatbot-page .benefit-number span {
    font-size: 24px;
    font-weight: 600;
}

.chatbot-page .benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.chatbot-page .benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== Comparison Section ==================== */
.chatbot-page .comparison {
    padding: 100px 0;
    background: var(--bg);
}

.chatbot-page .comparison-header {
    text-align: center;
    margin-bottom: 64px;
}

.chatbot-page .comparison-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Comparison Table */
.chatbot-page .comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 64px;
}

.chatbot-page .comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chatbot-page .comparison-table th,
.chatbot-page .comparison-table td {
    padding: 20px 24px;
    text-align: left;
}

.chatbot-page .comparison-table thead th {
    background: var(--bg-secondary);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.chatbot-page .comparison-table thead th svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.chatbot-page .comparison-table thead th.type-scenario {
    color: var(--text-secondary);
}

.chatbot-page .comparison-table thead th.type-ai {
    color: var(--primary);
    background: var(--primary-light);
}

.chatbot-page .comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.chatbot-page .comparison-table tbody tr:last-child {
    border-bottom: none;
}

.chatbot-page .comparison-table .feature-name {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.chatbot-page .comparison-table td.type-scenario {
    color: var(--text-secondary);
}

.chatbot-page .comparison-table td.type-ai {
    color: var(--primary);
    font-weight: 500;
    background: rgba(239, 246, 255, 0.5);
}

/* Comparison Example */
.chatbot-page .comparison-example {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 48px;
}

.chatbot-page .example-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    justify-content: center;
}

.chatbot-page .example-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.chatbot-page .example-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chatbot-page .example-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
}

.chatbot-page .example-card.ai {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.chatbot-page .example-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 100px;
}

.chatbot-page .example-card.scenario .example-label {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.chatbot-page .example-card.ai .example-label {
    background: var(--accent);
    color: var(--text-white);
}

.chatbot-page .example-label svg {
    width: 14px;
    height: 14px;
}

/* Chat Demo */
.chatbot-page .chat-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.chatbot-page .chat-demo:last-child {
    margin-bottom: 0;
}

.chatbot-page .chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
}

.chatbot-page .chat-bubble.user {
    background: var(--primary);
    color: var(--text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-page .chat-bubble.bot {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-page .chat-bubble.bot.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ==================== Strength Section ==================== */
.chatbot-page .strength {
    padding: 100px 0;
    background: #EBF4FF;
}

.chatbot-page .strength-header {
    text-align: center;
    margin-bottom: 64px;
}

/* Strength Formula */
.chatbot-page .strength-formula {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.chatbot-page .formula-item {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.chatbot-page .formula-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.chatbot-page .formula-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.chatbot-page .formula-icon svg {
    width: 32px;
    height: 32px;
}

.chatbot-page .formula-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.chatbot-page .formula-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.chatbot-page .formula-operator {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
}

/* Achievement */
.chatbot-page .strength-achievement {
    max-width: 700px;
    margin: 0 auto;
}

.chatbot-page .achievement-content {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 32px;
}

.chatbot-page .achievement-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.chatbot-page .achievement-icon svg {
    width: 32px;
    height: 32px;
}

.chatbot-page .achievement-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.chatbot-page .achievement-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CTA Section ==================== */
.chatbot-page .cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chatbot-page .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.chatbot-page .cta-section .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-page .cta-section .section-title {
    color: var(--text-white);
    font-size: 36px;
}

.chatbot-page .cta-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.8;
}

.chatbot-page .btn-white {
    background: var(--bg);
    color: var(--primary);
}

.chatbot-page .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .chatbot-page .chatbot-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .chatbot-page .problem-deep-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .chatbot-page .problem-deep-visual {
        order: -1;
    }

    .chatbot-page .conclusion-card {
        padding: 40px 32px;
    }

    .chatbot-page .solution-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .chatbot-page .example-cards {
        grid-template-columns: 1fr;
    }

    .chatbot-page .strength-formula {
        flex-direction: column;
        align-items: center;
    }

    .chatbot-page .formula-operator {
        transform: rotate(90deg);
        margin: -8px 0;
    }

    .chatbot-page .formula-item {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .chatbot-page .chatbot-hero {
        padding: 60px 0;
    }

    .chatbot-page .chatbot-hero-title {
        font-size: 26px;
    }

    .chatbot-page .hero-buttons {
        flex-direction: column;
    }

    .chatbot-page .btn {
        justify-content: center;
    }

    .chatbot-page .problem-deep,
    .chatbot-page .solution,
    .chatbot-page .comparison,
    .chatbot-page .strength {
        padding: 60px 0;
    }

    .chatbot-page .problem-headline {
        font-size: 24px;
    }

    .chatbot-page .section-title {
        font-size: 26px;
    }

    .chatbot-page .conclusion-text {
        font-size: 20px;
    }

    .chatbot-page .conclusion-text strong {
        font-size: 24px;
    }

    .chatbot-page .solution-benefits {
        grid-template-columns: 1fr;
    }

    .chatbot-page .benefit-card {
        padding: 32px 24px;
    }

    .chatbot-page .comparison-example {
        padding: 32px 20px;
    }

    .chatbot-page .comparison-table th,
    .chatbot-page .comparison-table td {
        padding: 16px 12px;
        font-size: 13px;
    }

    .chatbot-page .achievement-content {
        flex-direction: column;
        text-align: center;
    }

    .chatbot-page .cta-section {
        padding: 60px 0;
    }

    .chatbot-page .cta-section .section-title {
        font-size: 28px;
    }
}
