.sfp-company-preview {
    background: #eef4f1;
    color: #162e46;
    padding: clamp(44px, 6vw, 84px) 0;
}
.sfp-company-preview .sfp-company-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sfp-home .sfp-company-preview #sfp-company-title {
    max-width: 23ch;
    color: #162e46;
    margin: 0 0 clamp(20px, 3vw, 34px);
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.09;
    text-wrap: balance;
}
.sfp-company-preview .sfp-company-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(14px, 2vw, 26px); }
.sfp-company-preview .sfp-company-card {
    margin: 0; padding: clamp(18px, 2.5vw, 32px);
    background: #fff; border-radius: 20px; display: flex; flex-direction: column; min-width: 0;
}
.sfp-company-preview figcaption { margin: 0 0 18px; padding: 0; text-align: start; }
.sfp-company-preview .sfp-company-audience { font-size: .78rem; font-weight: 700; color: #216650; letter-spacing: .045em; }
.sfp-company-preview h3 { font-size: clamp(23px, 2.2vw, 32px); color: #162e46; line-height: 1.15; margin: 5px 0 9px; }
.sfp-company-preview .sfp-company-stage {
    flex: 1; margin-top: 0; padding: 14px 8px 4px; display: grid;
    grid-template-rows: minmax(0, 1fr) auto; align-items: start; justify-items: center; gap: 4px;
    border-radius: 14px; background: #f6f3ec;
}
.sfp-company-card:nth-child(2) .sfp-company-stage { background: #eaf0f6; }
.sfp-company-preview .sfp-phone-case {
    width: min(100%, 198px); aspect-ratio: 393 / 820; padding: 5px; box-sizing: border-box;
    border: 1px solid #4b5359; border-radius: 31px; background: #151b21;
    box-shadow: inset 0 0 0 1px #8c969e, 0 5px 12px rgb(22 46 70 / .15);
}
.sfp-company-preview .sfp-phone-display {
    height: 100%; min-height: 0; overflow: hidden; border-radius: 24px;
    display: grid; grid-template-rows: 16px minmax(0, 1fr) 8px; background: #142942;
}
.sfp-phone-speaker, .sfp-phone-chin { display: grid; place-items: center; }
.sfp-phone-speaker::before { content: ''; width: 38px; height: 9px; border-radius: 8px; background: #090e14; }
.sfp-phone-chin::after { content: ''; width: 43px; height: 2px; border-radius: 2px; background: #c7d1d8; }
.sfp-company-preview .sfp-phone-scroll {
    overflow: auto; min-height: 0; background: white; scrollbar-width: thin;
    scrollbar-color: #a7b1ba transparent;
}
.sfp-home .sfp-company-preview .sfp-phone-scroll img {
    display: block; width: 100%; max-width: none; height: auto !important; max-height: none !important;
    margin: 0; border: 0; border-radius: 0; padding: 0; transform: none; clip-path: none; aspect-ratio: auto;
}
.sfp-company-preview .sfp-company-enlarge {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
    border: 0; border-radius: 8px; background: transparent; padding: 8px 12px; cursor: pointer; font-family: inherit; line-height: 1.4;
    font-size: .87rem; font-weight: 650; color: #193c54; text-decoration: none;
}
.sfp-company-preview .sfp-phone-scroll:focus-visible { outline: 3px solid #df981b; outline-offset: -3px; }
.sfp-company-preview .sfp-company-enlarge:focus-visible { outline: 2px solid #2c6887; outline-offset: 2px; }
@media (max-width: 720px) {
    .sfp-company-preview .sfp-company-inner { width: min(520px, calc(100% - 32px)); }
    .sfp-company-preview .sfp-company-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .sfp-company-preview .sfp-company-card { padding: 17px 14px 12px; }
    .sfp-company-preview figcaption { margin: 0 3px 14px; }
    .sfp-company-preview .sfp-phone-case { width: min(100%, clamp(155px, 43vw, 182px)); }
}
.sfp-company-preview .sfp-device-set {
    position: relative; width: 100%; max-width: 500px;
    box-sizing: border-box; padding: 10px 4px 126px;
}
.sfp-company-preview .sfp-desktop-case {
    position: relative; padding: 0 5px; border: 1px solid #57616a;
    border-radius: 10px; background: #17202a;
    box-shadow: 0 3px 8px rgb(22 46 70 / .16);
}
.sfp-company-preview .sfp-desktop-camera {
    height: 8px; display: grid; place-items: center;
}
.sfp-company-preview .sfp-desktop-camera::before {
    content: ''; width: 3px; height: 3px; border-radius: 50%; background: #647684;
}
.sfp-company-preview .sfp-desktop-scroll {
    aspect-ratio: 16 / 10; overflow: auto; background: #fff;
    scrollbar-width: thin; scrollbar-color: #a7b1ba transparent;
}
.sfp-home .sfp-company-preview .sfp-desktop-scroll img {
    display: block; width: 100%; max-width: none; height: auto !important; max-height: none !important;
    margin: 0; padding: 0; border: 0; border-radius: 0; transform: none; clip-path: none; aspect-ratio: auto;
}
.sfp-company-preview .sfp-desktop-bezel { height: 9px; }
.sfp-company-preview .sfp-desktop-stand { height: 32px; width: 30%; margin: 0 auto; position: relative; }
.sfp-company-preview .sfp-desktop-stand::before {
    content: ''; display: block; margin: auto; height: 27px; width: 42%;
    background: linear-gradient(#535e67, #aeb6bb); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}
.sfp-company-preview .sfp-desktop-stand::after {
    content: ''; display: block; height: 5px; border-radius: 8px 8px 3px 3px; background: #a1abb2;
}
.sfp-company-preview .sfp-device-set .sfp-phone-case {
    position: absolute; right: 8px; bottom: 9px;
    width: clamp(76px, 24%, 94px); border-radius: 16px; padding: 3px;
}
.sfp-company-preview .sfp-device-set .sfp-phone-display { border-radius: 11px; grid-template-rows: 9px minmax(0, 1fr) 5px; }
.sfp-device-set .sfp-phone-speaker::before { width: 22px; height: 5px; }
.sfp-device-set .sfp-phone-chin::after { width: 23px; height: 1px; }
.sfp-company-preview .sfp-desktop-scroll:focus-visible { outline: 3px solid #df981b; outline-offset: -3px; }

html.sfp-company-viewer-open { overflow: hidden; }
.sfp-company-preview #sfp-company-viewer {
    --sfp-expanded-phone-width: min(370px, calc(100vw - 72px), calc((100dvh - 122px) * .47927));
    box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-width: none;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    margin: auto; padding: 12px 14px 18px; border: 0; border-radius: 22px;
    color: #162e46; background: #eef4f1; overflow: auto;
    box-shadow: 0 24px 80px rgb(0 0 0 / .3);
}
.sfp-company-preview .sfp-company-viewer::backdrop { background: rgb(8 22 36 / .78); }
.sfp-company-preview .sfp-company-viewer-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.sfp-home .sfp-company-preview #sfp-company-viewer-title {
    margin: 0; color: #162e46; font-size: 18px; line-height: 1.25;
}
.sfp-company-preview .sfp-company-viewer-close {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
    min-height: 44px; padding: 8px 12px; margin: 0; border: 1px solid #637586; border-radius: 10px;
    background: #fff; color: #162e46; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.sfp-company-preview .sfp-company-viewer-close span[aria-hidden] { font: 400 24px/1 sans-serif; }
.sfp-company-preview .sfp-company-viewer-close:focus-visible { outline: 3px solid #ad6900; outline-offset: 2px; }
.sfp-company-preview .sfp-company-viewer-content { display: grid; justify-items: center; }
.sfp-company-preview .sfp-company-viewer .sfp-phone-case {
    width: var(--sfp-expanded-phone-width);
    flex: none; border-radius: 36px; padding: 6px;
}
.sfp-company-preview .sfp-company-viewer .sfp-phone-display { border-radius: 29px; grid-template-rows: 20px minmax(0, 1fr) 12px; }
.sfp-company-preview .sfp-company-viewer .sfp-phone-scroll,
.sfp-company-preview .sfp-company-viewer .sfp-desktop-scroll { overscroll-behavior: contain; }
.sfp-company-preview #sfp-company-viewer.sfp-company-viewer-desktop { width: min(1160px, calc(100vw - 32px)); background: #eaf0f6; }
.sfp-company-preview .sfp-company-viewer .sfp-desktop-case { width: 100%; height: calc(var(--sfp-expanded-phone-width) * 820 / 393); box-sizing: border-box; display: grid; grid-template-rows: 8px minmax(0, 1fr) 9px; }
.sfp-company-preview .sfp-company-viewer .sfp-desktop-scroll {
    aspect-ratio: auto; min-height: 0; max-height: none;
}
@media (max-width: 480px) {
    .sfp-company-preview #sfp-company-viewer { padding: 10px 10px 14px; }
    .sfp-home .sfp-company-preview #sfp-company-viewer-title { font-size: 16px; }
}

.sfp-home .sfp-company-preview .sfp-company-enlarge,
.sfp-home .sfp-company-preview .sfp-company-enlarge:hover,
.sfp-home .sfp-company-preview .sfp-company-enlarge:focus,
.sfp-home .sfp-company-preview .sfp-company-enlarge span { text-decoration: none; }
