/* ============================================================
   ぱそトレ！ AI活用ガイド専用スタイル (v19.9.190)
   ------------------------------------------------------------
   【管理ルール】
   - 1文字も略さない「正典」記述
   - 詳細度による統治（!importantを極力排除）
   - PC 2x2 / スマホ 2x2 の完全統合
   ============================================================ */

/* 1. 全体レイアウト・静的カード */
body.portal-page article.static-page .content-body .static-card {
    cursor: default;
    transform: none;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #eeeeee;
    box-shadow: none;
}

/* 2. お悩みリスト (💬) */
body.portal-page .user-voices-container {
    max-width: 720px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
    background-color: #ffffff;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.03);
    border-left-width: 6px;
    border-left-style: solid;
    border-left-color: #d1d5db;
}

.voice-list { list-style: none; padding: 0; margin: 0; }
.voice-list li { position: relative; padding-left: 35px; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.7; color: #4b5563; }
.voice-list li::before { content: "💬"; position: absolute; left: 0; }

/* 3. 【新設】AI機能解説カード：左に青線の厚いカード */
body.portal-page article.static-page .content-body .ai-feature-card {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 50px;
    margin-left: 0px;
    padding-top: 40px;
    padding-right: 35px;
    padding-bottom: 40px;
    padding-left: 35px;
    background-color: #fcfdfe;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 10px; /* 視線を止める太い線 */
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #eef2f6;
    border-right-color: #eef2f6;
    border-bottom-color: #eef2f6;
    border-left-color: #3498db;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.04);
}

body.portal-page article.static-page .content-body .ai-feature-card h3.feature-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2c3e50;
    margin-top: 0px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 各AIブランド（Claude/ChatGPT等）の解説枠 */
.ai-brand-item {
    background-color: #ffffff;
    padding-top: 20px;
    padding-right: 25px;
    padding-bottom: 20px;
    padding-left: 25px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #eef2f6;
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
}

.ai-brand-item strong { color: #3498db; font-size: 1.3rem; font-weight: 900; margin-right: 5px; }

/* メリットボックス（オレンジ枠） */
.ai-benefit-box {
    margin-top: 35px;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    background-color: #fff9f0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-left: 5px solid #f39c12;
}

.ai-benefit-box h4 { font-size: 1.1rem; color: #e67e22; margin-top: 0px; margin-bottom: 15px; font-weight: 900; }
.ai-benefit-box ul { margin: 0; padding-left: 20px; }
.ai-benefit-box ul li { margin-bottom: 12px; font-size: 1rem; font-weight: 800; color: #444; }
/* --- 主要ツール比較チャート： v19.9.192 --- */

body.portal-page article.static-page .content-body .ai-summary-container {
    margin-top: 50px;
    margin-right: 0px;
    margin-bottom: 60px;
    margin-left: 0px;
    padding-top: 35px;
    padding-right: 30px;
    padding-bottom: 35px;
    padding-left: 30px;
    background-color: #f1f5f9;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #e2e8f0;
}

body.portal-page article.static-page .content-body .ai-summary-container h3.summary-box-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e293b;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #3498db;
    display: block;
}

.summary-tool-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-tool-item:last-child { margin-bottom: 0px; }

.tool-label {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 900;
    color: #ffffff;
}

.tool-label.chatgpt { background-color: #10a37f; }
.tool-label.claude { background-color: #7c4dff; }
.tool-label.gemini { background-color: #1a73e8; }
.tool-label.copilot { background-color: #00a4ef; }

.tool-desc { margin-top: 0px; margin-bottom: 0px; font-size: 1rem; line-height: 1.6; color: #334155; }


/* 4. プロンプト例文セクション */
.example-unit { margin-bottom: 40px; }
.example-box {
    background: #2c3e50; color: white; padding-top: 30px; padding-right: 30px; padding-bottom: 30px; padding-left: 30px;
    border-radius: 15px; position: relative; font-family: 'Roboto Mono', monospace; line-height: 1.8;
}
.example-label {
    position: absolute; top: -12px; left: 20px; background: var(--accent);
    color: white; padding: 2px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}

/* 5. 基礎の重要性 (オレンジ枠) */
body.portal-page article.static-page .content-body .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

body.portal-page article.static-page .content-body .comparison-item {
    background-color: #fffde7; /* 塗りつぶし黄色 */
    padding-top: 25px; padding-right: 25px; padding-bottom: 25px; padding-left: 25px;
    border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom-right-radius: 15px; border-bottom-left-radius: 15px;
    border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px;
    border-style: solid; border-color: #ffe8cc; box-sizing: border-box;
}

body.portal-page article.static-page .content-body .comparison-item h4 { color: #e67e22; margin-top: 0px; margin-bottom: 12px; font-size: 1.1rem; font-weight: 900; }

/* 6. 4大ツール比較グリッド (2x2) (v19.9.182 修復版) */
body.portal-page article.static-page .content-body .tools-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* カード全体：aタグのデフォルト（青字・下線）を完全排除 */
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8fbfe;
    padding-top: 25px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-left: 20px;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-style: solid;
    border-color: #d1e3f8;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    min-height: 200px;
    justify-content: center;
}

/* ホバー・タップ時の反応：バッジの視認性を維持 */
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card:hover {
    background-color: var(--accent);
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-bottom-color: var(--accent);
    border-left-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0px 12px 30px rgba(52, 152, 219, 0.2);
}

/* ホバー時に文字を白くする */
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card:hover .tool-name,
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card:hover .tool-summary,
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card:hover .tool-icon {
    color: #ffffff !important;
}

/* ホバー時：バッジは白背景を維持し、文字色を青に変えてクッキリさせる */
body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card:hover .tool-badge {
    background-color: #ffffff !important;
    color: var(--accent) !important;
    border-top-color: #ffffff !important;
    border-right-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
    border-left-color: #ffffff !important;
}

.tool-icon { font-size: 3rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.tool-name { font-size: 1.35rem; font-weight: 900; margin-bottom: 10px; transition: color 0.2s; }
.tool-summary { font-size: 1.05rem; font-weight: 800; margin-bottom: 15px; line-height: 1.4; transition: color 0.2s; }
.tool-badge { background-color: #ffffff; color: var(--accent); font-size: 0.8rem; font-weight: 900; padding: 4px 12px; border-radius: 6px; border: 1px solid #d1e3f8; transition: all 0.2s; }

/* 7. FAQ */
.faq-item { 
    display: flex; flex-direction: column !important; align-items: flex-start !important; 
    padding-top: 25px !important; padding-bottom: 25px !important; border-bottom: 1px solid #f1f2f6; 
}
.faq-q { font-weight: bold; color: var(--accent); margin-bottom: 10px; font-size: 1.1rem; }
.faq-a { color: #555; line-height: 1.7; padding-left: 10px; border-left: 3px solid #f1f2f6; }

/* 8. 下部ボタン (summary-nav) */
.summary-nav { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; align-items: stretch; margin-top: 30px; }
.summary-nav .btn-main, .summary-nav .summary-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 160px; height: 50px; margin: 0; line-height: 1.2; text-decoration: none; box-sizing: border-box; font-weight: 900; border-radius: 40px;
}
.summary-btn { background: white; border: 2px solid var(--accent); color: var(--accent); }
/* ============================================================
   レスポンシブ調整 (v19.9.191：スマホ幅広・正常化版)
   ============================================================ */

@media (max-width: 1024px) {
    body.portal-page article.static-page--wide .tools-comparison-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 768px) {
    /* 4大ツール：スマホでも2列(2x2)を維持 */
    body.portal-page article.static-page .content-body .tools-comparison-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    body.portal-page article.static-page .content-body .tools-comparison-grid a.tool-card {
        padding-top: 20px;
        padding-right: 10px;
        padding-bottom: 20px;
        padding-left: 10px;
        min-height: 160px;
    }
    
    .tool-icon { font-size: 2.2rem; }
    .tool-name { font-size: 1.15rem; }
    .tool-summary { font-size: 0.9rem; }

    /* その他（お悩み解決・オレンジ枠）は1列 */
    body.portal-page article.static-page--wide .category-grid,
    body.portal-page article.static-page .content-body .comparison-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* 【最重要：修正】AI機能解説カード：左の余白を削り文字幅を奪還 */
    body.portal-page article.static-page .content-body .ai-feature-card {
        padding-top: 25px;
        padding-right: 15px; /* 35pxから大幅削減 */
        padding-bottom: 25px;
        padding-left: 15px; /* 35pxから大幅削減 */
        border-left-width: 5px; /* 10pxから5pxへ削減し幅を稼ぐ */
        margin-bottom: 30px;
    }

    /* AI解説枠：内側の余白も最小化し、1行の文字数を最大化 */
    .ai-brand-item {
        padding-top: 15px;
        padding-right: 12px;
        padding-bottom: 15px;
        padding-left: 12px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* メリットボックス：スマホ最適化 */
    .ai-benefit-box { padding: 15px; margin-top: 20px; }

    /* お悩みリストの余白 */
    body.portal-page .user-voices-container { padding: 20px 15px !important; margin: 0 !important; max-width: 100% !important; }

    /* 例文ボックスの重なり防止 */
    body.portal-page article.static-page .content-body .example-box { padding-top: 55px !important; }
    body.portal-page article.static-page .content-body .example-label { top: -15px !important; left: 10px !important; right: 10px !important; text-align: center !important; display: block !important; }
}

@media (max-width: 600px) {
    .summary-nav { flex-direction: column; gap: 10px; }
    .summary-nav .btn-main, .summary-nav .summary-btn { width: 100%; min-width: 0; margin-bottom: 5px; }
}

/* 垂直余白の最終調整 */
body.portal-page .static-page--wide .recommended-box { 
    margin-top: 20px; 
    padding-top: 15px; 
    padding-right: 30px; 
    padding-bottom: 40px; 
    padding-left: 30px; 
}
body.portal-page .static-page--wide .recommended-box h2.section-title { 
    margin-top: 10px; 
    margin-bottom: 25px; 
}
/* major tools comparison chart - mobile optimization */
@media (max-width: 768px) {
    .summary-tool-item {
        flex-direction: column;
        gap: 8px;
    }
    .tool-label {
        width: auto;
        padding-right: 12px;
        padding-left: 12px;
        display: inline-block;
    }
    body.portal-page article.static-page .content-body .ai-summary-container {
        padding-top: 25px;
        padding-right: 15px;
        padding-bottom: 25px;
        padding-left: 15px;
    }
}