/* ============================================================
   ぱそトレ！ ハブページ共通デザインシステム (v20.1.6)
   ------------------------------------------------------------
   【正典ルール：絶対遵守】
   - 一切の要約（shorthand）を禁止。
   - すべてのプロパティを個別にバラして記述。
   - 既存スタイルとの干渉を防ぐ「hub-」詳細度統治。
   ============================================================ */

/* --- 1. ハブ・ヒーローエリア --- */
.hub-hero {
    display: flex;
    flex-direction: row;
    /* 改良：文章量に左右されないよう「上端揃え」に統一 (v20.7.26.Align) */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding-top: 10px;
    padding-right: 0px;
    padding-bottom: 40px;
    padding-left: 0px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #f1f3f5;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 50px;
    margin-left: 0px;
}

/* ハブアイコンの物理サイズを全ページ強制統一 */
.hub-hero__icon .cat-icon-img {
    height: 85px !important;
    width: auto !important;
    margin-top: 5px; /* タイトルの文字位置と視覚的に高さを合わせる微調整 */
}

.hub-hero__icon {
    flex-shrink: 0;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

.hub-hero__title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    line-height: 1.3;
}

.hub-hero__description {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

/* --- 2. セクション基本定義 --- */
.hub-section {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 80px;
    margin-left: 0px;
    position: relative;
    display: block;
}

/* --- 3. 「学習を始める」グリッド ＆ カード --- */
.hub-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

.hub-priority-card {
    background-color: #f8fbfe; /* 背景色を薄く付けて白から分離 */
    padding-top: 35px;
    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;
    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: #d1e3f8;
    border-right-color: #d1e3f8;
    border-bottom-color: #d1e3f8;
    border-left-color: #d1e3f8;
    text-decoration: none;
    color: inherit;
    transition-property: transform, box-shadow, border-color, background-color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hub-priority-card:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-bottom-color: var(--accent);
    border-left-color: var(--accent);
    box-shadow: 0px 15px 40px rgba(52, 152, 219, 0.12);
}

/* 【イチオシ（Featured）】強めのオレンジ・赤系枠 */
.hub-priority-card--featured {
    background-color: #fffaf5;
    border-top-color: #f39c12;
    border-right-color: #f39c12;
    border-bottom-color: #f39c12;
    border-left-color: #f39c12;
}

.hub-priority-card--featured:hover {
    border-top-color: #e67e22;
    border-right-color: #e67e22;
    border-bottom-color: #e67e22;
    border-left-color: #e67e22;
    box-shadow: 0px 15px 40px rgba(230, 126, 34, 0.15);
}

.hub-priority-card__badge {
    position: absolute;
    top: -12px;
    left: 25px;
    background-color: var(--accent);
    color: #ffffff;
    padding-top: 4px;
    padding-right: 14px;
    padding-bottom: 4px;
    padding-left: 14px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    font-size: 0.75rem;
    font-weight: 900;
}

.hub-priority-card--featured .hub-priority-card__badge {
    background-color: #e67e22; /* イチオシ用バッジ色 */
}

.hub-priority-card h3 {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 12px;
    margin-left: 0px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.4;
    border-bottom-style: none;
}

.hub-priority-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
    line-height: 1.6;
    flex-grow: 1;
}

/* --- 4. ロードマップ（目次・リンク形式） --- */
.hub-roadmap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

.hub-roadmap__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #ffffff;
    padding-top: 15px;
    padding-right: 25px;
    padding-bottom: 15px;
    padding-left: 20px;
    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: 6px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #f1f3f5;
    border-right-color: #f1f3f5;
    border-bottom-color: #f1f3f5;
    border-left-color: var(--accent);
    text-decoration: none;
    color: inherit;
    transition-property: background-color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.02);
}

.hub-roadmap__item:hover {
    background-color: #f8fbfe;
    transform: translateX(8px);
    box-shadow: 0px 4px 15px rgba(52, 152, 219, 0.1);
}

.hub-roadmap__num {
    width: 60px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}

.hub-roadmap__content {
    flex-grow: 1;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 10px;
}

.hub-roadmap__content h4 {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 4px;
    margin-left: 0px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    border-bottom-style: none;
}

.hub-roadmap__content p {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.hub-roadmap__btn {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
}

/* --- 5. 下部アクセントエリア（薄緑背景）：真四角終了版 (v20.1.13) --- */
.hub-accent-area {
    background-color: #f0fdf4;
    margin-top: 80px;
    margin-right: -60px;
    margin-bottom: 0px;
    margin-left: -60px;
    padding-top: 60px;
    padding-right: 60px;
    padding-bottom: 60px;
    padding-left: 60px;
    /* 角丸を物理的に「0px」へ統治し、親の白枠との競合を封殺 */
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.hub-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

.hub-popular-card {
    background-color: #ffffff;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    text-decoration: none;
    transition-property: border-color, transform, box-shadow;
    transition-duration: 0.2s;
    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: #e2e8f0;
    border-right-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
    border-left-color: #e2e8f0;
}

.hub-popular-card:hover {
    border-top-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(39, 174, 96, 0.1);
}

.hub-popular-card__tag {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 8px;
    margin-left: 0px;
    letter-spacing: 0.05em;
}

.hub-popular-card h4 {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.5;
    border-bottom-style: none;
}

/* --- 6. すべての記事（アーカイブ） --- */
.hub-archive-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 30px;
    margin-left: 0px;
}

.hub-tag-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.hub-tag {
    background-color: #f1f2f6;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    padding-top: 8px;
    padding-right: 18px;
    padding-bottom: 8px;
    padding-left: 18px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #4b5563;
    cursor: pointer;
    transition-duration: 0.2s;
}

.hub-tag.active {
    background-color: var(--primary);
    color: #ffffff;
}

.hub-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hub-article-item {
    background-color: #ffffff;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
    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: #f1f3f5;
    border-right-color: #f1f3f5;
    border-bottom-color: #f1f3f5;
    border-left-color: #f1f3f5;
    text-decoration: none;
    transition-duration: 0.2s;
}

.hub-article-item:hover {
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-bottom-color: var(--accent);
    border-left-color: var(--accent);
}

.hub-article-item h4 {
    margin-top: 8px;
    margin-right: 0px;
    margin-bottom: 8px;
    margin-left: 0px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    border-bottom-style: none;
}

/* --- 7. 下部接続導線 --- */
.hub-footer-nav {
    margin-top: 60px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    text-align: center;
}

.hub-footer-nav__text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
    .hub-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 30px;
    }
    .hub-priority-grid, 
    .hub-article-grid, 
    .hub-popular-grid {
        grid-template-columns: 1fr;
    }
    .hub-accent-area {
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 20px;
        padding-left: 20px;
    }
    .hub-roadmap__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- 9. 全ハブ共通：メリット・特徴セクション (v20.1.40 視認性強化版) --- */
.hub-benefit-section {
    margin-top: 20px;
    margin-right: 0px;
    margin-bottom: 50px;
    margin-left: 0px;
    /* 背景色を薄い青に、枠線を付けて「箱」としての存在感を確立 */
    background-color: #f0f7ff;
    padding-top: 35px;
    padding-right: 35px;
    padding-bottom: 35px;
    padding-left: 35px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    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: #d1e3f8;
    border-right-color: #d1e3f8;
    border-bottom-color: #d1e3f8;
    border-left-color: #d1e3f8;
    box-shadow: 0px 10px 25px rgba(52, 152, 219, 0.04);
}

.hub-benefit-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
    text-align: center;
}

.hub-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hub-benefit-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.hub-benefit-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #eef9ff;
    color: var(--accent);
    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;
    font-size: 0.8rem;
    font-weight: 900;
}

.hub-benefit-item p {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

/* スマホ対応：メリットリスト */
@media (max-width: 768px) {
    .hub-benefit-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .hub-benefit-section {
        padding-top: 25px;
        padding-right: 20px;
        padding-bottom: 25px;
        padding-left: 20px;
    }
}

/* --- 11. 就職ハブ専用：Step 5 リスキリング・グラデーション装飾 (v20.7.25.1) --- */
.hub-roadmap__item--reskill {
    /* 左からWord青、中央白、右からExcel緑への淡いグラデーション */
    background-image: linear-gradient(90deg, #EEF2FF 0%, #FFFFFF 50%, #ECFDF5 100%) !important;
    /* 左側にWordの太線、右側にExcelの太線を配置して挟み撃ちにする */
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #1D4ED8 !important; /* Word Blue */
    border-right-width: 8px !important;
    border-right-style: solid !important;
    border-right-color: #16A34A !important; /* Excel Green */
    /* 上下の枠線も各色に馴染ませる */
    border-top-color: #d1e3f8 !important;
    border-bottom-color: #d1fae5 !important;
}

.hub-roadmap__item--reskill:hover {
    /* ホバー時は白を飛ばして、より鮮やかな背景へ */
    background-image: linear-gradient(90deg, #E0E7FF 0%, #FFFFFF 50%, #DCFCE7 100%) !important;
    transform: translateX(0px) translateY(-3px) !important; /* 横移動より浮遊感を優先 */
}

/* Step 5 内の文字色調整 */
.hub-roadmap__item--reskill .hub-roadmap__num {
    color: #1D4ED8 !important;
    font-weight: 900 !important;
}

.hub-roadmap__item--reskill .hub-roadmap__btn {
    color: #16A34A !important;
    font-weight: 900 !important;
}
/* --- 12. カテゴリ別 Nextステップ・グラデーション (v20.7.26.NextColor) --- */

/* 生成AI用：左からAI色(#14B8A6)の淡色 → 右へ白く抜ける */
.hub-roadmap__item--next-ai {
    background-image: linear-gradient(90deg, #ECFEFF 0%, #FFFFFF 100%) !important;
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #14B8A6 !important;
    border-top-color: #d1f7f4 !important;
    border-right-color: #f1f3f5 !important;
    border-bottom-color: #d1f7f4 !important;
}
.hub-roadmap__item--next-ai .hub-roadmap__num { color: #14B8A6 !important; font-weight: 900 !important; }

/* Word用：左からWord色(#1D4ED8)の淡色 → 右へ白く抜ける */
.hub-roadmap__item--next-word {
    background-image: linear-gradient(90deg, #EEF2FF 0%, #FFFFFF 100%) !important;
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #1D4ED8 !important;
    border-top-color: #d1e3f8 !important;
    border-right-color: #f1f3f5 !important;
    border-bottom-color: #d1e3f8 !important;
}
.hub-roadmap__item--next-word .hub-roadmap__num { color: #1D4ED8 !important; font-weight: 900 !important; }

/* Excel用：左からExcel色(#16A34A)の淡色 → 右へ白く抜ける */
.hub-roadmap__item--next-excel {
    background-image: linear-gradient(90deg, #ECFDF5 0%, #FFFFFF 100%) !important;
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #16A34A !important;
    border-top-color: #d1fae5 !important;
    border-right-color: #f1f3f5 !important;
    border-bottom-color: #d1fae5 !important;
}
.hub-roadmap__item--next-excel .hub-roadmap__num { color: #16A34A !important; font-weight: 900 !important; }

/* 就職・転職用：左からキャリア色(#F97316)の淡色 → 右へ白く抜ける */
.hub-roadmap__item--next-career {
    background-image: linear-gradient(90deg, #FFF7ED 0%, #FFFFFF 100%) !important;
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #F97316 !important;
    border-top-color: #ffedd5 !important;
    border-right-color: #f1f3f5 !important;
    border-bottom-color: #ffedd5 !important;
}
.hub-roadmap__item--next-career .hub-roadmap__num { color: #F97316 !important; font-weight: 900 !important; }

/* ホバー時の共通挙動：浮遊感の演出 */
.hub-roadmap__item--next-ai:hover,
.hub-roadmap__item--next-word:hover,
.hub-roadmap__item--next-excel:hover,
.hub-roadmap__item--next-career:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05) !important;
}
/* Windows用：左からWindows色(#38BDF8)の淡色 → 右へ白く抜ける */
.hub-roadmap__item--next-windows {
    background-image: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 100%) !important;
    border-left-width: 8px !important;
    border-left-style: solid !important;
    border-left-color: #38BDF8 !important;
    border-top-color: #e0f2fe !important;
    border-right-color: #f1f3f5 !important;
    border-bottom-color: #e0f2fe !important;
}
.hub-roadmap__item--next-windows .hub-roadmap__num { color: #38BDF8 !important; font-weight: 900 !important; }