/* Home release 1. Loaded after the legacy bundle; all rules are scoped. */
/* clip prevents horizontal overflow without creating a sticky scroll container. */
body.mpg-home-page:not(.mm-wrapper_opened) { overflow-x: clip; overflow-y: visible; }
.mpg-home-header {
    --mpg-red: #ce2028;
    --mpg-ink: #20252b;
    position: sticky;
    top: 0;
    z-index: 1001;
    background: #fff;
    border-bottom: 1px solid #e9eaec;
    box-shadow: 0 3px 16px rgb(15 20 25 / 4%);
}
.mpg-home-header .all_header {
    border: 0;
    transition: none;
}
.mpg-home-header .all_header::after,
.mpg-home-header .top_info::after { display: none; }
.mpg-home-header .all_header.fix_head {
    position: relative !important;
    top: auto;
    animation: none !important;
    transform: none;
}
.mpg-home-header .menu_pc {
    max-width: 1280px;
    width: calc(100% - 64px);
    margin: 0 auto;
    align-items: center;
    flex-wrap: nowrap;
}
.mpg-home-header .left_header {
    width: 158px;
    flex: 0 0 158px;
    padding: 0 24px 0 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.mpg-home-header .logo-head,
.mpg-home-header .fix_head .logo-head {
    width: 112px;
    display: block;
    padding: 8px 0;
}
.mpg-home-header .logo-head img { display: block; width: 112px; height: auto; }
.mpg-home-header .right_header { min-width: 0; width: auto; flex: 1; padding: 0; }
.mpg-home-header .top_info,
.mpg-home-header .fix_head .top_info {
    display: flex;
    height: 37px;
    padding: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    gap: 14px;
    z-index: 1;
}
.mpg-home-header .mpg-header-note {
    color: #777f87;
    font-size: 10px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}
.mpg-home-header .list_info { width: auto; margin-left: auto; align-items: center; gap: 20px; }
.mpg-home-header .top_info p { color: #535b64; font-size: 11px; margin: 0 !important; }
.mpg-home-header .info-head span { font-family: svnr, sans-serif; }
.mpg-home-header .info-head i { color: var(--mpg-red); margin-right: 5px; }
.mpg-home-header .info-head a { color: inherit; text-decoration: none; }
.mpg-home-header .info-head a:hover { color: var(--mpg-red); }
.mpg-home-header .mxh_header { display: none; }
.mpg-home-header .bottom_menu { display: flex; align-items: center; gap: 14px; }
.mpg-home-header .w-menu { flex: 1; min-width: 0; }
.mpg-home-header .menu { z-index: 20; }
.mpg-home-header .menu ul.menu-main { justify-content: space-between; align-items: center !important; }
.mpg-home-header .menu ul.menu-main > .menu-line { display: none; }
.mpg-home-header .menu > ul.menu-main > li > a {
    min-height: 63px;
    padding: 0 9px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-family: svnsb, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--mpg-ink);
}
body .mpg-home-header .menu > ul.menu-main > li:first-child > a {
    width: 38px !important;
    min-width: 38px !important;
    height: 63px !important;
    min-height: 63px !important;
    padding: 0 8px !important;
}
body .mpg-home-header .menu > ul.menu-main > li > a::after {
    height: 2px;
    left: 9px !important;
    right: 9px !important;
    bottom: 10px !important;
    background: var(--mpg-red);
    transform: scaleX(0);
}
.mpg-home-header .menu > ul.menu-main > li > a.active,
.mpg-home-header .menu > ul.menu-main > li:hover > a,
.mpg-home-header .menu > ul.menu-main > li:focus-within > a {
    color: var(--mpg-red) !important;
    background: transparent !important;
}
body .mpg-home-header .menu > ul.menu-main > li > a.active::after,
body .mpg-home-header .menu > ul.menu-main > li:hover > a::after,
body .mpg-home-header .menu > ul.menu-main > li:focus-within > a::after { opacity: 1; transform: scaleX(1); }
.mpg-home-header .menu ul li ul {
    min-width: 250px;
    width: 250px;
    border: 1px solid #e8eaed;
    border-top: 2px solid var(--mpg-red);
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 16px 35px rgb(20 25 30 / 12%);
    padding: 7px 0;
}
.mpg-home-header .menu > ul.menu-main > li > ul { top: 100%; }
.mpg-home-header .menu > ul.menu-main > li > ul::before { display: none; }
.mpg-home-header .menu ul li ul li { margin: 0 12px; padding: 0; }
.mpg-home-header .menu ul li ul li a {
    min-height: 43px;
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.5;
    font-family: svnr, sans-serif;
    letter-spacing: 0;
    color: #30363d;
    text-transform: none;
}
.mpg-home-header .menu ul li ul li a::before { display: none; }
.mpg-home-header .menu ul li ul li:hover > a,
.mpg-home-header .menu ul li ul li:focus-within > a { padding-left: 12px; color: var(--mpg-red) !important; background: #faf4f4; }
.mpg-home-header .menu ul li:focus-within > ul { visibility: visible; opacity: 1; transform: none; }
.mpg-home-header .menu ul li ul li ul { left: 100%; top: -8px; }
.mpg-home-header .menu > ul.menu-main > li:nth-last-child(3) > ul { right: 0; left: auto; }
.mpg-home-header .search-desktop { margin: 0; }
.mpg-home-header .search-desktop .icon-search {
    width: 36px;
    height: 40px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40474f;
    background: transparent;
    font-size: 16px;
    border: 0;
}
.mpg-home-header .search-desktop .search-grid { top: calc(100% + 12px); right: 0; }
.mpg-home-header .mpg-header-cta,
.mpg-home-header .mpg-mobile-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 16px;
    background: var(--mpg-red);
    color: #fff;
    font-family: svnsb, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    border: 1px solid var(--mpg-red);
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}
.mpg-home-header .mpg-header-cta:hover,
.mpg-home-header .mpg-mobile-call:hover { background: #ac1820; }
.mpg-home-header a:focus-visible,
.mpg-home-header [role="button"]:focus-visible { outline: 2px solid #ce2028; outline-offset: 3px; }

/* Banner: its first image and all copy remain visible without JavaScript. */
.mpg-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #20272e;
    color: #fff;
    font-family: svnr, sans-serif;
}
.mpg-hero-media,
.mpg-hero-slide,
.mpg-hero-slide picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.mpg-hero-slide[hidden], .mpg-hero-controls[hidden] { display: none !important; }
.mpg-hero-slide picture { display: block; }
.mpg-hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mpg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(12 18 24 / 77%) 0%, rgb(12 18 24 / 56%) 34%, rgb(12 18 24 / 9%) 72%), linear-gradient(0deg, rgb(12 18 24 / 60%), transparent 32%);
}
.mpg-hero-inner,
.mpg-hero-bottom { position: relative; z-index: 2; max-width: 1280px; width: calc(100% - 64px); margin: 0 auto; }
.mpg-hero-inner { min-height: clamp(500px, 41vw, 650px); display: flex; align-items: center; padding: 55px 0 90px; pointer-events: none; }
.mpg-hero-content { max-width: 690px; }
.mpg-hero-eyebrow { display: flex; align-items: center; gap: 12px; font-family: svnsb, sans-serif; font-size: 11px; letter-spacing: 2.8px; line-height: 1.5; margin: 0 0 25px; }
.mpg-hero-eyebrow > span { display: block; width: 28px; height: 2px; background: #e74c50; }
.mpg-hero #mpg-hero-title { margin: 0; color: #fff; font-family: svnsb, sans-serif; font-size: clamp(34px, 3.3vw, 49px); font-weight: 600; line-height: 1.32; letter-spacing: -.8px; }
.mpg-hero-description { margin: 23px 0 0; color: #e1e5e9; font-size: 14px; line-height: 1.9; }
.mpg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; pointer-events: auto; }
.mpg-hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 49px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; font-family: svnsb, sans-serif; font-size: 12px; line-height: 1.5; text-decoration: none !important; transition: background .2s ease, border-color .2s ease; }
.mpg-hero-button span { font-family: sans-serif; font-size: 18px; line-height: 1; }
.mpg-hero-button-primary { background: #ce2028; color: #fff; border-color: #ce2028; }
.mpg-hero-button-primary:hover { background: #ad1820; border-color: #ad1820; color: #fff; }
.mpg-hero-button-secondary { color: #fff; background: rgb(15 21 27 / 15%); border-color: rgb(255 255 255 / 55%); }
.mpg-hero-button-secondary:hover { background: #fff; color: #20252b; border-color: #fff; }
.mpg-hero-signature { display: flex; gap: 8px; align-items: center; margin-top: 26px; font-size: 9px; letter-spacing: 1.2px; color: #d4d9de; line-height: 1.7; }
.mpg-hero-signature > span { width: 4px; height: 4px; border-radius: 50%; background: #e74c50; flex: 0 0 4px; }
.mpg-hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-top: 1px solid rgb(255 255 255 / 22%); }
.mpg-hero-discipline { font-size: 9px; font-family: svnsb, sans-serif; letter-spacing: 1.4px; line-height: 1.8; color: #e0e4e7; }
.mpg-hero-discipline b { display: inline-block; margin: 0 14px; color: #f16b6e; font-weight: 400; }
.mpg-hero-controls { display: flex; align-items: center; gap: 15px; }
.mpg-hero-controls button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: transparent; border: 1px solid rgb(255 255 255 / 45%); color: #fff; border-radius: 50%; font: 19px sans-serif; cursor: pointer; }
.mpg-hero-controls button:hover { background: #fff; color: #20252b; }
.mpg-hero-controls [data-mpg-count] { font-size: 11px; font-variant-numeric: tabular-nums; }
.mpg-hero-detail { position: absolute; right: max(32px, calc((100% - 1280px) / 2)); bottom: 90px; z-index: 3; color: #fff; font-size: 11px; text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / 55%); }
.mpg-hero-detail span { margin-left: 18px; }
.mpg-hero-detail:hover { color: #fff; border-color: #fff; }
.mpg-hero a:focus-visible, .mpg-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#mpg-home-projects { scroll-margin-top: 122px; }

@media (min-width: 1400px) {
    .mpg-home-header .menu > ul.menu-main > li > a { font-size: 13px !important; }
    .mpg-home-header .mpg-header-cta { font-size: 12px; padding: 12px 19px; }
}
@media (min-width: 1200px) {
    .mpg-home-header .menu_pc { display: flex; }
    .mpg-home-header .menu_moblie { display: none; }
}
@media (max-width: 1199px) {
    .mpg-home-header .menu_pc { display: none; }
    .mpg-home-header .menu_moblie,
    .mpg-home-header .menu_moblie.fix_head {
        position: relative !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 84px;
        width: calc(100% - 48px);
        margin: 0 auto;
        padding: 0;
        gap: 16px;
    }
    .mpg-home-header .logo_mmenu,
    .mpg-home-header .menu_moblie.fix_head .logo_mmenu { display: block; padding: 8px 0; text-align: left; }
    .mpg-home-header .logo-mm { display: block; }
    .mpg-home-header .logo-mm img { width: 91px; height: auto; display: block; }
    .mpg-home-header .menu-res { display: block; padding: 0; margin: 0; background: transparent; width: auto; }
    .mpg-home-header .menu-bar-res { height: auto; padding: 0; background: transparent; gap: 12px; }
    .mpg-home-header #hamburger { width: 42px; height: 42px; margin: 0; padding: 0; color: #20252b; border: 1px solid #e3e6e9; border-radius: 3px; }
    .mpg-home-header #hamburger span,
    .mpg-home-header #hamburger::before,
    .mpg-home-header #hamburger::after { width: 20px; left: 10px; background: #20252b; }
    .mpg-home-header #hamburger::before { top: 13px; }
    .mpg-home-header #hamburger span { top: 19px; }
    .mpg-home-header #hamburger::after { top: 25px; }
    .mpg-home-header .search-res { margin: 0; }
    .mpg-home-header .search-res .icon-search { width: 40px; height: 42px; margin: 0; padding: 0; border-radius: 3px; border: 1px solid #e3e6e9; background: #fff; color: #20252b; display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .mpg-home-header .search-res .search-grid { position: absolute; width: min(330px, calc(100vw - 48px)); top: calc(100% + 12px); right: 0; }
    .mpg-home-header .mpg-mobile-call { margin-left: auto; padding: 11px 16px; font-size: 12px; }
    nav.mpg-home-mobile-nav:not(.mm-menu) { display: none; }
    nav.mpg-home-mobile-nav.mm-menu { background: #f4f5f6; }
    .mpg-hero-inner { min-height: 535px; }
    .mpg-hero #mpg-hero-title { font-size: 39px; }
    .mpg-hero-content { max-width: 600px; }
    .mpg-hero-detail { bottom: 78px; }
    #mpg-home-projects { scroll-margin-top: 105px; }
}
@media (max-width: 767px) {
    .mpg-home-header .menu_moblie, .mpg-home-header .menu_moblie.fix_head { width: calc(100% - 32px); min-height: 76px; gap: 10px; }
    .mpg-home-header .logo-mm img { width: 80px; }
    .mpg-home-header .mpg-mobile-call { padding: 10px 12px; gap: 7px; font-size: 11px; }
    .mpg-home-header .menu-bar-res { gap: 8px; }
    .mpg-hero-inner, .mpg-hero-bottom { width: calc(100% - 40px); }
    .mpg-hero-media { height: 245px; }
    .mpg-hero-slide img { object-position: 64% center; }
    .mpg-hero::after { background: linear-gradient(180deg, rgb(32 39 46 / 0%) 0, rgb(32 39 46 / 5%) 125px, #20272e 242px); }
    .mpg-hero-inner { min-height: 0; padding: 216px 0 92px; }
    .mpg-hero-content { max-width: none; width: 100%; }
    .mpg-hero-eyebrow { font-size: 10px; letter-spacing: 2px; gap: 10px; margin-bottom: 17px; }
    .mpg-hero #mpg-hero-title { font-size: clamp(25px, 6.3vw, 38px); line-height: 1.4; letter-spacing: -.5px; }
    .mpg-hero-description { font-size: 12px; line-height: 1.85; margin-top: 17px; }
    .mpg-hero-description br { display: none; }
    .mpg-hero-actions { margin-top: 24px; gap: 10px; }
    .mpg-hero-button { min-height: 46px; padding: 12px 15px; gap: 16px; font-size: 11px; }
    .mpg-hero-signature { margin-top: 20px; font-size: 8px; letter-spacing: .8px; }
    .mpg-hero-bottom { min-height: 59px; }
    .mpg-hero-discipline { font-size: 8px; letter-spacing: .7px; }
    .mpg-hero-discipline b { margin: 0 7px; }
    .mpg-hero-controls { gap: 8px; }
    .mpg-hero-controls button { width: 32px; height: 32px; font-size: 17px; }
    .mpg-hero-controls [data-mpg-count] { font-size: 9px; }
    .mpg-hero:has(.mpg-hero-controls) .mpg-hero-discipline { max-width: 155px; }
    .mpg-hero-detail { right: 20px; top: 18px; bottom: auto; font-size: 10px; padding: 6px 10px; background: rgb(20 26 33 / 65%); border: 1px solid rgb(255 255 255 / 40%); border-radius: 3px; }
}
@media (max-width: 359px) {
    .mpg-home-header .mpg-mobile-call { font-size: 10px; padding: 10px; }
    .mpg-home-header .mpg-mobile-call i { display: none; }
    .mpg-hero-actions { gap: 8px; }
    .mpg-hero-button { padding: 11px 12px; gap: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpg-home-header *, .mpg-hero * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
