/* ヘルプセンター トップ（/howto）。guide.css の上に重ねて使う。 */
.guide.guide-hub { max-width: 1040px; }

.hub-jump { margin: 0 0 40px; }
.hub-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hub-jump a { display: inline-block; padding: 8px 16px; border: 1px solid var(--g-line); border-radius: 999px; background: #fff; font-size: 14px; text-decoration: none; }
.hub-jump a:hover { border-color: #9fb87a; }

.hub-section { margin: 0 0 56px; scroll-margin-top: 90px; }
.hub-section > h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.hub-section-lead { margin: 0 0 18px; color: var(--g-muted); font-size: 15px; }

/* はじめての方へ */
.hub-start { padding: 28px 28px 24px; border-radius: 18px; background: var(--g-soft); border: 1px solid var(--g-line); }
.hub-start-label { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px; background: var(--g-lime); color: var(--g-ink); font-size: 13px; font-weight: 700; }
.hub-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.hub-steps li { min-width: 0; }
.guide .hub-steps a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--g-line); border-radius: 14px; background: #fff; color: var(--g-ink); text-decoration: none; }
.hub-steps a:hover { border-color: #799d33; box-shadow: 0 8px 24px #14242612; }
.hub-step-num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--g-ink); color: #fff; font-size: 16px; font-weight: 700; }
.hub-step-title { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 800; line-height: 1.5; }
.hub-step-desc { display: block; color: var(--g-muted); font-size: 14px; font-weight: 400; line-height: 1.7; }
.hub-start-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--g-line); font-size: 15px; color: var(--g-muted); }

/* カテゴリ別カード */
.hub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hub-cards li { min-width: 0; }
.guide .hub-cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--g-line); border-radius: 12px; background: #fff; color: var(--g-ink); text-decoration: none; }
.hub-cards a:hover { border-color: #9fb87a; }
.hub-card-title { display: block; margin-bottom: 2px; color: #31584a; font-size: 16px; font-weight: 700; line-height: 1.55; }
.hub-cards a:hover .hub-card-title { color: var(--g-ink); }
.hub-card-desc { display: block; color: var(--g-muted); font-size: 14px; font-weight: 400; line-height: 1.7; }
.hub-card-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--g-soft); border: 1px solid var(--g-line); color: var(--g-muted); font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* よくある質問・お問い合わせ */
.hub-faq { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 24px; border: 1px solid var(--g-line); border-radius: 14px; background: #fff; }
.hub-faq p { margin: 0; color: var(--g-muted); }
.hub-contact { padding: 24px; border-radius: 14px; background: #31584a; color: #fff; }
.hub-contact h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.hub-contact p { margin: 0 0 16px; color: #e3ece0; font-size: 15px; }
.hub-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide .hub-btn { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.guide .hub-btn-primary { background: var(--g-lime); color: var(--g-ink); }
.guide .hub-btn-primary:hover { background: #e2f6ae; color: var(--g-ink); }
.guide .hub-btn-outline { border: 1px solid #ffffff80; color: #fff; }
.guide .hub-btn-outline:hover { border-color: #fff; color: #fff; }
.guide .hub-contact a:focus-visible { outline-color: var(--g-lime); }
.hub-related { margin: 20px 0 0; font-size: 14px; color: var(--g-muted); }
.hub-related a { font-weight: 400; }
.hub-related a + a::before { content: "／"; display: inline-block; margin: 0 8px; color: var(--g-line); }

@media (max-width: 900px) {
    .hub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hub-start { padding: 20px 16px; }
    .hub-steps, .hub-cards { grid-template-columns: 1fr; }
    .guide .hub-steps a { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 0 12px; padding: 14px 16px; }
    .hub-step-num { flex: none; width: 30px; height: 30px; margin: 2px 0 0; font-size: 15px; }
    .hub-step-body { flex: 1; min-width: 0; }
    .hub-faq, .hub-contact { padding: 18px 16px; }
}
