/* =========================================================
   人材育成計画策定支援 LP
   白ベース / 差し色: 緑(CTA) 赤(課題) 青(構造・信頼)
   ========================================================= */
:root {
    --hd-ink: #1a2733;
    --hd-muted: #5c6b7a;
    --hd-green: #15963c;
    --hd-green-d: #0f7a30;
    --hd-red: #dc3545;
    --hd-blue: #1d6fd2;
    --hd-blue-d: #14549f;
    --hd-line: #e3e9ef;
    --hd-bg-alt: #f5f8fb;
    --hd-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
body {
    font-family: var(--hd-font);
    color: var(--hd-ink);
    background: #fff;
    line-height: 1.85;
    letter-spacing: .01em;
}
img { max-width: 100%; }
em { font-style: normal; }

/* ===== Buttons ===== */
.hd-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--hd-green), var(--hd-green-d));
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    border: 0;
    border-radius: 999px;
    padding: 13px 30px;
    box-shadow: 0 8px 20px rgba(21, 150, 60, .32);
    transition: transform .15s, box-shadow .15s;
}
.hd-btn-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(21, 150, 60, .42);
}
.hd-btn-lg { padding: 17px 44px; font-size: 1.08rem; }
.hd-btn-sm { padding: 9px 20px; font-size: .88rem; }

/* ===== Header ===== */
.hd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hd-line);
    transition: box-shadow .2s;
}
.hd-header.is-scrolled { box-shadow: 0 4px 16px rgba(26, 39, 51, .08); }
.hd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.hd-logo { display: flex; align-items: center; gap: 10px; }
.hd-logo-img { height: 34px; width: auto; display: block; }
.hd-logo span {
    font-size: .72rem;
    font-weight: 700;
    color: var(--hd-blue);
    border: 1px solid var(--hd-blue);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}
@media (max-width: 400px) { .hd-logo span { display: none; } }

/* ===== First View ===== */
.hd-fv {
    padding: 64px 0 72px;
    background:
        radial-gradient(720px 360px at 88% -10%, rgba(29, 111, 210, .08), transparent 60%),
        radial-gradient(560px 300px at -5% 105%, rgba(21, 150, 60, .07), transparent 60%),
        #fff;
}
.hd-fv-badge { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.hd-fv-badge span { font-size: .85rem; font-weight: 700; color: var(--hd-green-d); }
.hd-fv-badge i { margin-right: 5px; }
.hd-fv-title {
    font-size: 2.55rem;
    font-weight: 900;
    line-height: 1.42;
    margin-bottom: 22px;
}
.hd-fv-title em {
    background: linear-gradient(transparent 62%, rgba(21, 150, 60, .22) 62%);
    padding: 0 2px;
}
.hd-fv-pains { list-style: none; padding: 0; margin: 0 0 14px; }
.hd-fv-pains li {
    position: relative;
    font-weight: 700;
    color: var(--hd-red);
    padding-left: 26px;
    margin-bottom: 6px;
}
.hd-fv-pains li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 2px;
    color: var(--hd-red);
    opacity: .85;
}
.hd-fv-lead { font-size: 1.05rem; margin-bottom: 26px; }
.hd-fv-lead strong { background: linear-gradient(transparent 62%, rgba(29, 111, 210, .18) 62%); }
.hd-fv-cta-note { font-size: .82rem; color: var(--hd-muted); margin: 10px 2px 0; }
.hd-fv-img { border-radius: 14px; box-shadow: 0 18px 44px rgba(26, 39, 51, .14); }

/* ===== Sections ===== */
.hd-section { padding: 78px 0; }
.hd-section-alt { background: var(--hd-bg-alt); }
.hd-narrow { max-width: 860px; }
.hd-eyebrow {
    text-align: center;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .24em;
    color: var(--hd-blue);
    margin-bottom: 10px;
}
.hd-eyebrow-light { color: #9fc4ef; }
.hd-h2 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 18px;
}
.hd-h2 em { background: linear-gradient(transparent 62%, rgba(21, 150, 60, .22) 62%); padding: 0 2px; }
.hd-h2-light { color: #fff; }
.hd-lead-center { text-align: center; color: var(--hd-muted); max-width: 720px; margin: 0 auto 34px; }
.hd-lead-center strong { color: var(--hd-ink); }

/* ===== 2. Pain cards ===== */
.hd-pain-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-top: 3px solid var(--hd-red);
    border-radius: 10px;
    padding: 18px 18px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(26, 39, 51, .04);
}
.hd-pain-card i { color: var(--hd-red); font-size: 1.1rem; margin-top: 5px; flex: none; }
.hd-pain-card p { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.7; }
.hd-pain-answer {
    position: relative;
    max-width: 780px;
    margin: 44px auto 0;
    padding-top: 34px;
    text-align: center;
}
.hd-pain-answer::before {
    content: "\f078"; /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hd-green);
    font-size: 1.2rem;
    opacity: .8;
}
.hd-pain-answer p {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 2.1;
    color: var(--hd-ink);
}
.hd-pain-answer strong {
    background: linear-gradient(transparent 62%, rgba(21, 150, 60, .22) 62%);
    padding: 0 2px;
    color: var(--hd-ink);
}
@media (max-width: 575px) {
    .hd-pain-answer p { font-size: 1rem; }
}

/* ===== 3. Flow (逆算図) ===== */
.hd-flow { max-width: 480px; margin: 0 auto; }
.hd-flow-item {
    background: #fff;
    border: 2px solid var(--hd-blue);
    color: var(--hd-blue-d);
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 3px 10px rgba(29, 111, 210, .08);
}
.hd-flow-item-last {
    background: linear-gradient(180deg, var(--hd-blue), var(--hd-blue-d));
    color: #fff;
    border-color: var(--hd-blue-d);
    font-size: 1.08rem;
    box-shadow: 0 10px 24px rgba(29, 111, 210, .3);
}
.hd-flow-arrow { text-align: center; color: var(--hd-blue); font-size: 1.2rem; padding: 4px 0; }

/* ===== 4. Features ===== */
.hd-feature {
    display: flex;
    gap: 22px;
    max-width: 860px;
    margin: 0 auto 26px;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 4px 16px rgba(26, 39, 51, .05);
}
.hd-feature-num {
    flex: none;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--hd-blue);
    line-height: 1;
    padding-top: 4px;
}
.hd-feature-body h3 { font-size: 1.18rem; font-weight: 900; margin-bottom: 8px; }
.hd-feature-body p { margin: 0; color: var(--hd-muted); }
.hd-feature-body strong { color: var(--hd-ink); }

/* ===== Tables ===== */
.hd-table { background: #fff; border: 1px solid var(--hd-line); margin: 0; }
.hd-table thead th {
    background: var(--hd-blue);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 10px 14px;
    white-space: nowrap;
}
.hd-table tbody th {
    background: #f0f5fb;
    color: var(--hd-blue-d);
    font-weight: 700;
    border: 1px solid var(--hd-line);
    padding: 10px 14px;
    white-space: nowrap;
}
.hd-table tbody td { border: 1px solid var(--hd-line); padding: 10px 14px; }
.hd-table-plan tbody td { font-size: .93rem; }

/* ===== CTA strip ===== */
.hd-cta-strip {
    background: linear-gradient(135deg, #f0f9f2, #e7f3ea);
    border-top: 1px solid #d6eadc;
    border-bottom: 1px solid #d6eadc;
    padding: 44px 0;
}
.hd-cta-strip-copy { font-size: 1.2rem; font-weight: 900; margin-bottom: 18px; }

/* ===== 5. Steps ===== */
.hd-steps { max-width: 760px; margin: 30px auto 0; position: relative; }
.hd-step {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
    align-items: flex-start;
}
.hd-step-badge {
    flex: none;
    background: linear-gradient(180deg, var(--hd-blue), var(--hd-blue-d));
    color: #fff;
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .05em;
    border-radius: 6px;
    padding: 5px 12px;
    margin-top: 3px;
    white-space: nowrap;
}
.hd-step-body h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.hd-step-body p { margin: 0; color: var(--hd-muted); font-size: .93rem; }
.hd-step-badge-green { background: linear-gradient(180deg, var(--hd-green), var(--hd-green-d)); }

/* ===== フレームワークカード ===== */
.hd-fw-card {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-top: 3px solid var(--hd-blue);
    border-radius: 12px;
    padding: 22px 22px 18px;
    height: 100%;
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
}
.hd-fw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hd-fw-head i { font-size: 1.25rem; color: var(--hd-blue); }
.hd-fw-head h3 { font-size: 1.05rem; font-weight: 900; margin: 0; }
.hd-fw-card p { margin: 0; font-size: .88rem; color: var(--hd-muted); line-height: 1.8; }

/* ===== 6. Deliverables ===== */
.hd-check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.hd-check-list li {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 8px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: .93rem;
}
.hd-check-list i { color: var(--hd-green); margin-right: 9px; }
.hd-shadow-img { border-radius: 12px; box-shadow: 0 14px 36px rgba(26, 39, 51, .14); }
.hd-img-caption { text-align: center; font-size: .78rem; color: var(--hd-muted); margin-top: 8px; }

/* ===== 8. Cycle ===== */
.hd-cycle {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.hd-cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--hd-green);
    border-radius: 12px;
    width: 150px;
    padding: 16px 10px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--hd-ink);
}
.hd-cycle-item i { font-size: 1.4rem; color: var(--hd-green); }
.hd-cycle-arrow { display: flex; align-items: center; color: var(--hd-green); font-size: 1.1rem; padding: 0 2px; }
.hd-strength-note {
    max-width: 720px;
    margin: 26px auto 0;
    text-align: center;
    background: #eef7f0;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: .95rem;
}

/* ===== 対応できる研修会社 ===== */
.hd-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    padding: 26px 22px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--hd-ink);
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
    transition: transform .15s, box-shadow .15s;
}
.hd-partner-card:hover {
    color: var(--hd-ink);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 39, 51, .12);
}
.hd-partner-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.hd-partner-logo img { max-height: 56px; max-width: 170px; object-fit: contain; }
.hd-partner-logo i { font-size: 2rem; color: #b9c5cf; }
.hd-partner-name { font-weight: 900; font-size: 1.02rem; margin-bottom: 6px; }
.hd-partner-tagline {
    font-size: .82rem;
    color: var(--hd-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hd-partner-link {
    margin-top: auto;
    font-size: .85rem;
    font-weight: 700;
    color: var(--hd-blue);
}
.hd-partner-more { font-weight: 700; color: var(--hd-blue); text-decoration: none; }
.hd-partner-more:hover { color: var(--hd-blue-d); text-decoration: underline; }

/* 縦並びリスト表示 */
.hd-partner-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hd-partner-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--hd-ink);
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
    transition: transform .15s, box-shadow .15s;
}
.hd-partner-row:hover {
    color: var(--hd-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 39, 51, .12);
}
.hd-partner-row-logo {
    flex: none;
    width: 120px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hd-partner-row-logo img { max-height: 56px; max-width: 120px; object-fit: contain; }
.hd-partner-row-logo i { font-size: 2rem; color: #b9c5cf; }
.hd-partner-row-body { flex: 1; min-width: 0; }
.hd-partner-row .hd-partner-name { margin-bottom: 2px; }
.hd-partner-row .hd-partner-tagline { margin-bottom: 0; }
.hd-partner-row .hd-partner-link { flex: none; margin-top: 0; white-space: nowrap; }
@media (max-width: 575px) {
    .hd-partner-row { flex-wrap: wrap; gap: 10px 16px; padding: 16px 18px; }
    .hd-partner-row-logo { width: 90px; height: 44px; justify-content: flex-start; }
    .hd-partner-row-logo img { max-height: 44px; max-width: 90px; }
    .hd-partner-row-body { flex: 1 1 calc(100% - 110px); }
    .hd-partner-row .hd-partner-link { margin-left: auto; }
}

/* ===== 9. Diagnosis ===== */
.hd-diagnosis { background: linear-gradient(150deg, #17324e, #1d4a78); color: #fff; }
.hd-diagnosis-lead { font-size: 1.05rem; color: #e7f0fa; margin-bottom: 18px; }
.hd-diagnosis-list { list-style: none; padding: 0; margin: 0; }
.hd-diagnosis-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-weight: 700;
}
.hd-diagnosis-list li span {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hd-green);
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 10. Flow cards ===== */
.hd-flow-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    padding: 26px 20px 20px;
    height: 100%;
    text-align: center;
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
}
.hd-flow-card-num {
    position: absolute;
    top: -12px;
    left: 16px;
    background: var(--hd-blue);
    color: #fff;
    font-weight: 900;
    font-size: .78rem;
    border-radius: 6px;
    padding: 3px 10px;
}
.hd-flow-card-icon { font-size: 1.6rem; color: var(--hd-blue); margin-bottom: 10px; }
.hd-flow-card h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: 6px; }
.hd-flow-card p { margin: 0; font-size: .87rem; color: var(--hd-muted); }
.hd-flow-note {
    text-align: center;
    font-weight: 700;
    color: var(--hd-green-d);
    margin: 26px 0 0;
}
.hd-flow-note i { margin-right: 4px; }

/* ===== 11. FAQ ===== */
.hd-faq .accordion-item { border: 1px solid var(--hd-line); border-radius: 10px !important; margin-bottom: 10px; overflow: hidden; }
.hd-faq .accordion-button {
    font-weight: 700;
    color: var(--hd-ink);
    background: #fff;
    padding: 16px 20px;
    font-size: .98rem;
}
.hd-faq .accordion-button:not(.collapsed) { color: var(--hd-blue-d); background: #f0f5fb; box-shadow: none; }
.hd-faq .accordion-button:focus { box-shadow: none; }
.hd-faq .accordion-body { color: var(--hd-muted); font-size: .93rem; padding: 16px 20px; }
.hd-faq-q, .hd-faq-a {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 900;
    font-size: .82rem;
    margin-right: 12px;
}
.hd-faq-q { background: var(--hd-blue); color: #fff; }
.hd-faq-a { background: var(--hd-green); color: #fff; float: left; margin-top: 2px; }

/* ===== 12. Final CTA / Form ===== */
.hd-final { padding: 84px 0; background: linear-gradient(180deg, #f5f8fb, #fff); }
.hd-final-title { text-align: center; font-size: 1.9rem; font-weight: 900; margin-bottom: 20px; }
.hd-final-lead { text-align: center; color: var(--hd-muted); margin-bottom: 8px; }
.hd-final-lead strong { color: var(--hd-ink); }
.hd-final-sub { text-align: center; font-weight: 700; margin-bottom: 34px; }
.hd-form-card {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-top: 4px solid var(--hd-green);
    border-radius: 14px;
    padding: 34px 34px 28px;
    box-shadow: 0 14px 40px rgba(26, 39, 51, .1);
}
.hd-form-title { font-size: 1.15rem; font-weight: 900; text-align: center; margin-bottom: 22px; }
.hd-form-title i { color: var(--hd-green); margin-right: 6px; }
.hd-form-card .form-label { font-weight: 700; font-size: .88rem; margin-bottom: 5px; }
.hd-req {
    background: var(--hd-red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: 2px;
}
.hd-form-card .form-control, .hd-form-card .form-select { border-color: #ccd6df; padding: 10px 14px; }
.hd-form-card .form-control:focus, .hd-form-card .form-select:focus {
    border-color: var(--hd-green);
    box-shadow: 0 0 0 .2rem rgba(21, 150, 60, .12);
}
.hd-form-note { text-align: center; font-size: .8rem; color: var(--hd-muted); margin: 12px 0 0; }
.hd-form-done { text-align: center; padding: 30px 10px 16px; }
.hd-form-done i { font-size: 3rem; color: var(--hd-green); margin-bottom: 14px; }
.hd-form-done-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.hd-form-done p:last-child { color: var(--hd-muted); font-size: .93rem; }

/* ===== Footer ===== */
.hd-footer {
    background: var(--hd-ink);
    color: #b9c5cf;
    text-align: center;
    font-size: .82rem;
    padding: 26px 0;
}
.hd-footer p { margin: 0; }
.hd-footer-logo { height: 26px; width: auto; margin-bottom: 10px; opacity: .9; }

/* ===== Sticky Mobile CTA ===== */
.hd-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--hd-line);
}

/* ===== Sticky Side CTA (PC/タブレット・右端縦書き) ===== */
.hd-side-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, var(--hd-green), var(--hd-green-d));
    color: #fff;
    text-decoration: none;
    padding: 1rem .75rem;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, .2);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    pointer-events: none;
}
.hd-side-cta.visible {
    opacity: 1;
    pointer-events: auto;
}
.hd-side-cta:hover {
    color: #fff;
    text-decoration: none;
    padding-right: 1rem;
    box-shadow: -4px 2px 20px rgba(21, 150, 60, .45);
}
.hd-side-cta-label {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.hd-side-cta-sub {
    font-size: .7rem;
    opacity: .9;
}
.hd-side-cta-sub i { font-size: .6rem; }
@media (max-width: 575px) {
    .hd-side-cta { display: none; } /* SPは下部固定CTA(.hd-sticky-cta)を使用 */
}

/* ===== Scroll animation ===== */
.hd-animate { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hd-animate.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hd-fv-title { font-size: 2rem; }
}
@media (max-width: 575px) {
    .hd-fv { padding: 40px 0 48px; }
    .hd-fv-title { font-size: 1.62rem; }
    .hd-section { padding: 56px 0; }
    .hd-h2 { font-size: 1.42rem; }
    .hd-btn-lg { width: 100%; padding: 16px 20px; font-size: 1rem; }
    .hd-feature { flex-direction: column; gap: 8px; padding: 22px 20px; }
    .hd-check-list { grid-template-columns: 1fr; }
    .hd-cycle-item { width: calc(50% - 20px); }
    .hd-cycle-arrow { display: none; }
    .hd-form-card { padding: 24px 18px 20px; }
    .hd-final-title { font-size: 1.45rem; }
    body { padding-bottom: 74px; }
}

/* ===== HOW TO 立て方5ステップ（詳細カード） ===== */
.hd-howto-steps { max-width: 820px; margin: 30px auto 0; }
.hd-howto-step {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 14px;
    padding: 26px 28px 22px;
    box-shadow: 0 4px 16px rgba(26, 39, 51, .05);
}
.hd-howto-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.hd-howto-step-badge {
    background: linear-gradient(180deg, var(--hd-green), var(--hd-green-d));
    color: #fff;
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .05em;
    border-radius: 6px;
    padding: 5px 12px;
    white-space: nowrap;
}
.hd-howto-step-title { font-size: 1.15rem; font-weight: 900; margin: 0; }
.hd-howto-step-desc { color: var(--hd-muted); font-size: .93rem; margin-bottom: 14px; }
.hd-howto-step-tasks {
    background: #f3f9f4;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.hd-howto-step-tasks-label {
    font-size: .8rem;
    font-weight: 900;
    color: var(--hd-green-d);
    margin: 0 0 8px;
}
.hd-howto-step-tasks-label i { margin-right: 5px; }
.hd-howto-step-tasks ul { list-style: none; margin: 0; padding: 0; }
.hd-howto-step-tasks li {
    position: relative;
    font-size: .88rem;
    line-height: 1.8;
    padding-left: 22px;
    margin-bottom: 4px;
}
.hd-howto-step-tasks li:last-child { margin-bottom: 0; }
.hd-howto-step-tasks li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 2px;
    top: 3px;
    color: var(--hd-green);
    font-size: .72rem;
}
.hd-howto-step-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px dashed var(--hd-line);
    padding-top: 12px;
}
.hd-howto-step-meta { font-size: .84rem; color: var(--hd-muted); line-height: 1.7; }
.hd-howto-step-meta strong { color: var(--hd-ink); }
.hd-howto-step-meta i { margin-right: 5px; color: var(--hd-muted); }
.hd-howto-step-output i, .hd-howto-step-output strong { color: var(--hd-green-d); }
.hd-howto-step-point i, .hd-howto-step-point strong { color: #b8860b; }
.hd-howto-step-arrow {
    text-align: center;
    color: var(--hd-green);
    font-size: 1.25rem;
    padding: 6px 0;
}
@media (max-width: 575px) {
    .hd-howto-step { padding: 20px 16px 18px; }
    .hd-howto-step-title { font-size: 1.02rem; }
}

/* ===== 支援会社の選び方 ===== */
.hd-choose-card { border-top-color: var(--hd-green); }
.hd-choose-num {
    flex: none;
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, var(--hd-green), var(--hd-green-d));
    color: #fff;
    font-size: .85rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PARTNERS 比較表 ===== */
.hd-compare-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hd-ink);
    margin: 48px 0 6px;
}
.hd-compare-note {
    text-align: center;
    font-size: .85rem;
    color: var(--hd-muted);
    margin-bottom: 18px;
}
.hd-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(26, 39, 51, .05);
}
.hd-compare-table {
    width: max-content;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
    color: var(--hd-ink);
    margin-bottom: 0;
}
.hd-compare-table thead th:not(.hd-compare-head),
.hd-compare-table td {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
}
.hd-compare-table th,
.hd-compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hd-line);
    border-left: 1px solid var(--hd-line);
    vertical-align: top;
    text-align: left;
    line-height: 1.7;
}
.hd-compare-table tr > *:first-child { border-left: none; }
.hd-compare-table tbody tr:last-child th,
.hd-compare-table tbody tr:last-child td { border-bottom: none; }
.hd-compare-table thead th {
    background: var(--hd-bg-alt);
    text-align: center;
    vertical-align: middle;
}
.hd-compare-head {
    background: var(--hd-bg-alt);
    font-weight: 700;
    white-space: nowrap;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 4px rgba(26, 39, 51, .06);
}
.hd-compare-logo {
    display: block;
    max-height: 44px;
    max-width: 110px;
    object-fit: contain;
    margin: 0 auto 6px;
}
.hd-compare-company {
    display: block;
    font-weight: 700;
    font-size: .9rem;
}
.hd-compare-table td strong { color: var(--hd-green-d); }
.hd-compare-sub {
    display: block;
    font-size: .8rem;
    color: var(--hd-muted);
    margin-top: 2px;
}
.hd-compare-text { font-size: .85rem; }
.hd-compare-empty { color: #b9c5cf; }
.hd-compare-list {
    margin: 0;
    padding-left: 1.2em;
    font-size: .85rem;
}
.hd-compare-list li { margin-bottom: 2px; }
.hd-compare-cta-cell { text-align: center; vertical-align: middle; }
.hd-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, var(--hd-blue), var(--hd-blue-d));
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 18px;
    white-space: nowrap;
}
.hd-compare-btn:hover { color: #fff; filter: brightness(1.08); }
.hd-compare-group-head {
    background: #e9f2ec;
    color: var(--hd-green-d);
    font-size: .85rem;
}
.hd-compare-group td { background: #e9f2ec; }
.hd-compare-subhead {
    font-weight: 600;
    font-size: .85rem;
    padding-left: 24px;
}
.hd-compare-company-link {
    display: block;
    color: var(--hd-ink);
    text-decoration: none;
}
.hd-compare-company-link:hover { color: var(--hd-blue); }
.hd-compare-company-link:hover .hd-compare-company { text-decoration: underline; }
