.service-gallery { max-width: 1040px; margin: 0 auto 32px; }
.service-gallery__frame { position: relative; height: clamp(240px,43vw,520px); overflow: hidden; border: 1px solid #e5ebf1; border-radius: 16px; background: #eff3f7; touch-action: pan-y; }
.service-gallery__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 650ms ease, visibility 0s 650ms; }
.service-gallery__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 650ms ease, visibility 0s; }
.service-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.service-gallery__arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0 0 4px; border: 1px solid #d7e0e9; border-radius: 50%; background: #ffffffed; color: #283f56; font: inherit; font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 3px 14px #1e35551c; transition: background .2s, box-shadow .2s; }
.service-gallery__arrow--prev { left: 14px; }
.service-gallery__arrow--next { right: 14px; }
.service-gallery__arrow:hover { background: #fff; box-shadow: 0 4px 18px #1e355538; }
.service-gallery__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 2px 9px; color: #667583; font-size: 13px; }
.service-gallery__autoplay { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 0; border-radius: 18px; background: #edf4fc; color: #326da8; font: inherit; font-size: 13px; cursor: pointer; }
.service-gallery__autoplay::before { content: 'Ⅱ'; font-size: 12px; }
.service-gallery__autoplay[aria-pressed="true"]::before { content: '▶'; font-size: 10px; }
.service-gallery__thumbs { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 3px 2px 7px; scrollbar-width: thin; }
.service-gallery__thumb { flex: 0 0 104px; width: 104px; padding: 3px; border: 2px solid transparent; border-radius: 10px; background: transparent; opacity: .65; cursor: pointer; transition: border-color .2s, opacity .2s; }
.service-gallery__thumb img { display: block; width: 100%; height: 63px; object-fit: cover; border-radius: 5px; }
.service-gallery__thumb:hover { opacity: 1; }
.service-gallery__thumb.is-active { opacity: 1; border-color: #4e91d9; }
.service-gallery button:focus-visible, .service-gallery__slide:focus-visible { outline: 2px solid #377fc8; outline-offset: 3px; }
.service-gallery__slide:focus-visible { outline-offset: -4px; }
@media (max-width: 600px) {
    .service-gallery { margin-bottom: 24px; }
    .service-gallery__frame { border-radius: 12px; }
    .service-gallery__arrow { width: 36px; height: 36px; font-size: 29px; }
    .service-gallery__arrow--prev { left: 8px; }
    .service-gallery__arrow--next { right: 8px; }
    .service-gallery__thumb { flex-basis: 82px; width: 82px; }
    .service-gallery__thumb img { height: 49px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-gallery__slide, .service-gallery__slide.is-active, .service-gallery__thumb { transition: none; }
}
