.ec-productBreadcrumb { max-width: 1130px; margin: 0 auto 24px; padding: 0 20px; font-size: 13px; line-height: 1.8; }
.ec-productBreadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.ec-productBreadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.ec-productBreadcrumb li + li::before { content: '›'; display: inline-block; margin: 0 10px; color: #767676; }
.ec-productBreadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.ec-productBreadcrumb [aria-current] { color: #555; }
.ec-productGallery__trigger { display: block; cursor: zoom-in; }
.ec-productGallery__trigger:focus-visible { outline: 3px solid #9f753b; outline-offset: -3px; }
.ec-productGallery__hint { margin: 12px 0 20px; font-size: 13px; text-align: center; color: #555; }
html.ec-productGallery--open { overflow: hidden; }
.ec-productGallery { box-sizing: border-box; width: calc(100vw - 32px); max-width: 1280px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: #fff; color: #222; overflow: hidden; box-shadow: 0 16px 64px rgba(0, 0, 0, .35); }
.ec-productGallery:not([open]) { display: none; }
.ec-productGallery[open] { display: flex; flex-direction: column; }
.ec-productGallery::backdrop { background: rgba(0, 0, 0, .78); }
.ec-productGallery__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #ddd; }
.ec-productGallery__header h2 { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ec-productGallery button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #aaa; border-radius: 4px; background: #fff; color: #222; cursor: pointer; font: inherit; font-size: 14px; }
.ec-productGallery button:hover { background: #f2f2f2; }
.ec-productGallery button:focus-visible, .ec-productGallery a:focus-visible { outline: 3px solid #9f753b; outline-offset: 2px; }
.ec-productGallery button:disabled { opacity: .4; cursor: default; }
.ec-productGallery__close { white-space: nowrap; }
.ec-productGallery__close span { margin-left: 8px; font-size: 20px; }
.ec-productGallery__viewport { flex: 1 1 auto; min-height: 0; padding: 12px; overflow: auto; overscroll-behavior: contain; background: #f4f4f4; }
.ec-productGallery__image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); margin: auto; object-fit: contain; }
.ec-productGallery.is-zoomed .ec-productGallery__image { max-width: none; max-height: none; }
.ec-productGallery__footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid #ddd; }
.ec-productGallery__counter { min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.ec-productGallery__footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; }
@media (max-width: 767px) {
    .ec-productBreadcrumb { padding: 0 12px; margin-bottom: 16px; font-size: 12px; }
    .ec-productGallery__hint { margin-top: 42px; }
    .ec-productGallery { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    .ec-productGallery__header { padding: 8px 12px; gap: 8px; }
    .ec-productGallery__header h2 { font-size: 14px; max-height: 4.5em; overflow: auto; }
    .ec-productGallery__footer { padding: 8px; gap: 6px 8px; }
    .ec-productGallery__image { max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); }
}

.ec-butsuguParts__content a[data-gallery-index] { cursor: zoom-in; }
.ec-butsuguParts__content a[data-gallery-index]:focus-visible { outline: 3px solid #9f753b; outline-offset: 2px; }
