/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* ヘッダー */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0;
}

.brand-tagline {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 概要セクション */
.story-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f9f9fb 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.story-block h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.story-block p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
}

.story-block strong {
    color: #667eea;
    font-weight: 600;
}

.service-overview {
    margin-bottom: 40px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card.highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #ffcc00;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.overview-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.overview-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.overview-card strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ワークフローセクション */
.workflow-section {
    margin-bottom: 40px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.workflow-step {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f9f9fb 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.step-content > p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.step-features {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.step-features li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.step-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* CTA（コール・トゥ・アクション）セクション */
.cta-section {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-content p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-highlight {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-highlight strong {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

/* 機能カテゴリータブ */
.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: #f5f7fa;
    padding: 10px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    background: white;
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* カテゴリーパネル */
.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 40px;
    min-width: 60px;
    text-align: center;
}

.feature-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-details ul {
    list-style: none;
    padding-left: 0;
}

.feature-details ul li {
    font-size: 13px;
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: bold;
}

.demo-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ライブデモ表示 */
.live-demo-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 3px solid #667eea;
}

.live-demo-title {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.live-demo-description {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 20px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.iframe-wrapper iframe {
    width: 100%;
    height: 844px;
    border-radius: 28px;
    display: block;
    background: white;
}

.fullscreen-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fullscreen-link:hover {
    color: #764ba2;
    transform: scale(1.05);
}

.fullscreen-link i {
    margin-right: 8px;
}

/* サブセクションタイトル */
.subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 25px;
    text-align: center;
}

/* デモグリッド */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.demo-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.demo-card:not(.coming-soon):hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.demo-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-thumbnail {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.demo-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.demo-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.demo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #34c759;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.demo-card.coming-soon .demo-badge {
    background: #999;
}

/* OCRセクション */
.ocr-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.rule-card {
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.rule-card.forbidden {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border: 3px solid #ff3b30;
}

.rule-card.required {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border: 3px solid #34c759;
}

.rule-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.rule-card.forbidden h3 {
    color: #ff3b30;
}

.rule-card.required h3 {
    color: #34c759;
}

.rule-card ul {
    list-style: none;
    padding-left: 0;
}

.rule-card ul li {
    font-size: 15px;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.rule-card.forbidden ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff3b30;
    font-weight: bold;
    font-size: 18px;
}

.rule-card.required ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: bold;
    font-size: 18px;
}

.rule-note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.rule-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.rule-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* フッター */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.main-footer p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.footer-note {
    font-size: 12px;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 25px;
    }

    .overview-grid,
    .demo-grid,
    .ocr-rules {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .iframe-wrapper {
        max-width: 100%;
        padding: 8px;
    }

    .iframe-wrapper iframe {
        height: 700px;
    }

    /* 新規追加：ワークフローステップのレスポンシブ */
    .workflow-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .cta-content h3 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-highlight strong {
        font-size: 16px;
    }
}
