/* ============================================================
   ぱそトレ！ 共通コンポーネント・アルティメット資産 (v19.9.166)
   ------------------------------------------------------------
   【管理・保護ルール】
   1. セレクタ詳細度による統治（!important 依存の脱却）。
   2. 記事構造、ロードマップ、見出し、装飾、スマホ最適化を完全統合。
   3. AIによる要約・プロパティ結合を禁止し、高密度記述を維持。
   ============================================================ */

/* --- 1. 記事共通：基本コンテナ --- */

body.portal-page article.static-page {
    max-width: 800px;
    margin-top: 30px; 
    margin-right: auto;
    margin-bottom: 80px;
    margin-left: auto;
    background-color: #ffffff;
    padding-top: 20px; 
    padding-right: 60px;
    padding-bottom: 45px;
    padding-left: 60px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    /* 解決策：Spread -20px により、上方向の影の漏れ（横線）を根絶 */
    box-shadow: 0px 25px 50px -20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    line-height: 1.8;
    position: relative;
    display: block;
}

/* Modifier: .static-page--wide (1000px版) */
body.portal-page article.static-page.static-page--wide {
    max-width: 1000px;
}

/* ページタイトル(H1)とサブタイトルの階層設計 */
body.portal-page article.static-page h1.page-title {
    margin-top: 20px; 
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    font-size: 1.7rem; 
    font-weight: 900;
    line-height: 1.2;
}

body.portal-page article.static-page .page-subtitle {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 45px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    line-height: 1.6;
}

/* --- 2. 学習ロードマップ & 現場コラム共通カード仕様 --- */

body.portal-page .roadmap-flow {
    margin-top: 35px;
    margin-right: auto;
    margin-bottom: 35px;
    margin-left: auto;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    display: block;
}

body.portal-page .roadmap-step-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #eef2f6;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
    /* コラムと共通の 12px 25px 余白 */
    padding-top: 12px;
    padding-right: 25px;
    padding-bottom: 12px;
    padding-left: 25px;
    margin-bottom: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03);
}

body.portal-page .roadmap-step-item, 
body.portal-page .roadmap-step-item:visited {
    color: #2c3e50 !important;
}

body.portal-page .roadmap-step-item:hover {
    transform: translateX(10px);
    border-top-color: #3498db;
    border-right-color: #3498db;
    border-bottom-color: #3498db;
    border-left-color: #3498db;
    box-shadow: 0px 12px 25px rgba(52, 152, 219, 0.12);
}

body.portal-page .roadmap-step-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #f1f2f6;
    z-index: 1;
}

body.portal-page .roadmap-step-item.step-zero::before { background-color: #f39c12 !important; }
body.portal-page .roadmap-step-item.active-step::before { background-color: #3498db !important; }

/* STEPバッジ・アイコンエリア */
body.portal-page .step-number-badge {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: #f1f2f6;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    z-index: 2;
}
body.portal-page .step-number-badge .label { font-size: 0.6rem; font-weight: 800; color: #7f8c8d; letter-spacing: 0.02em; line-height: 1; }
body.portal-page .step-number-badge .num { font-size: 1.2rem; font-weight: 900; color: #2c3e50; line-height: 1.2; }
body.portal-page .step-zero .num { color: #e67e22; }
body.portal-page .active-step .num { color: #3498db; }

/* カード内テキストエリア：記事用の 50px マージンを詳細度で打ち消し */
body.portal-page .step-content {
    flex: 1;
    text-align: left;
    min-width: 0; 
}

body.portal-page .roadmap-step-item .step-content h3 { 
    margin-top: 0px; 
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    font-size: 1.05rem; 
    font-weight: 800; 
    color: #2c3e50; 
    border: none;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.portal-page .step-content h3::before, 
body.portal-page .step-content h3::after { display: none; }

body.portal-page .step-content p { 
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-size: 0.85rem; 
    color: #666666; 
    line-height: 1.5; 
}

/* ボタンサイズ */
body.portal-page .step-action-btn {
    background-color: #f1f2f6;
    padding-top: 8px; padding-right: 18px; padding-bottom: 8px; padding-left: 18px;
    border-radius: 25px; font-size: 0.8rem; font-weight: 800; color: #57606f; margin-left: 15px; white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
body.portal-page .roadmap-step-item:hover .step-action-btn {
    background-color: #3498db;
    color: #ffffff;
}

/* --- 3. プロフィール ＆ 講師アドバイス --- */

body.portal-page .profile-card-horizontal {
    margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px;
    padding-top: 15px; padding-right: 30px; padding-bottom: 15px; padding-left: 30px;
    background-color: #ffffff;
    border-left: 5px solid #3498db;
    border-top: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: block;
}

body.portal-page .profile-card-horizontal h3 {
    margin-top: 0px; margin-bottom: 5px; font-size: 1.25rem; font-weight: 800; color: #2c3e50; border-bottom: 1px solid #f1f2f6; line-height: 1.3;
}

body.portal-page .instructor-advice {
    background-color: #fff9e6;
    border-left: 5px solid #f39c12;
    padding-top: 22px; padding-right: 30px; padding-bottom: 22px; padding-left: 30px;
    border-radius: 12px; margin-top: 30px; margin-bottom: 30px;
    font-size: 0.98rem; line-height: 1.8; color: #333333; box-sizing: border-box;
}
body.portal-page .instructor-advice b, 
body.portal-page .instructor-advice strong {
    display: inline-block; color: #e67e22; font-weight: 900; margin-bottom: 10px; padding-bottom: 4px; border-bottom: 1px solid rgba(230, 126, 34, 0.25);
}

/* --- 4. 記事本文エリア装飾 --- */

body.portal-page .content-body h2 {
    display: block;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    color: #2c3e50;
    margin-top: 100px;
    margin-right: 0px;
    margin-bottom: 35px;
    margin-left: 0px;
    padding-top: 60px;
    padding-right: 0px;
    padding-bottom: 8px;
    padding-left: 20px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #f1f3f5;
    /* 改行を許可し、丸みが消えないようにはみ出しを許可 */
    white-space: normal; 
    overflow: visible;
}

/* 左側の縦棒：行数に合わせて自動で伸びるように改善 (v20.7.24.Auto) */
body.portal-page .content-body h2::before {
    content: "";
    position: absolute;
    display: block;
    /* 固定高さを廃止し、文字エリアの上端(52px)から下端(0px)までを繋ぐ */
    top: 52px; 
    bottom: 0px;
    left: 0px;
    width: 8px;
    height: auto; /* 自動伸縮 */
    background-color: #2c6fd8;
    background-image: linear-gradient(180deg, #2c6fd8 0%, #5cbcff 100%);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* 下側の水平線：復元 */
body.portal-page .content-body h2::after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0px;
    left: 14px; 
    right: 0px;
    height: 2px;
    background-color: #3498db;
    background-image: linear-gradient(90deg, #3498db 0%, #d9ecff 100%);
}

body.portal-page .content-body h3 {
    display: block; position: relative;
    padding-top: 0; padding-right: 0; padding-bottom: 12px; padding-left: 0;
    margin-top: 50px; margin-bottom: 22px;
    color: #2c3e50; font-size: 1.3rem; font-weight: 800; border-bottom: 2px solid #f1f2f6;
}
/* --- 5. 特殊枠内見出しのリセットロジック --- */

/* 装飾枠（recommended-box / priority-box）の先頭にあるH2の余白を最適化 */
body.portal-page article.static-page .content-body .recommended-box > h2.section-title:first-child,
body.portal-page article.static-page .content-body .priority-box > h2.section-title:first-child {
    margin-top: 10px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
    padding-left: 0px;
    border-left-style: none;
}

/* 枠内の見出しからは📘マークを非表示 */
body.portal-page article.static-page .content-body .recommended-box > h2.section-title::before,
body.portal-page article.static-page .content-body .priority-box > h2.section-title::before {
    display: none;
}

/* --- 6. まとめセクション専用コンポーネント (v19.9.107 準拠) --- */

body.portal-page article.static-page .content-body .summary-box {
    margin-top: 60px;
    margin-right: 0px;
    margin-bottom: 40px;
    margin-left: 0px;
    padding-top: 35px;
    padding-right: 40px;
    padding-bottom: 35px;
    padding-left: 40px;
    background-color: #f8fbfe;
    border-top-width: 3px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-style: solid;
    border-color: #d6e9f8;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
}

body.portal-page article.static-page .content-body .summary-box h2.section-title--summary {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px; /* 新H2の20pxを0に戻す */
    border-left-style: none;
    border-bottom-style: none;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* まとめタイトルのアイコン設定（新H2の縦線を上書き・アイコンに変換） */
body.portal-page article.static-page .content-body .summary-box h2.section-title--summary::before {
    content: "";
    position: static; /* 絶対配置を解除 */
    display: inline-block;
    width: 42px;
    height: 42px;
    background-color: transparent;
    background-image: url('../img/summary-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0px;
    margin-right: 12px;
    margin-bottom: 0px;
    margin-left: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* 新H2の下線を、まとめ枠内では物理的に消去する */
body.portal-page article.static-page .content-body .summary-box h2.section-title--summary::after {
    display: none !important;
}

body.portal-page .summary-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

body.portal-page .summary-nav .btn-main,
body.portal-page .summary-nav .summary-btn {
    /* 1. 3つ並びを死守するため、左右を15pxに絞り、!importantでstyle.cssの50px設定を無効化 */
    padding-top: 12px !important;
    padding-right: 15px !important;
    padding-bottom: 12px !important;
    padding-left: 15px !important;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    /* 2. ボタンの最低幅を160pxで揃え、ガタつきを防止 */
    min-width: 160px;
    /* 3. 文字サイズを0.9remに微減し、改行（2行化）を物理的に封殺 */
    font-size: 0.9rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
}

body.portal-page .summary-btn {
    background-color: #ffffff;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-style: solid;
    border-color: #3498db;
    color: #3498db;
    transition: all 0.2s ease;
}

body.portal-page .summary-btn:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(52, 152, 219, 0.2);
}

/* --- 7. その他詳細装飾（マーカー・注釈・垂直リスト） --- */

body.portal-page .marker-yellow {
    background-image: linear-gradient(transparent 60%, #ffff7f 60%);
    padding-top: 0px;
    padding-right: 2px;
    padding-bottom: 0px;
    padding-left: 2px;
}

body.portal-page .info-note-box {
    margin-top: 35px;
    margin-right: 0px;
    margin-bottom: 35px;
    margin-left: 0px;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background-color: #f9fafb;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 6px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #e2e8f0;
    border-right-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
    border-left-color: #3498db;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
    box-sizing: border-box;
}

/* 枠内のタイトル：すべてこのデザインに統一 */
body.portal-page .info-note-box strong.note-title {
    display: block;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.4;
}

/* 枠内のリスト：余白を統一 */
body.portal-page .info-note-box ul {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
}

body.portal-page .info-note-box ul li {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px; /* 12pxから20pxへ拡張し、文章同士の間隔を確保 */
    margin-left: 0px;
}

body.portal-page .info-note-box ul li:last-child {
    margin-bottom: 0px;
}


body.portal-page .feature-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

body.portal-page .feature-item-vertical {
    display: block;
    padding-top: 25px;
    padding-right: 30px;
    padding-bottom: 25px;
    padding-left: 30px;
    background-color: #ffffff;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #eef2f6;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.02);
}

body.portal-page .feature-item-vertical h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

/* --- 8. 表(Table) ＆ キーボード(kbd) 装飾 --- */

body.portal-page .content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.02);
}

body.portal-page .content-body table th {
    background-color: #f9fafb;
    color: #2c3e50;
    font-weight: 900;
    padding-top: 16px;
    padding-right: 20px;
    padding-bottom: 16px;
    padding-left: 20px;
    border-bottom: 2px solid #eeeeee;
    text-align: left;
}

body.portal-page .content-body table td {
    padding-top: 16px;
    padding-right: 20px;
    padding-bottom: 16px;
    padding-left: 20px;
    border-bottom: 1px solid #f1f2f6;
    background-color: #ffffff;
    color: #4b5563;
}

body.portal-page .content-body kbd {
    font-family: 'Roboto Mono', monospace;
    background-color: #f8f9fa;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 3px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #ccd1d5;
    border-radius: 4px;
    padding-top: 1px;
    padding-right: 6px;
    padding-bottom: 1px;
    padding-left: 6px;
    font-size: 0.9em;
    font-weight: 800;
    color: #2c3e50;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0px 1px 0px #ffffff inset;
}

/* --- 9. 本文詳細装飾：画像スケーリング・システム (v19.9.134 最終正典) --- */

body.portal-page article.static-page .content-body .article-image {
    margin-top: 45px;
    margin-right: auto;
    margin-bottom: 45px;
    margin-left: auto;
    text-align: center;
    display: block;
    width: 100%;
}

body.portal-page article.static-page .content-body .article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 25px 50px -20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eeeeee;
    display: block;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: zoom-in;
}

body.portal-page article.static-page .content-body .article-image img:hover {
    transform: scale(1.03);
    /* ホバー時に青い枠線を出すことでクリック可能であることを示唆 */
    border-top-color: #3498db;
    border-right-color: #3498db;
    border-bottom-color: #3498db;
    border-left-color: #3498db;
}

/* ============================================================
   画像拡大（モーダル）システム (v20.7.24.Zoom)
   ------------------------------------------------------------
   略記禁止・物理配置統治
   ============================================================ */
.image-zoom-overlay {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* JSで制御 */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.3s;
}

.image-zoom-overlay.is-active {
    display: flex;
    opacity: 1;
}

.image-zoom-content {
    max-width: 95%;
    max-height: 90%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.5);
    border-top-width: 4px;
    border-right-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 4px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-left-color: #ffffff;
    object-fit: contain;
    background-color: #ffffff;
}

/* ============================================================
   フォルダ階層マップ：左右分割 ＆ コネクタ (v20.7.24.Map)
   ------------------------------------------------------------
   略記禁止・物理配置統治
   ============================================================ */
.folder-map-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    margin-top: 30px;
    margin-right: 0px;
    margin-bottom: 30px;
    margin-left: 0px;
    gap: 0px; /* 線でつなぐためgapは0 */
}

.folder-map-box {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    background-color: #ffffff;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #e2e8f0;
    border-right-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
    border-left-color: #e2e8f0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    position: relative;
}

/* つなぎ目（矢印・コネクタ） */
.folder-map-connector {
    flex-grow: 0;
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.folder-map-connector::before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #3498db;
    position: absolute;
}

.folder-map-connector::after {
    content: "▶";
    color: #3498db;
    font-size: 1.2rem;
    background-color: #ffffff;
    z-index: 2;
    padding-top: 0px;
    padding-right: 5px;
    padding-bottom: 0px;
    padding-left: 5px;
}

.folder-map-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    color: #64748b;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    text-align: center;
}

.folder-map-list {
    list-style-type: none !important;
    padding-top: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    margin-top: 0px !important;
}

.folder-map-item {
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    margin-bottom: 5px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 10px;
}

.folder-map-item--active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #bfdbfe;
    border-right-color: #bfdbfe;
    border-bottom-color: #bfdbfe;
    border-left-color: #bfdbfe;
}

/* ============================================================
   ファイル名比較カード (v20.7.24.FileName)
   ============================================================ */
.naming-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.naming-card {
    padding-top: 20px;
    padding-right: 25px;
    padding-bottom: 20px;
    padding-left: 25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 5px; /* 左側にアクセント線 */
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
}

/* 悪い例のカード */
.naming-card--bad {
    background-color: #fffafb;
    border-top-color: #fee2e2;
    border-right-color: #fee2e2;
    border-bottom-color: #fee2e2;
    border-left-color: #ef4444;
}

/* 良い例のカード */
.naming-card--good {
    background-color: #f0fdf4;
    border-top-color: #dcfce7;
    border-right-color: #dcfce7;
    border-bottom-color: #dcfce7;
    border-left-color: #22c55e;
}

.naming-badge {
    flex-shrink: 0;
    width: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: #ffffff;
}

.naming-card--bad .naming-badge { background-color: #ef4444; }
.naming-card--good .naming-badge { background-color: #22c55e; }

.naming-content {
    flex-grow: 1;
}

.naming-example {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1e293b;
}

.naming-reason {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .naming-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* スマホ時は画面横幅を最大化 */
@media (max-width: 768px) {
    .image-zoom-content {
        max-width: 100%;
        max-height: 80%;
        border-top-width: 2px;
        border-right-width: 2px;
        border-bottom-width: 2px;
        border-left-width: 2px;
    }
}

/* スケーリングModifier：詳細度を一致させ上書きを実現 */
body.portal-page article.static-page .content-body .article-image--window img,
body.portal-page article.static-page .content-body .article-image--w80 img { width: 85%; }
body.portal-page article.static-page .content-body .article-image--w60 img { width: 65%; }
body.portal-page article.static-page .content-body .article-image--menu img,
body.portal-page article.static-page .content-body .article-image--w40 img { width: 45%; }

/* --- 10. パンくずリスト（垂直余白10px：最終決定版） --- */

body.portal-page .breadcrumb {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    font-size: 0.82rem;
    color: #64748b;
    background-color: #f8f9fa;
    padding-top: 10px;
    padding-right: 24px;
    padding-bottom: 10px;
    padding-left: 24px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f2f6;
}

body.portal-page .breadcrumb a {
    color: #3498db;
    text-decoration: none;
    font-weight: 900;
}

/* --- 11. スマホ表示：余白の完全最適化 --- */

@media (max-width: 768px) {
    body.portal-page #app {
        width: 100% !important;
        margin-top: 0px !important;
        margin-right: auto !important;
        margin-bottom: 0px !important;
        margin-left: auto !important;
        padding-top: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 0px !important;
    }
    
    body.portal-page article.static-page {
        padding-top: 25px !important;
        padding-right: 15px !important;
        padding-bottom: 45px !important;
        padding-left: 15px !important;
        margin-top: 0px !important;
        margin-bottom: 30px !important;
        border-radius: 0px !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    body.portal-page .content-body h2 {
        font-size: 1.4rem !important;
        margin-top: 45px !important;
        margin-bottom: 20px !important;
        padding-left: 15px !important;
        border-left-width: 6px !important;
        white-space: normal !important;
    }

    body.portal-page .content-body table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* ロードマップ：スマホ横並び維持版 */
    body.portal-page .roadmap-step-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 15px !important;
        padding-left: 20px !important;
    }

    body.portal-page .step-number-badge {
        margin-top: 0px !important;
        margin-right: 15px !important;
        margin-bottom: 0px !important;
        margin-left: 0px !important;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    body.portal-page .step-action-btn {
        margin-left: 0px !important;
        margin-top: 15px !important;
        width: 100% !important;
        text-align: center !important;
    }

    body.portal-page .roadmap-step-item .step-content h3 {
        white-space: normal !important;
    }
    
    body.portal-page article.static-page .content-body .article-image img {
        width: 100% !important;
    }

/* まとめボックス：上下左右の余白をスマホ用に再統治 */
    body.portal-page article.static-page .content-body .summary-box {
        padding-top: 20px !important;
        padding-right: 15px !important;
        padding-bottom: 25px !important;
        padding-left: 15px !important;
        margin-top: 40px !important;
        margin-right: 0px !important;
        margin-bottom: 30px !important;
        margin-left: 0px !important;
    }

    /* まとめタイトルの上マージンを物理的に「0」にして空間を詰める */
    body.portal-page article.static-page .content-body .summary-box h2.section-title--summary {
        margin-top: 0px !important;
        margin-right: 0px !important;
        margin-bottom: 20px !important;
        margin-left: 0px !important;
        font-size: 1.3rem !important;
    }

    /* まとめ枠内の箇条書き：余白を最小化し文字幅を奪還 */
    body.portal-page .content-body .summary-box ul {
        margin-top: 0px !important;
        margin-right: 0px !important;
        margin-bottom: 0px !important;
        margin-left: 0px !important;
        padding-top: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 20px !important;
    }

    body.portal-page .content-body .summary-box ul li {
        margin-top: 0px !important;
        margin-right: 0px !important;
        margin-bottom: 12px !important;
        margin-left: 0px !important;
        line-height: 1.6 !important;
    }
/* --- 全サイト共通：スマホ時の余白奪還統治 --- */
    /* 1. 補足枠（info-note-box）の左右余白を30pxから15pxへ半減 */
    body.portal-page .info-note-box {
        padding-top: 25px !important;
        padding-right: 15px !important;
        padding-bottom: 25px !important;
        padding-left: 15px !important;
        margin-top: 30px !important;
        margin-right: 0px !important;
        margin-bottom: 30px !important;
        margin-left: 0px !important;
    }

    /* 2. 記事内のすべての箇条書きの左余白（インデント）を最小化 */
    body.portal-page .content-body ul {
        padding-top: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 20px !important; /* 標準の40pxから20pxへ削減 */
        margin-top: 15px !important;
        margin-right: 0px !important;
        margin-bottom: 15px !important;
        margin-left: 0px !important;
    }

    /* 3. リスト項目間の詰まりを解消しつつ、横幅を維持 */
    body.portal-page .content-body ul li {
        margin-top: 0px !important;
        margin-right: 0px !important;
        margin-bottom: 15px !important;
        margin-left: 0px !important;
        line-height: 1.7 !important;
    }
/* 4. 講師のアドバイス枠（instructor-advice）の左右余白を15pxへ削減 */
    body.portal-page .instructor-advice,
    body.game-body .instructor-advice {
        padding-top: 20px !important;
        padding-right: 15px !important;
        padding-bottom: 20px !important;
        padding-left: 15px !important;
        margin-top: 30px !important;
        margin-right: 0px !important;
        margin-bottom: 30px !important;
        margin-left: 0px !important;
    }

    /* 枠内のタイトル（太字）の余白も微調整 */
    body.portal-page .instructor-advice b,
    body.portal-page .instructor-advice strong,
    body.game-body .instructor-advice b {
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
        font-size: 1.05rem !important;
    }
}

/* --- 12. 読みものページ最終整合：絶対配置解除と背景同期 --- */

body.portal-page {
    background-color: #f1f3f5 !important;
}

body.portal-page #app {
    position: static !important;
    transform: none !important;
    margin-top: 0px !important;
    margin-right: auto !important;
    margin-bottom: 0px !important;
    margin-left: auto !important;
    width: 100%;
    max-width: 1000px;
    display: block !important;
    min-height: 100vh;
}
/* ============================================================
   [最終統合資産] ポータル共通：ナビ・全体MAP・News統治 (v20.1.99)
   ============================================================ */

/* --- 1. 記事末尾の共通ナビゲーション（リスキリング導線） --- */
.article-footer-nav {
    margin-top: 80px;
    text-align: center;
    display: block;
    width: 100%;
}
.article-footer-nav__text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    display: block;
}

/* --- 2. TOP専用：学びの地図（1000px左右均等・1行死守・背景色モデル） --- */
.map-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}
.map-step-card {
    flex: 1;
    position: relative;
    padding-top: 25px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-left: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-width: 8px;
    border-top-style: solid;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    text-align: left;
}
.map-step-card:not(:last-child)::after {
    content: "≫";
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.2rem;
    font-weight: 900;
}
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.step-num-badge {
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-family: 'Roboto Mono', monospace;
}
.step-label-text { font-size: 1rem; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.step-title-area { width: 100%; margin-bottom: 20px; padding-right: 85px; box-sizing: border-box; }
.step-title-area h3 {
    margin: 0 0 5px 0; font-size: 1.2rem; font-weight: 900; color: #2c3e50;
    border-bottom: none !important; white-space: nowrap;
}
.step-main-desc { font-size: 0.8rem; color: #64748b; font-weight: 700; white-space: nowrap; }
.step-illust { position: absolute; top: 20px; right: 15px; width: 85px; height: auto; }
.step-benefit-list { margin: auto 0 25px; padding: 0; list-style: none; border-top: 1px solid #f1f5f9; }
.step-benefit-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }
.item-left { display: flex; align-items: center; gap: 8px; font-weight: 900; color: #2c3e50; white-space: nowrap; }
.item-right { font-size: 0.72rem; color: #94a3b8; font-weight: 700; white-space: nowrap; }
.step-cta-container { text-align: center; margin-top: auto; }
.step-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 95%; padding: 10px 0; border-radius: 50px; border-top-width: 2px; border-right-width: 2px;
    border-bottom-width: 2px; border-left-width: 2px; border-style: solid;
    background-color: #ffffff; text-decoration: none; font-weight: 900; font-size: 0.85rem;
}
@media (max-width: 768px) {
    .map-container { flex-direction: column; }
    .map-step-card:not(:last-child)::after { display: none; }
}

/* --- AI二面性：点線 ＆ 循環リングデザイン (v20.1.107) --- */
.ai-dual-role-box {
    margin-top: 30px;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important; /* 左右のBOXとの間に距離を確保 */
    position: relative;
}

/* 左右のBOXを繋ぐ横向きの点線 */
.ai-dual-role-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background-image: linear-gradient(to right, #cbd5e1 50%, rgba(255, 255, 255, 0) 0%);
    background-size: 15px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

.ai-role-side {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    text-align: left;
    z-index: 3; /* 点線より前面に配置 */
    position: relative;
}

.ai-role-side h4 {
    /* タイトルを大きく、中央に配置 */
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin-top: 0px !important;
    margin-right: 0px !important;
    margin-bottom: 10px !important;
    margin-left: 0px !important;
    /* 背景を少し白抜きにして目立たせる */
    background-color: rgba(255, 255, 255, 0.5) !important;
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    display: block !important;
}

.ai-role-side p {
    text-align: center !important; /* 副題も中央に */
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    margin-top: 0px !important;
    margin-right: 0px !important;
    margin-bottom: 15px !important;
    margin-left: 0px !important;
    line-height: 1.4 !important;
}

.ai-role-side ul {
    list-style-type: none !important;
    padding-top: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 15px !important; /* リストは読みやすさのため左寄せを維持 */
    font-size: 0.85rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* 中央アイコンと下部テキストをまとめる枠 */
.ai-role-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 5;
    position: relative;
    width: 120px;
}

/* 中央アイコン：周囲に赤と緑の半円ライン */
.ai-role-center-icon {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0px 4px 10px rgba(52, 152, 219, 0.15);
    border-top-width: 3px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-style: solid;
    border-color: transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, #e74c3c 50%, #217346 50%);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* 中央下部のテキスト */
.ai-role-center-text {
    font-size: 0.75rem;
    font-weight: 900;
    color: #3498db;
    text-align: center;
    white-space: nowrap;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
/* --- AIボックス内：白抜き誘導ボタン (v20.7.27.VisibilityFixed) --- */
.ai-role-btn {
    display: block !important;
    margin-top: 15px !important;
    margin-right: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    padding-top: 8px !important;
    padding-right: 0px !important;
    padding-bottom: 8px !important;
    padding-left: 0px !important;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    border-bottom-left-radius: 30px !important;
    text-align: center !important;
    text-decoration-line: none !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    background-color: #ffffff !important;
    transition-property: background-color, color, transform, box-shadow !important;
    transition-duration: 0.2s !important;
    transition-timing-function: ease !important;
    box-sizing: border-box !important;
}

/* 共通ホバーフィードバック */
.ai-role-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 就職側ボタン：Career色 (#F97316) への塗りつぶし ＆ 文字白抜き */
.ai-role-btn.career-btn {
    border-top-width: 2px !important;
    border-right-width: 2px !important;
    border-bottom-width: 2px !important;
    border-left-width: 2px !important;
    border-top-style: solid !important;
    border-right-style: solid !important;
    border-bottom-style: solid !important;
    border-left-style: solid !important;
    border-top-color: #F97316 !important;
    border-right-color: #F97316 !important;
    border-bottom-color: #F97316 !important;
    border-left-color: #F97316 !important;
    color: #F97316 !important;
}

.ai-role-btn.career-btn:hover {
    background-color: #F97316 !important;
    color: #ffffff !important; /* 文字を白に変更して視認性を確保 */
}

/* 仕事側ボタン：Excel/Work色 (#16A34A) への塗りつぶし ＆ 文字白抜き */
.ai-role-btn.work-btn {
    border-top-width: 2px !important;
    border-right-width: 2px !important;
    border-bottom-width: 2px !important;
    border-left-width: 2px !important;
    border-top-style: solid !important;
    border-right-style: solid !important;
    border-bottom-style: solid !important;
    border-left-style: solid !important;
    border-top-color: #16A34A !important;
    border-right-color: #16A34A !important;
    border-bottom-color: #16A34A !important;
    border-left-color: #16A34A !important;
    color: #16A34A !important;
}

.ai-role-btn.work-btn:hover {
    background-color: #16A34A !important;
    color: #ffffff !important; /* 文字を白に変更して視認性を確保 */
}

/* --- 3. 目的別クイックアクセス --- */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.quick-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
}
.quick-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.quick-icon { font-size: 1.5rem; margin-right: 15px; width: 40px; text-align: center; }
.quick-text h4 { font-size: 0.95rem; font-weight: 900; color: var(--primary); margin: 0; }
.quick-text p { font-size: 0.75rem; color: #94a3b8; margin: 2px 0 0 0; }

/* --- 4. 人気コンテンツ・リスト --- */
.popular-list-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
}
.popular-list li::before { content: "・"; color: var(--accent); font-weight: 900; margin-right: 10px; }
.popular-list a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 0.95rem; }
.popular-list a:hover { color: var(--accent); }

/* --- 5. Newsセクション：重なり・スクロール・カラー統治 (v20.1.87) --- */
body.portal-page .news-list {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0px 15px 40px -20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eeeeee;
    width: 100% !important;
}
.news-scroll-container {
    max-height: 270px;
    overflow-y: auto;
    overflow-x: auto !important; /* スマホ用横スクロール許可 */
    -webkit-overflow-scrolling: touch;
}
.news-scroll-container::-webkit-scrollbar { width: 6px; height: 0px; } /* 横バーは隠す */
.news-scroll-container::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 10px; }

body.portal-page .news-item {
    display: flex !important;
    flex-direction: row; /* !importantを削除：縦並び許可 */
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f8f9fa;
    min-width: 580px;    /* !importantを削除：はみ出し防止 */
    max-width: 100%;
    transform: none !important;
    transition: none !important;
}

/* FAQなどの「縦並び」を指定した場所専用の救済ルール (v20.7.21.13) */
.news-item[style*="column"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;        /* 580pxの制限を物理的に破壊 */
    white-space: normal !important; /* 改行を許可 */
}

body.portal-page .news-item:last-child { border-bottom: none; }
body.portal-page .news-meta {
    display: flex !important;
    /* 160px：日付とタグを収めつつ、｜にグッと近づける理想の幅 */
    flex: 0 0 185px !important;
    width: 185px !important;
    align-items: center !important;
    gap: 8px !important;
}
.news-date { font-family: 'Roboto Mono', monospace; font-size: 0.85rem; color: #94a3b8; font-weight: 700; }
body.portal-page .news-tag {
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    padding: 3px 0 !important;
    border-radius: 4px !important;
    text-align: center !important;
    width: 72px !important;
    min-width: 85px !important;
    display: block !important;
}
/* ============================================================
   カテゴリ別カラー（v20.7.19 新配色パレット同期版）
   ============================================================ */
.tag-typing  { background-color: #EFF6FF !important; color: #2563EB !important; }
.tag-windows { background-color: #F0F9FF !important; color: #38BDF8 !important; }
.tag-word    { background-color: #EEF2FF !important; color: #1D4ED8 !important; }
.tag-excel   { background-color: #ECFDF5 !important; color: #16A34A !important; }
.tag-ai      { background-color: #ECFEFF !important; color: #14B8A6 !important; }
.tag-career  { background-color: #FFF7ED !important; color: #F97316 !important; }
.tag-column  { background-color: #F5F3FF !important; color: #8B5CF6 !important; }
.tag-notice  { background-color: #f1f3f5 !important; color: #64748b !important; }

/* AI二面性システム：新配色同期（左：Orange / 右：Green） */
.ai-role-side.career-side { 
    background-color: #FFF7ED !important; 
    border-top-color: #F97316 !important;
    border-right-color: #F97316 !important;
    border-bottom-color: #F97316 !important;
    border-left-color: #F97316 !important;
}
.ai-role-side.career-side h4 { color: #F97316 !important; }
.ai-role-btn.career-btn { border-color: #F97316 !important; color: #F97316 !important; }

.ai-role-side.work-side { 
    background-color: #ECFDF5 !important; 
    border-top-color: #16A34A !important;
    border-right-color: #16A34A !important;
    border-bottom-color: #16A34A !important;
    border-left-color: #16A34A !important;
}
.ai-role-side.work-side h4 { color: #16A34A !important; }
.ai-role-btn.work-btn { border-color: #16A34A !important; color: #16A34A !important; }

/* 中央リングのグラデーション（左Orange ↔ 右Green） */
.ai-role-center-icon {
    background-image: linear-gradient(white, white), linear-gradient(to right, #F97316 50%, #16A34A 50%) !important;
}
body.portal-page .news-content { display: flex !important; flex: 1 !important; align-items: center !important; margin-left: 5px !important; }
body.portal-page .news-sep { display: inline-block !important; margin-right: 12px !important; color: #d1d5db !important; }
.news-text { text-decoration: none !important; color: #4b5563 !important; font-size: 0.95rem; white-space: nowrap !important; }
.news-text:hover { color: var(--accent) !important; }

@media (max-width: 768px) {
    .map-container, .ai-dual-role-box, .quick-access-grid { flex-direction: column; }
    .ai-dual-role-box { gap: 20px !important; }
    .ai-dual-role-box::before { display: none; } /* スマホ縦並び時は点線を消す */
    body.portal-page .news-meta { flex: 0 0 160px !important; width: 160px !important; gap: 5px !important; }
    body.portal-page .news-tag { width: 70px !important; min-width: 70px !important; font-size: 0.7rem !important; }
}
/* カテゴリーナビゲーション：4-3配置・等間隔統治モデル */
.cat-nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    width: 100%;
}

.cat-nav-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    padding-right: 15px;
    padding-bottom: 12px;
    padding-left: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    text-decoration: none;
    transition-property: transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    /* 1000pxコンテナで4枚並べるための幅計算（隙間12px×3分を引いて4割） */
    width: calc(25% - 10px); 
    box-sizing: border-box;
    background-color: #ffffff;
}
.cat-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05);
}
.cat-nav-icon {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}
.cat-nav-text {
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
}

/* スマホ対応：2カラムで整列  */
@media (max-width: 768px) {
    .cat-nav-btn {
        width: calc(50% - 6px); /* 画面半分より少し小さくして2列に */
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
        justify-content: center;
    }
}
/* セクション区切り線（v20.7.19 余白最適化版） */
.section-divider {
    max-width: 768px;
    width: 100%;
    height: 1px;
    margin-top: 50px; /* 80pxから50pxへ圧縮 */
    margin-right: auto;
    margin-bottom: 50px; /* 80pxから50pxへ圧縮 */
    margin-left: auto;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #e2e8f0;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    display: block;
}

/* スマホでは少し余白を詰める */
@media (max-width: 768px) {
    .section-divider {
        margin-top: 50px;
        margin-bottom: 50px;
        max-width: 90%; /* 画面端に少し余裕を持たせる */
    }
}
/* 人気コンテンツ：2カラムランキング（v20.7.19 案内所強化モデル） */
.ranking-container {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

/* 左側：No.1 メインカード */
.ranking-featured {
    flex: 1.2;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}
.ranking-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.06);
    border-color: #2563EB;
}
.rank-badge-big {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #e2e8f0; /* 背景に溶け込む巨大数字 */
    line-height: 1;
}
.rank-featured-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: #2563EB;
    margin-bottom: 10px;
    display: block;
    z-index: 2;
}
.rank-featured-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 20px;
    z-index: 2;
}
.rank-featured-tags {
    display: flex;
    gap: 8px;
    z-index: 2;
}

/* 右側：2-5位リスト */
.ranking-side-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rank-side-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.rank-side-item:hover {
    border-color: #38BDF8;
    background-color: #F0F9FF;
}
.rank-num-small {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #94a3b8;
    width: 25px;
    flex-shrink: 0;
}
.rank-side-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 1行死守 */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ranking-container { flex-direction: column; }
    .ranking-featured { padding: 25px; }
    .rank-featured-title { font-size: 1.2rem; }
}
/* 目的別クイックアクセス：最終完成版（PC 2-1-2 / スマホ 1列） */
.quick-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.q-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 18px;
    padding-right: 25px;
    padding-bottom: 18px;
    padding-left: 25px;
    background-color: #ffffff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* 突き抜け防止 */
}

/* 中央の大きなカード：PCでは2列分、スマホでは解除 */
.q-card--wide {
    grid-column: span 2;
    padding-top: 22px;
    padding-bottom: 22px;
    text-align: center;
}

.q-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.q-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 3px;
    display: block;
}

.q-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    display: block;
}

.q-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: transform 0.3s ease, color 0.3s ease;
    vertical-align: middle;
}

.q-card:hover .q-arrow {
    transform: translateX(5px);
    color: #2563EB;
}

/* カード左端のアクセントライン */
.q-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 6px; opacity: 0.3;
}
.q-card--typing::before { background-color: #2563EB; }
.q-card--windows::before { background-color: #38BDF8; }
.q-card--office::before { background-color: #1D4ED8; opacity: 0.6; }
.q-card--career::before { background-color: #F97316; }
.q-card--ai::before { background-color: #14B8A6; }

/* 【最重要】スマホ対応：1列スタック ＆ デザイン調整 */
@media (max-width: 768px) {
    .quick-custom-grid {
        grid-template-columns: 1fr !important; /* 強制1列 */
        gap: 12px;
    }
    .q-card--wide {
        grid-column: span 1 !important; /* 2列またぎを解除 */
        text-align: left; /* スマホでは左揃えが読みやすい */
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .q-title { font-size: 1.05rem; }
    .q-sub { font-size: 0.8rem; }
}
/* 「できる」ステップカード：完成予想図・完全再現モデル（最終統治版） */
.map-step-card {
    position: relative;
    padding-top: 25px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-left: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-width: 8px;
    border-top-style: solid;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
    /* 3つの幅を強制的に均等にする設定 */
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}

/* ヘッダー：数字バッジ */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.step-num-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
}
.step-label-text {
    font-size: 1rem;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* タイトルエリア：画像スペース(90px)を確保して1行を死守 */
.step-title-area {
    width: 100%;
    margin-bottom: 20px;
    padding-right: 90px; /* 右上の画像と重ならないための盾 */
    box-sizing: border-box;
}
.step-title-area h3 {
    margin-top: 0px;
    margin-bottom: 5px;
    font-size: 1.2rem; /* 横幅に収まるようサイズ調整 */
    font-weight: 900;
    color: #2c3e50;
    border-bottom-style: none !important;
    white-space: nowrap; /* 改行禁止 */
}
.step-main-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    display: block;
    white-space: nowrap; /* 改行禁止 */
}

/* 右上のイラスト */
.step-illust {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 90px;
    height: auto;
}

/* リスト：左右振り分け ＆ 1行死守 */
.step-benefit-list {
    margin-top: auto;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #f1f5f9;
}
.step-benefit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 900;
    color: #2c3e50;
    white-space: nowrap; /* 項目名の改行を禁止 */
}
.item-right {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

/* 下部ボタン */
.step-cta-container { text-align: center; margin-top: auto; }
.step-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    padding-top: 10px;
    padding-right: 0px;
    padding-bottom: 10px;
    padding-left: 0px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    background-color: #ffffff;
    text-decoration-line: none;
    font-weight: 900;
    font-size: 0.9rem;
    transition-property: background-color, color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.step-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    color: #ffffff !important;
}

/* 各ステップのテーマカラー塗りつぶし定義 */
.map-step-card:nth-child(1) .step-cta-btn:hover {
    background-color: #2563EB !important;
    border-top-color: #2563EB !important;
    border-right-color: #2563EB !important;
    border-bottom-color: #2563EB !important;
    border-left-color: #2563EB !important;
}

.map-step-card:nth-child(2) .step-cta-btn:hover {
    background-color: #F97316 !important;
    border-top-color: #F97316 !important;
    border-right-color: #F97316 !important;
    border-bottom-color: #F97316 !important;
    border-left-color: #F97316 !important;
}

.map-step-card:nth-child(3) .step-cta-btn:hover {
    background-color: #16A34A !important;
    border-top-color: #16A34A !important;
    border-right-color: #16A34A !important;
    border-bottom-color: #16A34A !important;
    border-left-color: #16A34A !important;
}

@media (max-width: 768px) {
    .step-arrow-connector { transform: rotate(90deg); margin: 15px 0; }
}