/* CSS変数の定義 */
:root {
    --concrete-gray: #2c3e50;
    --light-concrete: #ecf0f1;
    --steel-blue: #34495e;
    --glass-white: #ffffff;
    --architect-green: #27ae60;
    --construction-orange: #e67e22;
    --blueprint-blue: #3498db;
    --disabled-gray: #95a5a6;
    --light-border: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --hover-bg: #f8f9fa;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.1);
}

/* ベーススタイル */
.manual-page {
    background-color: var(--light-concrete);
    overflow-x: hidden;
    width: 100%;
}

/* マニュアルページ専用コンテナ */
.manual-page .manual-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ホームページとの見た目を統一 */
.manual-page .site-header {
    margin-bottom: 30px;
}

/* パンくずリスト */
.manual-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.manual-page .breadcrumb a {
    color: var(--blueprint-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.manual-page .breadcrumb a:hover {
    color: var(--architect-green);
}

.manual-page .breadcrumb .separator {
    color: var(--text-secondary);
    margin: 0 4px;
}

/* ========================================
   機能ヘッダー（タイトル部分）
   ======================================== */

.manual-page .manual-header {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    text-align: center;
}

.manual-page .icon-wrapper {
    flex-shrink: 0;
    margin-bottom: 16px;
}

.manual-page .feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.manual-page .feature-icon:hover {
    opacity: 1;
}

/* タイトルスタイル（ホームページと統一） */
.manual-page .manual-title {
    font-size: 2.5rem !important;
    font-weight: 500 !important;
    color: var(--concrete-gray) !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    padding: 0 !important;
}

/* サブタイトルスタイル（下の線を削除） */
.manual-page .manual-subtitle {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    margin-top: 16px !important;
    line-height: 1.5 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 400 !important;
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.manual-page .manual-subtitle::after {
    display: none !important;
}

/* ========================================
   共通ヘッダー（ホームページとの統一）
   ======================================== */

/* フォント完全統一 - 最優先 */
.manual-page .main-title,
.manual-page h1.main-title,
.manual-page .header .main-title,
.manual-page .container .main-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 300 !important;
    color: #2c3e50 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.manual-page .main-title:hover,
.manual-page h1.main-title:hover,
.manual-page .header .main-title:hover,
.manual-page .container .main-title:hover {
    color: #27ae60 !important;
}

/* ホームページと同じ線を非表示（manual-title には付けない） */
.manual-page .main-title::after,
.manual-page h1.main-title::after,
.manual-page .header .main-title::after,
.manual-page .container .main-title::after {
    display: none !important;
}

.manual-page .subtitle {
    font-size: 1.1rem !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

/* ヘッダー調整 */
.manual-page .header {
    background: transparent !important;
    border-bottom: none !important;
}

/* ========================================
   セクションスタイル
   ======================================== */

.manual-page .manual-section {
    margin-bottom: 32px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.manual-page .manual-section:last-child {
    margin-bottom: 0;
}

.manual-page .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--concrete-gray);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--architect-green);
    font-family: 'Inter', sans-serif !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   コンテンツボックス（機能概要用）
   ======================================== */

.manual-page .content-box {
    background: var(--glass-white);
    border-radius: 12px;
    padding: 32px;
    line-height: 1.7;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--light-border);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.manual-page .content-box p {
    margin: 0;
}

.manual-page .content-box ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.manual-page .content-box li {
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ========================================
   ステップボックス
   ======================================== */

.manual-page .step-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--blueprint-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.manual-page .step-box:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-light);
}

.manual-page .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--blueprint-blue);
    color: var(--glass-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.manual-page .step-content h3 {
    margin: 0 0 8px 0;
    color: var(--concrete-gray);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
}

.manual-page .step-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.manual-page .step-content ul {
    margin: 8px 0 0 20px;
    padding: 0;
    color: var(--text-primary);
}

.manual-page .step-content li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.manual-page .step-content code {
    background: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--construction-orange);
}

/* ========================================
   画像プレースホルダー
   ======================================== */

.manual-page .image-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border: 2px dashed var(--light-border);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    margin: 32px 0;
}

.manual-page .image-placeholder p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   活用シーングリッド
   ======================================== */

.manual-page .usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.manual-page .usecase-card {
    background: var(--glass-white);
    border: 1px solid var(--light-border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.manual-page .usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
    border-color: var(--blueprint-blue);
}

.manual-page .usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.manual-page .usecase-icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.manual-page .usecase-card h3 {
    font-size: 1.1rem;
    color: var(--concrete-gray);
    margin: 0 0 12px 0;
    font-family: 'Inter', sans-serif !important;
}

.manual-page .usecase-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   Tipsボックス
   ======================================== */

.manual-page .tips-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left: 4px solid var(--architect-green);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.manual-page .tip-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.manual-page .tip-item:last-child {
    margin-bottom: 0;
}

.manual-page .tip-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.manual-page .tip-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.manual-page .tip-item p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.manual-page .tip-item strong {
    color: var(--concrete-gray);
    font-weight: 600;
}

/* ========================================
   注意事項ボックス
   ======================================== */

.manual-page .notes-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    border-left: 4px solid var(--construction-orange);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.manual-page .notes-box.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    border-left-color: #ffc107;
}

.manual-page .note-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.manual-page .note-item:last-child {
    margin-bottom: 0;
}

.manual-page .note-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.manual-page .note-item p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

/* ========================================
   ナビゲーション
   ======================================== */

.manual-page .manual-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--light-border);
    text-align: center;
}

.manual-page .nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--architect-green);
    color: var(--glass-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    border: none;
}

.manual-page .nav-button:hover {
    background: #27ae60;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 768px) {
    .manual-page .manual-container {
        padding: 20px 15px 60px;
    }
    
    .manual-page .manual-header {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 0;
        margin-bottom: 32px;
    }
    
    .manual-page .manual-title {
        font-size: 2rem !important;
    }

    .manual-page .manual-subtitle {
        font-size: 1rem !important;
        margin-top: 12px !important;
    }

    .manual-page .subtitle {
        font-size: 1rem !important;
    }

    .manual-page .content-box {
        padding: 24px;
    }
    
    .manual-page .step-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .manual-page .usecase-grid {
        grid-template-columns: 1fr;
    }
    
    .manual-page .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .manual-page .manual-container {
        padding: 15px 10px 50px;
    }
    
    .manual-page .manual-header {
        padding: 0;
        margin-bottom: 28px;
    }
    
    .manual-page .manual-title {
        font-size: 1.8rem !important;
    }

    .manual-page .manual-subtitle {
        font-size: 1rem !important;
        margin-top: 12px !important;
    }

    .manual-page .subtitle {
        font-size: 1rem !important;
    }

    .manual-page .content-box {
        padding: 20px 16px;
        border-radius: 8px;
    }
    
    .manual-page .section-title {
        font-size: 1.3rem;
    }
    
    .manual-page .step-box {
        padding: 16px;
    }
    
    .manual-page .image-placeholder {
        padding: 40px 15px;
    }
}
