/* =========================================================
   ナレッジハブ（/knowledge）専用スタイル v2
   B-SEEDS MOODBOARD 準拠
   COLOR: #3E91CB (blue) / #174767 (navy) / #F5B93F (gold)
          #F28A32 (orange) / #F5F6F2 (bg-light)
   FONT : Noto Sans JP
   ========================================================= */

.page__contents {
    font-family: "Noto Sans JP", sans-serif;
}

/* ---------- 見出し上のアイキャッチラベル ---------- */
.knowledge-eyebrow {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #3E91CB;
    margin: 0 0 0.6em;
}

/* ---------- リード文（カード化） ---------- */
.knowledge-lead {
    background: linear-gradient(135deg, #F5F6F2 0%, #EAF3FA 100%);
    border-radius: 16px;
    padding: 1.6em 1.8em;
    margin-bottom: 3em;
    position: relative;
    overflow: hidden;
}
.knowledge-lead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #3E91CB, #174767);
}
.knowledge-lead p {
    margin: 0;
    font-size: 1.02em;
    line-height: 1.9;
    color: #174767;
    font-weight: 500;
}

/* ---------- グループ見出し ---------- */
.knowledge-category-title {
    font-size: 1.32em;
    font-weight: 700;
    color: #174767;
    margin: 3em 0 1.3em;
    padding-bottom: 0.5em;
    position: relative;
    border-bottom: 1px solid #e6e6e6;
}
.knowledge-category-title:first-of-type {
    margin-top: 0;
}
.knowledge-category-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 56px;
    border-radius: 2px;
}
.knowledge-category-title--blue::after   { background: #3E91CB; }
.knowledge-category-title--orange::after { background: #F28A32; }
.knowledge-category-title--gold::after   { background: #F5B93F; }
.knowledge-category-title--navy::after   { background: #174767; }
.knowledge-category-title--gray::after   { background: #b9bcc2; }

/* ---------- カードグリッド ---------- */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4em;
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

/* ---------- カード本体 ---------- */
.temp-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.6em 1.5em;
    border: 1px solid #edeef1;
    border-top: 4px solid #ccc;
    box-shadow: 0 2px 10px rgba(23, 71, 103, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.temp-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(23, 71, 103, 0.12);
}
.temp-item a {
    display: block;
    font-size: 1.02em;
    font-weight: 700;
    color: #174767;
    text-decoration: none;
    line-height: 1.5;
}
.temp-item a:hover {
    text-decoration: underline;
}
.temp-item__desc {
    margin: 0.6em 0 0;
    font-size: 0.86em;
    line-height: 1.7;
    color: #6b7280;
}

/* ---------- アクセントカラー（グループ別） ---------- */
.temp-item--blue   { border-top-color: #3E91CB; }
.temp-item--orange { border-top-color: #F28A32; }
.temp-item--gold   { border-top-color: #F5B93F; }
.temp-item--navy   { border-top-color: #174767; }
.temp-item--gray   { border-top-color: #b9bcc2; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
    .card-list {
        grid-template-columns: 1fr;
    }
    .knowledge-lead {
        padding: 1.3em 1.4em;
    }
}

/* =========================================================
   追加セクション（資料請求の流れ／ランキング／注意点／
   報酬相場／Q&A／全カテゴリ一覧）
   ========================================================= */

/* ---------- 共通：セクション導入文 ---------- */
.hub-section-lead {
    font-size: 0.95em;
    line-height: 1.8;
    color: #555;
    margin: 0 0 1.5em;
}
.hub-note {
    display: inline-block;
    margin-left: 0.5em;
    font-size: 0.82em;
    color: #999;
}

/* ---------- クイックナビ ---------- */
.hub-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin-bottom: 2.5em;
}
.hub-quicknav a {
    font-size: 0.85em;
    font-weight: 700;
    color: #174767;
    background: #F5F6F2;
    border-radius: 20px;
    padding: 0.5em 1.1em;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hub-quicknav a:hover {
    background: #EAF3FA;
}

/* ---------- 資料請求までの流れ ---------- */
.hub-flow {
    display: flex;
    align-items: stretch;
    gap: 1em;
    margin-bottom: 2.5em;
}
.hub-flow__step {
    flex: 1;
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 14px;
    padding: 1.4em 1.3em;
    text-align: center;
}
.hub-flow__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3E91CB;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.7em;
}
.hub-flow__title {
    font-weight: 700;
    color: #174767;
    margin: 0 0 0.5em;
    font-size: 0.98em;
}
.hub-flow__desc {
    font-size: 0.85em;
    line-height: 1.7;
    color: #666;
    margin: 0;
}
.hub-flow__arrow {
    display: flex;
    align-items: center;
    color: #cbd0d6;
    font-size: 1.3em;
}

/* ---------- 人気カテゴリランキング ---------- */
.hub-ranking {
    list-style: none;
    margin: 0 0 2.5em;
    padding: 0;
}
.hub-ranking__item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.9em 0;
    border-bottom: 1px solid #edeef1;
}
.hub-ranking__rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #174767;
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
}
.hub-ranking__item:nth-child(1) .hub-ranking__rank { background: #F5B93F; }
.hub-ranking__item:nth-child(2) .hub-ranking__rank { background: #F28A32; }
.hub-ranking__item:nth-child(3) .hub-ranking__rank { background: #3E91CB; }
.hub-ranking__link {
    flex-shrink: 0;
    width: 220px;
    font-weight: 700;
    color: #174767;
    text-decoration: none;
}
.hub-ranking__link:hover {
    text-decoration: underline;
}
.hub-ranking__bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #F5F6F2;
    position: relative;
    overflow: hidden;
}
.hub-ranking__bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--pct, 50%);
    background: linear-gradient(90deg, #3E91CB, #174767);
    border-radius: 4px;
}

/* ---------- はじめての注意点ガイド ---------- */
.hub-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2em;
    margin-bottom: 1em;
}
.hub-guide-card {
    background: #fff;
    border: 1px solid #edeef1;
    border-left: 4px solid #174767;
    border-radius: 10px;
    padding: 1.2em 1.4em;
}
.hub-guide-card__title {
    font-weight: 700;
    color: #174767;
    margin: 0 0 0.5em;
    font-size: 0.98em;
}
.hub-guide-card__body {
    font-size: 0.88em;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* ---------- 報酬相場テーブル ---------- */
.hub-reward-table-wrap {
    overflow-x: auto;
    margin-bottom: 1em;
}
.hub-reward-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}
.hub-reward-table th,
.hub-reward-table td {
    border: 1px solid #edeef1;
    padding: 0.8em 1em;
    text-align: left;
}
.hub-reward-table thead th {
    background: #174767;
    color: #fff;
    font-weight: 700;
}
.hub-reward-table tbody tr:nth-child(even) {
    background: #F5F6F2;
}

/* ---------- 全カテゴリ一覧（サイトマップ／二重アコーディオン） ---------- */
.hub-sitemap-tabs {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}
.hub-sitemap-axis {
    background: #F5F6F2;
    border-radius: 14px;
    overflow: hidden;
}
.hub-sitemap-axis__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1em 1.4em;
    cursor: pointer;
    list-style: none;
}
.hub-sitemap-axis__summary::-webkit-details-marker {
    display: none;
}
.hub-sitemap-axis__summary::after {
    content: "▾";
    color: #3E91CB;
    font-size: 0.9em;
    transition: transform 0.15s ease;
}
details[open] > .hub-sitemap-axis__summary::after {
    transform: rotate(180deg);
}
.hub-sitemap-axis__title {
    font-size: 1.1em;
    font-weight: 700;
    color: #174767;
}
.hub-sitemap-axis__count {
    font-size: 0.78em;
    color: #888;
    margin-left: auto;
    margin-right: 0.8em;
}
.hub-sitemap-axis > .hub-sitemap-groups {
    padding: 0 1.4em 1.4em;
}
.hub-sitemap-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9em;
    align-items: start;
}
.hub-sitemap-group {
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 10px;
    padding: 0;
}
.hub-sitemap-group__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 1.1em;
    cursor: pointer;
    list-style: none;
}
.hub-sitemap-group__summary::-webkit-details-marker {
    display: none;
}
.hub-sitemap-group__summary::after {
    content: "+";
    font-weight: 700;
    color: #3E91CB;
    margin-left: 0.5em;
}
details[open] > .hub-sitemap-group__summary::after {
    content: "–";
}
.hub-sitemap-group__parent {
    font-weight: 700;
    color: #174767;
    font-size: 0.95em;
}
.hub-sitemap-group__count {
    font-size: 0.75em;
    color: #999;
    margin-left: auto;
    margin-right: 0.6em;
}
.hub-sitemap-group__children {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0 1.1em 1em;
}
.hub-sitemap-chip {
    font-size: 0.8em;
    color: #555;
    background: #F5F6F2;
    border-radius: 14px;
    padding: 0.35em 0.9em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.hub-sitemap-chip:hover {
    background: #3E91CB;
    color: #fff;
}
.hub-sitemap-chip--all {
    background: #174767;
    color: #fff;
    font-weight: 700;
}
.hub-sitemap-chip--all:hover {
    background: #3E91CB;
}

/* ---------- 追加セクションのレスポンシブ ---------- */
@media (max-width: 600px) {
    .hub-flow {
        flex-direction: column;
    }
    .hub-flow__arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
    .hub-ranking__item {
        flex-wrap: wrap;
    }
    .hub-ranking__link {
        width: auto;
    }
    .hub-ranking__bar {
        width: 100%;
        order: 3;
    }
}
