/* Health management page (健康経営の取り組み). */

.hm-title-band-wrap {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 40px;
}

/* Header/breadcrumb/body share the same horizontal grid. */
.sn-breadcrumb-wrap,
.ab-body-layout {
    padding-right: 40px;
    padding-left: 40px;
}
.hm-title-band {
    display: inline-block;
    background: #4DB1AF;
    color: #fff;
    font-size: 26px; font-weight: 700;
    line-height: 1;
    padding: 18px 48px 18px 28px;
    margin: 0;
}

.hm-section { margin-bottom: 64px; }
.hm-section-title {
    display: flex; align-items: center; gap: 24px;
    font-size: 22px; font-weight: 700; color: #008F8D;
    text-align: center;
    margin: 0 0 28px;
}
.hm-section-title::before,
.hm-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #008F8D;
}

.hm-text { font-size: 15px; color: #333F50; line-height: 1.9; margin: 0 0 16px; }

.hm-badge-row {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 24px;
}
.hm-badge-img {
    flex: 0 0 230px;
    width: 230px;
    height: auto;
    object-fit: contain;
}
.hm-badge-img--wide {
    height: auto;
    max-height: 60px;
}
.hm-badge-text {
    flex: 1;
}

.hm-declaration-text {
    line-height: 2;
}

.hm-org-chart-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}
.hm-org-chart-img {
    max-width: 630px;
    width: 100%;
    height: auto;
    display: block;
}
.hm-org-desc {
    margin-top: 24px;
}

@media (max-width: 991px) {
    .hm-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 20px;
        padding-left: 20px;
    }
}
@media (max-width: 768px) {
    .hm-title-band { font-size: 20px; padding: 14px 32px 14px 20px; }
    .hm-section-title { font-size: 18px; gap: 14px; }
    .hm-badge-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hm-badge-img {
        flex: 0 0 auto;
    }
    .hm-org-chart-wrap {
        margin: 20px 0;
    }
}
@media (max-width: 480px) {
    .hm-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* Editor-only: Gutenberg block layout overrides inside wp-admin. */
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-body"],
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-titleband"],
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-breadcrumb"] {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.editor-styles-wrapper .wp-block[data-type="sunatec/hm-superior"],
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-tokowaka"],
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-declaration"],
.editor-styles-wrapper .wp-block[data-type="sunatec/hm-org"] {
    max-width: 100% !important;
    width: 100% !important;
}
