/* ========================================
   マニュアルページ専用スタイル
   ======================================== */

/* レイアウト */
.manual-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* サイドバー */
.manual-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-sticky h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-sticky h4 {
    margin: 20px 0 10px 0;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.manual-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manual-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.manual-nav .nav-link:hover {
    background: #f0f4ff;
    color: #4a90e2;
}

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

.manual-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* メインコンテンツ */
.manual-content {
    flex: 1;
    min-width: 0;
}

.manual-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.manual-section h2 {
    margin: 0 0 25px 0;
    font-size: 32px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.manual-section h2 i {
    color: #667eea;
}

.manual-section h3 {
    margin: 30px 0 15px 0;
    font-size: 22px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-section h3 i {
    color: #4a90e2;
    font-size: 20px;
}

.manual-section h4 {
    margin: 20px 0 10px 0;
    font-size: 18px;
    color: #4a5568;
}

.manual-section p {
    margin: 10px 0;
    line-height: 1.8;
    color: #4a5568;
}

.manual-section ul, .manual-section ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #4a5568;
}

.manual-section li {
    margin: 8px 0;
    line-height: 1.7;
}

.manual-section code {
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* イントロカード */
.intro-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.intro-card h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.intro-card p {
    color: rgba(255,255,255,0.95);
    margin: 0 0 20px 0;
    font-size: 16px;
}

.role-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.role-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.role-badge.requester {
    border: 2px solid rgba(255,255,255,0.5);
}

.role-badge.tester {
    border: 2px solid rgba(255,255,255,0.5);
}

.role-badge.admin {
    border: 2px solid rgba(255,255,255,0.5);
}

/* 機能グリッド */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.feature-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2d3748;
}

.feature-item p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* ステップカード */
.step-card {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2d3748;
}

.step-content p {
    margin: 0 0 15px 0;
}

/* 役割選択 */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role-option {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.role-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.role-option i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.role-option strong {
    display: block;
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
}

.role-option p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* ガイドイントロ */
.guide-intro {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #4a90e2;
}

.guide-intro p {
    margin: 0;
    color: #2d3748;
    font-size: 16px;
}

/* インストラクションボックス */
.instruction-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.instruction-box h4 {
    margin: 20px 0 10px 0;
    color: #2d3748;
    font-size: 16px;
}

.instruction-box ol, .instruction-box ul {
    margin: 10px 0;
}

.instruction-box li {
    margin: 10px 0;
}

/* ヒント・警告ボックス */
.tip-box {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.tip-box i {
    color: #38b2ac;
    margin-right: 8px;
}

.warning-box {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.warning-box i {
    color: #f56565;
    margin-right: 8px;
}

/* 例ボックス */
.example-box {
    background: #fef5e7;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #f39c12;
}

.example-box h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 16px;
}

.example-box ul {
    margin: 10px 0;
}

/* スクリーンショットプレースホルダー */
.screenshot-placeholder {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #a0aec0;
    margin: 20px 0;
    font-size: 16px;
}

.screenshot-placeholder i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 5px;
}

.status-badge.normal {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* 負荷バッジ */
.load-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 5px;
}

.load-badge.low {
    background: #c6f6d5;
    color: #22543d;
}

.load-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.load-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

/* アラートバッジ */
.alert-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    margin: 5px;
}

.alert-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-badge.info {
    background: #dbeafe;
    color: #1e3a8a;
}

/* 通知トリガー */
.notification-triggers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.trigger-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

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

.trigger-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2d3748;
}

.trigger-card p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* レポートタブカード */
.report-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.report-tab-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.report-tab-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

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

.report-tab-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #2d3748;
}

.report-tab-card > p {
    margin: 0 0 15px 0;
    color: #718096;
    font-size: 14px;
}

.report-tab-card ul {
    margin: 0;
    padding-left: 20px;
}

.report-tab-card li {
    font-size: 14px;
    color: #4a5568;
}

/* FAQアイテム */
.faq-item {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2d3748;
}

.faq-item p {
    margin: 10px 0;
    color: #4a5568;
}

.faq-item ul {
    margin: 10px 0;
    padding-left: 25px;
}

.faq-item li {
    margin: 8px 0;
    color: #4a5568;
}

/* トラブルシューティング */
.troubleshooting-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.troubleshooting-item h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.troubleshooting-item h3 i {
    color: #e53e3e;
}

.solution-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.solution-box h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
}

.solution-box ol, .solution-box ul {
    margin: 10px 0;
}

/* コンタクトボックス */
.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.contact-box h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-box p {
    color: rgba(255,255,255,0.95);
    margin: 0;
    font-size: 16px;
}

/* マニュアルフッター */
.manual-footer {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.manual-footer p {
    margin: 10px 0;
    color: #4a5568;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary i {
    margin-right: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .manual-container {
        flex-direction: column;
    }

    .manual-sidebar {
        width: 100%;
    }

    .sidebar-sticky {
        position: static;
        max-height: none;
    }

    .manual-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .manual-section {
        padding: 25px 20px;
    }

    .manual-section h2 {
        font-size: 24px;
    }

    .manual-section h3 {
        font-size: 18px;
    }

    .feature-grid,
    .notification-triggers,
    .report-tabs {
        grid-template-columns: 1fr;
    }

    .role-selection {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex-direction: column;
    }
}

/* プリント用スタイル */
@media print {
    .manual-sidebar,
    header,
    .manual-footer a {
        display: none;
    }

    .manual-container {
        display: block;
    }

    .manual-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
