/* Business Manager visa specific overrides on top of engineer-specialist-visa.css.
   Unique components: October 2025 reform callout, 2-profile cards (経営 / 管理),
   the 5 core requirements box. */


/* === Wider TOC: BM has 10 items including the prominent "2025 reform" flag.
   Allow it to span up to 90% of the viewport so the items don't wrap on
   typical desktop widths. === */
.gj-toc-inner {
    max-width: min(90vw, 1700px);
}


/* === October 2025 Reform section === */
.bmv-reform-section {
    background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
    border-top: 4px solid #f59e0b;
    padding-top: 24px;
}

.bmv-reform-eyebrow {
    color: #c2410c !important;
    font-weight: 800;
}

/* TOC link with subtle "new" treatment */
.gj-toc-link.gj-toc-link-flag {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 800;
}
.gj-toc-link.gj-toc-link-flag:hover {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,158,11,.30);
    border-color: #f59e0b;
}

.bmv-reform-callout {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0 28px;
}

.bmv-reform-callout-lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

.bmv-reform-callout-warning {
    margin: 0;
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.55;
}
.bmv-reform-callout-warning a {
    color: #c2410c;
    text-decoration: underline;
    font-weight: 700;
}

/* Before/after change cards */
.bmv-reform-changes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 32px;
}

.bmv-reform-change {
    padding: 18px 22px 16px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.03);
}

.bmv-reform-change-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #c2410c;
}

.bmv-reform-change-pair {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.bmv-reform-change-before,
.bmv-reform-change-after {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.bmv-reform-change-before {
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-color: #9ca3af;
}
.bmv-reform-change-before span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
    text-decoration: none;
}

.bmv-reform-change-after {
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fde68a;
}
.bmv-reform-change-after span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #c2410c;
    margin-bottom: 2px;
}

.bmv-reform-change-arrow {
    flex: 0 0 auto;
    font-size: 22px;
    color: #f59e0b;
    font-weight: 900;
}

.bmv-reform-change-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Grace-period numbered timeline */
.bmv-reform-grace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
}

.bmv-reform-grace-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px 14px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 10px;
}

.bmv-reform-grace-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.bmv-reform-grace-body h4 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.bmv-reform-grace-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.55;
}

.bmv-reform-source {
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-default);
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 720px) {
    .bmv-reform-change-pair { gap: 8px; }
    .bmv-reform-change-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
}


/* === 2-profile cards (経営 / 管理) === */
.bmv-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 28px 0 32px;
}

.bmv-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bmv-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 16px 40px rgba(0,113,235,.12);
}

.bmv-profile-head {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-default);
}

.bmv-profile-label {
    flex-shrink: 0;
    width: 72px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.bmv-profile-keiei .bmv-profile-label {
    background: linear-gradient(135deg, #003e82 0%, #0071eb 100%);
    box-shadow: 0 4px 12px rgba(0,113,235,.30);
}
.bmv-profile-kanri .bmv-profile-label {
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
    box-shadow: 0 4px 12px rgba(0,137,123,.30);
}

.bmv-profile-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bmv-profile-name {
    margin: 2px 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.bmv-profile-en {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.bmv-profile-text {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.55;
}

.bmv-profile-section-title {
    margin: 4px 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.bmv-profile ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--text-main);
    line-height: 1.55;
}
.bmv-profile ul li { margin-bottom: 4px; }

.bmv-profile p:last-child {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 720px) {
    .bmv-profiles { grid-template-columns: 1fr; gap: 14px; }
    .bmv-profile { padding: 18px 16px 16px; }
    .bmv-profile-label { width: 56px; height: 48px; font-size: 18px; }
}


/* === Core requirements (3 numbered checkboxes) === */
.bmv-requirements {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 32px;
}

.bmv-requirement {
    padding: 20px 22px 18px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.03);
}

.bmv-requirement-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.bmv-requirement-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.bmv-requirement-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.bmv-requirement-text {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.6;
}

.bmv-requirement-text strong {
    color: var(--blue);
    font-weight: 800;
}

@media (max-width: 720px) {
    .bmv-requirement { padding: 16px 16px 14px; }
    .bmv-requirement-num { width: 30px; height: 30px; font-size: 14px; }
    .bmv-requirement-title { font-size: 14.5px; }
}
